cryptoexchange 0.21.0 → 0.22.0

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.
Files changed (186) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +42 -3
  4. data/lib/cryptoexchange/exchanges/aex/market.rb +8 -0
  5. data/lib/cryptoexchange/exchanges/aex/services/market.rb +41 -0
  6. data/lib/cryptoexchange/exchanges/aex/services/order_book.rb +46 -0
  7. data/lib/cryptoexchange/exchanges/aex/services/pairs.rb +33 -0
  8. data/lib/cryptoexchange/exchanges/aex/services/trades.rb +34 -0
  9. data/lib/cryptoexchange/exchanges/bit2c/bit2c.yml +9 -0
  10. data/lib/cryptoexchange/exchanges/bit2c/market.rb +8 -0
  11. data/lib/cryptoexchange/exchanges/bit2c/services/market.rb +36 -0
  12. data/lib/cryptoexchange/exchanges/bit2c/services/order_book.rb +44 -0
  13. data/lib/cryptoexchange/exchanges/bit2c/services/pairs.rb +21 -0
  14. data/lib/cryptoexchange/exchanges/bit2c/services/trades.rb +32 -0
  15. data/lib/cryptoexchange/exchanges/bitbank/bitbank.yml +17 -0
  16. data/lib/cryptoexchange/exchanges/bitbank/market.rb +8 -0
  17. data/lib/cryptoexchange/exchanges/bitbank/services/market.rb +41 -0
  18. data/lib/cryptoexchange/exchanges/bitbank/services/order_book.rb +45 -0
  19. data/lib/cryptoexchange/exchanges/bitbank/services/pairs.rb +24 -0
  20. data/lib/cryptoexchange/exchanges/bitbank/services/trades.rb +34 -0
  21. data/lib/cryptoexchange/exchanges/bitmex/market.rb +8 -0
  22. data/lib/cryptoexchange/exchanges/bitmex/services/market.rb +39 -0
  23. data/lib/cryptoexchange/exchanges/bitmex/services/order_book.rb +55 -0
  24. data/lib/cryptoexchange/exchanges/bitmex/services/pairs.rb +23 -0
  25. data/lib/cryptoexchange/exchanges/bitmex/services/trades.rb +34 -0
  26. data/lib/cryptoexchange/exchanges/bits_blockchain/market.rb +8 -0
  27. data/lib/cryptoexchange/exchanges/bits_blockchain/services/market.rb +40 -0
  28. data/lib/cryptoexchange/exchanges/bits_blockchain/services/order_book.rb +43 -0
  29. data/lib/cryptoexchange/exchanges/bits_blockchain/services/pairs.rb +22 -0
  30. data/lib/cryptoexchange/exchanges/bleutrade/services/market.rb +1 -1
  31. data/lib/cryptoexchange/exchanges/btc_alpha/market.rb +9 -0
  32. data/lib/cryptoexchange/exchanges/btc_alpha/services/market.rb +40 -0
  33. data/lib/cryptoexchange/exchanges/btc_alpha/services/order_book.rb +47 -0
  34. data/lib/cryptoexchange/exchanges/btc_alpha/services/pairs.rb +25 -0
  35. data/lib/cryptoexchange/exchanges/btc_alpha/services/trades.rb +51 -0
  36. data/lib/cryptoexchange/exchanges/btcbox/btcbox.yml +9 -0
  37. data/lib/cryptoexchange/exchanges/btcbox/market.rb +8 -0
  38. data/lib/cryptoexchange/exchanges/btcbox/services/market.rb +39 -0
  39. data/lib/cryptoexchange/exchanges/btcbox/services/order_book.rb +46 -0
  40. data/lib/cryptoexchange/exchanges/btcbox/services/pairs.rb +21 -0
  41. data/lib/cryptoexchange/exchanges/buyucoin/market.rb +8 -0
  42. data/lib/cryptoexchange/exchanges/buyucoin/services/market.rb +51 -0
  43. data/lib/cryptoexchange/exchanges/buyucoin/services/pairs.rb +26 -0
  44. data/lib/cryptoexchange/exchanges/coin_egg/coin_egg.yml +143 -0
  45. data/lib/cryptoexchange/exchanges/coin_egg/market.rb +8 -0
  46. data/lib/cryptoexchange/exchanges/coin_egg/services/market.rb +39 -0
  47. data/lib/cryptoexchange/exchanges/coin_egg/services/order_book.rb +44 -0
  48. data/lib/cryptoexchange/exchanges/coin_egg/services/pairs.rb +23 -0
  49. data/lib/cryptoexchange/exchanges/coin_egg/services/trades.rb +32 -0
  50. data/lib/cryptoexchange/exchanges/coin_exchange/services/pairs.rb +2 -2
  51. data/lib/cryptoexchange/exchanges/coinex/market.rb +8 -0
  52. data/lib/cryptoexchange/exchanges/coinex/services/market.rb +53 -0
  53. data/lib/cryptoexchange/exchanges/coinex/services/order_book.rb +49 -0
  54. data/lib/cryptoexchange/exchanges/coinex/services/pairs.rb +27 -0
  55. data/lib/cryptoexchange/exchanges/coinex/services/trades.rb +34 -0
  56. data/lib/cryptoexchange/exchanges/coinfalcon/market.rb +8 -0
  57. data/lib/cryptoexchange/exchanges/coinfalcon/services/market.rb +46 -0
  58. data/lib/cryptoexchange/exchanges/coinfalcon/services/order_book.rb +42 -0
  59. data/lib/cryptoexchange/exchanges/coinfalcon/services/pairs.rb +28 -0
  60. data/lib/cryptoexchange/exchanges/coinfalcon/services/trades.rb +32 -0
  61. data/lib/cryptoexchange/exchanges/coinhouse/market.rb +8 -0
  62. data/lib/cryptoexchange/exchanges/coinhouse/services/market.rb +52 -0
  63. data/lib/cryptoexchange/exchanges/coinhouse/services/pairs.rb +37 -0
  64. data/lib/cryptoexchange/exchanges/coinone/services/market.rb +5 -5
  65. data/lib/cryptoexchange/exchanges/coinone/services/order_book.rb +50 -0
  66. data/lib/cryptoexchange/exchanges/coinone/services/trades.rb +39 -0
  67. data/lib/cryptoexchange/exchanges/coinrail/market.rb +9 -0
  68. data/lib/cryptoexchange/exchanges/coinrail/services/market.rb +56 -0
  69. data/lib/cryptoexchange/exchanges/coinrail/services/order_book.rb +43 -0
  70. data/lib/cryptoexchange/exchanges/coinrail/services/pairs.rb +36 -0
  71. data/lib/cryptoexchange/exchanges/coinrail/services/trades.rb +30 -0
  72. data/lib/cryptoexchange/exchanges/coinroom/market.rb +8 -0
  73. data/lib/cryptoexchange/exchanges/coinroom/services/market.rb +39 -0
  74. data/lib/cryptoexchange/exchanges/coinroom/services/pairs.rb +30 -0
  75. data/lib/cryptoexchange/exchanges/crex24/market.rb +8 -0
  76. data/lib/cryptoexchange/exchanges/crex24/services/market.rb +50 -0
  77. data/lib/cryptoexchange/exchanges/crex24/services/order_book.rb +46 -0
  78. data/lib/cryptoexchange/exchanges/crex24/services/pairs.rb +25 -0
  79. data/lib/cryptoexchange/exchanges/crex24/services/trades.rb +34 -0
  80. data/lib/cryptoexchange/exchanges/crxzone/market.rb +8 -0
  81. data/lib/cryptoexchange/exchanges/crxzone/services/market.rb +47 -0
  82. data/lib/cryptoexchange/exchanges/crxzone/services/order_book.rb +52 -0
  83. data/lib/cryptoexchange/exchanges/crxzone/services/pairs.rb +31 -0
  84. data/lib/cryptoexchange/exchanges/crxzone/services/trades.rb +43 -0
  85. data/lib/cryptoexchange/exchanges/crypto_hub/market.rb +8 -0
  86. data/lib/cryptoexchange/exchanges/crypto_hub/services/market.rb +49 -0
  87. data/lib/cryptoexchange/exchanges/crypto_hub/services/pairs.rb +25 -0
  88. data/lib/cryptoexchange/exchanges/extstock/market.rb +8 -0
  89. data/lib/cryptoexchange/exchanges/extstock/services/market.rb +40 -0
  90. data/lib/cryptoexchange/exchanges/extstock/services/order_book.rb +51 -0
  91. data/lib/cryptoexchange/exchanges/extstock/services/pairs.rb +31 -0
  92. data/lib/cryptoexchange/exchanges/extstock/services/trades.rb +34 -0
  93. data/lib/cryptoexchange/exchanges/exx/market.rb +8 -0
  94. data/lib/cryptoexchange/exchanges/exx/services/market.rb +50 -0
  95. data/lib/cryptoexchange/exchanges/exx/services/order_book.rb +46 -0
  96. data/lib/cryptoexchange/exchanges/exx/services/pairs.rb +27 -0
  97. data/lib/cryptoexchange/exchanges/exx/services/trades.rb +34 -0
  98. data/lib/cryptoexchange/exchanges/fisco/fisco.yml +11 -0
  99. data/lib/cryptoexchange/exchanges/fisco/market.rb +8 -0
  100. data/lib/cryptoexchange/exchanges/fisco/services/market.rb +40 -0
  101. data/lib/cryptoexchange/exchanges/fisco/services/order_book.rb +46 -0
  102. data/lib/cryptoexchange/exchanges/fisco/services/pairs.rb +25 -0
  103. data/lib/cryptoexchange/exchanges/fisco/services/trades.rb +34 -0
  104. data/lib/cryptoexchange/exchanges/getbtc/getbtc.yml +4 -0
  105. data/lib/cryptoexchange/exchanges/getbtc/market.rb +8 -0
  106. data/lib/cryptoexchange/exchanges/getbtc/services/market.rb +39 -0
  107. data/lib/cryptoexchange/exchanges/getbtc/services/order_book.rb +45 -0
  108. data/lib/cryptoexchange/exchanges/getbtc/services/pairs.rb +25 -0
  109. data/lib/cryptoexchange/exchanges/getbtc/services/trades.rb +36 -0
  110. data/lib/cryptoexchange/exchanges/gopax/market.rb +8 -0
  111. data/lib/cryptoexchange/exchanges/gopax/services/market.rb +43 -0
  112. data/lib/cryptoexchange/exchanges/gopax/services/order_book.rb +42 -0
  113. data/lib/cryptoexchange/exchanges/gopax/services/pairs.rb +27 -0
  114. data/lib/cryptoexchange/exchanges/gopax/services/trades.rb +32 -0
  115. data/lib/cryptoexchange/exchanges/huobi/market.rb +0 -1
  116. data/lib/cryptoexchange/exchanges/huobi/services/market.rb +1 -6
  117. data/lib/cryptoexchange/exchanges/huobi/services/pairs.rb +0 -1
  118. data/lib/cryptoexchange/exchanges/idex/market.rb +8 -0
  119. data/lib/cryptoexchange/exchanges/idex/services/market.rb +62 -0
  120. data/lib/cryptoexchange/exchanges/idex/services/order_book.rb +48 -0
  121. data/lib/cryptoexchange/exchanges/idex/services/pairs.rb +39 -0
  122. data/lib/cryptoexchange/exchanges/idex/services/trades.rb +34 -0
  123. data/lib/cryptoexchange/exchanges/infinity_coin/infinity_coin.yml +3 -0
  124. data/lib/cryptoexchange/exchanges/infinity_coin/market.rb +8 -0
  125. data/lib/cryptoexchange/exchanges/infinity_coin/services/market.rb +37 -0
  126. data/lib/cryptoexchange/exchanges/infinity_coin/services/pairs.rb +25 -0
  127. data/lib/cryptoexchange/exchanges/itbit/services/order_book.rb +45 -0
  128. data/lib/cryptoexchange/exchanges/itbit/services/trades.rb +34 -0
  129. data/lib/cryptoexchange/exchanges/kucoin/services/order_book.rb +48 -0
  130. data/lib/cryptoexchange/exchanges/kucoin/services/trades.rb +31 -0
  131. data/lib/cryptoexchange/exchanges/kyber_network/market.rb +8 -0
  132. data/lib/cryptoexchange/exchanges/kyber_network/services/market.rb +46 -0
  133. data/lib/cryptoexchange/exchanges/kyber_network/services/pairs.rb +28 -0
  134. data/lib/cryptoexchange/exchanges/latoken/market.rb +8 -0
  135. data/lib/cryptoexchange/exchanges/latoken/services/market.rb +38 -0
  136. data/lib/cryptoexchange/exchanges/latoken/services/pairs.rb +27 -0
  137. data/lib/cryptoexchange/exchanges/lbank/market.rb +8 -0
  138. data/lib/cryptoexchange/exchanges/lbank/services/market.rb +43 -0
  139. data/lib/cryptoexchange/exchanges/lbank/services/order_book.rb +46 -0
  140. data/lib/cryptoexchange/exchanges/lbank/services/pairs.rb +30 -0
  141. data/lib/cryptoexchange/exchanges/lbank/services/trades.rb +35 -0
  142. data/lib/cryptoexchange/exchanges/nanex/market.rb +8 -0
  143. data/lib/cryptoexchange/exchanges/nanex/services/market.rb +47 -0
  144. data/lib/cryptoexchange/exchanges/nanex/services/pairs.rb +26 -0
  145. data/lib/cryptoexchange/exchanges/neraex/market.rb +8 -0
  146. data/lib/cryptoexchange/exchanges/neraex/services/market.rb +40 -0
  147. data/lib/cryptoexchange/exchanges/neraex/services/order_book.rb +53 -0
  148. data/lib/cryptoexchange/exchanges/neraex/services/pairs.rb +31 -0
  149. data/lib/cryptoexchange/exchanges/neraex/services/trades.rb +39 -0
  150. data/lib/cryptoexchange/exchanges/nlexch/market.rb +8 -0
  151. data/lib/cryptoexchange/exchanges/nlexch/services/market.rb +40 -0
  152. data/lib/cryptoexchange/exchanges/nlexch/services/pairs.rb +32 -0
  153. data/lib/cryptoexchange/exchanges/paribu/market.rb +8 -0
  154. data/lib/cryptoexchange/exchanges/paribu/services/market.rb +39 -0
  155. data/lib/cryptoexchange/exchanges/paribu/services/pairs.rb +23 -0
  156. data/lib/cryptoexchange/exchanges/paymium/market.rb +8 -0
  157. data/lib/cryptoexchange/exchanges/paymium/paymium.yml +3 -0
  158. data/lib/cryptoexchange/exchanges/paymium/services/market.rb +40 -0
  159. data/lib/cryptoexchange/exchanges/paymium/services/order_book.rb +46 -0
  160. data/lib/cryptoexchange/exchanges/paymium/services/pairs.rb +21 -0
  161. data/lib/cryptoexchange/exchanges/paymium/services/trades.rb +32 -0
  162. data/lib/cryptoexchange/exchanges/rightbtc/market.rb +8 -0
  163. data/lib/cryptoexchange/exchanges/rightbtc/services/market.rb +56 -0
  164. data/lib/cryptoexchange/exchanges/rightbtc/services/order_book.rb +44 -0
  165. data/lib/cryptoexchange/exchanges/rightbtc/services/pairs.rb +24 -0
  166. data/lib/cryptoexchange/exchanges/rightbtc/services/trades.rb +32 -0
  167. data/lib/cryptoexchange/exchanges/south_xchange/market.rb +8 -0
  168. data/lib/cryptoexchange/exchanges/south_xchange/services/market.rb +48 -0
  169. data/lib/cryptoexchange/exchanges/south_xchange/services/order_book.rb +46 -0
  170. data/lib/cryptoexchange/exchanges/south_xchange/services/pairs.rb +24 -0
  171. data/lib/cryptoexchange/exchanges/south_xchange/services/trades.rb +31 -0
  172. data/lib/cryptoexchange/exchanges/trust_dex/market.rb +8 -0
  173. data/lib/cryptoexchange/exchanges/trust_dex/services/market.rb +55 -0
  174. data/lib/cryptoexchange/exchanges/trust_dex/services/pairs.rb +30 -0
  175. data/lib/cryptoexchange/exchanges/upbit/market.rb +9 -0
  176. data/lib/cryptoexchange/exchanges/upbit/services/market.rb +51 -0
  177. data/lib/cryptoexchange/exchanges/upbit/services/pairs.rb +23 -0
  178. data/lib/cryptoexchange/exchanges/waves/market.rb +8 -0
  179. data/lib/cryptoexchange/exchanges/waves/services/market.rb +48 -0
  180. data/lib/cryptoexchange/exchanges/waves/services/pairs.rb +25 -0
  181. data/lib/cryptoexchange/exchanges/waves/services/trades.rb +32 -0
  182. data/lib/cryptoexchange/helpers/numeric_helper.rb +9 -0
  183. data/lib/cryptoexchange/services/market.rb +13 -1
  184. data/lib/cryptoexchange/services/pairs.rb +7 -1
  185. data/lib/cryptoexchange/version.rb +1 -1
  186. metadata +174 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c054b25d99833ec0d63d8ebc81eb3d8b2c2827b
4
- data.tar.gz: 9221b11da94fd846c3860f169dc741c356298f72
3
+ metadata.gz: fd662971ac55025073fc7be928bc83d8e32637eb
4
+ data.tar.gz: 639ef4db5ca0086b8cf95530f1e9672c5e7f320f
5
5
  SHA512:
6
- metadata.gz: f3e4ef7744e1763799bbc363646fbad893c22a314d32d383e727119fc72ad1059264825beee26fbc03ff3c0aebc6f1a7d20166070e145478338d6b0e5098dcee
7
- data.tar.gz: 72f18cfd2ab6805997dc9be5a2e1cdc2b69cbe8ea1436190334578c49d38e44f24e0160883b5fa8903bb3d61cc8cd796ffe6a28df5d55cb2d598ebfe945d0561
6
+ metadata.gz: bea91d45eb863e43e221274eeffc9e887d1e1fdb4ef0da0ef5524c4482325dcd0e5554d58ba15d3f61fbf6836554a0c50058bbc86d7707e1c646920fffa8a0cd
7
+ data.tar.gz: f9bcc7183d018c71c2f3f53bf083e60e4257cdd1e84126bc8964063e0755487ef1d7f6685f5c4392f9adcb5c9cfd1b6a4f751cf04cc6700be97adfbe23bd922f
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
 
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
+ .DS_Store
data/README.md CHANGED
@@ -26,63 +26,90 @@ Or install it yourself as:
26
26
  | ----------------- | ------- | ---------- | ------- | ------- | ----------- |
27
27
  | Abucoins | Y | Y | Y | | Y |
28
28
  | ACX | Y | Y | Y | | Y |
29
+ | AEX | Y | Y | Y | | Y |
29
30
  | Allcoin | Y | Y | | | User-Defined|
30
31
  | ANX | Y | | | | User-Defined|
31
32
  | Bancor | Y | N | N | | Y |
32
33
  | Bibox | Y | Y | Y | | Y |
33
34
  | BigONE | Y | Y | Y | | Y |
34
35
  | Bit-Z | Y | | | | Y |
36
+ | Bit2C | Y | Y | Y | | User-Defined|
35
37
  | Binance | Y | Y | | | Y |
36
38
  | Bitbay | Y | | | | User-Defined|
39
+ | Bitbank | Y | Y | Y | | User-Defined|
37
40
  | Bitcoin Indonesia | Y | | | | User-Defined|
38
41
  | Bitconnect | Y | | | | Y |
39
42
  | Bitfinex | Y | | | | Y |
40
43
  | Bitflyer | Y | | | | Y |
41
44
  | Bithumb | Y | | | | Y |
42
45
  | Bitkonan | Y | | | | User-Defined|
46
+ | Bitmex | Y | Y | Y | | Y |
47
+ | Bits Blockchain | Y | Y | | | Y |
43
48
  | Bitso | Y | | | | Y |
