ccxt 4.1.52 → 4.1.54

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 (207) hide show
  1. package/README.md +9 -10
  2. package/dist/ccxt.browser.js +3517 -3374
  3. package/dist/ccxt.browser.min.js +10 -10
  4. package/dist/cjs/ccxt.js +4 -7
  5. package/dist/cjs/src/abstract/p2b.js +9 -0
  6. package/dist/cjs/src/ace.js +56 -59
  7. package/dist/cjs/src/ascendex.js +1 -2
  8. package/dist/cjs/src/base/Exchange.js +11 -17
  9. package/dist/cjs/src/bingx.js +48 -8
  10. package/dist/cjs/src/bitget.js +670 -405
  11. package/dist/cjs/src/bybit.js +2 -11
  12. package/dist/cjs/src/cryptocom.js +1 -0
  13. package/dist/cjs/src/digifinex.js +9 -6
  14. package/dist/cjs/src/lbank.js +2333 -443
  15. package/dist/cjs/src/ndax.js +59 -61
  16. package/dist/cjs/src/novadax.js +57 -59
  17. package/dist/cjs/src/oceanex.js +58 -60
  18. package/dist/cjs/src/okcoin.js +1 -9
  19. package/dist/cjs/src/okx.js +0 -7
  20. package/dist/cjs/src/p2b.js +1246 -0
  21. package/dist/cjs/src/poloniex.js +55 -57
  22. package/dist/cjs/src/poloniexfutures.js +67 -70
  23. package/dist/cjs/src/pro/bingx.js +18 -11
  24. package/dist/cjs/src/pro/poloniexfutures.js +9 -0
  25. package/dist/cjs/src/probit.js +62 -65
  26. package/dist/cjs/src/timex.js +1 -5
  27. package/dist/cjs/src/upbit.js +56 -58
  28. package/dist/cjs/src/wazirx.js +72 -74
  29. package/dist/cjs/src/whitebit.js +88 -91
  30. package/dist/cjs/src/woo.js +75 -77
  31. package/dist/cjs/src/zaif.js +57 -71
  32. package/dist/cjs/src/zonda.js +67 -70
  33. package/js/ccxt.d.ts +5 -8
  34. package/js/ccxt.js +4 -6
  35. package/js/src/abstract/bitget.d.ts +495 -254
  36. package/js/src/abstract/bybit.d.ts +1 -0
  37. package/js/src/abstract/lbank.d.ts +57 -15
  38. package/js/src/abstract/p2b.d.ts +25 -0
  39. package/js/src/ace.d.ts +9 -8
  40. package/js/src/ace.js +56 -59
  41. package/js/src/alpaca.d.ts +5 -5
  42. package/js/src/ascendex.d.ts +17 -17
  43. package/js/src/ascendex.js +1 -2
  44. package/js/src/base/Exchange.d.ts +5 -5
  45. package/js/src/base/Exchange.js +11 -17
  46. package/js/src/base/types.d.ts +73 -68
  47. package/js/src/bigone.d.ts +12 -12
  48. package/js/src/binance.d.ts +37 -37
  49. package/js/src/bingx.d.ts +20 -20
  50. package/js/src/bingx.js +48 -8
  51. package/js/src/bit2c.d.ts +5 -5
  52. package/js/src/bitbank.d.ts +6 -6
  53. package/js/src/bitbns.d.ts +8 -8
  54. package/js/src/bitfinex.d.ts +11 -11
  55. package/js/src/bitfinex2.d.ts +15 -15
  56. package/js/src/bitflyer.d.ts +10 -10
  57. package/js/src/bitforex.d.ts +6 -6
  58. package/js/src/bitget.d.ts +28 -28
  59. package/js/src/bitget.js +670 -405
  60. package/js/src/bithumb.d.ts +5 -5
  61. package/js/src/bitmart.d.ts +23 -23
  62. package/js/src/bitmex.d.ts +19 -19
  63. package/js/src/bitopro.d.ts +15 -15
  64. package/js/src/bitpanda.d.ts +13 -13
  65. package/js/src/bitrue.d.ts +12 -12
  66. package/js/src/bitso.d.ts +13 -13
  67. package/js/src/bitstamp.d.ts +12 -12
  68. package/js/src/bitstamp1.d.ts +4 -4
  69. package/js/src/bittrex.d.ts +18 -18
  70. package/js/src/bitvavo.d.ts +11 -11
  71. package/js/src/bl3p.d.ts +2 -2
  72. package/js/src/blockchaincom.d.ts +14 -14
  73. package/js/src/btcalpha.d.ts +11 -11
  74. package/js/src/btcbox.d.ts +6 -6
  75. package/js/src/btcmarkets.d.ts +13 -13
  76. package/js/src/btcturk.d.ts +7 -7
  77. package/js/src/bybit.d.ts +33 -33
  78. package/js/src/bybit.js +2 -11
  79. package/js/src/cex.d.ts +7 -7
  80. package/js/src/coinbase.d.ts +21 -21
  81. package/js/src/coinbasepro.d.ts +14 -14
  82. package/js/src/coincheck.d.ts +6 -6
  83. package/js/src/coinex.d.ts +24 -24
  84. package/js/src/coinlist.d.ts +16 -16
  85. package/js/src/coinmate.d.ts +7 -7
  86. package/js/src/coinone.d.ts +6 -6
  87. package/js/src/coinsph.d.ts +11 -11
  88. package/js/src/coinspot.d.ts +4 -4
  89. package/js/src/cryptocom.d.ts +19 -19
  90. package/js/src/cryptocom.js +1 -0
  91. package/js/src/currencycom.d.ts +12 -12
  92. package/js/src/delta.d.ts +14 -14
  93. package/js/src/deribit.d.ts +16 -16
  94. package/js/src/digifinex.d.ts +22 -22
  95. package/js/src/digifinex.js +9 -6
  96. package/js/src/exmo.d.ts +15 -15
  97. package/js/src/gate.d.ts +25 -25
  98. package/js/src/gemini.d.ts +7 -7
  99. package/js/src/hitbtc.d.ts +20 -20
  100. package/js/src/hollaex.d.ts +16 -16
  101. package/js/src/htx.d.ts +34 -34
  102. package/js/src/huobijp.d.ts +18 -18
  103. package/js/src/idex.d.ts +14 -14
  104. package/js/src/independentreserve.d.ts +6 -6
  105. package/js/src/indodax.d.ts +7 -7
  106. package/js/src/kraken.d.ts +18 -18
  107. package/js/src/krakenfutures.d.ts +14 -14
  108. package/js/src/kucoin.d.ts +17 -17
  109. package/js/src/kucoinfutures.d.ts +12 -12
  110. package/js/src/kuna.d.ts +13 -13
  111. package/js/src/latoken.d.ts +10 -10
  112. package/js/src/lbank.d.ts +66 -13
  113. package/js/src/lbank.js +2334 -444
  114. package/js/src/lbank2.d.ts +11 -11
  115. package/js/src/luno.d.ts +11 -11
  116. package/js/src/lykke.d.ts +9 -9
  117. package/js/src/mercado.d.ts +6 -6
  118. package/js/src/mexc.d.ts +28 -28
  119. package/js/src/ndax.d.ts +13 -12
  120. package/js/src/ndax.js +59 -61
  121. package/js/src/novadax.d.ts +14 -13
  122. package/js/src/novadax.js +57 -59
  123. package/js/src/oceanex.d.ts +12 -11
  124. package/js/src/oceanex.js +58 -60
  125. package/js/src/okcoin.d.ts +13 -14
  126. package/js/src/okcoin.js +1 -9
  127. package/js/src/okx.d.ts +30 -31
  128. package/js/src/okx.js +0 -7
  129. package/js/src/p2b.d.ts +34 -0
  130. package/js/src/p2b.js +1246 -0
  131. package/js/src/paymium.d.ts +2 -2
  132. package/js/src/phemex.d.ts +19 -19
  133. package/js/src/poloniex.d.ts +17 -16
  134. package/js/src/poloniex.js +55 -57
  135. package/js/src/poloniexfutures.d.ts +13 -12
  136. package/js/src/poloniexfutures.js +67 -70
  137. package/js/src/pro/alpaca.d.ts +3 -3
  138. package/js/src/pro/ascendex.d.ts +2 -2
  139. package/js/src/pro/binance.d.ts +12 -12
  140. package/js/src/pro/bingx.d.ts +3 -3
  141. package/js/src/pro/bingx.js +19 -12
  142. package/js/src/pro/bitfinex.d.ts +3 -3
  143. package/js/src/pro/bitfinex2.d.ts +3 -3
  144. package/js/src/pro/bitget.d.ts +5 -5
  145. package/js/src/pro/bitmart.d.ts +2 -2
  146. package/js/src/pro/bitmex.d.ts +3 -3
  147. package/js/src/pro/bitpanda.d.ts +5 -5
  148. package/js/src/pro/bitrue.d.ts +2 -2
  149. package/js/src/pro/bitstamp.d.ts +2 -2
  150. package/js/src/pro/bittrex.d.ts +3 -3
  151. package/js/src/pro/bitvavo.d.ts +3 -3
  152. package/js/src/pro/blockchaincom.d.ts +2 -2
  153. package/js/src/pro/bybit.d.ts +7 -7
  154. package/js/src/pro/cex.d.ts +4 -4
  155. package/js/src/pro/coinbasepro.d.ts +6 -6
  156. package/js/src/pro/coinex.d.ts +3 -3
  157. package/js/src/pro/cryptocom.d.ts +7 -7
  158. package/js/src/pro/deribit.d.ts +3 -3
  159. package/js/src/pro/exmo.d.ts +2 -2
  160. package/js/src/pro/gate.d.ts +6 -6
  161. package/js/src/pro/gemini.d.ts +2 -2
  162. package/js/src/pro/hitbtc.d.ts +5 -5
  163. package/js/src/pro/hollaex.d.ts +3 -3
  164. package/js/src/pro/htx.d.ts +4 -4
  165. package/js/src/pro/idex.d.ts +3 -3
  166. package/js/src/pro/kraken.d.ts +8 -8
  167. package/js/src/pro/krakenfutures.d.ts +6 -6
  168. package/js/src/pro/kucoin.d.ts +4 -4
  169. package/js/src/pro/kucoinfutures.d.ts +3 -3
  170. package/js/src/pro/mexc.d.ts +3 -3
  171. package/js/src/pro/okcoin.d.ts +2 -2
  172. package/js/src/pro/okx.d.ts +9 -9
  173. package/js/src/pro/phemex.d.ts +3 -3
  174. package/js/src/pro/poloniex.d.ts +4 -4
  175. package/js/src/pro/poloniexfutures.d.ts +3 -3
  176. package/js/src/pro/poloniexfutures.js +9 -0
  177. package/js/src/pro/probit.d.ts +3 -3
  178. package/js/src/pro/wazirx.d.ts +4 -4
  179. package/js/src/pro/whitebit.d.ts +3 -3
  180. package/js/src/pro/woo.d.ts +3 -3
  181. package/js/src/probit.d.ts +13 -12
  182. package/js/src/probit.js +62 -65
  183. package/js/src/tidex.d.ts +7 -7
  184. package/js/src/timex.d.ts +11 -11
  185. package/js/src/timex.js +1 -5
  186. package/js/src/tokocrypto.d.ts +11 -11
  187. package/js/src/upbit.d.ts +13 -12
  188. package/js/src/upbit.js +56 -58
  189. package/js/src/wavesexchange.d.ts +10 -10
  190. package/js/src/wazirx.d.ts +8 -7
  191. package/js/src/wazirx.js +72 -74
  192. package/js/src/whitebit.d.ts +15 -14
  193. package/js/src/whitebit.js +88 -91
  194. package/js/src/woo.d.ts +22 -21
  195. package/js/src/woo.js +75 -77
  196. package/js/src/yobit.d.ts +7 -7
  197. package/js/src/zaif.d.ts +6 -5
  198. package/js/src/zaif.js +57 -71
  199. package/js/src/zonda.d.ts +8 -7
  200. package/js/src/zonda.js +67 -70
  201. package/package.json +1 -1
  202. package/skip-tests.json +7 -15
  203. package/test.ts +0 -0
  204. package/js/src/abstract/bitstamp1.d.ts +0 -26
  205. package/js/src/abstract/lbank2.d.ts +0 -64
  206. package/js/src/abstract/lbank2.js +0 -11
  207. /package/js/src/abstract/{bitstamp1.js → p2b.js} +0 -0
@@ -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.53";
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';
@@ -94,6 +92,7 @@ import okcoin from './src/okcoin.js';
94
92
  import okex from './src/okex.js';
95
93
  import okex5 from './src/okex5.js';
96
94
  import okx from './src/okx.js';
95
+ import p2b from './src/p2b.js';
97
96
  import paymium from './src/paymium.js';
98
97
  import phemex from './src/phemex.js';
99
98
  import poloniex from './src/poloniex.js';
@@ -200,7 +199,6 @@ declare const exchanges: {
200
199
  bitrue: typeof bitrue;
201
200
  bitso: typeof bitso;
202
201
  bitstamp: typeof bitstamp;
203
- bitstamp1: typeof bitstamp1;
204
202
  bittrex: typeof bittrex;
205
203
  bitvavo: typeof bitvavo;
206
204
  bl3p: typeof bl3p;
@@ -248,7 +246,6 @@ declare const exchanges: {
248
246
  kuna: typeof kuna;
249
247
  latoken: typeof latoken;
250
248
  lbank: typeof lbank;
251
- lbank2: typeof lbank2;
252
249
  luno: typeof luno;
253
250
  lykke: typeof lykke;
254
251
  mercado: typeof mercado;
@@ -261,6 +258,7 @@ declare const exchanges: {
261
258
  okex: typeof okex;
262
259
  okex5: typeof okex5;
263
260
  okx: typeof okx;
261
+ p2b: typeof p2b;
264
262
  paymium: typeof paymium;
265
263
  phemex: typeof phemex;
266
264
  poloniex: typeof poloniex;
@@ -438,7 +436,6 @@ declare const ccxt: {
438
436
  bitrue: typeof bitrue;
439
437
  bitso: typeof bitso;
440
438
  bitstamp: typeof bitstamp;
441
- bitstamp1: typeof bitstamp1;
442
439
  bittrex: typeof bittrex;
443
440
  bitvavo: typeof bitvavo;
444
441
  bl3p: typeof bl3p;
@@ -486,7 +483,6 @@ declare const ccxt: {
486
483
  kuna: typeof kuna;
487
484
  latoken: typeof latoken;
488
485
  lbank: typeof lbank;
489
- lbank2: typeof lbank2;
490
486
  luno: typeof luno;
491
487
  lykke: typeof lykke;
492
488
  mercado: typeof mercado;
@@ -499,6 +495,7 @@ declare const ccxt: {
499
495
  okex: typeof okex;
500
496
  okex5: typeof okex5;
501
497
  okx: typeof okx;
498
+ p2b: typeof p2b;
502
499
  paymium: typeof paymium;
503
500
  phemex: typeof phemex;
504
501
  poloniex: typeof poloniex;
@@ -516,5 +513,5 @@ declare const ccxt: {
516
513
  zaif: typeof zaif;
517
514
  zonda: typeof zonda;
518
515
  } & 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, };
516
+ 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
520
517
  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.54';
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';
@@ -130,6 +128,7 @@ import okcoin from './src/okcoin.js';
130
128
  import okex from './src/okex.js';
131
129
  import okex5 from './src/okex5.js';
132
130
  import okx from './src/okx.js';
131
+ import p2b from './src/p2b.js';
133
132
  import paymium from './src/paymium.js';
134
133
  import phemex from './src/phemex.js';
135
134
  import poloniex from './src/poloniex.js';
@@ -237,7 +236,6 @@ const exchanges = {
237
236
  'bitrue': bitrue,
238
237
  'bitso': bitso,
239
238
  'bitstamp': bitstamp,
240
- 'bitstamp1': bitstamp1,
241
239
  'bittrex': bittrex,
242
240
  'bitvavo': bitvavo,
243
241
  'bl3p': bl3p,
@@ -285,7 +283,6 @@ const exchanges = {
285
283
  'kuna': kuna,
286
284
  'latoken': latoken,
287
285
  'lbank': lbank,
288
- 'lbank2': lbank2,
289
286
  'luno': luno,
290
287
  'lykke': lykke,
291
288
  'mercado': mercado,
@@ -298,6 +295,7 @@ const exchanges = {
298
295
  'okex': okex,
299
296
  'okex5': okex5,
300
297
  'okx': okx,
298
+ 'p2b': p2b,
301
299
  'paymium': paymium,
302
300
  'phemex': phemex,
303
301
  'poloniex': poloniex,
@@ -390,6 +388,6 @@ pro.exchanges = Object.keys(pro);
390
388
  pro['Exchange'] = Exchange; // now the same for rest and ts
391
389
  //-----------------------------------------------------------------------------
392
390
  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, };
391
+ 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, p2b, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
394
392
  export default ccxt;
395
393
  //-----------------------------------------------------------------------------