ccxt 4.1.52 → 4.1.53

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 (198) hide show
  1. package/README.md +6 -8
  2. package/dist/ccxt.browser.js +1311 -2712
  3. package/dist/ccxt.browser.min.js +7 -7
  4. package/dist/cjs/ccxt.js +1 -7
  5. package/dist/cjs/src/ace.js +56 -59
  6. package/dist/cjs/src/ascendex.js +1 -2
  7. package/dist/cjs/src/base/Exchange.js +1 -11
  8. package/dist/cjs/src/bingx.js +48 -8
  9. package/dist/cjs/src/bybit.js +2 -11
  10. package/dist/cjs/src/cryptocom.js +1 -0
  11. package/dist/cjs/src/digifinex.js +9 -6
  12. package/dist/cjs/src/lbank.js +2333 -443
  13. package/dist/cjs/src/ndax.js +59 -61
  14. package/dist/cjs/src/novadax.js +57 -59
  15. package/dist/cjs/src/oceanex.js +58 -60
  16. package/dist/cjs/src/okcoin.js +1 -9
  17. package/dist/cjs/src/okx.js +0 -7
  18. package/dist/cjs/src/poloniex.js +55 -57
  19. package/dist/cjs/src/poloniexfutures.js +67 -70
  20. package/dist/cjs/src/pro/bingx.js +18 -11
  21. package/dist/cjs/src/pro/poloniexfutures.js +9 -0
  22. package/dist/cjs/src/probit.js +62 -65
  23. package/dist/cjs/src/timex.js +1 -5
  24. package/dist/cjs/src/upbit.js +56 -58
  25. package/dist/cjs/src/wazirx.js +72 -74
  26. package/dist/cjs/src/whitebit.js +88 -91
  27. package/dist/cjs/src/woo.js +75 -77
  28. package/dist/cjs/src/zaif.js +57 -71
  29. package/dist/cjs/src/zonda.js +67 -70
  30. package/js/ccxt.d.ts +2 -8
  31. package/js/ccxt.js +2 -6
  32. package/js/src/abstract/bybit.d.ts +1 -0
  33. package/js/src/abstract/lbank.d.ts +57 -15
  34. package/js/src/ace.d.ts +8 -7
  35. package/js/src/ace.js +56 -59
  36. package/js/src/alpaca.d.ts +4 -4
  37. package/js/src/ascendex.d.ts +12 -12
  38. package/js/src/ascendex.js +1 -2
  39. package/js/src/base/Exchange.js +1 -11
  40. package/js/src/base/types.d.ts +73 -71
  41. package/js/src/bigone.d.ts +10 -10
  42. package/js/src/binance.d.ts +27 -27
  43. package/js/src/bingx.d.ts +15 -15
  44. package/js/src/bingx.js +48 -8
  45. package/js/src/bit2c.d.ts +5 -5
  46. package/js/src/bitbank.d.ts +5 -5
  47. package/js/src/bitbns.d.ts +7 -7
  48. package/js/src/bitfinex.d.ts +8 -8
  49. package/js/src/bitfinex2.d.ts +12 -12
  50. package/js/src/bitflyer.d.ts +9 -9
  51. package/js/src/bitforex.d.ts +6 -6
  52. package/js/src/bitget.d.ts +24 -24
  53. package/js/src/bithumb.d.ts +4 -4
  54. package/js/src/bitmart.d.ts +21 -21
  55. package/js/src/bitmex.d.ts +14 -14
  56. package/js/src/bitopro.d.ts +12 -12
  57. package/js/src/bitpanda.d.ts +11 -11
  58. package/js/src/bitrue.d.ts +8 -8
  59. package/js/src/bitso.d.ts +11 -11
  60. package/js/src/bitstamp.d.ts +10 -10
  61. package/js/src/bitstamp1.d.ts +4 -4
  62. package/js/src/bittrex.d.ts +14 -14
  63. package/js/src/bitvavo.d.ts +9 -9
  64. package/js/src/bl3p.d.ts +2 -2
  65. package/js/src/blockchaincom.d.ts +13 -13
  66. package/js/src/btcalpha.d.ts +9 -9
  67. package/js/src/btcbox.d.ts +6 -6
  68. package/js/src/btcmarkets.d.ts +12 -12
  69. package/js/src/btcturk.d.ts +5 -5
  70. package/js/src/bybit.d.ts +28 -28
  71. package/js/src/bybit.js +2 -11
  72. package/js/src/cex.d.ts +6 -6
  73. package/js/src/coinbase.d.ts +17 -17
  74. package/js/src/coinbasepro.d.ts +13 -13
  75. package/js/src/coincheck.d.ts +6 -6
  76. package/js/src/coinex.d.ts +18 -18
  77. package/js/src/coinlist.d.ts +14 -14
  78. package/js/src/coinmate.d.ts +7 -7
  79. package/js/src/coinone.d.ts +5 -5
  80. package/js/src/coinsph.d.ts +10 -10
  81. package/js/src/coinspot.d.ts +3 -3
  82. package/js/src/cryptocom.d.ts +16 -16
  83. package/js/src/cryptocom.js +1 -0
  84. package/js/src/currencycom.d.ts +10 -10
  85. package/js/src/delta.d.ts +10 -10
  86. package/js/src/deribit.d.ts +13 -13
  87. package/js/src/digifinex.d.ts +17 -17
  88. package/js/src/digifinex.js +9 -6
  89. package/js/src/exmo.d.ts +12 -12
  90. package/js/src/gate.d.ts +20 -20
  91. package/js/src/gemini.d.ts +6 -6
  92. package/js/src/hitbtc.d.ts +15 -15
  93. package/js/src/hollaex.d.ts +12 -12
  94. package/js/src/htx.d.ts +27 -27
  95. package/js/src/huobijp.d.ts +16 -16
  96. package/js/src/idex.d.ts +13 -13
  97. package/js/src/independentreserve.d.ts +6 -6
  98. package/js/src/indodax.d.ts +6 -6
  99. package/js/src/kraken.d.ts +16 -16
  100. package/js/src/krakenfutures.d.ts +9 -9
  101. package/js/src/kucoin.d.ts +15 -15
  102. package/js/src/kucoinfutures.d.ts +11 -11
  103. package/js/src/kuna.d.ts +12 -12
  104. package/js/src/latoken.d.ts +9 -9
  105. package/js/src/lbank.d.ts +65 -12
  106. package/js/src/lbank.js +2334 -444
  107. package/js/src/lbank2.d.ts +11 -11
  108. package/js/src/luno.d.ts +10 -10
  109. package/js/src/lykke.d.ts +8 -8
  110. package/js/src/mercado.d.ts +6 -6
  111. package/js/src/mexc.d.ts +23 -23
  112. package/js/src/ndax.d.ts +13 -12
  113. package/js/src/ndax.js +59 -61
  114. package/js/src/novadax.d.ts +13 -12
  115. package/js/src/novadax.js +57 -59
  116. package/js/src/oceanex.d.ts +10 -9
  117. package/js/src/oceanex.js +58 -60
  118. package/js/src/okcoin.d.ts +12 -13
  119. package/js/src/okcoin.js +1 -9
  120. package/js/src/okx.d.ts +26 -27
  121. package/js/src/okx.js +0 -7
  122. package/js/src/paymium.d.ts +2 -2
  123. package/js/src/phemex.d.ts +16 -16
  124. package/js/src/poloniex.d.ts +15 -14
  125. package/js/src/poloniex.js +55 -57
  126. package/js/src/poloniexfutures.d.ts +11 -10
  127. package/js/src/poloniexfutures.js +67 -70
  128. package/js/src/pro/alpaca.d.ts +3 -3
  129. package/js/src/pro/ascendex.d.ts +2 -2
  130. package/js/src/pro/binance.d.ts +9 -9
  131. package/js/src/pro/bingx.d.ts +3 -3
  132. package/js/src/pro/bingx.js +19 -12
  133. package/js/src/pro/bitfinex.d.ts +3 -3
  134. package/js/src/pro/bitfinex2.d.ts +3 -3
  135. package/js/src/pro/bitget.d.ts +3 -3
  136. package/js/src/pro/bitmart.d.ts +2 -2
  137. package/js/src/pro/bitmex.d.ts +3 -3
  138. package/js/src/pro/bitpanda.d.ts +3 -3
  139. package/js/src/pro/bitrue.d.ts +2 -2
  140. package/js/src/pro/bitstamp.d.ts +2 -2
  141. package/js/src/pro/bittrex.d.ts +3 -3
  142. package/js/src/pro/bitvavo.d.ts +3 -3
  143. package/js/src/pro/blockchaincom.d.ts +2 -2
  144. package/js/src/pro/bybit.d.ts +4 -4
  145. package/js/src/pro/cex.d.ts +3 -3
  146. package/js/src/pro/coinbasepro.d.ts +3 -3
  147. package/js/src/pro/coinex.d.ts +2 -2
  148. package/js/src/pro/cryptocom.d.ts +5 -5
  149. package/js/src/pro/deribit.d.ts +3 -3
  150. package/js/src/pro/exmo.d.ts +2 -2
  151. package/js/src/pro/gate.d.ts +3 -3
  152. package/js/src/pro/gemini.d.ts +2 -2
  153. package/js/src/pro/hitbtc.d.ts +3 -3
  154. package/js/src/pro/hollaex.d.ts +3 -3
  155. package/js/src/pro/htx.d.ts +3 -3
  156. package/js/src/pro/idex.d.ts +3 -3
  157. package/js/src/pro/kraken.d.ts +7 -7
  158. package/js/src/pro/krakenfutures.d.ts +4 -4
  159. package/js/src/pro/kucoin.d.ts +3 -3
  160. package/js/src/pro/kucoinfutures.d.ts +3 -3
  161. package/js/src/pro/mexc.d.ts +3 -3
  162. package/js/src/pro/okcoin.d.ts +2 -2
  163. package/js/src/pro/okx.d.ts +6 -6
  164. package/js/src/pro/phemex.d.ts +3 -3
  165. package/js/src/pro/poloniex.d.ts +3 -3
  166. package/js/src/pro/poloniexfutures.d.ts +3 -3
  167. package/js/src/pro/poloniexfutures.js +9 -0
  168. package/js/src/pro/probit.d.ts +3 -3
  169. package/js/src/pro/wazirx.d.ts +3 -3
  170. package/js/src/pro/whitebit.d.ts +3 -3
  171. package/js/src/pro/woo.d.ts +2 -2
  172. package/js/src/probit.d.ts +11 -10
  173. package/js/src/probit.js +62 -65
  174. package/js/src/tidex.d.ts +5 -5
  175. package/js/src/timex.d.ts +10 -10
  176. package/js/src/timex.js +1 -5
  177. package/js/src/tokocrypto.d.ts +9 -9
  178. package/js/src/upbit.d.ts +11 -10
  179. package/js/src/upbit.js +56 -58
  180. package/js/src/wavesexchange.d.ts +7 -7
  181. package/js/src/wazirx.d.ts +7 -6
  182. package/js/src/wazirx.js +72 -74
  183. package/js/src/whitebit.d.ts +12 -11
  184. package/js/src/whitebit.js +88 -91
  185. package/js/src/woo.d.ts +20 -19
  186. package/js/src/woo.js +75 -77
  187. package/js/src/yobit.d.ts +5 -5
  188. package/js/src/zaif.d.ts +6 -5
  189. package/js/src/zaif.js +57 -71
  190. package/js/src/zonda.d.ts +7 -6
  191. package/js/src/zonda.js +67 -70
  192. package/package.json +1 -1
  193. package/skip-tests.json +0 -15
  194. package/test.ts +0 -0
  195. package/js/src/abstract/bitstamp1.d.ts +0 -26
  196. package/js/src/abstract/bitstamp1.js +0 -11
  197. package/js/src/abstract/lbank2.d.ts +0 -64
  198. package/js/src/abstract/lbank2.js +0 -11
