ccxt 4.1.17 → 4.1.19

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 (216) hide show
  1. package/README.md +3 -3
  2. package/build.sh +2 -0
  3. package/dist/ccxt.browser.js +501 -261
  4. package/dist/ccxt.browser.min.js +3 -3
  5. package/dist/cjs/ccxt.js +1 -1
  6. package/dist/cjs/src/ace.js +2 -5
  7. package/dist/cjs/src/base/Exchange.js +100 -2
  8. package/dist/cjs/src/base/functions/type.js +1 -1
  9. package/dist/cjs/src/bigone.js +1 -1
  10. package/dist/cjs/src/binance.js +4 -3
  11. package/dist/cjs/src/bit2c.js +4 -4
  12. package/dist/cjs/src/bitfinex.js +1 -1
  13. package/dist/cjs/src/bitfinex2.js +1 -1
  14. package/dist/cjs/src/bitget.js +160 -27
  15. package/dist/cjs/src/bithumb.js +1 -1
  16. package/dist/cjs/src/bitmart.js +6 -7
  17. package/dist/cjs/src/bitmex.js +1 -1
  18. package/dist/cjs/src/bitpanda.js +1 -1
  19. package/dist/cjs/src/bitstamp.js +2 -3
  20. package/dist/cjs/src/bitstamp1.js +12 -12
  21. package/dist/cjs/src/bittrex.js +3 -3
  22. package/dist/cjs/src/bl3p.js +1 -1
  23. package/dist/cjs/src/btcalpha.js +2 -3
  24. package/dist/cjs/src/btcbox.js +4 -4
  25. package/dist/cjs/src/btctradeua.js +17 -17
  26. package/dist/cjs/src/bybit.js +1 -1
  27. package/dist/cjs/src/cex.js +1 -1
  28. package/dist/cjs/src/coinbase.js +5 -6
  29. package/dist/cjs/src/coinbasepro.js +1 -1
  30. package/dist/cjs/src/coincheck.js +5 -5
  31. package/dist/cjs/src/coinex.js +1 -1
  32. package/dist/cjs/src/coinfalcon.js +1 -1
  33. package/dist/cjs/src/coinmate.js +2 -2
  34. package/dist/cjs/src/coinone.js +1 -1
  35. package/dist/cjs/src/coinsph.js +1 -0
  36. package/dist/cjs/src/coinspot.js +15 -15
  37. package/dist/cjs/src/delta.js +1 -1
  38. package/dist/cjs/src/deribit.js +1 -1
  39. package/dist/cjs/src/digifinex.js +8 -9
  40. package/dist/cjs/src/exmo.js +3 -4
  41. package/dist/cjs/src/gate.js +2 -1
  42. package/dist/cjs/src/gemini.js +8 -1
  43. package/dist/cjs/src/hitbtc.js +1 -1
  44. package/dist/cjs/src/hollaex.js +1 -1
  45. package/dist/cjs/src/huobi.js +13 -19
  46. package/dist/cjs/src/huobijp.js +3 -3
  47. package/dist/cjs/src/indodax.js +2 -1
  48. package/dist/cjs/src/kraken.js +3 -2
  49. package/dist/cjs/src/krakenfutures.js +6 -6
  50. package/dist/cjs/src/kucoin.js +3 -2
  51. package/dist/cjs/src/kucoinfutures.js +2 -2
  52. package/dist/cjs/src/kuna.js +1 -1
  53. package/dist/cjs/src/lbank.js +2 -2
  54. package/dist/cjs/src/lbank2.js +11 -8
  55. package/dist/cjs/src/luno.js +1 -1
  56. package/dist/cjs/src/lykke.js +2 -2
  57. package/dist/cjs/src/mexc.js +7 -8
  58. package/dist/cjs/src/novadax.js +1 -1
  59. package/dist/cjs/src/oceanex.js +1 -1
  60. package/dist/cjs/src/okcoin.js +4 -5
  61. package/dist/cjs/src/okx.js +18 -10
  62. package/dist/cjs/src/paymium.js +1 -1
  63. package/dist/cjs/src/poloniex.js +5 -5
  64. package/dist/cjs/src/poloniexfutures.js +2 -2
  65. package/dist/cjs/src/tidex.js +1 -1
  66. package/dist/cjs/src/upbit.js +1 -1
  67. package/dist/cjs/src/wazirx.js +1 -1
  68. package/dist/cjs/src/whitebit.js +1 -1
  69. package/dist/cjs/src/woo.js +3 -1
  70. package/dist/cjs/src/yobit.js +1 -1
  71. package/js/ccxt.d.ts +1 -1
  72. package/js/ccxt.js +1 -1
  73. package/js/src/abstract/binance.d.ts +1 -0
  74. package/js/src/abstract/binancecoinm.d.ts +1 -0
  75. package/js/src/abstract/binanceus.d.ts +1 -0
  76. package/js/src/abstract/binanceusdm.d.ts +1 -0
  77. package/js/src/abstract/okex.d.ts +9 -0
  78. package/js/src/abstract/okex5.d.ts +9 -0
  79. package/js/src/abstract/okx.d.ts +9 -0
  80. package/js/src/ace.d.ts +2 -2
  81. package/js/src/ace.js +2 -5
  82. package/js/src/ascendex.d.ts +7 -7
  83. package/js/src/base/Exchange.d.ts +3 -0
  84. package/js/src/base/Exchange.js +100 -2
  85. package/js/src/base/functions/type.js +1 -1
  86. package/js/src/base/types.d.ts +3 -0
  87. package/js/src/bigone.d.ts +1 -1
  88. package/js/src/bigone.js +1 -1
  89. package/js/src/binance.d.ts +1 -1
  90. package/js/src/binance.js +4 -3
  91. package/js/src/bit2c.js +4 -4
  92. package/js/src/bitfinex.d.ts +1 -1
  93. package/js/src/bitfinex.js +1 -1
  94. package/js/src/bitfinex2.d.ts +3 -3
  95. package/js/src/bitfinex2.js +1 -1
  96. package/js/src/bitflyer.d.ts +7 -7
  97. package/js/src/bitget.d.ts +1 -1
  98. package/js/src/bitget.js +160 -27
  99. package/js/src/bithumb.d.ts +1 -1
  100. package/js/src/bithumb.js +1 -1
  101. package/js/src/bitmart.d.ts +2 -2
  102. package/js/src/bitmart.js +6 -7
  103. package/js/src/bitmex.d.ts +4 -4
  104. package/js/src/bitmex.js +1 -1
  105. package/js/src/bitopro.d.ts +2 -2
  106. package/js/src/bitpanda.d.ts +1 -1
  107. package/js/src/bitpanda.js +1 -1
  108. package/js/src/bitstamp.d.ts +1 -1
  109. package/js/src/bitstamp.js +2 -3
  110. package/js/src/bitstamp1.js +12 -12
  111. package/js/src/bittrex.d.ts +2 -2
  112. package/js/src/bittrex.js +3 -3
  113. package/js/src/bl3p.js +1 -1
  114. package/js/src/btcalpha.d.ts +1 -1
  115. package/js/src/btcalpha.js +2 -3
  116. package/js/src/btcbox.js +4 -4
  117. package/js/src/btcmarkets.d.ts +7 -7
  118. package/js/src/btctradeua.js +17 -17
  119. package/js/src/btcturk.d.ts +6 -6
  120. package/js/src/bybit.d.ts +2 -2
  121. package/js/src/bybit.js +1 -1
  122. package/js/src/cex.d.ts +9 -9
  123. package/js/src/cex.js +1 -1
  124. package/js/src/coinbase.d.ts +5 -5
  125. package/js/src/coinbase.js +5 -6
  126. package/js/src/coinbasepro.d.ts +1 -1
  127. package/js/src/coinbasepro.js +1 -1
  128. package/js/src/coincheck.d.ts +4 -4
  129. package/js/src/coincheck.js +5 -5
  130. package/js/src/coinex.d.ts +1 -1
  131. package/js/src/coinex.js +1 -1
  132. package/js/src/coinfalcon.d.ts +4 -4
  133. package/js/src/coinfalcon.js +1 -1
  134. package/js/src/coinmate.d.ts +1 -22
  135. package/js/src/coinmate.js +2 -2
  136. package/js/src/coinone.d.ts +1 -1
  137. package/js/src/coinone.js +1 -1
  138. package/js/src/coinsph.js +1 -0
  139. package/js/src/coinspot.d.ts +1 -1
  140. package/js/src/coinspot.js +15 -15
  141. package/js/src/cryptocom.d.ts +4 -4
  142. package/js/src/delta.d.ts +1 -1
  143. package/js/src/delta.js +1 -1
  144. package/js/src/deribit.d.ts +4 -4
  145. package/js/src/deribit.js +1 -1
  146. package/js/src/digifinex.d.ts +2 -2
  147. package/js/src/digifinex.js +8 -9
  148. package/js/src/exmo.d.ts +14 -14
  149. package/js/src/exmo.js +3 -4
  150. package/js/src/gate.d.ts +10 -12
  151. package/js/src/gate.js +2 -1
  152. package/js/src/gemini.d.ts +7 -7
  153. package/js/src/gemini.js +8 -1
  154. package/js/src/hitbtc.d.ts +23 -23
  155. package/js/src/hitbtc.js +1 -1
  156. package/js/src/hollaex.d.ts +5 -5
  157. package/js/src/hollaex.js +1 -1
  158. package/js/src/huobi.d.ts +8 -27
  159. package/js/src/huobi.js +13 -19
  160. package/js/src/huobijp.d.ts +15 -34
  161. package/js/src/huobijp.js +3 -3
  162. package/js/src/idex.d.ts +9 -9
  163. package/js/src/indodax.d.ts +6 -6
  164. package/js/src/indodax.js +2 -1
  165. package/js/src/kraken.d.ts +7 -7
  166. package/js/src/kraken.js +3 -2
  167. package/js/src/krakenfutures.d.ts +2 -2
  168. package/js/src/krakenfutures.js +6 -6
  169. package/js/src/kucoin.d.ts +3 -7
  170. package/js/src/kucoin.js +3 -2
  171. package/js/src/kucoinfutures.d.ts +1 -24
  172. package/js/src/kucoinfutures.js +2 -2
  173. package/js/src/kuna.d.ts +3 -3
  174. package/js/src/kuna.js +1 -1
  175. package/js/src/lbank.d.ts +7 -7
  176. package/js/src/lbank.js +3 -3
  177. package/js/src/lbank2.d.ts +6 -6
  178. package/js/src/lbank2.js +11 -8
  179. package/js/src/luno.d.ts +1 -1
  180. package/js/src/luno.js +1 -1
  181. package/js/src/lykke.d.ts +1 -20
  182. package/js/src/lykke.js +2 -2
  183. package/js/src/mercado.d.ts +4 -4
  184. package/js/src/mexc.d.ts +4 -4
  185. package/js/src/mexc.js +7 -8
  186. package/js/src/ndax.d.ts +3 -3
  187. package/js/src/novadax.d.ts +1 -1
  188. package/js/src/novadax.js +1 -1
  189. package/js/src/oceanex.d.ts +14 -14
  190. package/js/src/oceanex.js +1 -1
  191. package/js/src/okcoin.d.ts +10 -10
  192. package/js/src/okcoin.js +4 -5
  193. package/js/src/okx.d.ts +2 -2
  194. package/js/src/okx.js +18 -10
  195. package/js/src/paymium.js +1 -1
  196. package/js/src/phemex.d.ts +3 -8
  197. package/js/src/poloniex.d.ts +4 -4
  198. package/js/src/poloniex.js +5 -5
  199. package/js/src/poloniexfutures.d.ts +4 -26
  200. package/js/src/poloniexfutures.js +2 -2
  201. package/js/src/tidex.d.ts +6 -6
  202. package/js/src/tidex.js +1 -1
  203. package/js/src/upbit.d.ts +6 -6
  204. package/js/src/upbit.js +1 -1
  205. package/js/src/wavesexchange.d.ts +2 -2
  206. package/js/src/wazirx.d.ts +1 -1
  207. package/js/src/wazirx.js +1 -1
  208. package/js/src/whitebit.d.ts +10 -10
  209. package/js/src/whitebit.js +1 -1
  210. package/js/src/woo.d.ts +1 -1
  211. package/js/src/woo.js +3 -1
  212. package/js/src/yobit.d.ts +9 -9
  213. package/js/src/yobit.js +1 -1
  214. package/js/src/zonda.d.ts +5 -5
  215. package/package.json +4 -3
  216. package/skip-tests.json +10 -2