44
49
  | Bitstamp | Y | Y | Y | | User-Defined|
45
50
  | Bittrex | Y | | | | Y |
46
51
  | Bleutrade | Y | | | | Y |
52
+ | BtcAlpha | Y | Y | Y | | Y |
53
+ | BTCBox | Y | Y | | | User-Defined|
47
54
  | BTC-e | | | | | |
48
55
  | BTC38 | | | | | |
49
56
  | BTCC | Y | | | | User-Defined|
50
57
  | BTCChina | | | | | |
51
58
  | BTER | Y | | | | Y |
59
+ | Buyucoin | Y | N | N | | Y |
52
60
  | BX Thailand | Y | | | | Y |
53
61
  | Cex | Y | Y | Y | | Y |
54
62
  | CCex | Y | | | | Y |
55
63
  | CHBTC | Y | | | | User-Defined|
56
64
  | Cobinhood | Y | Y | | | Y |
65
+ | CoinEgg | Y | Y | Y | | User-Defined|
57
66
  | Coincheck | Y | | | | User-Defined|
67
+ | Coinex | Y | Y | Y | | Y |
68
+ | Coinfalcon | Y | Y | Y | | Y |
58
69
  | CoinExchange | Y | | | | Y |
59
70
  | Coinbene | Y | Y | Y | | Y |