@@ -128,16 +128,7 @@ class zaif extends zaif$1 {
128
128
  },
129
129
  },
130
130
  },
131
- 'options': {
132
- // zaif schedule defines several market-specific fees
133
- 'fees': {
134
- 'BTC/JPY': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.001') },
135
- 'BCH/JPY': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.003') },
136
- 'BCH/BTC': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.003') },
137
- 'PEPECASH/JPY': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.0001') },
138
- 'PEPECASH/BT': { 'maker': this.parseNumber('0'), 'taker': this.parseNumber('0.0001') },
139
- },
140
- },
131
+ 'options': {},
141
132
  'precisionMode': number.TICK_SIZE,
142
133
  'exceptions': {
143
134
  'exact': {
@@ -178,69 +169,64 @@ class zaif extends zaif$1 {
178
169
  // }
179
170
  // ]
180
171
  //
181
- const result = [];
182
- for (let i = 0; i < markets.length; i++) {
183
- const market = markets[i];
184
- const id = this.safeString(market, 'currency_pair');
185
- const name = this.safeString(market, 'name');
186
- const [baseId, quoteId] = name.split('/');
187
- const base = this.safeCurrencyCode(baseId);
188
- const quote = this.safeCurrencyCode(quoteId);
189
- const symbol = base + '/' + quote;
190
- const fees = this.safeValue(this.options['fees'], symbol, this.fees['trading']);
191
- result.push({
192
- 'id': id,
193
- 'symbol': symbol,
194
- 'base': base,
195
- 'quote': quote,
196
- 'settle': undefined,
197
- 'baseId': baseId,
198
- 'quoteId': quoteId,
199
- 'settleId': undefined,
200
- 'type': 'spot',
201
- 'spot': true,
202
- 'margin': undefined,
203
- 'swap': false,
204
- 'future': false,
205
- 'option': false,
206
- 'active': undefined,
207
- 'contract': false,
208
- 'linear': undefined,
209
- 'inverse': undefined,
210
- 'taker': fees['taker'],
211
- 'maker': fees['maker'],
212
- 'contractSize': undefined,
213
- 'expiry': undefined,
214
- 'expiryDatetime': undefined,
215
- 'strike': undefined,
216
- 'optionType': undefined,
217
- 'precision': {
218
- 'amount': this.safeNumber(market, 'item_unit_step'),
219
- 'price': this.parseNumber(this.parsePrecision(this.safeString(market, 'aux_unit_point'))),
172
+ return this.parseMarkets(markets);
173
+ }
174
+ parseMarket(market) {
175
+ const id = this.safeString(market, 'currency_pair');
176
+ const name = this.safeString(market, 'name');
177
+ const [baseId, quoteId] = name.split('/');
178
+ const base = this.safeCurrencyCode(baseId);
179
+ const quote = this.safeCurrencyCode(quoteId);
180
+ const symbol = base + '/' + quote;
181
+ return {
182
+ 'id': id,
183
+ 'symbol': symbol,
184
+ 'base': base,
185
+ 'quote': quote,
186
+ 'settle': undefined,
187
+ 'baseId': baseId,
188
+ 'quoteId': quoteId,
189
+ 'settleId': undefined,
190
+ 'type': 'spot',
191
+ 'spot': true,
192
+ 'margin': undefined,
193
+ 'swap': false,
194
+ 'future': false,
195
+ 'option': false,
196
+ 'active': undefined,
197
+ 'contract': false,
198
+ 'linear': undefined,
199
+ 'inverse': undefined,
200
+ 'contractSize': undefined,
201
+ 'expiry': undefined,
202
+ 'expiryDatetime': undefined,
203
+ 'strike': undefined,
204
+ 'optionType': undefined,
205
+ 'precision': {
206
+ 'amount': this.safeNumber(market, 'item_unit_step'),
207
+ 'price': this.parseNumber(this.parsePrecision(this.safeString(market, 'aux_unit_point'))),
208
+ },
209
+ 'limits': {
210
+ 'leverage': {
211
+ 'min': undefined,
212
+ 'max': undefined,
220
213
  },
221
- 'limits': {
222
- 'leverage': {
223
- 'min': undefined,
224
- 'max': undefined,
225
- },
226
- 'amount': {
227
- 'min': this.safeNumber(market, 'item_unit_min'),
228
- 'max': undefined,
229
- },
230
- 'price': {
231
- 'min': this.safeNumber(market, 'aux_unit_min'),
232
- 'max': undefined,
233
- },
234
- 'cost': {
235
- 'min': undefined,
236
- 'max': undefined,
237
- },
214
+ 'amount': {
215
+ 'min': this.safeNumber(market, 'item_unit_min'),
216
+ 'max': undefined,
238
217
  },
239
- 'created': undefined,
240
- 'info': market,
241
- });
242
- }
243
- return result;
218
+ 'price': {
219
+ 'min': this.safeNumber(market, 'aux_unit_min'),
220
+ 'max': undefined,
221
+ },
222
+ 'cost': {
223
+ 'min': undefined,
224
+ 'max': undefined,
225
+ },
226
+ },
227
+ 'created': undefined,
228
+ 'info': market,
229
+ };
244
230
  }
245
231
  parseBalance(response) {
246
232
  const balances = this.safeValue(response, 'return', {});
@@ -304,7 +304,6 @@ class zonda extends zonda$1 {
304
304
  * @returns {object[]} an array of objects representing market data
305
305
  */
306
306
  const response = await this.v1_01PublicGetTradingTicker(params);
307
- const fiatCurrencies = this.safeValue(this.options, 'fiatCurrencies', []);
308
307
  //
309
308
  // {
310
309
  // "status": "Ok",
@@ -324,78 +323,76 @@ class zonda extends zonda$1 {
324
323
  // },
325
324
  // }
326
325
  //
327
- const result = [];
328
326
  const items = this.safeValue(response, 'items', {});
329
- const keys = Object.keys(items);
330
- for (let i = 0; i < keys.length; i++) {
331
- const id = keys[i];
332
- const item = items[id];
333
- const market = this.safeValue(item, 'market', {});
334
- const first = this.safeValue(market, 'first', {});
335
- const second = this.safeValue(market, 'second', {});
336
- const baseId = this.safeString(first, 'currency');
337
- const quoteId = this.safeString(second, 'currency');
338
- const base = this.safeCurrencyCode(baseId);
339
- const quote = this.safeCurrencyCode(quoteId);
340
- let fees = this.safeValue(this.fees, 'trading', {});
341
- if (this.inArray(base, fiatCurrencies) || this.inArray(quote, fiatCurrencies)) {
342
- fees = this.safeValue(this.fees, 'fiat', {});
343
- }
344
- // todo: check that the limits have ben interpreted correctly
345
- // todo: parse the fees page
346
- result.push({
347
- 'id': id,
348
- 'symbol': base + '/' + quote,
349
- 'base': base,
350
- 'quote': quote,
351
- 'settle': undefined,
352
- 'baseId': baseId,
353
- 'quoteId': quoteId,
354
- 'settleId': undefined,
355
- 'type': 'spot',
356
- 'spot': true,
357
- 'margin': false,
358
- 'swap': false,
359
- 'future': false,
360
- 'option': false,
361
- 'active': undefined,
362
- 'contract': false,
363
- 'linear': undefined,
364
- 'inverse': undefined,
365
- 'taker': this.safeNumber(fees, 'taker'),
366
- 'maker': this.safeNumber(fees, 'maker'),
367
- 'contractSize': undefined,
368
- 'expiry': undefined,
369
- 'expiryDatetime': undefined,
370
- 'optionType': undefined,
371
- 'strike': undefined,
372
- 'precision': {
373
- 'amount': this.parseNumber(this.parsePrecision(this.safeString(first, 'scale'))),
374
- 'price': this.parseNumber(this.parsePrecision(this.safeString(second, 'scale'))),
327
+ const markets = Object.values(items);
328
+ return this.parseMarkets(markets);
329
+ }
330
+ parseMarket(item) {
331
+ const market = this.safeValue(item, 'market', {});
332
+ const id = this.safeString(market, 'code');
333
+ const first = this.safeValue(market, 'first', {});
334
+ const second = this.safeValue(market, 'second', {});
335
+ const baseId = this.safeString(first, 'currency');
336
+ const quoteId = this.safeString(second, 'currency');
337
+ const base = this.safeCurrencyCode(baseId);
338
+ const quote = this.safeCurrencyCode(quoteId);
339
+ let fees = this.safeValue(this.fees, 'trading', {});
340
+ const fiatCurrencies = this.safeValue(this.options, 'fiatCurrencies', []);
341
+ if (this.inArray(base, fiatCurrencies) || this.inArray(quote, fiatCurrencies)) {
342
+ fees = this.safeValue(this.fees, 'fiat', {});
343
+ }
344
+ // todo: check that the limits have ben interpreted correctly
345
+ return {
346
+ 'id': id,
347
+ 'symbol': base + '/' + quote,
348
+ 'base': base,
349
+ 'quote': quote,
350
+ 'settle': undefined,
351
+ 'baseId': baseId,
352
+ 'quoteId': quoteId,
353
+ 'settleId': undefined,
354
+ 'type': 'spot',
355
+ 'spot': true,
356
+ 'margin': false,
357
+ 'swap': false,
358
+ 'future': false,
359
+ 'option': false,
360
+ 'active': undefined,
361
+ 'contract': false,
362
+ 'linear': undefined,
363
+ 'inverse': undefined,
364
+ 'taker': this.safeNumber(fees, 'taker'),
365
+ 'maker': this.safeNumber(fees, 'maker'),
366
+ 'contractSize': undefined,
367
+ 'expiry': undefined,
368
+ 'expiryDatetime': undefined,
369
+ 'optionType': undefined,
370
+ 'strike': undefined,
371
+ 'precision': {
372
+ 'amount': this.parseNumber(this.parsePrecision(this.safeString(first, 'scale'))),
373
+ 'price': this.parseNumber(this.parsePrecision(this.safeString(second, 'scale'))),
374
+ },
375
+ 'limits': {
376
+ 'leverage': {
377
+ 'min': undefined,
378
+ 'max': undefined,
375
379
  },
376
- 'limits': {
377
- 'leverage': {
378
- 'min': undefined,
379
- 'max': undefined,
380
- },
381
- 'amount': {
382
- 'min': this.safeNumber(first, 'minOffer'),
383
- 'max': undefined,
384
- },
385
- 'price': {
386
- 'min': undefined,
387
- 'max': undefined,
388
- },
389
- 'cost': {
390
- 'min': this.safeNumber(second, 'minOffer'),
391
- 'max': undefined,
392
- },
380
+ 'amount': {
381
+ 'min': this.safeNumber(first, 'minOffer'),
382
+ 'max': undefined,
393
383
  },
394
- 'created': undefined,
395
- 'info': item,
396
- });
397
- }
398
- return result;
384
+ 'price': {
385
+ 'min': undefined,
386
+ 'max': undefined,
387
+ },
388
+ 'cost': {
389
+ 'min': undefined,
390
+ 'max': undefined,
391
+ },
392
+ },
393
+ 'created': undefined,
394
+ 'info': item,
395
+ };
399
396
  }
400
397
  async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
401
398
  /**
package/js/ccxt.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
5
  import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.1.51";
7
+ declare const version = "4.1.52";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -33,7 +33,6 @@ import bitpanda from './src/bitpanda.js';
33
33
  import bitrue from './src/bitrue.js';
34
34
  import bitso from './src/bitso.js';
35
35
  import bitstamp from './src/bitstamp.js';
36
- import bitstamp1 from './src/bitstamp1.js';
37
36
  import bittrex from './src/bittrex.js';
38
37
  import bitvavo from './src/bitvavo.js';
39
38
  import bl3p from './src/bl3p.js';
@@ -81,7 +80,6 @@ import kucoinfutures from './src/kucoinfutures.js';
81
80
  import kuna from './src/kuna.js';
82
81
  import latoken from './src/latoken.js';
83
82
  import lbank from './src/lbank.js';
84
- import lbank2 from './src/lbank2.js';
85
83
  import luno from './src/luno.js';
86
84
  import lykke from './src/lykke.js';
87
85
  import mercado from './src/mercado.js';
@@ -200,7 +198,6 @@ declare const exchanges: {
200
198
  bitrue: typeof bitrue;
201
199
  bitso: typeof bitso;
202
200
  bitstamp: typeof bitstamp;
203
- bitstamp1: typeof bitstamp1;
204
201
  bittrex: typeof bittrex;
205
202
  bitvavo: typeof bitvavo;
206
203
  bl3p: typeof bl3p;
@@ -248,7 +245,6 @@ declare const exchanges: {
248
245
  kuna: typeof kuna;
249
246
  latoken: typeof latoken;
250
247
  lbank: typeof lbank;
251
- lbank2: typeof lbank2;
252
248
  luno: typeof luno;
253
249
  lykke: typeof lykke;
254
250
  mercado: typeof mercado;
@@ -438,7 +434,6 @@ declare const ccxt: {
438
434
  bitrue: typeof bitrue;
439
435
  bitso: typeof bitso;
440
436
  bitstamp: typeof bitstamp;
441
- bitstamp1: typeof bitstamp1;
442
437
  bittrex: typeof bittrex;
443
438
  bitvavo: typeof bitvavo;
444
439
  bl3p: typeof bl3p;
@@ -486,7 +481,6 @@ declare const ccxt: {
486
481
  kuna: typeof kuna;
487
482
  latoken: typeof latoken;
488
483
  lbank: typeof lbank;
489
- lbank2: typeof lbank2;
490
484
  luno: typeof luno;
491
485
  lykke: typeof lykke;
492
486
  mercado: typeof mercado;
@@ -516,5 +510,5 @@ declare const ccxt: {
516
510
  zaif: typeof zaif;
517
511
  zonda: typeof zonda;
518
512
  } & typeof functions & typeof errors;
519
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
513
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
520
514
  export default ccxt;
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.1.52';
41
+ const version = '4.1.53';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -69,7 +69,6 @@ import bitpanda from './src/bitpanda.js';
69
69
  import bitrue from './src/bitrue.js';
70
70
  import bitso from './src/bitso.js';
71
71
  import bitstamp from './src/bitstamp.js';
72
- import bitstamp1 from './src/bitstamp1.js';
73
72
  import bittrex from './src/bittrex.js';
74
73
  import bitvavo from './src/bitvavo.js';
75
74
  import bl3p from './src/bl3p.js';
@@ -117,7 +116,6 @@ import kucoinfutures from './src/kucoinfutures.js';
117
116
  import kuna from './src/kuna.js';
118
117
  import latoken from './src/latoken.js';
119
118
  import lbank from './src/lbank.js';
120
- import lbank2 from './src/lbank2.js';
121
119
  import luno from './src/luno.js';
122
120
  import lykke from './src/lykke.js';
123
121
  import mercado from './src/mercado.js';
@@ -237,7 +235,6 @@ const exchanges = {
237
235
  'bitrue': bitrue,
238
236
  'bitso': bitso,
239
237
  'bitstamp': bitstamp,
240
- 'bitstamp1': bitstamp1,
241
238
  'bittrex': bittrex,
242
239
  'bitvavo': bitvavo,
243
240
  'bl3p': bl3p,
@@ -285,7 +282,6 @@ const exchanges = {
285
282
  'kuna': kuna,
286
283
  'latoken': latoken,
287
284
  'lbank': lbank,
288
- 'lbank2': lbank2,
289
285
  'luno': luno,
290
286
  'lykke': lykke,
291
287
  'mercado': mercado,
@@ -390,6 +386,6 @@ pro.exchanges = Object.keys(pro);
390
386
  pro['Exchange'] = Exchange; // now the same for rest and ts
391
387
  //-----------------------------------------------------------------------------
392
388
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
393
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
389
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
394
390
  export default ccxt;
395
391
  //-----------------------------------------------------------------------------
@@ -149,6 +149,7 @@ interface Exchange {
149
149
  privateGetV5AssetWithdrawWithdrawableAmount(params?: {}): Promise<implicitReturnType>;
150
150
  privateGetV5UserQuerySubMembers(params?: {}): Promise<implicitReturnType>;
151
151
  privateGetV5UserQueryApi(params?: {}): Promise<implicitReturnType>;
152
+ privateGetV5UserSubApikeys(params?: {}): Promise<implicitReturnType>;
152
153
  privateGetV5UserGetMemberType(params?: {}): Promise<implicitReturnType>;
153
154
  privateGetV5UserAffCustomerInfo(params?: {}): Promise<implicitReturnType>;
154
155
  privateGetV5UserDelSubmember(params?: {}): Promise<implicitReturnType>;
@@ -1,21 +1,63 @@
1
1
  import { implicitReturnType } from '../base/types.js';
2
2
  import { Exchange as _Exchange } from '../base/Exchange.js';
3
3
  interface Exchange {
4
- publicGetCurrencyPairs(params?: {}): Promise<implicitReturnType>;
5
- publicGetTicker(params?: {}): Promise<implicitReturnType>;
6
- publicGetDepth(params?: {}): Promise<implicitReturnType>;
7
- publicGetTrades(params?: {}): Promise<implicitReturnType>;
8
- publicGetKline(params?: {}): Promise<implicitReturnType>;
9
- publicGetAccuracy(params?: {}): Promise<implicitReturnType>;
10
- privatePostUserInfo(params?: {}): Promise<implicitReturnType>;
11
- privatePostCreateOrder(params?: {}): Promise<implicitReturnType>;
12
- privatePostCancelOrder(params?: {}): Promise<implicitReturnType>;
13
- privatePostOrdersInfo(params?: {}): Promise<implicitReturnType>;
14
- privatePostOrdersInfoHistory(params?: {}): Promise<implicitReturnType>;
15
- privatePostWithdraw(params?: {}): Promise<implicitReturnType>;
16
- privatePostWithdrawCancel(params?: {}): Promise<implicitReturnType>;
17
- privatePostWithdraws(params?: {}): Promise<implicitReturnType>;
18
- privatePostWithdrawConfigs(params?: {}): Promise<implicitReturnType>;
4
+ spotPublicGetCurrencyPairs(params?: {}): Promise<implicitReturnType>;
5
+ spotPublicGetAccuracy(params?: {}): Promise<implicitReturnType>;
6
+ spotPublicGetUsdToCny(params?: {}): Promise<implicitReturnType>;
7
+ spotPublicGetWithdrawConfigs(params?: {}): Promise<implicitReturnType>;
8
+ spotPublicGetTimestamp(params?: {}): Promise<implicitReturnType>;
9
+ spotPublicGetTicker24hr(params?: {}): Promise<implicitReturnType>;
10
+ spotPublicGetTicker(params?: {}): Promise<implicitReturnType>;
11
+ spotPublicGetDepth(params?: {}): Promise<implicitReturnType>;
12
+ spotPublicGetIncrDepth(params?: {}): Promise<implicitReturnType>;
13
+ spotPublicGetTrades(params?: {}): Promise<implicitReturnType>;
14
+ spotPublicGetKline(params?: {}): Promise<implicitReturnType>;
15
+ spotPublicGetSupplementSystemPing(params?: {}): Promise<implicitReturnType>;
16
+ spotPublicGetSupplementIncrDepth(params?: {}): Promise<implicitReturnType>;
17
+ spotPublicGetSupplementTrades(params?: {}): Promise<implicitReturnType>;
18
+ spotPublicGetSupplementTickerPrice(params?: {}): Promise<implicitReturnType>;
19
+ spotPublicGetSupplementTickerBookTicker(params?: {}): Promise<implicitReturnType>;
20
+ spotPublicPostSupplementSystemStatus(params?: {}): Promise<implicitReturnType>;
21
+ spotPrivatePostUserInfo(params?: {}): Promise<implicitReturnType>;
22
+ spotPrivatePostSubscribeGetKey(params?: {}): Promise<implicitReturnType>;
23
+ spotPrivatePostSubscribeRefreshKey(params?: {}): Promise<implicitReturnType>;
24
+ spotPrivatePostSubscribeDestroyKey(params?: {}): Promise<implicitReturnType>;
25
+ spotPrivatePostGetDepositAddress(params?: {}): Promise<implicitReturnType>;
26
+ spotPrivatePostDepositHistory(params?: {}): Promise<implicitReturnType>;
27
+ spotPrivatePostCreateOrder(params?: {}): Promise<implicitReturnType>;
28
+ spotPrivatePostBatchCreateOrder(params?: {}): Promise<implicitReturnType>;
29
+ spotPrivatePostCancelOrder(params?: {}): Promise<implicitReturnType>;
30
+ spotPrivatePostCancelClientOrders(params?: {}): Promise<implicitReturnType>;
31
+ spotPrivatePostOrdersInfo(params?: {}): Promise<implicitReturnType>;
32
+ spotPrivatePostOrdersInfoHistory(params?: {}): Promise<implicitReturnType>;
33
+ spotPrivatePostOrderTransactionDetail(params?: {}): Promise<implicitReturnType>;
34
+ spotPrivatePostTransactionHistory(params?: {}): Promise<implicitReturnType>;
35
+ spotPrivatePostOrdersInfoNoDeal(params?: {}): Promise<implicitReturnType>;
36
+ spotPrivatePostWithdraw(params?: {}): Promise<implicitReturnType>;
37
+ spotPrivatePostWithdrawCancel(params?: {}): Promise<implicitReturnType>;
38
+ spotPrivatePostWithdraws(params?: {}): Promise<implicitReturnType>;
39
+ spotPrivatePostSupplementUserInfo(params?: {}): Promise<implicitReturnType>;
40
+ spotPrivatePostSupplementWithdraw(params?: {}): Promise<implicitReturnType>;
41
+ spotPrivatePostSupplementDepositHistory(params?: {}): Promise<implicitReturnType>;
42
+ spotPrivatePostSupplementWithdraws(params?: {}): Promise<implicitReturnType>;
43
+ spotPrivatePostSupplementGetDepositAddress(params?: {}): Promise<implicitReturnType>;
44
+ spotPrivatePostSupplementAssetDetail(params?: {}): Promise<implicitReturnType>;
45
+ spotPrivatePostSupplementCustomerTradeFee(params?: {}): Promise<implicitReturnType>;
46
+ spotPrivatePostSupplementApiRestrictions(params?: {}): Promise<implicitReturnType>;
47
+ spotPrivatePostSupplementSystemPing(params?: {}): Promise<implicitReturnType>;
48
+ spotPrivatePostSupplementCreateOrderTest(params?: {}): Promise<implicitReturnType>;
49
+ spotPrivatePostSupplementCreateOrder(params?: {}): Promise<implicitReturnType>;
50
+ spotPrivatePostSupplementCancelOrder(params?: {}): Promise<implicitReturnType>;
51
+ spotPrivatePostSupplementCancelOrderBySymbol(params?: {}): Promise<implicitReturnType>;
52
+ spotPrivatePostSupplementOrdersInfo(params?: {}): Promise<implicitReturnType>;
53
+ spotPrivatePostSupplementOrdersInfoNoDeal(params?: {}): Promise<implicitReturnType>;
54
+ spotPrivatePostSupplementOrdersInfoHistory(params?: {}): Promise<implicitReturnType>;
55
+ spotPrivatePostSupplementUserInfoAccount(params?: {}): Promise<implicitReturnType>;
56
+ spotPrivatePostSupplementTransactionHistory(params?: {}): Promise<implicitReturnType>;
57
+ contractPublicGetCfdOpenApiV1PubGetTime(params?: {}): Promise<implicitReturnType>;
58
+ contractPublicGetCfdOpenApiV1PubInstrument(params?: {}): Promise<implicitReturnType>;
59
+ contractPublicGetCfdOpenApiV1PubMarketData(params?: {}): Promise<implicitReturnType>;
60
+ contractPublicGetCfdOpenApiV1PubMarketOrder(params?: {}): Promise<implicitReturnType>;
19
61
  }
20
62
  declare abstract class Exchange extends _Exchange {
21
63
  }
package/js/src/ace.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import Exchange from './abstract/ace.js';
2
- import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade } from './base/types.js';
2
+ import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Tickers, Trade } from './base/types.js';
3
3
  /**
4
4
  * @class ace
5
5
  * @extends Exchange
6
6
  */
7
7
  export default class ace extends Exchange {
8
8
  describe(): any;
9
- fetchMarkets(params?: {}): Promise<any[]>;
9
+ fetchMarkets(params?: {}): Promise<Market[]>;
10
+ parseMarket(market: any): Market;
10
11
  parseTicker(ticker: any, market?: any): Ticker;
11
12
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
13
  fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
@@ -16,12 +17,12 @@ export default class ace extends Exchange {
16
17
  parseOrderStatus(status: any): string;
17
18
  parseOrder(order: any, market?: any): Order;
18
19
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
19
- cancelOrder(id: string, symbol?: string, params?: {}): Promise<any>;
20
- fetchOrder(id: string, symbol?: string, params?: {}): Promise<Order>;
21
- fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
20
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
21
+ fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
22
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
22
23
  parseTrade(trade: any, market?: any): Trade;
23
- fetchOrderTrades(id: string, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
24
- fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
24
+ fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
25
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
25
26
  parseBalance(response: any): Balances;
26
27
  fetchBalance(params?: {}): Promise<Balances>;
27
28
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {