fcoin_ruby_client 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4d0f483bcb65116c422ae6489361db119457af3
4
- data.tar.gz: 6761824963b5cc543ad3dd4723bd21bbb98b25c3
3
+ metadata.gz: e56c33b3a0983d4e16e2672d4c87e2edcba480ff
4
+ data.tar.gz: f0a98fc42c8cf45a59dae4a4d51e8e168ba81796
5
5
  SHA512:
6
- metadata.gz: 34f4925fa20beb9b24fab41d2512cbfb4d498966286624fba65d0b32a4d87236597c88e83c059cfe68eb40d6a5bf93f843fc33801463350df07b1e69fb9abd9c
7
- data.tar.gz: b0753db7887e83c6d50fffd02b8842f5ea49d281ecb3dd771ce6ee5670d109ff616a5cb925e1fd6ce5cf304c6786041ef794560842f06b8375e2c86c3bf6946a
6
+ metadata.gz: a9649d058889720c20aa632a8f2d7fb242eaddc5ef6444c5c76a6b137733fb2fbe0a0881aa647088ec691654bc2869a468223158e23a111017eab4b8547694c1
7
+ data.tar.gz: 96b47dab9c4c3e9e99933bcda782717a28af3ef24abb8aa621d652a8739db4035e014ee18e2b01a48c6b6038d972b315ad0f1e145ae54c4efa6aa5852a4da98f
data/.travis.yml CHANGED
@@ -22,5 +22,5 @@ install:
22
22
 
23
23
  script:
24
24
  - bundle exec rubocop --fail-level=W
25
- - bundle exec rspec spec
26
25
  - bundle exec rspec spec --tag fcoin_auth
26
+ - bundle exec rspec spec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fcoin_ruby_client (0.1.0)
4
+ fcoin_ruby_client (0.1.1)
5
5
  activesupport
6
6
  config