71
+ | Coinhouse | Y | | | | Y |
60
72
  | Coinmate | Y | Y | | | User-Defined|
61
73
  | Coinnest | Y | Y | Y | | User-Defined|
62
- | Coinone | Y | | | | Y |
74
+ | Coinroom | Y | | | | Y |
75
+ | Coinone | Y | Y | Y | | Y |
76
+ | Coinrail | Y | Y | Y | | Y |
63
77
  | CoinsMarkets | Y | | | | Y |
64
78
  | COSS | Y | | | | Y |
79
+ | Crex24 | Y | Y | Y | | Y |
80
+ | CRXZone | Y | Y | Y | | Y |
65
81
  | CryptoBridge | Y | | | | Y |
82
+ | CryptoHub | Y | N | N | | Y |
66
83
  | Cryptopia | Y | Y | Y | | Y |
67
84
  | EtherDelta | Y | | | | Y |
68
85
  | Ethfinex | Y | Y | Y | | Y |
69
86
  | Exmo | Y | Y | Y | | Y |
87
+ | Extstock | Y | Y | Y | | Y |
88
+ | Exx | Y | Y | Y | | Y |
89
+ | Fisco | Y | Y | Y | | Y |
70
90
  | Gate | Y | Y | Y | | Y |
71
91
  | Gatecoin | Y | | | | Y |