@@ -102,23 +102,23 @@ export default class btctradeua extends Exchange {
102
102
  },
103
103
  'precisionMode': TICK_SIZE,
104
104
  'markets': {
105
- 'BCH/UAH': { 'id': 'bch_uah', 'symbol': 'BCH/UAH', 'base': 'BCH', 'quote': 'UAH', 'baseId': 'bch', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
106
- 'BTC/UAH': { 'id': 'btc_uah', 'symbol': 'BTC/UAH', 'base': 'BTC', 'quote': 'UAH', 'baseId': 'btc', 'quoteId': 'uah', 'precision': { 'price': this.parseNumber('1e-1') }, 'limits': { 'amount': { 'min': this.parseNumber('1e-10') } }, 'type': 'spot', 'spot': true },
107
- 'DASH/BTC': { 'id': 'dash_btc', 'symbol': 'DASH/BTC', 'base': 'DASH', 'quote': 'BTC', 'baseId': 'dash', 'quoteId': 'btc', 'type': 'spot', 'spot': true },
108
- 'DASH/UAH': { 'id': 'dash_uah', 'symbol': 'DASH/UAH', 'base': 'DASH', 'quote': 'UAH', 'baseId': 'dash', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
109
- 'DOGE/BTC': { 'id': 'doge_btc', 'symbol': 'DOGE/BTC', 'base': 'DOGE', 'quote': 'BTC', 'baseId': 'doge', 'quoteId': 'btc', 'type': 'spot', 'spot': true },
110
- 'DOGE/UAH': { 'id': 'doge_uah', 'symbol': 'DOGE/UAH', 'base': 'DOGE', 'quote': 'UAH', 'baseId': 'doge', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
111
- 'ETH/UAH': { 'id': 'eth_uah', 'symbol': 'ETH/UAH', 'base': 'ETH', 'quote': 'UAH', 'baseId': 'eth', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
112
- 'ITI/UAH': { 'id': 'iti_uah', 'symbol': 'ITI/UAH', 'base': 'ITI', 'quote': 'UAH', 'baseId': 'iti', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
113
- 'KRB/UAH': { 'id': 'krb_uah', 'symbol': 'KRB/UAH', 'base': 'KRB', 'quote': 'UAH', 'baseId': 'krb', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
114
- 'LTC/BTC': { 'id': 'ltc_btc', 'symbol': 'LTC/BTC', 'base': 'LTC', 'quote': 'BTC', 'baseId': 'ltc', 'quoteId': 'btc', 'type': 'spot', 'spot': true },
115
- 'LTC/UAH': { 'id': 'ltc_uah', 'symbol': 'LTC/UAH', 'base': 'LTC', 'quote': 'UAH', 'baseId': 'ltc', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
116
- 'NVC/BTC': { 'id': 'nvc_btc', 'symbol': 'NVC/BTC', 'base': 'NVC', 'quote': 'BTC', 'baseId': 'nvc', 'quoteId': 'btc', 'type': 'spot', 'spot': true },
117
- 'NVC/UAH': { 'id': 'nvc_uah', 'symbol': 'NVC/UAH', 'base': 'NVC', 'quote': 'UAH', 'baseId': 'nvc', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
118
- 'PPC/BTC': { 'id': 'ppc_btc', 'symbol': 'PPC/BTC', 'base': 'PPC', 'quote': 'BTC', 'baseId': 'ppc', 'quoteId': 'btc', 'type': 'spot', 'spot': true },
119
- 'SIB/UAH': { 'id': 'sib_uah', 'symbol': 'SIB/UAH', 'base': 'SIB', 'quote': 'UAH', 'baseId': 'sib', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
120
- 'XMR/UAH': { 'id': 'xmr_uah', 'symbol': 'XMR/UAH', 'base': 'XMR', 'quote': 'UAH', 'baseId': 'xmr', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
121
- 'ZEC/UAH': { 'id': 'zec_uah', 'symbol': 'ZEC/UAH', 'base': 'ZEC', 'quote': 'UAH', 'baseId': 'zec', 'quoteId': 'uah', 'type': 'spot', 'spot': true },
105
+ 'BCH/UAH': this.safeMarketStructure({ 'id': 'bch_uah', 'symbol': 'BCH/UAH', 'base': 'BCH', 'quote': 'UAH', 'baseId': 'bch', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
106
+ 'BTC/UAH': this.safeMarketStructure({ 'id': 'btc_uah', 'symbol': 'BTC/UAH', 'base': 'BTC', 'quote': 'UAH', 'baseId': 'btc', 'quoteId': 'uah', 'precision': { 'price': this.parseNumber('1e-1') }, 'limits': { 'amount': { 'min': this.parseNumber('1e-10') } }, 'type': 'spot', 'spot': true }),
107
+ 'DASH/BTC': this.safeMarketStructure({ 'id': 'dash_btc', 'symbol': 'DASH/BTC', 'base': 'DASH', 'quote': 'BTC', 'baseId': 'dash', 'quoteId': 'btc', 'type': 'spot', 'spot': true }),
108
+ 'DASH/UAH': this.safeMarketStructure({ 'id': 'dash_uah', 'symbol': 'DASH/UAH', 'base': 'DASH', 'quote': 'UAH', 'baseId': 'dash', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
109
+ 'DOGE/BTC': this.safeMarketStructure({ 'id': 'doge_btc', 'symbol': 'DOGE/BTC', 'base': 'DOGE', 'quote': 'BTC', 'baseId': 'doge', 'quoteId': 'btc', 'type': 'spot', 'spot': true }),
110
+ 'DOGE/UAH': this.safeMarketStructure({ 'id': 'doge_uah', 'symbol': 'DOGE/UAH', 'base': 'DOGE', 'quote': 'UAH', 'baseId': 'doge', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
111
+ 'ETH/UAH': this.safeMarketStructure({ 'id': 'eth_uah', 'symbol': 'ETH/UAH', 'base': 'ETH', 'quote': 'UAH', 'baseId': 'eth', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
112
+ 'ITI/UAH': this.safeMarketStructure({ 'id': 'iti_uah', 'symbol': 'ITI/UAH', 'base': 'ITI', 'quote': 'UAH', 'baseId': 'iti', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
113
+ 'KRB/UAH': this.safeMarketStructure({ 'id': 'krb_uah', 'symbol': 'KRB/UAH', 'base': 'KRB', 'quote': 'UAH', 'baseId': 'krb', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
114
+ 'LTC/BTC': this.safeMarketStructure({ 'id': 'ltc_btc', 'symbol': 'LTC/BTC', 'base': 'LTC', 'quote': 'BTC', 'baseId': 'ltc', 'quoteId': 'btc', 'type': 'spot', 'spot': true }),
115
+ 'LTC/UAH': this.safeMarketStructure({ 'id': 'ltc_uah', 'symbol': 'LTC/UAH', 'base': 'LTC', 'quote': 'UAH', 'baseId': 'ltc', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
116
+ 'NVC/BTC': this.safeMarketStructure({ 'id': 'nvc_btc', 'symbol': 'NVC/BTC', 'base': 'NVC', 'quote': 'BTC', 'baseId': 'nvc', 'quoteId': 'btc', 'type': 'spot', 'spot': true }),
117
+ 'NVC/UAH': this.safeMarketStructure({ 'id': 'nvc_uah', 'symbol': 'NVC/UAH', 'base': 'NVC', 'quote': 'UAH', 'baseId': 'nvc', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
118
+ 'PPC/BTC': this.safeMarketStructure({ 'id': 'ppc_btc', 'symbol': 'PPC/BTC', 'base': 'PPC', 'quote': 'BTC', 'baseId': 'ppc', 'quoteId': 'btc', 'type': 'spot', 'spot': true }),
119
+ 'SIB/UAH': this.safeMarketStructure({ 'id': 'sib_uah', 'symbol': 'SIB/UAH', 'base': 'SIB', 'quote': 'UAH', 'baseId': 'sib', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
120
+ 'XMR/UAH': this.safeMarketStructure({ 'id': 'xmr_uah', 'symbol': 'XMR/UAH', 'base': 'XMR', 'quote': 'UAH', 'baseId': 'xmr', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
121
+ 'ZEC/UAH': this.safeMarketStructure({ 'id': 'zec_uah', 'symbol': 'ZEC/UAH', 'base': 'ZEC', 'quote': 'UAH', 'baseId': 'zec', 'quoteId': 'uah', 'type': 'spot', 'spot': true }),
122
122
  },
123
123
  'fees': {
124
124
  'trading': {
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/btcturk.js';
2
- import { Int, OrderSide, OrderType } from './base/types.js';
2
+ import { Int, OHLCV, OrderSide, OrderType, Ticker } from './base/types.js';
3
3
  /**
4
4
  * @class btcturk
5
5
  * @extends Exchange
@@ -10,14 +10,14 @@ export default class btcturk extends Exchange {
10
10
  parseBalance(response: any): import("./base/types.js").Balances;
11
11
  fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
12
12
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
13
- parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
14
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
15
- fetchTicker(symbol: string, params?: {}): Promise<any>;
13
+ parseTicker(ticker: any, market?: any): Ticker;
14
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
15
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
16
16
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
17
17
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
18
18
  parseOHLCV(ohlcv: any, market?: any): number[];
19
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
20
- parseOHLCVs(ohlcvs: any, market?: any, timeframe?: string, since?: Int, limit?: Int): any;
19
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
20
+ parseOHLCVs(ohlcvs: any, market?: any, timeframe?: string, since?: Int, limit?: Int): OHLCV[];
21
21
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<import("./base/types.js").Order>;
22
22
  cancelOrder(id: string, symbol?: string, params?: {}): Promise<any>;
23
23
  fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Order[]>;
package/js/src/bybit.d.ts CHANGED
@@ -68,7 +68,7 @@ export default class bybit extends Exchange {
68
68
  fetchOptionMarkets(params: any): Promise<any[]>;
69
69
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
70
70
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
71
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
71
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
72
72
  parseOHLCV(ohlcv: any, market?: any): number[];
73
73
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
74
74
  parseFundingRate(ticker: any, market?: any): {
@@ -102,7 +102,7 @@ export default class bybit extends Exchange {
102
102
  parseOrderStatus(status: any): string;
103
103
  parseTimeInForce(timeInForce: any): string;
104
104
  parseOrder(order: any, market?: any): Order;
105
- fetchOrder(id: string, symbol?: string, params?: {}): Promise<any>;
105
+ fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
106
106
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
107
107
  createUsdcOrder(symbol: any, type: any, side: any, amount: any, price?: any, params?: {}): Promise<Order>;
108
108
  editUsdcOrder(id: any, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
package/js/src/bybit.js CHANGED
@@ -2354,7 +2354,7 @@ export default class bybit extends Exchange {
2354
2354
  tickers[symbol] = ticker;
2355
2355
  }
2356
2356
  }
2357
- return this.filterByArray(tickers, 'symbol', symbols);
2357
+ return this.filterByArrayTickers(tickers, 'symbol', symbols);
2358
2358
  }
2359
2359
  parseOHLCV(ohlcv, market = undefined) {
2360
2360
  //
package/js/src/cex.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/cex.js';
2
- import { Int, OrderSide, OrderType } from './base/types.js';
2
+ import { Int, Order, OrderSide, OrderType } from './base/types.js';
3
3
  /**
4
4
  * @class cex
5
5
  * @extends Exchange
@@ -15,20 +15,20 @@ export default class cex extends Exchange {
15
15
  parseOHLCV(ohlcv: any, market?: any): number[];
16
16
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").OHLCV[]>;
17
17
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
18
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
18
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
19
19
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
20
20
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
21
21
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
22
22
  fetchTradingFees(params?: {}): Promise<{}>;
23
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<import("./base/types.js").Order>;
23
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
24
24
  cancelOrder(id: string, symbol?: string, params?: {}): Promise<any>;
25
- parseOrder(order: any, market?: any): import("./base/types.js").Order;
26
- fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Order[]>;
27
- fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Order[]>;
28
- fetchOrder(id: string, symbol?: string, params?: {}): Promise<import("./base/types.js").Order>;
29
- fetchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any[]>;
25
+ parseOrder(order: any, market?: any): Order;
26
+ fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
27
+ fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
28
+ fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
29
+ fetchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
30
30
  parseOrderStatus(status: any): string;
31
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<import("./base/types.js").Order>;
31
+ editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
32
32
  fetchDepositAddress(code: string, params?: {}): Promise<{
33
33
  currency: string;
34
34
  address: string;
package/js/src/cex.js CHANGED
@@ -619,7 +619,7 @@ export default class cex extends Exchange {
619
619
  const symbol = market['symbol'];
620
620
  result[symbol] = this.parseTicker(ticker, market);
621
621
  }
622
- return this.filterByArray(result, 'symbol', symbols);
622
+ return this.filterByArrayTickers(result, 'symbol', symbols);
623
623
  }
624
624
  async fetchTicker(symbol, params = {}) {
625
625
  /**
@@ -57,12 +57,12 @@ export default class coinbase extends Exchange {
57
57
  fetchMarketsV3(params?: {}): Promise<any[]>;
58
58
  fetchCurrenciesFromCache(params?: {}): Promise<any>;
59
59
  fetchCurrencies(params?: {}): Promise<{}>;
60
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
61
- fetchTickersV2(symbols?: string[], params?: {}): Promise<any>;
62
- fetchTickersV3(symbols?: string[], params?: {}): Promise<any>;
63
- fetchTicker(symbol: string, params?: {}): Promise<any>;
60
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
61
+ fetchTickersV2(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
62
+ fetchTickersV3(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
63
+ fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
64
64
  fetchTickerV2(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
65
- fetchTickerV3(symbol: string, params?: {}): Promise<any>;
65
+ fetchTickerV3(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
66
66
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
67
67
  parseBalance(response: any, params?: {}): import("./base/types.js").Balances;
68
68
  fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
@@ -1220,7 +1220,7 @@ export default class coinbase extends Exchange {
1220
1220
  const symbol = market['symbol'];
1221
1221
  result[symbol] = this.parseTicker(rates[baseId], market);
1222
1222
  }
1223
- return this.filterByArray(result, 'symbol', symbols);
1223
+ return this.filterByArrayTickers(result, 'symbol', symbols);
1224
1224
  }
1225
1225
  async fetchTickersV3(symbols = undefined, params = {}) {
1226
1226
  await this.loadMarkets();
@@ -1272,7 +1272,7 @@ export default class coinbase extends Exchange {
1272
1272
  const symbol = market['symbol'];
1273
1273
  result[symbol] = this.parseTicker(entry, market);
1274
1274
  }
1275
- return this.filterByArray(result, 'symbol', symbols);
1275
+ return this.filterByArrayTickers(result, 'symbol', symbols);
1276
1276
  }
1277
1277
  async fetchTicker(symbol, params = {}) {
1278
1278
  /**
@@ -1345,10 +1345,9 @@ export default class coinbase extends Exchange {
1345
1345
  //
1346
1346
  const data = this.safeValue(response, 'trades', []);
1347
1347
  const ticker = this.parseTicker(data[0], market);
1348
- return this.extend(ticker, {
1349
- 'bid': this.safeNumber(response, 'best_bid'),
1350
- 'ask': this.safeNumber(response, 'best_ask'),
1351
- });
1348
+ ticker['bid'] = this.safeNumber(response, 'best_bid');
1349
+ ticker['ask'] = this.safeNumber(response, 'best_ask');
1350
+ return ticker;
1352
1351
  }
1353
1352
  parseTicker(ticker, market = undefined) {
1354
1353
  //
@@ -19,7 +19,7 @@ export default class coinbasepro extends Exchange {
19
19
  fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
20
20
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
21
21
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
22
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
22
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
23
23
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
24
24
  parseTrade(trade: any, market?: any): Trade;
25
25
  fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
@@ -660,7 +660,7 @@ export default class coinbasepro extends Exchange {
660
660
  const symbol = market['symbol'];
661
661
  result[symbol] = this.parseTicker(first, market);
662
662
  }
663
- return this.filterByArray(result, 'symbol', symbols);
663
+ return this.filterByArrayTickers(result, 'symbol', symbols);
664
664
  }
665
665
  async fetchTicker(symbol, params = {}) {
666
666
  /**
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coincheck.js';
2
- import { Int, OrderSide, OrderType } from './base/types.js';
2
+ import { Int, Order, OrderSide, OrderType } from './base/types.js';
3
3
  /**
4
4
  * @class coincheck
5
5
  * @extends Exchange
@@ -8,8 +8,8 @@ export default class coincheck extends Exchange {
8
8
  describe(): any;
9
9
  parseBalance(response: any): import("./base/types.js").Balances;
10
10
  fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
11
- fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any[]>;
12
- parseOrder(order: any, market?: any): import("./base/types.js").Order;
11
+ fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
12
+ parseOrder(order: any, market?: any): Order;
13
13
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
14
14
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
15
15
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
@@ -17,7 +17,7 @@ export default class coincheck extends Exchange {
17
17
  fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
18
18
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
19
19
  fetchTradingFees(params?: {}): Promise<{}>;
20
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<import("./base/types.js").Order>;
20
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
21
21
  cancelOrder(id: string, symbol?: string, params?: {}): Promise<any>;
22
22
  fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
23
23
  fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
@@ -122,13 +122,13 @@ export default class coincheck extends Exchange {
122
122
  },
123
123
  },
124
124
  'markets': {
125
- 'BTC/JPY': { 'id': 'btc_jpy', 'symbol': 'BTC/JPY', 'base': 'BTC', 'quote': 'JPY', 'baseId': 'btc', 'quoteId': 'jpy', 'type': 'spot', 'spot': true },
125
+ 'BTC/JPY': this.safeMarketStructure({ 'id': 'btc_jpy', 'symbol': 'BTC/JPY', 'base': 'BTC', 'quote': 'JPY', 'baseId': 'btc', 'quoteId': 'jpy', 'type': 'spot', 'spot': true }),
126
126
  // 'ETH/JPY': { 'id': 'eth_jpy', 'symbol': 'ETH/JPY', 'base': 'ETH', 'quote': 'JPY', 'baseId': 'eth', 'quoteId': 'jpy' },
127
- 'ETC/JPY': { 'id': 'etc_jpy', 'symbol': 'ETC/JPY', 'base': 'ETC', 'quote': 'JPY', 'baseId': 'etc', 'quoteId': 'jpy', 'type': 'spot', 'spot': true },
127
+ 'ETC/JPY': this.safeMarketStructure({ 'id': 'etc_jpy', 'symbol': 'ETC/JPY', 'base': 'ETC', 'quote': 'JPY', 'baseId': 'etc', 'quoteId': 'jpy', 'type': 'spot', 'spot': true }),
128
128
  // 'DAO/JPY': { 'id': 'dao_jpy', 'symbol': 'DAO/JPY', 'base': 'DAO', 'quote': 'JPY', 'baseId': 'dao', 'quoteId': 'jpy' },
129
129
  // 'LSK/JPY': { 'id': 'lsk_jpy', 'symbol': 'LSK/JPY', 'base': 'LSK', 'quote': 'JPY', 'baseId': 'lsk', 'quoteId': 'jpy' },
130
- 'FCT/JPY': { 'id': 'fct_jpy', 'symbol': 'FCT/JPY', 'base': 'FCT', 'quote': 'JPY', 'baseId': 'fct', 'quoteId': 'jpy', 'type': 'spot', 'spot': true },
131
- 'MONA/JPY': { 'id': 'mona_jpy', 'symbol': 'MONA/JPY', 'base': 'MONA', 'quote': 'JPY', 'baseId': 'mona', 'quoteId': 'jpy', 'type': 'spot', 'spot': true },
130
+ 'FCT/JPY': this.safeMarketStructure({ 'id': 'fct_jpy', 'symbol': 'FCT/JPY', 'base': 'FCT', 'quote': 'JPY', 'baseId': 'fct', 'quoteId': 'jpy', 'type': 'spot', 'spot': true }),
131
+ 'MONA/JPY': this.safeMarketStructure({ 'id': 'mona_jpy', 'symbol': 'MONA/JPY', 'base': 'MONA', 'quote': 'JPY', 'baseId': 'mona', 'quoteId': 'jpy', 'type': 'spot', 'spot': true }),
132
132
  // 'XMR/JPY': { 'id': 'xmr_jpy', 'symbol': 'XMR/JPY', 'base': 'XMR', 'quote': 'JPY', 'baseId': 'xmr', 'quoteId': 'jpy' },
133
133
  // 'REP/JPY': { 'id': 'rep_jpy', 'symbol': 'REP/JPY', 'base': 'REP', 'quote': 'JPY', 'baseId': 'rep', 'quoteId': 'jpy' },
134
134
  // 'XRP/JPY': { 'id': 'xrp_jpy', 'symbol': 'XRP/JPY', 'base': 'XRP', 'quote': 'JPY', 'baseId': 'xrp', 'quoteId': 'jpy' },
@@ -137,7 +137,7 @@ export default class coincheck extends Exchange {
137
137
  // 'LTC/JPY': { 'id': 'ltc_jpy', 'symbol': 'LTC/JPY', 'base': 'LTC', 'quote': 'JPY', 'baseId': 'ltc', 'quoteId': 'jpy' },
138
138
  // 'DASH/JPY': { 'id': 'dash_jpy', 'symbol': 'DASH/JPY', 'base': 'DASH', 'quote': 'JPY', 'baseId': 'dash', 'quoteId': 'jpy' },
139
139
  // 'ETH/BTC': { 'id': 'eth_btc', 'symbol': 'ETH/BTC', 'base': 'ETH', 'quote': 'BTC', 'baseId': 'eth', 'quoteId': 'btc' },
140
- 'ETC/BTC': { 'id': 'etc_btc', 'symbol': 'ETC/BTC', 'base': 'ETC', 'quote': 'BTC', 'baseId': 'etc', 'quoteId': 'btc', 'type': 'spot', 'spot': true },
140
+ 'ETC/BTC': this.safeMarketStructure({ 'id': 'etc_btc', 'symbol': 'ETC/BTC', 'base': 'ETC', 'quote': 'BTC', 'baseId': 'etc', 'quoteId': 'btc', 'type': 'spot', 'spot': true }),
141
141
  // 'LSK/BTC': { 'id': 'lsk_btc', 'symbol': 'LSK/BTC', 'base': 'LSK', 'quote': 'BTC', 'baseId': 'lsk', 'quoteId': 'btc' },
142
142
  // 'FCT/BTC': { 'id': 'fct_btc', 'symbol': 'FCT/BTC', 'base': 'FCT', 'quote': 'BTC', 'baseId': 'fct', 'quoteId': 'btc' },
143
143
  // 'XMR/BTC': { 'id': 'xmr_btc', 'symbol': 'XMR/BTC', 'base': 'XMR', 'quote': 'BTC', 'baseId': 'xmr', 'quoteId': 'btc' },
@@ -12,7 +12,7 @@ export default class coinex extends Exchange {
12
12
  fetchContractMarkets(params: any): Promise<any[]>;
13
13
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
14
14
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
15
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
15
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
16
16
  fetchTime(params?: {}): Promise<number>;
17
17
  fetchOrderBook(symbol: string, limit?: number, params?: {}): Promise<import("./base/types.js").OrderBook>;
18
18
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
package/js/src/coinex.js CHANGED
@@ -874,7 +874,7 @@ export default class coinex extends Exchange {
874
874
  ticker['symbol'] = symbol;
875
875
  result[symbol] = ticker;
876
876
  }
877
- return this.filterByArray(result, 'symbol', symbols);
877
+ return this.filterByArrayTickers(result, 'symbol', symbols);
878
878
  }
879
879
  async fetchTime(params = {}) {
880
880
  /**
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinfalcon.js';
2
- import { Int, OrderSide, OrderType } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, Ticker } from './base/types.js';
3
3
  /**
4
4
  * @class coinfalcon
5
5
  * @extends Exchange
@@ -7,9 +7,9 @@ import { Int, OrderSide, OrderType } from './base/types.js';
7
7
  export default class coinfalcon extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<any[]>;
10
- parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
11
- fetchTicker(symbol: string, params?: {}): Promise<any>;
12
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
10
+ parseTicker(ticker: any, market?: any): Ticker;
11
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
13
13
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
14
14
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
15
15
  fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
@@ -316,7 +316,7 @@ export default class coinfalcon extends Exchange {
316
316
  const symbol = ticker['symbol'];
317
317
  result[symbol] = ticker;
318
318
  }
319
- return this.filterByArray(result, 'symbol', symbols);
319
+ return this.filterByArrayTickers(result, 'symbol', symbols);
320
320
  }
321
321
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
322
322
  /**
@@ -10,28 +10,7 @@ export default class coinmate extends Exchange {
10
10
  parseBalance(response: any): import("./base/types.js").Balances;
11
11
  fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
12
12
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
13
- fetchTicker(symbol: string, params?: {}): Promise<{
14
- symbol: any;
15
- timestamp: number;
16
- datetime: string;
17
- high: number;
18
- low: number;
19
- bid: number;
20
- bidVolume: any;
21
- ask: number;
22
- vwap: any;
23
- askVolume: any;
24
- open: any;
25
- close: number;
26
- last: number;
27
- previousClose: any;
28
- change: any;
29
- percentage: any;
30
- average: any;
31
- baseVolume: number;
32
- quoteVolume: any;
33
- info: any;
34
- }>;
13
+ fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
35
14
  fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
36
15
  parseTransactionStatus(status: any): string;
37
16
  parseTransaction(transaction: any, currency?: any): {
@@ -364,7 +364,7 @@ export default class coinmate extends Exchange {
364
364
  const ticker = this.safeValue(response, 'data');
365
365
  const timestamp = this.safeTimestamp(ticker, 'timestamp');
366
366
  const last = this.safeNumber(ticker, 'last');
367
- return {
367
+ return this.safeTicker({
368
368
  'symbol': market['symbol'],
369
369
  'timestamp': timestamp,
370
370
  'datetime': this.iso8601(timestamp),
@@ -385,7 +385,7 @@ export default class coinmate extends Exchange {
385
385
  'baseVolume': this.safeNumber(ticker, 'amount'),
386
386
  'quoteVolume': undefined,
387
387
  'info': ticker,
388
- };
388
+ }, market);
389
389
  }
390
390
  async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
391
391
  /**
@@ -10,7 +10,7 @@ export default class coinone extends Exchange {
10
10
  parseBalance(response: any): import("./base/types.js").Balances;
11
11
  fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
12
12
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
13
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
13
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
14
14
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
15
15
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
16
16
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
package/js/src/coinone.js CHANGED
@@ -316,7 +316,7 @@ export default class coinone extends Exchange {
316
316
  result[symbol] = this.parseTicker(ticker, market);
317
317
  result[symbol]['timestamp'] = timestamp;
318
318
  }
319
- return this.filterByArray(result, 'symbol', symbols);
319
+ return this.filterByArrayTickers(result, 'symbol', symbols);
320
320
  }
321
321
  async fetchTicker(symbol, params = {}) {
322
322
  /**
package/js/src/coinsph.js CHANGED
@@ -595,6 +595,7 @@ export default class coinsph extends Exchange {
595
595
  'max': undefined,
596
596
  },
597
597
  },
598
+ 'created': undefined,
598
599
  'info': market,
599
600
  });
600
601
  }
@@ -11,7 +11,7 @@ export default class coinspot extends Exchange {
11
11
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
12
12
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
13
13
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
14
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
14
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
15
15
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
16
16
  fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
17
17
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
@@ -117,20 +117,20 @@ export default class coinspot extends Exchange {
117
117
  },
118
118
  },
119
119
  'markets': {
120
- 'ADA/AUD': { 'id': 'ada', 'symbol': 'ADA/AUD', 'base': 'ADA', 'quote': 'AUD', 'baseId': 'ada', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
121
- 'BTC/AUD': { 'id': 'btc', 'symbol': 'BTC/AUD', 'base': 'BTC', 'quote': 'AUD', 'baseId': 'btc', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
122
- 'ETH/AUD': { 'id': 'eth', 'symbol': 'ETH/AUD', 'base': 'ETH', 'quote': 'AUD', 'baseId': 'eth', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
123
- 'XRP/AUD': { 'id': 'xrp', 'symbol': 'XRP/AUD', 'base': 'XRP', 'quote': 'AUD', 'baseId': 'xrp', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
124
- 'LTC/AUD': { 'id': 'ltc', 'symbol': 'LTC/AUD', 'base': 'LTC', 'quote': 'AUD', 'baseId': 'ltc', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
125
- 'DOGE/AUD': { 'id': 'doge', 'symbol': 'DOGE/AUD', 'base': 'DOGE', 'quote': 'AUD', 'baseId': 'doge', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
126
- 'RFOX/AUD': { 'id': 'rfox', 'symbol': 'RFOX/AUD', 'base': 'RFOX', 'quote': 'AUD', 'baseId': 'rfox', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
127
- 'POWR/AUD': { 'id': 'powr', 'symbol': 'POWR/AUD', 'base': 'POWR', 'quote': 'AUD', 'baseId': 'powr', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
128
- 'NEO/AUD': { 'id': 'neo', 'symbol': 'NEO/AUD', 'base': 'NEO', 'quote': 'AUD', 'baseId': 'neo', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
129
- 'TRX/AUD': { 'id': 'trx', 'symbol': 'TRX/AUD', 'base': 'TRX', 'quote': 'AUD', 'baseId': 'trx', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
130
- 'EOS/AUD': { 'id': 'eos', 'symbol': 'EOS/AUD', 'base': 'EOS', 'quote': 'AUD', 'baseId': 'eos', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
131
- 'XLM/AUD': { 'id': 'xlm', 'symbol': 'XLM/AUD', 'base': 'XLM', 'quote': 'AUD', 'baseId': 'xlm', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
132
- 'RHOC/AUD': { 'id': 'rhoc', 'symbol': 'RHOC/AUD', 'base': 'RHOC', 'quote': 'AUD', 'baseId': 'rhoc', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
133
- 'GAS/AUD': { 'id': 'gas', 'symbol': 'GAS/AUD', 'base': 'GAS', 'quote': 'AUD', 'baseId': 'gas', 'quoteId': 'aud', 'type': 'spot', 'spot': true },
120
+ 'ADA/AUD': this.safeMarketStructure({ 'id': 'ada', 'symbol': 'ADA/AUD', 'base': 'ADA', 'quote': 'AUD', 'baseId': 'ada', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
121
+ 'BTC/AUD': this.safeMarketStructure({ 'id': 'btc', 'symbol': 'BTC/AUD', 'base': 'BTC', 'quote': 'AUD', 'baseId': 'btc', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
122
+ 'ETH/AUD': this.safeMarketStructure({ 'id': 'eth', 'symbol': 'ETH/AUD', 'base': 'ETH', 'quote': 'AUD', 'baseId': 'eth', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
123
+ 'XRP/AUD': this.safeMarketStructure({ 'id': 'xrp', 'symbol': 'XRP/AUD', 'base': 'XRP', 'quote': 'AUD', 'baseId': 'xrp', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
124
+ 'LTC/AUD': this.safeMarketStructure({ 'id': 'ltc', 'symbol': 'LTC/AUD', 'base': 'LTC', 'quote': 'AUD', 'baseId': 'ltc', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
125
+ 'DOGE/AUD': this.safeMarketStructure({ 'id': 'doge', 'symbol': 'DOGE/AUD', 'base': 'DOGE', 'quote': 'AUD', 'baseId': 'doge', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
126
+ 'RFOX/AUD': this.safeMarketStructure({ 'id': 'rfox', 'symbol': 'RFOX/AUD', 'base': 'RFOX', 'quote': 'AUD', 'baseId': 'rfox', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
127
+ 'POWR/AUD': this.safeMarketStructure({ 'id': 'powr', 'symbol': 'POWR/AUD', 'base': 'POWR', 'quote': 'AUD', 'baseId': 'powr', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
128
+ 'NEO/AUD': this.safeMarketStructure({ 'id': 'neo', 'symbol': 'NEO/AUD', 'base': 'NEO', 'quote': 'AUD', 'baseId': 'neo', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
129
+ 'TRX/AUD': this.safeMarketStructure({ 'id': 'trx', 'symbol': 'TRX/AUD', 'base': 'TRX', 'quote': 'AUD', 'baseId': 'trx', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
130
+ 'EOS/AUD': this.safeMarketStructure({ 'id': 'eos', 'symbol': 'EOS/AUD', 'base': 'EOS', 'quote': 'AUD', 'baseId': 'eos', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
131
+ 'XLM/AUD': this.safeMarketStructure({ 'id': 'xlm', 'symbol': 'XLM/AUD', 'base': 'XLM', 'quote': 'AUD', 'baseId': 'xlm', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
132
+ 'RHOC/AUD': this.safeMarketStructure({ 'id': 'rhoc', 'symbol': 'RHOC/AUD', 'base': 'RHOC', 'quote': 'AUD', 'baseId': 'rhoc', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
133
+ 'GAS/AUD': this.safeMarketStructure({ 'id': 'gas', 'symbol': 'GAS/AUD', 'base': 'GAS', 'quote': 'AUD', 'baseId': 'gas', 'quoteId': 'aud', 'type': 'spot', 'spot': true }),
134
134
  },
135
135
  'commonCurrencies': {
136
136
  'DRK': 'DASH',
@@ -323,7 +323,7 @@ export default class coinspot extends Exchange {
323
323
  result[symbol] = this.parseTicker(ticker, market);
324
324
  }
325
325
  }
326
- return this.filterByArray(result, 'symbol', symbols);
326
+ return this.filterByArrayTickers(result, 'symbol', symbols);
327
327
  }
328
328
  async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
329
329
  /**
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/cryptocom.js';
2
- import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, Ticker } from './base/types.js';
3
3
  /**
4
4
  * @class cryptocom
5
5
  * @extends Exchange
@@ -7,8 +7,8 @@ import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory } fr
7
7
  export default class cryptocom extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<any[]>;
10
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
11
- fetchTicker(symbol: string, params?: {}): Promise<any>;
10
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
11
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
12
  fetchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
13
13
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
14
14
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
@@ -73,7 +73,7 @@ export default class cryptocom extends Exchange {
73
73
  toAccount: any;
74
74
  status: any;
75
75
  };
76
- parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
76
+ parseTicker(ticker: any, market?: any): Ticker;
77
77
  parseTrade(trade: any, market?: any): Trade;
78
78
  parseOHLCV(ohlcv: any, market?: any): number[];
79
79
  parseOrderStatus(status: any): string;
package/js/src/delta.d.ts CHANGED
@@ -66,7 +66,7 @@ export default class delta extends Exchange {
66
66
  fetchMarkets(params?: {}): Promise<any[]>;
67
67
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
68
68
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
69
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
69
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
70
70
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
71
71
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
72
72
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
package/js/src/delta.js CHANGED
@@ -1265,7 +1265,7 @@ export default class delta extends Exchange {
1265
1265
  const symbol = ticker['symbol'];
1266
1266
  result[symbol] = ticker;
1267
1267
  }
1268
- return this.filterByArray(result, 'symbol', symbols);
1268
+ return this.filterByArrayTickers(result, 'symbol', symbols);
1269
1269
  }
1270
1270
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
1271
1271
  /**
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/deribit.js';
2
- import { FundingRateHistory, Int, OrderSide, OrderType } from './base/types.js';
2
+ import { FundingRateHistory, Int, Liquidation, OrderSide, OrderType } from './base/types.js';
3
3
  /**
4
4
  * @class deribit
5
5
  * @extends Exchange
@@ -41,7 +41,7 @@ export default class deribit extends Exchange {
41
41
  }>;
42
42
  parseTicker(ticker: any, market?: any): import("./base/types.js").Ticker;
43
43
  fetchTicker(symbol: string, params?: {}): Promise<import("./base/types.js").Ticker>;
44
- fetchTickers(symbols?: string[], params?: {}): Promise<any>;
44
+ fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<import("./base/types.js").Ticker>>;
45
45
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").OHLCV[]>;
46
46
  parseTrade(trade: any, market?: any): import("./base/types.js").Trade;
47
47
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
@@ -182,9 +182,9 @@ export default class deribit extends Exchange {
182
182
  previousFundingTimestamp: any;
183
183
  previousFundingDatetime: any;
184
184
  };
185
- fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
185
+ fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
186
186
  addPaginationCursorToResult(cursor: any, data: any): any;
187
- fetchMyLiquidations(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Liquidation[]>;
187
+ fetchMyLiquidations(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
188
188
  parseLiquidation(liquidation: any, market?: any): {
189
189
  info: any;
190
190
  symbol: any;
package/js/src/deribit.js CHANGED
@@ -1149,7 +1149,7 @@ export default class deribit extends Exchange {
1149
1149
  const symbol = ticker['symbol'];
1150
1150
  tickers[symbol] = ticker;
1151
1151
  }
1152
- return this.filterByArray(tickers, 'symbol', symbols);
1152
+ return this.filterByArrayTickers(tickers, 'symbol', symbols);
1153
1153
  }
1154
1154
  async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
1155
1155
  /**