7
7
  faraday
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # FcoinRubyClient
2
+ [![Gem Version](https://badge.fury.io/rb/fcoin_ruby_client.svg)](https://badge.fury.io/rb/fcoin_ruby_client)
2
3
  [![Build Status](https://travis-ci.org/yukihirop/fcoin_ruby_client.svg?branch=master)](https://travis-ci.org/yukihirop/fcoin_ruby_client)
3
4
  [![Coverage Status](https://coveralls.io/repos/github/yukihirop/fcoin_ruby_client/badge.svg?branch=master)](https://coveralls.io/github/yukihirop/fcoin_ruby_client?branch=master)
4
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/098a36b2ed22f3a9e627/maintainability)](https://codeclimate.com/github/yukihirop/fcoin_ruby_client/maintainability)
@@ -1,11 +1,11 @@
1
1
  # RealTime API CLI
2
2
 
3
- In development, please use the `./bin/fcoin`.<br>
3
+ In development, please use the `./exe/fcoin`.<br>
4
4
  In Actual, please use the `bundle exec fcoin`.
5
5
 
6
6
  ## All
7
7
  ```
8
- $ ./bin/fcoin
8
+ $ ./exe/fcoin
9
9
  Commands:
10
10
  fcoin account # Get Account Information
11
11
  fcoin help [COMMAND] # Describe available commands or one specific command
@@ -24,7 +24,7 @@ __If you want to validate__
24
24
  ```bash
25
25
  $ # For more settings
26
26
  $ # @see https://github.com/yukihirop/fcoin_ruby_client#validation
27
- $ ./bin/fcoin validation init --path ./config
27
+ $ ./exe/fcoin validation init --path ./config
28
28
  create
29
29
  create my_settings.yml
30
30
  $ export VALIDATION_SETTING_PATH='/path/to/your/my_settings.yml'
@@ -32,7 +32,7 @@ $ export VALIDATION_SETTING_PATH='/path/to/your/my_settings.yml'
32
32
 
33
33
  ## Subscribe
34
34
  ```bash
35
- $ ./bin/fcoin subscribe
35
+ $ ./exe/fcoin subscribe
36
36
  Commands:
37
37
  fcoin subscribe candle --resolution=RESOLUTION --symbol=SYMBOL # Subscribe to candle information
38
38
  fcoin subscribe depth --level=LEVEL --symbol=SYMBOL # Subscribe to depth information
@@ -46,33 +46,33 @@ Commands:
46
46
 
47
47
  ```bash
48
48
  $ # Subscribe to ticker information
49
- $ ./bin/fcoin subscribe ticker --symbol ethusdt
49
+ $ ./exe/fcoin subscribe ticker --symbol ethusdt
50
50
  {"ticker":{"latest_price":417.64,"most_recent_trade_vol":0.2452,"max_buy_price":417.64,"max_buy_amount":0.0824,"min_sell_price":417.65,"min_sell_amount":0.1744,"trade_price_yesterday":399.39,"highest_price_today":420.01,"lowest_price_today":399.17,"symbol_base_vol_today":13500.553485427,"symbol_base_price_today":5568704.350213625},"type":"ticker.ethusdt","seq":105644599}
51
51
  {"ticker":{"latest_price":417.64,"most_recent_trade_vol":0.2452,"max_buy_price":417.64,"max_buy_amount":0.0824,"min_sell_price":417.65,"min_sell_amount":0.1744,"trade_price_yesterday":399.39,"highest_price_today":420.01,"lowest_price_today":399.17,"symbol_base_vol_today":13500.553485427,"symbol_base_price_today":5568704.350213625},"type":"ticker.ethusdt","seq":105644607}
52
52
  ...
53
53
  ...
54
54
  $ # Subscribe to depth information
55
- $ ./bin/fcoin subscribe depth --symbol ethusdt --level L20
55
+ $ ./exe/fcoin subscribe depth --symbol ethusdt --level L20
56
56
  {"bids":[{"price":417.65,"amount":0.4365},{"price":417.6,"amount":8.282},{"price":417.57,"amount":9.5453},{"price":417.56,"amount":0.0404},{"price":417.55,"amount":0.0064},{"price":417.54,"amount":0.0016},{"price":417.53,"amount":0.0016},{"price":417.5,"amount":2.5845},{"price":417.48,"amount":0.0092},{"price":417.42,"amount":0.02},{"price":417.3,"amount":0.005},{"price":417.1,"amount":0.005},{"price":417.07,"amount":0.0655},{"price":417.03,"amount":0.0039},{"price":417.01,"amount":2.538},{"price":417.0,"amount":0.6005},{"price":416.98,"amount":0.0528},{"price":416.97,"amount":3.0},{"price":416.93,"amount":0.3},{"price":416.9,"amount":0.005}],"asks":[{"price":417.68,"amount":0.0166},{"price":417.69,"amount":0.0016},{"price":417.7,"amount":0.9476},{"price":417.71,"amount":0.0128},{"price":417.72,"amount":0.1234},{"price":417.82,"amount":0.0023},{"price":417.83,"amount":0.0171},{"price":417.86,"amount":0.0141},{"price":417.88,"amount":0.02},{"price":417.9,"amount":0.0075},{"price":417.91,"amount":0.01},{"price":418.1,"amount":0.005},{"price":418.24,"amount":0.931},{"price":418.3,"amount":0.005},{"price":418.35,"amount":0.1},{"price":418.4,"amount":0.1},{"price":418.45,"amount":14.77605139},{"price":418.46,"amount":0.1033},{"price":418.49,"amount":0.0065},{"price":418.5,"amount":0.505}],"ts":1533358172008,"seq":105645076,"type":"depth.L20.ethusdt"}
57
57
  {"bids":[{"price":417.65,"amount":0.4365},{"price":417.6,"amount":8.282},{"price":417.57,"amount":9.5453},{"price":417.56,"amount":0.0404},{"price":417.55,"amount":0.0064},{"price":417.54,"amount":0.0016},{"price":417.53,"amount":0.0016},{"price":417.5,"amount":2.5845},{"price":417.48,"amount":0.0092},{"price":417.42,"amount":0.02},{"price":417.3,"amount":0.005},{"price":417.1,"amount":0.005},{"price":417.07,"amount":0.0655},{"price":417.03,"amount":0.0039},{"price":417.01,"amount":2.438},{"price":417.0,"amount":0.6005},{"price":416.98,"amount":0.0528},{"price":416.97,"amount":3.0},{"price":416.93,"amount":0.3},{"price":416.9,"amount":0.005}],"asks":[{"price":417.68,"amount":0.0166},{"price":417.69,"amount":0.0016},{"price":417.7,"amount":0.9476},{"price":417.71,"amount":0.0128},{"price":417.72,"amount":0.1234},{"price":417.82,"amount":0.0023},{"price":417.83,"amount":0.0171},{"price":417.86,"amount":0.0141},{"price":417.88,"amount":0.02},{"price":417.9,"amount":0.0075},{"price":417.91,"amount":0.01},{"price":418.1,"amount":0.005},{"price":418.24,"amount":0.931},{"price":418.3,"amount":0.005},{"price":418.35,"amount":0.1},{"price":418.4,"amount":0.1},{"price":418.45,"amount":14.77605139},{"price":418.46,"amount":0.1033},{"price":418.49,"amount":0.0065},{"price":418.5,"amount":0.505}],"ts":1533358173008,"seq":105645077,"type":"depth.L20.ethusdt"}
58
58
  ...
59
59
  ...
60
60
  $ # Subscribe to trade information
61
- $ ./bin/fcoin subscribe trade --symbol ethusdt
61
+ $ ./exe/fcoin subscribe trade --symbol ethusdt
62
62
  {"amount":0.1891,"type":"trade.ethusdt","ts":1533358225453,"id":105645412000,"side":"sell","price":417.6}
63
63
  {"amount":0.3944,"type":"trade.ethusdt","ts":1533358234398,"id":105645473000,"side":"sell","price":417.6}
64
64
  ...
65
65
  ...
66
66
  $ # Subscribe to candle information
67
- $ ./bin/fcoin subscribe candle --symbol ethusdt --resolution MN
67
+ $ ./exe/fcoin subscribe candle --symbol ethusdt --resolution MN
68
68
  {"open":430.1,"type":"candle.MN.ethusdt","close":417.61,"high":435.93,"quote_vol":51514255.299988344,"id":1533052800,"count":390173,"low":397.61,"seq":10564587100000,"base_vol":122629.972229052}
69
69
  {"open":430.1,"type":"candle.MN.ethusdt","close":417.61,"high":435.93,"quote_vol":51516631.99998658,"id":1533052800,"count":390174,"low":397.61,"seq":10564590200000,"base_vol":122635.663424182}
70
70
  ...
71
71
  ...
72
72
  $ # Subscribe to topics
73
- $ ./bin/fcoin subscribe topics
73
+ $ ./exe/fcoin subscribe topics
74
74
  {"id":"61daeff4-36e4-4423-a4e4-adb158accadf","type":"topics","topics":[]}
75
75
  $ # Subscribe to server time
76
- $ ./bin/fcoin subscribe hello
76
+ $ ./exe/fcoin subscribe hello
77
77
  {"type":"hello","ts":1533358407476}
78
78
  ```
@@ -1,11 +1,11 @@
1
1
  # REST API CLI
2
2
 
3
- In development, please use the `./bin/fcoin`.<br>
3
+ In development, please use the `./exe/fcoin`.<br>
4
4
  In Actual, please use the `bundle exec fcoin`.
5
5
 
6
6
  ## All
7
7
  ```bash
8
- $ ./bin/fcoin
8
+ $ ./exe/fcoin
9
9
  Commands:
10
10
  fcoin account # Get Account Information
11
11
  fcoin help [COMMAND] # Describe available commands or one specific command
@@ -24,7 +24,7 @@ __If you want to validate__
24
24
  ```bash
25
25
  $ # For more settings
26
26
  $ # @see https://github.com/yukihirop/fcoin_ruby_client#validation
27
- $ ./bin/fcoin validation init --path ./config
27
+ $ ./exe/fcoin validation init --path ./config
28
28
  create
29
29
  create my_settings.yml
30
30
  $ export VALIDATION_SETTING_PATH='/path/to/your/my_settings.yml'
@@ -32,7 +32,7 @@ $ export VALIDATION_SETTING_PATH='/path/to/your/my_settings.yml'
32
32
 
33
33
  ## Public
34
34
  ```bash
35
- $ ./bin/fcoin public
35
+ $ ./exe/fcoin public
36
36
  Commands:
37
37
  fcoin public currencies # Display available currency
38
38
  fcoin public help [COMMAND] # Describe subcommands or one specific subcommand
@@ -43,21 +43,21 @@ Commands:
43
43
 
44
44
  ```bash
45
45
  $ # Get server time
46
- $ ./bin/fcoin public server_time
46
+ $ ./exe/fcoin public server_time
47
47
  {"status":0,"data":1533311785257}
48
48
  $
49
49
  $ # Display available currency
50
- $ ./bin/fcoin public currencies
50
+ $ ./exe/fcoin public currencies
51
51
  {"status":0,"data":["btc","eth","bch","ltc","eos","usdt","ft_frozen","ft","zip","etc","omg","btm","zrx","xrp","bnb","gtc","fi","zil","icx","ae","777","gus","cccx","banca","pra","dcc","sss","mdt","tst","pmd","rte","xps","tct","dws","ngot","at","soc","blz","ocn","datx","let","dag","yee","aaa","nc","ait","arp","gram","tbcoin","ifood","hpc","sgcc","lxt","3db","drink1","drink","drct","ionc","xmx","rct","cit","ees","fair","brm","sda","cbr","tkt","vct","biz","show","pai","sec","lovc","mst","iov","ejoy","iht","iic","fbc","fota","dagt","wte","tos","oas","fres","gene","maya","mesh","icc","scl","cofi","but","zsc","jac","vns","aidoc","ccc","fuel","edu","beauty","mof","dta","cps","msc","latx","dscoin","dscb","boc","18t","newos","mxm","idxe","pnt","vpp","lmm","rnt","hotc","fff","dht","fbee","vlc","wicc","mot","bcv","baic","ruff","ink","ges","sac","see","dpn","smt","musk","ptt","mith","lth","wmch","cwv","jll","bhpc","unc","int","insur","pun","facc","osch","uto","btmc","cnmc","fcandy","dacc","fti","bbc","orme","tcash","mitx","pok","icst","gu","iota","ft1808","ft1810_i","zpr","nrc","kan","dac","eai","ifish","tat","you","win","fish","box","cosm","loom","kcash","rrc","olt","agi","kora","skm","bto","uuu","gse","bft","abt","mds","ors","vaac","lba","knc","gto","bfdt","est","gnx","iost","hpb","xin","cai","tac","risk","vnt","vboom","ugc","ole","bkbt","cpc","qos"]}
52
52
  $
53
53
  $ # Query available transaction pairs
54
- $ ./bin/fcoin public symbols
54
+ $ ./exe/fcoin public symbols
55
55
  {"status":0,"data":[{"name":"btcusdt","base_currency":"btc","quote_currency":"usdt","price_decimal":2,"amount_decimal":4},{"name":"ethusdt","base_currency":"eth","quote_currency":"usdt","price_decimal":2,"amount_decimal":4},{"name":"bchusdt","base_currency":"bch","quote_currency":"usdt","price_decimal":2,"amount_decimal":4},{"name":"ltcusdt","base_currency":"ltc","quote_currency":"usdt","price_decimal":2,"amount_decimal":4},{"name":"ftusdt","base_currency":"ft","quote_currency":"usdt","price_decimal":6,"amount_decimal":2},{"name":"fteth","base_currency":"ft","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"zipeth","base_currency":"zip","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"etcusdt","base_currency":"etc","quote_currency":"usdt","price_decimal":2,"amount_decimal":4},{"name":"ftbtc","base_currency":"ft","quote_currency":"btc","price_decimal":8,"amount_decimal":2},{"name":"omgeth","base_currency":"omg","quote_currency":"eth","price_decimal":6,"amount_decimal":4},{"name":"btmusdt","base_currency":"btm","quote_currency":"usdt","price_decimal":4,"amount_decimal":2},{"name":"zrxeth","base_currency":"zrx","quote_currency":"eth","price_decimal":6,"amount_decimal":2},{"name":"bnbusdt","base_currency":"bnb","quote_currency":"usdt","price_decimal":4,"amount_decimal":2},{"name":"zipusdt","base_currency":"zip","quote_currency":"usdt","price_decimal":6,"amount_decimal":2},{"name":"xrpusdt","base_currency":"xrp","quote_currency":"usdt","price_decimal":4,"amount_decimal":2},{"name":"fieth","base_currency":"fi","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"fiusdt","base_currency":"fi","quote_currency":"usdt","price_decimal":6,"amount_decimal":2},{"name":"icxeth","base_currency":"icx","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"zileth","base_currency":"zil","quote_currency":"eth","price_decimal":6,"amount_decimal":4},{"name":"aeeth","base_currency":"ae","quote_currency":"eth","price_decimal":6,"amount_decimal":2},{"name":"777eth","base_currency":"777","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"guseth","base_currency":"gus","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"cccxeth","base_currency":"cccx","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"bancaeth","base_currency":"banca","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"praeth","base_currency":"pra","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"dcceth","base_currency":"dcc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ssseth","base_currency":"sss","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"mdteth","base_currency":"mdt","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"tsteth","base_currency":"tst","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"pmdeth","base_currency":"pmd","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"rteeth","base_currency":"rte","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"xpseth","base_currency":"xps","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"tcteth","base_currency":"tct","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"dwseth","base_currency":"dws","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ngoteth","base_currency":"ngot","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ateth","base_currency":"at","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"soceth","base_currency":"soc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"blzeth","base_currency":"blz","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ocneth","base_currency":"ocn","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"datxeth","base_currency":"datx","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"gtceth","base_currency":"gtc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"leteth","base_currency":"let","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"dageth","base_currency":"dag","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"yeeeth","base_currency":"yee","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"aaaeth","base_currency":"aaa","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"nceth","base_currency":"nc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"aiteth","base_currency":"ait","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"arpeth","base_currency":"arp","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"grameth","base_currency":"gram","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ifoodeth","base_currency":"ifood","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"hpceth","base_currency":"hpc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"sgcceth","base_currency":"sgcc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"3dbeth","base_currency":"3db","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"xmxeth","base_currency":"xmx","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"rcteth","base_currency":"rct","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"citeth","base_currency":"cit","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"eeseth","base_currency":"ees","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"faireth","base_currency":"fair","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"brmeth","base_currency":"brm","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"sdaeth","base_currency":"sda","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"cbreth","base_currency":"cbr","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"tkteth","base_currency":"tkt","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"vcteth","base_currency":"vct","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"bizeth","base_currency":"biz","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"showeth","base_currency":"show","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"paieth","base_currency":"pai","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ioveth","base_currency":"iov","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ihteth","base_currency":"iht","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"fotaeth","base_currency":"fota","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ejoyeth","base_currency":"ejoy","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"iiceth","base_currency":"iic","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"wteeth","base_currency":"wte","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"freseth","base_currency":"fres","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"mesheth","base_currency":"mesh","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"icceth","base_currency":"icc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ionceth","base_currency":"ionc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"drcteth","base_currency":"drct","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"oaseth","base_currency":"oas","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"buteth","base_currency":"but","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"aidoceth","base_currency":"aidoc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"cofieth","base_currency":"cofi","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"lxteth","base_currency":"lxt","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"edueth","base_currency":"edu","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"dtaeth","base_currency":"dta","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"msceth","base_currency":"msc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"geneeth","base_currency":"gene","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ccceth","base_currency":"ccc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"dscoineth","base_currency":"dscoin","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"boceth","base_currency":"boc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"toseth","base_currency":"tos","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"fueleth","base_currency":"fuel","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"pnteth","base_currency":"pnt","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"seceth","base_currency":"sec","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"mofeth","base_currency":"mof","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"rnteth","base_currency":"rnt","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"wicceth","base_currency":"wicc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"fffeth","base_currency":"fff","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"cpseth","base_currency":"cps","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"zsceth","base_currency":"zsc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"latxeth","base_currency":"latx","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"dhteth","base_currency":"dht","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"seeeth","base_currency":"see","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"inketh","base_currency":"ink","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"saceth","base_currency":"sac","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"scleth","base_currency":"scl","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"mitheth","base_currency":"mith","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"smteth","base_currency":"smt","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"fcandyusdt","base_currency":"fcandy","quote_currency":"usdt","price_decimal":8,"amount_decimal":2},{"name":"newoseth","base_currency":"newos","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"hotceth","base_currency":"hotc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ptteth","base_currency":"ptt","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"dpneth","base_currency":"dpn","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ltheth","base_currency":"lth","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"jlleth","base_currency":"jll","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"utoeth","base_currency":"uto","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"777usdt","base_currency":"777","quote_currency":"usdt","price_decimal":8,"amount_decimal":2},{"name":"xpsusdt","base_currency":"xps","quote_currency":"usdt","price_decimal":8,"amount_decimal":2},{"name":"prausdt","base_currency":"pra","quote_currency":"usdt","price_decimal":8,"amount_decimal":2},{"name":"hpcusdt","base_currency":"hpc","quote_currency":"usdt","price_decimal":8,"amount_decimal":2},{"name":"vppeth","base_currency":"vpp","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"oscheth","base_currency":"osch","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"guusdt","base_currency":"gu","quote_currency":"usdt","price_decimal":8,"amount_decimal":2},{"name":"ft1808usdt","base_currency":"ft1808","quote_currency":"usdt","price_decimal":6,"amount_decimal":2},{"name":"ruffeth","base_currency":"ruff","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"baiceth","base_currency":"baic","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ormeeth","base_currency":"orme","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"puneth","base_currency":"pun","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"facceth","base_currency":"facc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"cwveth","base_currency":"cwv","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"lmmeth","base_currency":"lmm","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"vlceth","base_currency":"vlc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"icsteth","base_currency":"icst","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ftft1808","base_currency":"ft","quote_currency":"ft1808","price_decimal":6,"amount_decimal":2},{"name":"iotausdt","base_currency":"iota","quote_currency":"usdt","price_decimal":4,"amount_decimal":2},{"name":"drink1eth","base_currency":"drink1","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"drinketh","base_currency":"drink","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"musketh","base_currency":"musk","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"mxmeth","base_currency":"mxm","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"mitxeth","base_currency":"mitx","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ft1810_iusdt","base_currency":"ft1810_i","quote_currency":"usdt","price_decimal":6,"amount_decimal":2},{"name":"ftft1810_i","base_currency":"ft","quote_currency":"ft1810_i","price_decimal":6,"amount_decimal":2},{"name":"inteth","base_currency":"int","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"btmceth","base_currency":"btmc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"cnmceth","base_currency":"cnmc","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"ftieth","base_currency":"fti","quote_currency":"eth","price_decimal":8,"amount_decimal":2},{"name":"eosusdt","base_currency":"eos","quote_currency":"usdt","price_decimal":4,"amount_decimal":4}]}
56
56
  ```
57
57
 
58
58
  ## Market
59
59
  ```bash
60
- $ ./bin/fcoin market
60
+ $ ./exe/fcoin market
61
61
  Commands:
62
62
  fcoin market candles --resolution=RESOLUTION --symbol=SYMBOL # Returns candles info of symbol specified by resolution
63
63
  fcoin market depth --level=LEVEL --symbol=SYMBOL # Returns depth info of symbol specified by level
@@ -69,19 +69,19 @@ Commands:
69
69
 
70
70
  ```bash
71
71
  $ # Returns ticker info of symbol
72
- $ ./bin/fcoin market ticker --symbol ethusdt
72
+ $ ./exe/fcoin market ticker --symbol ethusdt
73
73
  {"status":0,"data":{"ticker":{"latest_price":414.02,"most_recent_trade_vol":0.0902,"max_buy_price":414.02,"max_buy_amount":1.8507,"min_sell_price":414.03,"min_sell_amount":0.5,"trade_price_yesterday":412.04,"highest_price_today":415.31,"lowest_price_today":397.61,"symbol_base_vol_today":20506.814864234,"symbol_base_price_today":8368527.290918281},"type":"ticker.ethusdt","seq":105330258}}
74
74
 
75
75
  $ # Returns depth info of symbol specified by level
76
- $ ./bin/fcoin market depth --symbol ethusdt --level L20
76
+ $ ./exe/fcoin market depth --symbol ethusdt --level L20
77
77
  {"status":0,"data":{"bids":[{"price":414.06,"amount":0.015},{"price":414.05,"amount":0.045},{"price":414.02,"amount":0.4694},{"price":414.0,"amount":0.1042},{"price":413.94,"amount":0.0084},{"price":413.93,"amount":0.4181},{"price":413.91,"amount":0.0025},{"price":413.9,"amount":0.0242},{"price":413.81,"amount":0.0036},{"price":413.8,"amount":0.04},{"price":413.71,"amount":0.1499},{"price":413.7,"amount":0.095},{"price":413.68,"amount":0.0558},{"price":413.67,"amount":0.0803},{"price":413.66,"amount":0.0684},{"price":413.62,"amount":0.0617},{"price":413.6,"amount":0.9768},{"price":413.59,"amount":0.0469},{"price":413.5,"amount":1.6528},{"price":413.41,"amount":0.0541}],"asks":[{"price":414.08,"amount":0.1742},{"price":414.09,"amount":0.1153},{"price":414.1,"amount":0.0201},{"price":414.11,"amount":0.1566},{"price":414.13,"amount":0.1332},{"price":414.15,"amount":0.2891},{"price":414.16,"amount":0.0951},{"price":414.23,"amount":0.4024},{"price":414.27,"amount":0.0283},{"price":414.3,"amount":0.005},{"price":414.31,"amount":0.0072},{"price":414.32,"amount":0.0035},{"price":414.35,"amount":0.0072},{"price":414.36,"amount":0.0025},{"price":414.46,"amount":0.0638},{"price":414.49,"amount":1.2057},{"price":414.5,"amount":0.005},{"price":414.51,"amount":0.0105},{"price":414.53,"amount":0.0015},{"price":414.6,"amount":0.06}],"ts":1533312373012,"seq":105330896,"type":"depth.L20.ethusdt"}}
78
78
 
79
79
  $ # Returns trades info of symbol
80
- $ ./bin/fcoin market trades --symbol ethusdt
80
+ $ ./exe/fcoin market trades --symbol ethusdt
81
81
  {"status":0,"data":[{"amount":0.0371,"ts":1533312528424,"id":105331864002,"side":"buy","price":413.8}]}
82
82
 
83
83
  $ # Returns candles info of symbol specified by resolution
84
- $ ./bin/fcoin market candles --symbol ethusdt --resolution MN
84
+ $ ./exe/fcoin market candles --symbol ethusdt --resolution MN
85
85
  {"status":0,"data":[{"open":430.1,"close":413.84,"high":435.93,"quote_vol":48966834.28889369,"id":1533052800,"count":357474,"low":397.61,"seq":10533250500000,"base_vol":116515.627401974},{"id":1530374400,"seq":10277314000000,"high":516.09,"low":418.29,"open":449.1,"close":430.1,"count":6460281,"base_vol":3214156.779928503,"quote_vol":1481280928.4282734},{"id":1527782400,"seq":7385778300000,"high":555.13,"low":406.11,"open":523.97,"close":449.04,"count":20382481,"base_vol":28258854.226292703,"quote_vol":13579650310.735054},{"id":1525104000,"seq":2847062700000,"high":582.99,"low":559.66,"open":563.23,"close":575.77,"count":4617,"base_vol":4159.317883344,"quote_vol":2380070.431548223}]}
86
86
  ```
87
87
 
@@ -94,7 +94,7 @@ export FCOIN_SECRET_KEY='your_fcoin_secret_key'
94
94
  ```
95
95
 
96
96
  ```bash
97
- $ ./bin/fcoin order
97
+ $ ./exe/fcoin order
98
98
  Commands:
99
99
  fcoin order cancel --order-id=ORDER_ID # Cancel order
100
100
  fcoin order create_limit --amount=N --price=N --side=SIDE --symbol=SYMBOL # Create limit order
@@ -107,23 +107,23 @@ Commands:
107
107
 
108
108
  ```bash
109
109
  $ # Create limit order
110
- $ ./bin/fcoin order create_limit --symbol ftusdt --side sell --price 1 --amount 3
110
+ $ ./exe/fcoin order create_limit --symbol ftusdt --side sell --price 1 --amount 3
111
111
  {"status":0,"data":"6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s="}
112
112
 
113
113
  $ # Ouery order
114
- $ ./bin/fcoin order reference --order-id 6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s=
114
+ $ ./exe/fcoin order reference --order-id 6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s=
115
115
  {"status":0,"data":{"id":"6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s=","symbol":"ftusdt","amount":"3.000000000000000000","price":"1.000000000000000000","created_at":1533313517068,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"api","state":"submitted"}}
116
116
 
117
117
  $ # Query the transaction record
118
- $ ./bin/fcoin order transaction --order-id 6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s=
118
+ $ ./exe/fcoin order transaction --order-id 6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s=
119
119
  {"status":0,"data":[]}
120
120
 
121
121
  $ # Cancel order
122
- $ ./bin/fcoin order cancel --order-id 6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s=
122
+ $ ./exe/fcoin order cancel --order-id 6SlFV7PSsxYu0FduMlYwghCgLgjeD_AiT5loT-ZFl2s=
123
123
  {"status":0} # cancel is success
124
124
 
125
125
  $ # Get order list
126
- $ ./bin/fcoin order list --symbol ethusdt --states canceled
126
+ $ ./exe/fcoin order list --symbol ethusdt --states canceled
127
127
  {"status":0,"data":[{"id":"nMEC_VrW0LYlP4iCcWzmdL50jFrvNWZoaQxvZSjeUSA=","symbol":"ethusdt","amount":"0.001000000000000000","price":"1000.000000000000000000","created_at":1531732778736,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"api","state":"canceled"},{"id":"V6WE1JJCUwvqJFgCjfT5lA37ioU_xOYi6_NSrtOVOsw=","symbol":"ethusdt","amount":"0.001000000000000000","price":"1000.000000000000000000","created_at":1531732713230,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"api","state":"canceled"},{"id":"R0moy92q4Qaf_GDEQ6Y1IKCgl5wwJM2bz_Zyacp-Ek8=","symbol":"ethusdt","amount":"0.001000000000000000","price":"1000.000000000000000000","created_at":1531714333569,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"api","state":"canceled"},{"id":"L7rbALEIoI0ymo3uOXBF4gT4BlyTxgHhGoZjvptIv2U=","symbol":"ethusdt","amount":"0.001000000000000000","price":"1000.000000000000000000","created_at":1531714218130,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"api","state":"canceled"},{"id":"32ZZCBEpPz2J9oFIJ4RMTIbypltjrVD9PAdYxQTHhUE=","symbol":"ethusdt","amount":"0.001000000000000000","price":"1000.000000000000000000","created_at":1531714092732,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"api","state":"canceled"},{"id":"VotO2IKI2opgyKRd1lhR5bYj9zNZ398IW85gcBNPisU=","symbol":"ethusdt","amount":"0.001000000000000000","price":"1000.000000000000000000","created_at":1531712709955,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"api","state":"canceled"},{"id":"tYH6LczJxaVe_WhsLOzOk4YM53hK2q169nYn9ReiwGM=","symbol":"ethusdt","amount":"0.001000000000000000","price":"1000.000000000000000000","created_at":1531675732267,"type":"limit","side":"sell","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"web","state":"canceled"},{"id":"U50WtZkmIh_bbuVKoipAMayCIy0A7qk4hBLxpDvKdPk=","symbol":"ethusdt","amount":"0.025800000000000000","price":"491.100000000000000000","created_at":1529665880201,"type":"limit","side":"buy","filled_amount":"0.000000000000000000","executed_value":"0.000000000000000000","fill_fees":"0.000000000000000000","source":"web","state":"canceled"}]}
128
128
  ```
129
129
 
@@ -136,7 +136,7 @@ export FCOIN_SECRET_KEY='your_fcoin_secret_key'
136
136
  ```
137
137
 
138
138
  ```bash
139
- $ ./bin/fcoin account
139
+ $ ./exe/fcoin account
140
140
  Commands:
141
141
  fcoin account balance # Get account info
142
142
  fcoin account help [COMMAND] # Describe subcommands or one specific subcommand
@@ -144,6 +144,6 @@ Commands:
144
144
  ```
145
145
 
146
146
  ```bash
147
- $ ./bin/fcoin account balance
147
+ $ ./exe/fcoin account balance
148
148
  # Do not display because it is personal information
149
149
  ```
@@ -1,11 +1,11 @@
1
1
  # Setting CLI
2
2
 
3
- In development, please use the `./bin/fcoin`.<br>
3
+ In development, please use the `./exe/fcoin`.<br>
4
4
  In Actual, please use the `bundle exec fcoin`.
5
5
 
6
6
  ## All
7
7
  ```bash
8
- $ ./bin/fcoin
8
+ $ ./exe/fcoin
9
9
  Commands:
10
10
  fcoin account # Get Account Information
11
11
  fcoin help [COMMAND] # Describe available commands or one specific command
@@ -22,7 +22,7 @@ Commands:
22
22
  ## Validation
23
23
  ```bash
24
24
  $ # Create validation setting file
25
- $ ./bin/fcoin validation init --path ./config
25
+ $ ./exe/fcoin validation init --path ./config
26
26
  create
27
27
  create my_settings.yml
28
28
  ```
@@ -30,7 +30,7 @@ $ ./bin/fcoin validation init --path ./config
30
30
  ## Locale
31
31
  ```bash
32
32
  $ # Create locale file
33
- $ ./bin/fcoin locale init --path ./config
33
+ $ ./exe/fcoin locale init --path ./config
34
34
  exist
35
35
  create .DS_Store
36
36
  create locales/en.yml
data/{bin → exe}/fcoin RENAMED
File without changes
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = %q{A Ruby wrapper for Fcoin API}
12
12
  spec.description = %q{A Ruby wrapper for Fcoin API}
13
+ spec.license = "MIT".freeze
13
14
 
14
15
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
15
16
  f.match(%r{^(test|spec|features)/})
@@ -17,6 +18,7 @@ Gem::Specification.new do |spec|
17
18
  spec.bindir = "exe"
18
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
20
  spec.require_paths = ["lib"]
21
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.1p111".freeze)
20
22
 
21
23
  spec.add_development_dependency "bundler", "~> 1.16.a"
22
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -13,7 +13,7 @@ module Fcoin
13
13
  # @example get account info
14
14
  # export FCOIN_API_KEY='your_fcoin_api_key'
15
15
  # export FCOIN_SECRET_KEY='your_fcoin_secret_key'
16
- # ./bin/fcoin accounts balance
16
+ # ./exe/fcoin accounts balance
17
17
  #
18
18
  #
19
19
  # @see https://developer.fcoin.com/zh.html#486f6037ed
@@ -9,7 +9,7 @@ module Fcoin
9
9
  # curl: GET https://api.fcoin.com/v2/market/ticker/$symbol
10
10
  #
11
11
  # @example get ethusdt ticker info
12
- # ./bin/fcoin market ticker --symbol ethusdt
12
+ # ./exe/fcoin market ticker --symbol ethusdt
13
13
  #
14
14
  #
15
15
  # @see https://developer.fcoin.com/zh.html#ticker
@@ -28,7 +28,7 @@ module Fcoin
28
28
  # curl: GET https://api.fcoin.com/v2/market/depth/$level/$symbol
29
29
  #
30
30
  # @example get ethusdt depth info specified by L20 level.
31
- # ./bin/fcoin market depth --symbol ethusdt --level L20
31
+ # ./exe/fcoin market depth --symbol ethusdt --level L20
32
32
  #
33
33
  #
34
34
  # @see https://developer.fcoin.com/zh.html#50f4407ea4
@@ -51,7 +51,7 @@ module Fcoin
51
51
  # curl: GET https://api.fcoin.com/v2/market/trades/$symbol
52
52
  #
53
53
  # @example get ethusdt trades info.
54
- # ./bin/fcoin market trades --symbol ethusdt
54
+ # ./exe/fcoin market trades --symbol ethusdt
55
55
  #
56
56
  #
57
57
  # @see https://developer.fcoin.com/zh.html#6477a1394e
@@ -70,7 +70,7 @@ module Fcoin
70
70
  # curl: GET https://api.fcoin.com/v2/market/candles/$resolution/$symbol
71
71
  #
72
72
  # @example get monthly(MN) ethusdt candles info.
73
- # ./bin/fcoin market candles --symbol ethusdt --resolution D1
73
+ # ./exe/fcoin market candles --symbol ethusdt --resolution D1
74
74
  #
75
75
  #
76
76
  # @see https://developer.fcoin.com/zh.html#candle
@@ -13,7 +13,7 @@ module Fcoin
13
13
  # @example Create an order to sell 0.010eth at a price of 1000usdt.
14
14
  # export FCOIN_API_KEY='your_fcoin_api_key'
15
15
  # export FCOIN_SECRET_KEY='your_fcoin_secret_key'
16
- # ./bin/fcoin order create_limit --symbol ethusdt --side sell --price 1000 --amount 0.001
16
+ # ./exe/fcoin order create_limit --symbol ethusdt --side sell --price 1000 --amount 0.001
17
17
  #
18
18
  #
19
19
  # @see https://developer.fcoin.com/zh.html#4a3e521c3b
@@ -48,7 +48,7 @@ module Fcoin
48
48
  # @example get the canceled order list of ethusdt limit 20 per page.
49
49
  # export FCOIN_API_KEY='your_fcoin_api_key'
50
50
  # export FCOIN_SECRET_KEY='your_fcoin_secret_key'
51
- # ./bin/fcoin order_list --symbol ethusdt, --states canceled --per_page 20
51
+ # ./exe/fcoin order_list --symbol ethusdt, --states canceled --per_page 20
52
52
  #
53
53
  #
54
54
  # @see https://developer.fcoin.com/zh.html#9094989d10
@@ -84,7 +84,7 @@ module Fcoin
84
84
  # @example query order specified by order_id.
85
85
  # export FCOIN_API_KEY='your_fcoin_api_key'
86
86
  # export FCOIN_SECRET_KEY='your_fcoin_secret_key'
87
- # ./bin/fcoin order --order_id L7rbALEIoI0ymo3uOXBF4gT4Bl********jvptIv2U=
87
+ # ./exe/fcoin order --order_id L7rbALEIoI0ymo3uOXBF4gT4Bl********jvptIv2U=
88
88
  #
89
89
  #
90
90
  # @see https://developer.fcoin.com/zh.html#5faf03be01
@@ -107,7 +107,7 @@ module Fcoin
107
107
  # @example cancel order specified by order_id.
108
108
  # export FCOIN_API_KEY='your_fcoin_api_key'
109
109
  # export FCOIN_SECRET_KEY='your_fcoin_secret_key'
110
- # ./bin/fcoin cancel_order --order_id nMEC_VrW0LYlP4iCcWzmdL50jFrvNWZoaQxvZSjeUSA=
110
+ # ./exe/fcoin cancel_order --order_id nMEC_VrW0LYlP4iCcWzmdL50jFrvNWZoaQxvZSjeUSA=
111
111
  #
112
112
  #
113
113
  # @see https://developer.fcoin.com/zh.html#299126e3bf
@@ -130,7 +130,7 @@ module Fcoin
130
130
  # @example Query the transaction record for the specified by order_id.
131
131
  # export FCOIN_API_KEY='your_fcoin_api_key'
132
132
  # export FCOIN_SECRET_KEY='your_fcoin_secret_key'
133
- # ./bin/fcoin order_transaction --order_id kW3cRiXIGHG-cHNdter*********qfoMzbeHEQcqp4=
133
+ # ./exe/fcoin order_transaction --order_id kW3cRiXIGHG-cHNdter*********qfoMzbeHEQcqp4=
134
134
  #
135
135
  #
136
136
  # @see https://developer.fcoin.com/zh.html#152112dfd6
@@ -157,7 +157,7 @@ module Fcoin
157
157
  # @example Create an order to sell 0.010eth at a price of 1000usdt.
158
158
  # export FCOIN_API_KEY='your_fcoin_api_key'
159
159
  # export FCOIN_SECRET_KEY='your_fcoin_secret_key'
160
- # ./bin/fcoin order create_market --symbol ethusdt --side sell --amount 0.001
160
+ # ./exe/fcoin order create_market --symbol ethusdt --side sell --amount 0.001
161
161
  #
162
162
  #
163
163
  # @see https://developer.fcoin.com/zh.html#4a3e521c3b
@@ -9,7 +9,7 @@ module Fcoin
9
9
  # curl: GET https://api.fcoin.com/v2/public/server-time
10
10
  #
11
11
  # @example get server time
12
- # ./bin/fcoin public server_time #=> {"status":0,"data":1531562028166}
12
+ # ./exe/fcoin public server_time #=> {"status":0,"data":1531562028166}
13
13
  #
14
14
  #
15
15
  # @see https://developer.fcoin.com/zh.html#8aa898cda7
@@ -24,7 +24,7 @@ module Fcoin
24
24
  # curl: GET https://api.fcoin.com/v2/public/currencies
25
25
  #
26
26
  # @example Display available currency
27
- # ./bin/fcoin public currencies
27
+ # ./exe/fcoin public currencies
28
28
  #
29
29
  #
30
30
  # @see https://developer.fcoin.com/zh.html#0fd2e492e6
@@ -39,7 +39,7 @@ module Fcoin
39
39
  # curl: GET https://api.fcoin.com/v2/public/symbols
40
40
  #
41
41
  # @example Query available transaction pairs
42
- # ./bin/fcoin public symbols
42
+ # ./exe/fcoin public symbols
43
43
  #
44
44
  #
45
45
  # @see https://developer.fcoin.com/zh.html#a266e284f4
@@ -7,7 +7,7 @@ module Fcoin
7
7
  # Subscribe to ticker information
8
8
  #
9
9
  # @example Subscribe to ticker information of ethusdt
10
- # ./bin/fcoin subscribe ticker --symbol ethusdt
10
+ # ./exe/fcoin subscribe ticker --symbol ethusdt
11
11
  #
12
12
  #
13
13
  # @see https://developer.fcoin.com/zh.html#ticker
@@ -17,13 +17,13 @@ module Fcoin
17
17
  desc 'ticker', 'Subscribe to ticker information'
18
18
  option :symbol, type: :string, required: true, desc: 'Transaction pair'
19
19
  def ticker
20
- # @see bin/fcoin
20
+ # @see exe/fcoin
21
21
  end
22
22
 
23
23
  # Subscribe to depth information
24
24
  #
25
25
  # @example Subscribe to depth information of ethusdt specified by L20 level
26
- # ./bin/fcoin subscribe depth --symbol ethusdt --level L20
26
+ # ./exe/fcoin subscribe depth --symbol ethusdt --level L20
27
27
  #
28
28
  #
29
29
  # @see https://developer.fcoin.com/zh.html#50f4407ea4
@@ -36,13 +36,13 @@ module Fcoin
36
36
  option :symbol, type: :string, required: true, desc: 'Transaction pair'
37
37
  option :level, type: :string, required: true, desc: 'Level of depth chart. level must be included in [L20, L40, full]'
38
38
  def depth
39
- # @see bin/fcoin
39
+ # @see exe/fcoin
40
40
  end
41
41
 
42
42
  # Subscribe to trade information
43
43
  #
44
44
  # @example Subscribe to trade information of ethusdt limit 5
45
- # ./bin/fcoin subscribe trade --symbol ethusdt --limit 5
45
+ # ./exe/fcoin subscribe trade --symbol ethusdt --limit 5
46
46
  #
47
47
  #
48
48
  # @see https://developer.fcoin.com/zh.html#6477a1394e
@@ -55,13 +55,13 @@ module Fcoin
55
55
  option :symbol, type: :string, required: true, desc: 'Transaction pair'
56
56
  option :limit, type: :numeric, default: 20
57
57
  def trade
58
- # @see bin/fcoin
58
+ # @see exe/fcoin
59
59
  end
60
60
 
61
61
  # Subscribe to candle information
62
62
  #
63
63
  # @example Subscribe to candle information of ethusdt limit 5
64
- # ./bin/fcoin subscribe candle --symbol ethusdt --resolution MN --limit 5
64
+ # ./exe/fcoin subscribe candle --symbol ethusdt --resolution MN --limit 5
65
65
  #
66
66
  #
67
67
  # @see https://developer.fcoin.com/zh.html#candle
@@ -76,31 +76,31 @@ module Fcoin
76
76
  option :resolution, type: :string, required: true, desc: 'period of candles chart. resolution must be included in [M1, M3, M5, M15, M30, H1, H4, H6, D1, W1, MN]'
77
77
  option :limit, type: :numeric, default: 20
78
78
  def candle
79
- # @see bin/fcoin
79
+ # @see exe/fcoin
80
80
  end
81
81
 
82
82
  # Subscribe to topics
83
83
  #
84
84
  # @example Subscribe to topics
85
- # ./bin/fcoin subscribe topics
85
+ # ./exe/fcoin subscribe topics
86
86
  #
87
87
  #
88
88
  # @yieldreturn Process block arguments
89
89
  desc 'topics', 'Subscribe to topics'
90
90
  def topics
91
- # @see bin/fcoin
91
+ # @see exe/fcoin
92
92
  end
93
93
 
94
94
  # Subscribe to server time
95
95
  #
96
96
  # @example Subscribe to Subscribe to server time
97
- # ./bin/fcoin subscribe hello
97
+ # ./exe/fcoin subscribe hello
98
98
  #
99
99
  #
100
100
  # @yieldreturn Process block arguments
101
101
  desc 'hello', 'Subscribe to server time'
102
102
  def hello
103
- # @see bin/fcoin
103
+ # @see exe/fcoin
104
104
  end
105
105
  end
106
106
  end
data/lib/fcoin/cli.rb CHANGED
@@ -12,7 +12,7 @@ module Fcoin
12
12
  # Create validation setting file
13
13
  #
14
14
  # @example Create validation setting file in ./config
15
- # ./bin/fcoin validation init --path ./config
15
+ # ./exe/fcoin validation init --path ./config
16
16
  # create
17
17
  # create my_settings.yml
18
18
  #
@@ -32,7 +32,7 @@ module Fcoin
32
32
  # Create locale file. For example, use in rails project and so on.
33
33
  #
34
34
  # @example Create locale file in ./config
35
- # ./bin/fcoin locale init --path ./config
35
+ # ./exe/fcoin locale init --path ./config
36
36
  # exist
37
37
  # create .DS_Store
38
38
  # create locales/en.yml
@@ -54,7 +54,7 @@ module Fcoin
54
54
  # Print Version
55
55
  #
56
56
  # @example Print current version
57
- # ./bin/fcoin version
57
+ # ./exe/fcoin version
58
58
  # fconi_ruby_client v0.1.0
59
59
  desc 'version', 'Print Version'
60
60
  def version
data/lib/fcoin/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fcoin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcoin_ruby_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yukihirop
@@ -251,7 +251,8 @@ dependencies:
251
251
  description: A Ruby wrapper for Fcoin API
252
252
  email:
253
253
  - yfsidejob@gmail.com
254
- executables: []
254
+ executables:
255
+ - fcoin
255
256
  extensions: []
256
257
  extra_rdoc_files: []
257
258
  files:
@@ -269,13 +270,13 @@ files:
269
270
  - README.md
270
271
  - Rakefile
271
272
  - bin/console
272
- - bin/fcoin
273
273
  - bin/setup
274
274
  - examples/cli/realtime_api.md
275
275
  - examples/cli/rest_api.md
276
276
  - examples/cli/setting.md
277
277
  - examples/realtime_api.rb
278
278
  - examples/rest_api.rb
279
+ - exe/fcoin
279
280
  - fcoin_ruby_client.gemspec
280
281
  - lib/fcoin.rb
281
282
  - lib/fcoin/api.rb
@@ -328,7 +329,8 @@ files:
328
329
  - lib/fcoin/validator/validator_utility.rb
329
330
  - lib/fcoin/version.rb
330
331
  homepage:
331
- licenses: []
332
+ licenses:
333
+ - MIT
332
334
  metadata: {}
333
335
  post_install_message:
334
336
  rdoc_options: []
@@ -338,7 +340,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
338
340
  requirements:
339
341
  - - ">="
340
342
  - !ruby/object:Gem::Version
341
- version: '0'
343
+ version: 2.4.1p111
342
344
  required_rubygems_version: !ruby/object:Gem::Requirement
343
345
  requirements:
344
346
  - - ">="