72
92
  | GDAX | Y | | | | Y |
73
93
  | Gemini | Y | Y | Y | | Y |
94
+ | GetBTC | Y | Y | Y | | User-Defined|
95
+ | GOPAX | Y | Y | Y | | Y |
74
96
  | HitBTC | Y | | | | Y |
75
97
  | Hksy | Y | | Y | | User-Defined|
76
98
  | Huobi | Y | | | | Y |
77
- | Itbit | Y | | | | User-Defined|
99
+ | InfinityCoin | Y | | | | Y |
100
+ | Itbit | Y | Y | Y | | User-Defined|
101
+ | Idex | Y | Unstable | Y | | Y |
78
102
  | KKex | Y | Y | Y | | Y |
103
+ | KyberNetwork | Y | N | N | | Y |
79
104
  | Jubi | Y | | | | Y |
80
105
  | Koinex | Y | | | | Y |
81
106
  | Korbit | Y | | | | User-Defined|
82
107
  | Kraken | Y | | | | Y |
83
- | Kucoin | Y | | | | Y |
108
+ | Kucoin | Y | Y | Y | | Y |
84
109
  | Kuna | Y | Y | Y | | User-Defined|
85
110
  | LakeBTC | Y | | | | Y |
111
+ | Latoken | Y | | | | Y |
112
+ | Lbank | Y | Y | Y | | Y |
86
113
  | Liqui | Y | | | | Y |
87
114
  | LiteBit.eu | Y | | | | Y |
88
115
  | Livecoin | Y | | | | Y |
@@ -91,23 +118,33 @@ Or install it yourself as:
91
118
  | Lykke | Y | Y | N | | Y |
92
119
  | MercadoBitcoin | Y | | | | User-Defined|
93
120
  | Mercatox | Y | N | N | N | Y |
121
+ | Nanex | Y | N | N | N | Y |
122
+ | Neraex | Y | Y | Y | | Y |
123
+ | NLexch | Y | | | | Y |
94
124
  | Nova Exchange | Y | | | | Y |
95
125
  | OKCoin | Y | | | | User-Defined|
96
126
  | OKEx | Y | Y | Y | | User-Defined|
127
+ | Paribu | Y | | | | Y |
128
+ | Paymium | Y | Y | Y | | User-Defined|
97
129
  | Poloniex | Y | | | | Y |
98
130
  | Qryptos | Y | | | | Y |
99
131
  | QuadrigaCX | Y | | | | User-Defined|
100
132
  | Quoine | Y | | | | Y |
101
133
  | RadarRelay | Y | | | | User-Defined|
134
+ | RightBTC | Y | Y | Y | | Y |
135
+ | SouthXchange | Y | Y | Y | | Y |
102
136
  | Stocks Exchange | Y | | | | Y |
103
137
  | SZZC | Y | | | | Y |
104
138
  | The Rock Trading | Y | | | | Y |
105
139
  | Tidex | Y | | | | Y |
106
140
  | TradeOgre | Y | Y | Y | | Y |
107
141
  | Trade Satoshi | Y | | | | Y |
142
+ | TrustDex ** | Y | | | | Y |
108
143
  | TuxExchange | Y | | | | Y |
144
+ | Upbit | Y | | | | Y |
109
145
  | Unocoin | | | | | |
110
146
  | Viabtc | Y | | | | User-Defined|
147
+ | Waves | Y | N | Y | | Y |
111
148
  | Wex | Y | Y | Y | | Y |
112
149
  | Yobit | Y | | | | Y |
113
150
  | Yuanbao | Y | | | | User-Defined|
@@ -115,6 +152,8 @@ Or install it yourself as:
115
152
  | Zaif | Y | Y | Y | | Y |
116
153
  | ZB | Y | Y | Y | | Y |
117
154
 
155
+ ** Mapping and data may be incorrect (Cannot determine correctness)
156
+
118
157
  ## Usage
119
158
 
120
159
  ### List market pairs supported by an exchange
@@ -0,0 +1,8 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Aex
3
+ class Market
4
+ NAME = 'aex'
5
+ API_URL = 'https://api.aex.com'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,41 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Aex
3
+ module Services
4
+ class Market < Cryptoexchange::Services::Market
5
+ class << self
6
+ def supports_individual_ticker_query?
7
+ true
8
+ end
9
+ end
10
+
11
+ def fetch(market_pair)
12
+ output = super(ticker_url(market_pair))
13
+ adapt(output, market_pair)
14
+ end
15
+
16
+ def ticker_url(market_pair)
17
+ base = market_pair.base.downcase
18
+ target = market_pair.target.downcase
19
+ "#{Cryptoexchange::Exchanges::Aex::Market::API_URL}/ticker.php?c=#{base}&mk_type=#{target}"
20
+ end
21
+
22
+ def adapt(output, market_pair)
23
+ market = output['ticker']
24
+ ticker = Cryptoexchange::Models::Ticker.new
25
+ ticker.base = market_pair.base
26
+ ticker.target = market_pair.target
27
+ ticker.market = Aex::Market::NAME
28
+ ticker.ask = NumericHelper.to_d(market['sell'])
29
+ ticker.bid = NumericHelper.to_d(market['buy'])
30
+ ticker.high = NumericHelper.to_d(market['high'])
31
+ ticker.low = NumericHelper.to_d(market['low'])
32
+ ticker.last = NumericHelper.to_d(market['last'])
33
+ ticker.volume = NumericHelper.to_d(market['vol'])
34
+ ticker.timestamp = Time.now.to_i
35
+ ticker.payload = output
36
+ ticker
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,46 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Aex
3
+ module Services
4
+ class OrderBook < Cryptoexchange::Services::Market
5
+ class << self
6
+ def supports_individual_ticker_query?
7
+ true
8
+ end
9
+ end
10
+
11
+ def fetch(market_pair)
12
+ output = super(ticker_url(market_pair))
13
+ adapt(output, market_pair)
14
+ end
15
+
16
+ def ticker_url(market_pair)
17
+ base = market_pair.base.downcase
18
+ target = market_pair.target.downcase
19
+ "#{Cryptoexchange::Exchanges::Aex::Market::API_URL}/depth.php?c=#{base}&mk_type=#{target}"
20
+ end
21
+
22
+ def adapt(output, market_pair)
23
+ order_book = Cryptoexchange::Models::OrderBook.new
24
+
25
+ order_book.base = market_pair.base
26
+ order_book.target = market_pair.target
27
+ order_book.market = Aex::Market::NAME
28
+ order_book.asks = adapt_orders output['asks']
29
+ order_book.bids = adapt_orders output['bids']
30
+ order_book.timestamp = Time.now.to_i
31
+ order_book.payload = output
32
+ order_book
33
+ end
34
+
35
+ def adapt_orders(orders)
36
+ orders.collect do |order_entry|
37
+ price, amount = order_entry
38
+ Cryptoexchange::Models::Order.new(price: price,
39
+ amount: amount,
40
+ timestamp: nil)
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,33 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Aex
3
+ module Services
4
+ class Pairs < Cryptoexchange::Services::Pairs
5
+ PAIRS_URLS = [
6
+ "#{Cryptoexchange::Exchanges::Aex::Market::API_URL}/ticker.php?c=all&mk_type=btc",
7
+ "#{Cryptoexchange::Exchanges::Aex::Market::API_URL}/ticker.php?c=all&mk_type=bitcny",
8
+ "#{Cryptoexchange::Exchanges::Aex::Market::API_URL}/ticker.php?c=all&mk_type=bitusd"
9
+ ]
10
+
11
+ def fetch
12
+ PAIRS_URLS.map do |endpoint|
13
+ output = fetch_via_api(endpoint)
14
+ target = endpoint.split("=").last
15
+ adapt(output, target)
16
+ end.flatten
17
+ end
18
+
19
+ def adapt(output, target)
20
+ pairs = []
21
+ output.each do |key, value|
22
+ pairs << Cryptoexchange::Models::MarketPair.new(
23
+ base: key,
24
+ target: target,
25
+ market: Aex::Market::NAME
26
+ )
27
+ end
28
+ pairs
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,34 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Aex
3
+ module Services
4
+ class Trades < Cryptoexchange::Services::Market
5
+ def fetch(market_pair)
6
+ output = super(ticker_url(market_pair))
7
+ adapt(output, market_pair)
8
+ end
9
+
10
+ def ticker_url(market_pair)
11
+ base = market_pair.base.downcase
12
+ target = market_pair.target.downcase
13
+ "#{Cryptoexchange::Exchanges::Aex::Market::API_URL}/trades.php?c=#{base}&mk_type=#{target}"
14
+ end
15
+
16
+ def adapt(output, market_pair)
17
+ output.collect do |trade|
18
+ tr = Cryptoexchange::Models::Trade.new
19
+ tr.trade_id = trade['tid']
20
+ tr.base = market_pair.base
21
+ tr.target = market_pair.target
22
+ tr.price = trade['price']
23
+ tr.amount = trade['amount']
24
+ tr.type = trade['type']
25
+ tr.timestamp = trade['date']
26
+ tr.payload = trade
27
+ tr.market = Aex::Market::NAME
28
+ tr
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,9 @@
1
+ :pairs:
2
+ - :base: BTC
3
+ :target: NIS
4
+ - :base: LTC
5
+ :target: NIS
6
+ - :base: BCH
7
+ :target: NIS
8
+ - :base: BTG
9
+ :target: NIS
@@ -0,0 +1,8 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Bit2c
3
+ class Market
4
+ NAME = 'bit2c'
5
+ API_URL = 'https://bit2c.co.il'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,36 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Bit2c
3
+ module Services
4
+ class Market < Cryptoexchange::Services::Market
5
+ class << self
6
+ def supports_individual_ticker_query?
7
+ true
8
+ end
9
+ end
10
+
11
+ def fetch(market_pair)
12
+ output = super(ticker_url(market_pair))
13
+ adapt(output, market_pair)
14
+ end
15
+
16
+ def ticker_url(market_pair)
17
+ "#{Cryptoexchange::Exchanges::Bit2c::Market::API_URL}/Exchanges/#{market_pair.base}#{market_pair.target}/Ticker.json"
18
+ end
19
+
20
+ def adapt(output, market_pair)
21
+ ticker = Cryptoexchange::Models::Ticker.new
22
+ ticker.base = market_pair.base
23
+ ticker.target = market_pair.target
24
+ ticker.market = Bit2c::Market::NAME
25
+ ticker.ask = NumericHelper.to_d(output['l'])
26
+ ticker.bid = NumericHelper.to_d(output['h'])
27
+ ticker.last = NumericHelper.to_d(output['ll'])
28
+ ticker.volume = NumericHelper.to_d(output['a'])
29
+ ticker.timestamp = Time.now.to_i
30
+ ticker.payload = output
31
+ ticker
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,44 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Bit2c
3
+ module Services
4
+ class OrderBook < Cryptoexchange::Services::Market
5
+ class << self
6
+ def supports_individual_ticker_query?
7
+ true
8
+ end
9
+ end
10
+
11
+ def fetch(market_pair)
12
+ output = super(ticker_url(market_pair))
13
+ adapt(output, market_pair)
14
+ end
15
+
16
+ def ticker_url(market_pair)
17
+ "#{Cryptoexchange::Exchanges::Bit2c::Market::API_URL}/Exchanges/#{market_pair.base}#{market_pair.target}/orderbook.json "
18
+ end
19
+
20
+ def adapt(output, market_pair)
21
+ order_book = Cryptoexchange::Models::OrderBook.new
22
+ timestamp = Time.now.to_i
23
+
24
+ order_book.base = market_pair.base
25
+ order_book.target = market_pair.target
26
+ order_book.market = Bit2c::Market::NAME
27
+ order_book.asks = adapt_orders(output['asks'])
28
+ order_book.bids = adapt_orders(output['bids'])
29
+ order_book.timestamp = timestamp
30
+ order_book.payload = output
31
+ order_book
32
+ end
33
+
34
+ def adapt_orders(orders)
35
+ orders.collect do |order_entry|
36
+ Cryptoexchange::Models::Order.new(price: order_entry[0],
37
+ amount: order_entry[1],
38
+ timestamp: order_entry[2])
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,21 @@
1
+ module Cryptoexchange::Exchanges
2
+ module Bit2c
3
+ module Services
4
+ class Pairs < Cryptoexchange::Services::Pairs
5
+
6
+ def fetch
7
+ output = super
8
+ market_pairs = []
9
+ output.each do |pair|
10
+ market_pairs << Cryptoexchange::Models::MarketPair.new(
11
+ base: pair[:base],
12
+ target: pair[:target],
13
+ market: Bit2c::Market::NAME
14
+ )
15
+ end
16
+ market_pairs
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end