ccxt 4.3.88 → 4.3.89

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 (85) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/ace.js +1 -0
  5. package/dist/cjs/src/alpaca.js +1 -0
  6. package/dist/cjs/src/ascendex.js +7 -19
  7. package/dist/cjs/src/bigone.js +1 -0
  8. package/dist/cjs/src/bingx.js +1 -0
  9. package/dist/cjs/src/bit2c.js +1 -0
  10. package/dist/cjs/src/bitbank.js +1 -0
  11. package/dist/cjs/src/bitfinex.js +1 -0
  12. package/dist/cjs/src/bitflyer.js +1 -0
  13. package/dist/cjs/src/bitget.js +1 -0
  14. package/dist/cjs/src/bitmex.js +1 -0
  15. package/dist/cjs/src/bitopro.js +1 -0
  16. package/dist/cjs/src/bitrue.js +62 -71
  17. package/dist/cjs/src/bitso.js +1 -0
  18. package/dist/cjs/src/bitstamp.js +1 -0
  19. package/dist/cjs/src/bitvavo.js +1 -0
  20. package/dist/cjs/src/blockchaincom.js +1 -0
  21. package/dist/cjs/src/btcalpha.js +1 -0
  22. package/dist/cjs/src/btcbox.js +1 -0
  23. package/dist/cjs/src/btcmarkets.js +1 -0
  24. package/dist/cjs/src/bybit.js +2 -0
  25. package/dist/cjs/src/cex.js +1 -0
  26. package/dist/cjs/src/coinbaseexchange.js +1 -0
  27. package/dist/cjs/src/cryptocom.js +0 -12
  28. package/dist/cjs/src/kraken.js +48 -48
  29. package/dist/cjs/src/mexc.js +1 -61
  30. package/dist/cjs/src/okcoin.js +4 -9
  31. package/dist/cjs/src/onetrading.js +1 -0
  32. package/dist/cjs/src/phemex.js +1 -0
  33. package/dist/cjs/src/poloniexfutures.js +1 -0
  34. package/dist/cjs/src/pro/bitvavo.js +1 -0
  35. package/dist/cjs/src/pro/bybit.js +290 -1
  36. package/dist/cjs/src/pro/cex.js +1 -0
  37. package/dist/cjs/src/probit.js +1 -0
  38. package/dist/cjs/src/vertex.js +1 -0
  39. package/dist/cjs/src/woo.js +1 -0
  40. package/dist/cjs/src/woofipro.js +1 -0
  41. package/js/ccxt.d.ts +1 -1
  42. package/js/ccxt.js +1 -1
  43. package/js/src/ace.js +1 -0
  44. package/js/src/alpaca.js +1 -0
  45. package/js/src/ascendex.d.ts +0 -1
  46. package/js/src/ascendex.js +7 -19
  47. package/js/src/bigone.js +1 -0
  48. package/js/src/bingx.js +1 -0
  49. package/js/src/bit2c.js +1 -0
  50. package/js/src/bitbank.js +1 -0
  51. package/js/src/bitfinex.js +1 -0
  52. package/js/src/bitflyer.js +1 -0
  53. package/js/src/bitget.js +1 -0
  54. package/js/src/bitmex.js +1 -0
  55. package/js/src/bitopro.js +1 -0
  56. package/js/src/bitrue.d.ts +0 -1
  57. package/js/src/bitrue.js +62 -71
  58. package/js/src/bitso.js +1 -0
  59. package/js/src/bitstamp.js +1 -0
  60. package/js/src/bitvavo.js +1 -0
  61. package/js/src/blockchaincom.js +1 -0
  62. package/js/src/btcalpha.js +1 -0
  63. package/js/src/btcbox.js +1 -0
  64. package/js/src/btcmarkets.js +1 -0
  65. package/js/src/bybit.js +2 -0
  66. package/js/src/cex.js +1 -0
  67. package/js/src/coinbaseexchange.js +1 -0
  68. package/js/src/cryptocom.d.ts +0 -1
  69. package/js/src/cryptocom.js +0 -12
  70. package/js/src/kraken.js +48 -48
  71. package/js/src/mexc.js +1 -61
  72. package/js/src/okcoin.d.ts +0 -1
  73. package/js/src/okcoin.js +4 -9
  74. package/js/src/onetrading.js +1 -0
  75. package/js/src/phemex.js +1 -0
  76. package/js/src/poloniexfutures.js +1 -0
  77. package/js/src/pro/bitvavo.js +1 -0
  78. package/js/src/pro/bybit.d.ts +12 -1
  79. package/js/src/pro/bybit.js +291 -2
  80. package/js/src/pro/cex.js +1 -0
  81. package/js/src/probit.js +1 -0
  82. package/js/src/vertex.js +1 -0
  83. package/js/src/woo.js +1 -0
  84. package/js/src/woofipro.js +1 -0
  85. package/package.json +1 -1
package/js/src/bingx.js CHANGED
@@ -3649,6 +3649,7 @@ export default class bingx extends Exchange {
3649
3649
  * @see https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20details
3650
3650
  * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20details
3651
3651
  * @see https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order
3652
+ * @param {string} id the order id
3652
3653
  * @param {string} symbol unified symbol of the market the order was made in
3653
3654
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3654
3655
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bit2c.js CHANGED
@@ -502,6 +502,7 @@ export default class bit2c extends Exchange {
502
502
  * @name bit2c#fetchOrder
503
503
  * @description fetches information on an order made by the user
504
504
  * @see https://bit2c.co.il/home/api#getoid
505
+ * @param {string} id the order id
505
506
  * @param {string} symbol unified market symbol
506
507
  * @param {object} [params] extra parameters specific to the exchange API endpoint
507
508
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bitbank.js CHANGED
@@ -720,6 +720,7 @@ export default class bitbank extends Exchange {
720
720
  * @name bitbank#fetchOrder
721
721
  * @description fetches information on an order made by the user
722
722
  * @see https://github.com/bitbankinc/bitbank-api-docs/blob/38d6d7c6f486c793872fd4b4087a0d090a04cd0a/rest-api.md#fetch-order-information
723
+ * @param {string} id the order id
723
724
  * @param {string} symbol unified symbol of the market the order was made in
724
725
  * @param {object} [params] extra parameters specific to the exchange API endpoint
725
726
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1336,6 +1336,7 @@ export default class bitfinex extends Exchange {
1336
1336
  * @name bitfinex#fetchOrder
1337
1337
  * @description fetches information on an order made by the user
1338
1338
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-order-status
1339
+ * @param {string} id the order id
1339
1340
  * @param {string} symbol not used by bitfinex fetchOrder
1340
1341
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1341
1342
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -728,6 +728,7 @@ export default class bitflyer extends Exchange {
728
728
  * @name bitflyer#fetchOrder
729
729
  * @description fetches information on an order made by the user
730
730
  * @see https://lightning.bitflyer.com/docs?lang=en#list-orders
731
+ * @param {string} id the order id
731
732
  * @param {string} symbol unified symbol of the market the order was made in
732
733
  * @param {object} [params] extra parameters specific to the exchange API endpoint
733
734
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bitget.js CHANGED
@@ -5104,6 +5104,7 @@ export default class bitget extends Exchange {
5104
5104
  * @description fetches information on an order made by the user
5105
5105
  * @see https://www.bitget.com/api-doc/spot/trade/Get-Order-Info
5106
5106
  * @see https://www.bitget.com/api-doc/contract/trade/Get-Order-Details
5107
+ * @param {string} id the order id
5107
5108
  * @param {string} symbol unified symbol of the market the order was made in
5108
5109
  * @param {object} [params] extra parameters specific to the exchange API endpoint
5109
5110
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bitmex.js CHANGED
@@ -887,6 +887,7 @@ export default class bitmex extends Exchange {
887
887
  * @name bitmex#fetchOrder
888
888
  * @description fetches information on an order made by the user
889
889
  * @see https://www.bitmex.com/api/explorer/#!/Order/Order_getOrders
890
+ * @param {string} id the order id
890
891
  * @param {string} symbol unified symbol of the market the order was made in
891
892
  * @param {object} [params] extra parameters specific to the exchange API endpoint
892
893
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bitopro.js CHANGED
@@ -1179,6 +1179,7 @@ export default class bitopro extends Exchange {
1179
1179
  * @name bitopro#fetchOrder
1180
1180
  * @description fetches information on an order made by the user
1181
1181
  * @see https://github.com/bitoex/bitopro-offical-api-docs/blob/master/api/v3/private/get_an_order_data.md
1182
+ * @param {string} id the order id
1182
1183
  * @param {string} symbol unified symbol of the market the order was made in
1183
1184
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1184
1185
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -16,7 +16,6 @@ export default class bitrue extends Exchange {
16
16
  info: any;
17
17
  }>;
18
18
  fetchTime(params?: {}): Promise<number>;
19
- safeNetwork(networkId: any): string;
20
19
  fetchCurrencies(params?: {}): Promise<Currencies>;
21
20
  fetchMarkets(params?: {}): Promise<Market[]>;
22
21
  parseMarket(market: Dict): Market;
package/js/src/bitrue.js CHANGED
@@ -338,6 +338,67 @@ export default class bitrue extends Exchange {
338
338
  'networks': {
339
339
  'ERC20': 'ETH',
340
340
  'TRC20': 'TRX',
341
+ 'AETERNITY': 'Aeternity',
342
+ 'AION': 'AION',
343
+ 'ALGO': 'Algorand',
344
+ 'ASK': 'ASK',
345
+ 'ATOM': 'ATOM',
346
+ 'AVAXC': 'AVAX C-Chain',
347
+ 'BCH': 'BCH',
348
+ 'BEP2': 'BEP2',
349
+ 'BEP20': 'BEP20',
350
+ 'Bitcoin': 'Bitcoin',
351
+ 'BRP20': 'BRP20',
352
+ 'ADA': 'Cardano',
353
+ 'CASINOCOIN': 'CasinoCoin',
354
+ 'CASINOCOIN-XRPL': 'CasinoCoin XRPL',
355
+ 'CONTENTOS': 'Contentos',
356
+ 'DASH': 'Dash',
357
+ 'DECOIN': 'Decoin',
358
+ 'DFI': 'DeFiChain',
359
+ 'DGB': 'DGB',
360
+ 'DIVI': 'Divi',
361
+ 'DOGE': 'dogecoin',
362
+ 'EOS': 'EOS',
363
+ 'ETC': 'ETC',
364
+ 'FILECOIN': 'Filecoin',
365
+ 'FREETON': 'FREETON',
366
+ 'HBAR': 'HBAR',
367
+ 'HEDERA': 'Hedera Hashgraph',
368
+ 'HRC20': 'HRC20',
369
+ 'ICON': 'ICON',
370
+ 'ICP': 'ICP',
371
+ 'IGNIS': 'Ignis',
372
+ 'INTERNETCOMPUTER': 'Internet Computer',
373
+ 'IOTA': 'IOTA',
374
+ 'KAVA': 'KAVA',
375
+ 'KSM': 'KSM',
376
+ 'LTC': 'LiteCoin',
377
+ 'LUNA': 'Luna',
378
+ 'MATIC': 'MATIC',
379
+ 'MOBILECOIN': 'Mobile Coin',
380
+ 'MONACOIN': 'MonaCoin',
381
+ 'XMR': 'Monero',
382
+ 'NEM': 'NEM',
383
+ 'NEP5': 'NEP5',
384
+ 'OMNI': 'OMNI',
385
+ 'PAC': 'PAC',
386
+ 'DOT': 'Polkadot',
387
+ 'RAVEN': 'Ravencoin',
388
+ 'SAFEX': 'Safex',
389
+ 'SOL': 'SOLANA',
390
+ 'SGB': 'Songbird',
391
+ 'XML': 'Stellar Lumens',
392
+ 'XYM': 'Symbol',
393
+ 'XTZ': 'Tezos',
394
+ 'theta': 'theta',
395
+ 'THETA': 'THETA',
396
+ 'VECHAIN': 'VeChain',
397
+ 'WANCHAIN': 'Wanchain',
398
+ 'XINFIN': 'XinFin Network',
399
+ 'XRP': 'XRP',
400
+ 'XRPL': 'XRPL',
401
+ 'ZIL': 'ZIL',
341
402
  },
342
403
  'defaultType': 'spot',
343
404
  'timeframes': {
@@ -510,77 +571,6 @@ export default class bitrue extends Exchange {
510
571
  //
511
572
  return this.safeInteger(response, 'serverTime');
512
573
  }
513
- safeNetwork(networkId) {
514
- const uppercaseNetworkId = networkId.toUpperCase();
515
- const networksById = {
516
- 'Aeternity': 'Aeternity',
517
- 'AION': 'AION',
518
- 'Algorand': 'Algorand',
519
- 'ASK': 'ASK',
520
- 'ATOM': 'ATOM',
521
- 'AVAX C-Chain': 'AVAX C-Chain',
522
- 'bch': 'bch',
523
- 'BCH': 'BCH',
524
- 'BEP2': 'BEP2',
525
- 'BEP20': 'BEP20',
526
- 'Bitcoin': 'Bitcoin',
527
- 'BRP20': 'BRP20',
528
- 'Cardano': 'ADA',
529
- 'CasinoCoin': 'CasinoCoin',
530
- 'CasinoCoin XRPL': 'CasinoCoin XRPL',
531
- 'Contentos': 'Contentos',
532
- 'Dash': 'Dash',
533
- 'Decoin': 'Decoin',
534
- 'DeFiChain': 'DeFiChain',
535
- 'DGB': 'DGB',
536
- 'Divi': 'Divi',
537
- 'dogecoin': 'DOGE',
538
- 'EOS': 'EOS',
539
- 'ERC20': 'ERC20',
540
- 'ETC': 'ETC',
541
- 'Filecoin': 'Filecoin',
542
- 'FREETON': 'FREETON',
543
- 'HBAR': 'HBAR',
544
- 'Hedera Hashgraph': 'Hedera Hashgraph',
545
- 'HRC20': 'HRC20',
546
- 'ICON': 'ICON',
547
- 'ICP': 'ICP',
548
- 'Ignis': 'Ignis',
549
- 'Internet Computer': 'Internet Computer',
550
- 'IOTA': 'IOTA',
551
- 'KAVA': 'KAVA',
552
- 'KSM': 'KSM',
553
- 'LiteCoin': 'LiteCoin',
554
- 'Luna': 'Luna',
555
- 'MATIC': 'MATIC',
556
- 'Mobile Coin': 'Mobile Coin',
557
- 'MonaCoin': 'MonaCoin',
558
- 'Monero': 'Monero',
559
- 'NEM': 'NEM',
560
- 'NEP5': 'NEP5',
561
- 'OMNI': 'OMNI',
562
- 'PAC': 'PAC',
563
- 'Polkadot': 'Polkadot',
564
- 'Ravencoin': 'Ravencoin',
565
- 'Safex': 'Safex',
566
- 'SOLANA': 'SOL',
567
- 'Songbird': 'Songbird',
568
- 'Stellar Lumens': 'Stellar Lumens',
569
- 'Symbol': 'Symbol',
570
- 'Tezos': 'XTZ',
571
- 'theta': 'theta',
572
- 'THETA': 'THETA',
573
- 'TRC20': 'TRC20',
574
- 'VeChain': 'VeChain',
575
- 'VECHAIN': 'VECHAIN',
576
- 'Wanchain': 'Wanchain',
577
- 'XinFin Network': 'XinFin Network',
578
- 'XRP': 'XRP',
579
- 'XRPL': 'XRPL',
580
- 'ZIL': 'ZIL',
581
- };
582
- return this.safeString2(networksById, networkId, uppercaseNetworkId, networkId);
583
- }
584
574
  async fetchCurrencies(params = {}) {
585
575
  /**
586
576
  * @method
@@ -2047,6 +2037,7 @@ export default class bitrue extends Exchange {
2047
2037
  * @see https://github.com/Bitrue-exchange/Spot-official-api-docs#query-order-user_data
2048
2038
  * @see https://www.bitrue.com/api-docs#query-order-user_data-hmac-sha256
2049
2039
  * @see https://www.bitrue.com/api_docs_includes_file/delivery.html#query-order-user_data-hmac-sha256
2040
+ * @param {string} id the order id
2050
2041
  * @param {string} symbol unified symbol of the market the order was made in
2051
2042
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2052
2043
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bitso.js CHANGED
@@ -1189,6 +1189,7 @@ export default class bitso extends Exchange {
1189
1189
  * @name bitso#fetchOrder
1190
1190
  * @description fetches information on an order made by the user
1191
1191
  * @see https://docs.bitso.com/bitso-api/docs/look-up-orders
1192
+ * @param {string} id the order id
1192
1193
  * @param {string} symbol not used by bitso fetchOrder
1193
1194
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1194
1195
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1544,6 +1544,7 @@ export default class bitstamp extends Exchange {
1544
1544
  * @name bitstamp#fetchOrder
1545
1545
  * @description fetches information on an order made by the user
1546
1546
  * @see https://www.bitstamp.net/api/#tag/Orders/operation/GetOrderStatus
1547
+ * @param {string} id the order id
1547
1548
  * @param {string} symbol unified symbol of the market the order was made in
1548
1549
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1549
1550
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bitvavo.js CHANGED
@@ -1310,6 +1310,7 @@ export default class bitvavo extends Exchange {
1310
1310
  * @name bitvavo#fetchOrder
1311
1311
  * @description fetches information on an order made by the user
1312
1312
  * @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
1313
+ * @param {string} id the order id
1313
1314
  * @param {string} symbol unified symbol of the market the order was made in
1314
1315
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1315
1316
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1108,6 +1108,7 @@ export default class blockchaincom extends Exchange {
1108
1108
  * @name blockchaincom#fetchOrder
1109
1109
  * @description fetches information on an order made by the user
1110
1110
  * @see https://api.blockchain.com/v3/#getorderbyid
1111
+ * @param {string} id the order id
1111
1112
  * @param {string} symbol not used by blockchaincom fetchOrder
1112
1113
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1113
1114
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -797,6 +797,7 @@ export default class btcalpha extends Exchange {
797
797
  * @name btcalpha#fetchOrder
798
798
  * @see https://btc-alpha.github.io/api-docs/#retrieve-single-order
799
799
  * @description fetches information on an order made by the user
800
+ * @param {string} id the order id
800
801
  * @param {string} symbol not used by btcalpha fetchOrder
801
802
  * @param {object} [params] extra parameters specific to the exchange API endpoint
802
803
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/btcbox.js CHANGED
@@ -571,6 +571,7 @@ export default class btcbox extends Exchange {
571
571
  * @name btcbox#fetchOrder
572
572
  * @description fetches information on an order made by the user
573
573
  * @see https://blog.btcbox.jp/en/archives/8762#toc16
574
+ * @param {string} id the order id
574
575
  * @param {string} symbol unified symbol of the market the order was made in
575
576
  * @param {object} [params] extra parameters specific to the exchange API endpoint
576
577
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1072,6 +1072,7 @@ export default class btcmarkets extends Exchange {
1072
1072
  * @name btcmarkets#fetchOrder
1073
1073
  * @description fetches information on an order made by the user
1074
1074
  * @see https://docs.btcmarkets.net/v3/#operation/getOrderById
1075
+ * @param {string} id the order id
1075
1076
  * @param {string} symbol not used by btcmarkets fetchOrder
1076
1077
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1077
1078
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/bybit.js CHANGED
@@ -4838,6 +4838,7 @@ export default class bybit extends Exchange {
4838
4838
  * @name bybit#fetchOrderClassic
4839
4839
  * @description fetches information on an order made by the user *classic accounts only*
4840
4840
  * @see https://bybit-exchange.github.io/docs/v5/order/order-list
4841
+ * @param {string} id the order id
4841
4842
  * @param {string} symbol unified symbol of the market the order was made in
4842
4843
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4843
4844
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -4871,6 +4872,7 @@ export default class bybit extends Exchange {
4871
4872
  * @name bybit#fetchOrderClassic
4872
4873
  * @description *classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
4873
4874
  * @see https://bybit-exchange.github.io/docs/v5/order/order-list
4875
+ * @param {string} id the order id
4874
4876
  * @param {string} symbol unified symbol of the market the order was made in
4875
4877
  * @param {object} [params] extra parameters specific to the exchange API endpoint
4876
4878
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
package/js/src/cex.js CHANGED
@@ -1219,6 +1219,7 @@ export default class cex extends Exchange {
1219
1219
  * @name cex#fetchOrder
1220
1220
  * @see https://docs.cex.io/?python#get-order-details
1221
1221
  * @description fetches information on an order made by the user
1222
+ * @param {string} id the order id
1222
1223
  * @param {string} symbol not used by cex fetchOrder
1223
1224
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1224
1225
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1093,6 +1093,7 @@ export default class coinbaseexchange extends Exchange {
1093
1093
  * @name coinbaseexchange#fetchOrder
1094
1094
  * @see https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getorder
1095
1095
  * @description fetches information on an order made by the user
1096
+ * @param {string} id the order id
1096
1097
  * @param {string} symbol not used by coinbaseexchange fetchOrder
1097
1098
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1098
1099
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -30,7 +30,6 @@ export default class cryptocom extends Exchange {
30
30
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
31
31
  fetchDepositAddressesByNetwork(code: string, params?: {}): Promise<Dict>;
32
32
  fetchDepositAddress(code: string, params?: {}): Promise<any>;
33
- safeNetwork(networkId: any): string;
34
33
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
35
34
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
36
35
  parseTicker(ticker: Dict, market?: Market): Ticker;
@@ -1814,18 +1814,6 @@ export default class cryptocom extends Exchange {
1814
1814
  return depositAddresses[keys[0]];
1815
1815
  }
1816
1816
  }
1817
- safeNetwork(networkId) {
1818
- const networksById = {
1819
- 'BTC': 'BTC',
1820
- 'ETH': 'ETH',
1821
- 'SOL': 'SOL',
1822
- 'BNB': 'BNB',
1823
- 'CRONOS': 'CRONOS',
1824
- 'MATIC': 'MATIC',
1825
- 'OP': 'OP',
1826
- };
1827
- return this.safeString(networksById, networkId, networkId);
1828
- }
1829
1817
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
1830
1818
  /**
1831
1819
  * @method
package/js/src/kraken.js CHANGED
@@ -243,100 +243,100 @@ export default class kraken extends Exchange {
243
243
  'TRX': 'TRC20',
244
244
  },
245
245
  'depositMethods': {
246
- '1INCH': '1inch (1INCH)',
246
+ '1INCH': '1inch' + ' ' + '(1INCH)',
247
247
  'AAVE': 'Aave',
248
248
  'ADA': 'ADA',
249
249
  'ALGO': 'Algorand',
250
- 'ANKR': 'ANKR (ANKR)',
251
- 'ANT': 'Aragon (ANT)',
250
+ 'ANKR': 'ANKR' + ' ' + '(ANKR)',
251
+ 'ANT': 'Aragon' + ' ' + '(ANT)',
252
252
  'ATOM': 'Cosmos',
253
- 'AXS': 'Axie Infinity Shards (AXS)',
254
- 'BADGER': 'Bager DAO (BADGER)',
255
- 'BAL': 'Balancer (BAL)',
256
- 'BAND': 'Band Protocol (BAND)',
253
+ 'AXS': 'Axie Infinity Shards' + ' ' + '(AXS)',
254
+ 'BADGER': 'Bager DAO' + ' ' + '(BADGER)',
255
+ 'BAL': 'Balancer' + ' ' + '(BAL)',
256
+ 'BAND': 'Band Protocol' + ' ' + '(BAND)',
257
257
  'BAT': 'BAT',
258
258
  'BCH': 'Bitcoin Cash',
259
- 'BNC': 'Bifrost (BNC)',
260
- 'BNT': 'Bancor (BNT)',
259
+ 'BNC': 'Bifrost' + ' ' + '(BNC)',
260
+ 'BNT': 'Bancor' + ' ' + '(BNT)',
261
261
  'BTC': 'Bitcoin',
262
- 'CHZ': 'Chiliz (CHZ)',
263
- 'COMP': 'Compound (COMP)',
264
- 'CQT': '\tCovalent Query Token (CQT)',
265
- 'CRV': 'Curve DAO Token (CRV)',
266
- 'CTSI': 'Cartesi (CTSI)',
262
+ 'CHZ': 'Chiliz' + ' ' + '(CHZ)',
263
+ 'COMP': 'Compound' + ' ' + '(COMP)',
264
+ 'CQT': '\tCovalent Query Token' + ' ' + '(CQT)',
265
+ 'CRV': 'Curve DAO Token' + ' ' + '(CRV)',
266
+ 'CTSI': 'Cartesi' + ' ' + '(CTSI)',
267
267
  'DAI': 'Dai',
268
268
  'DASH': 'Dash',
269
269
  'DOGE': 'Dogecoin',
270
270
  'DOT': 'Polkadot',
271
- 'DYDX': 'dYdX (DYDX)',
272
- 'ENJ': 'Enjin Coin (ENJ)',
271
+ 'DYDX': 'dYdX' + ' ' + '(DYDX)',
272
+ 'ENJ': 'Enjin Coin' + ' ' + '(ENJ)',
273
273
  'EOS': 'EOS',
274
- 'ETC': 'Ether Classic (Hex)',
275
- 'ETH': 'Ether (Hex)',
274
+ 'ETC': 'Ether Classic' + ' ' + '(Hex)',
275
+ 'ETH': 'Ether' + ' ' + '(Hex)',
276
276
  'EWT': 'Energy Web Token',
277
277
  'FEE': 'Kraken Fee Credit',
278
278
  'FIL': 'Filecoin',
279
279
  'FLOW': 'Flow',
280
- 'GHST': 'Aavegotchi (GHST)',
280
+ 'GHST': 'Aavegotchi' + ' ' + '(GHST)',
281
281
  'GNO': 'GNO',
282
282
  'GRT': 'GRT',
283
283
  'ICX': 'Icon',
284
- 'INJ': 'Injective Protocol (INJ)',
285
- 'KAR': 'Karura (KAR)',
284
+ 'INJ': 'Injective Protocol' + ' ' + '(INJ)',
285
+ 'KAR': 'Karura' + ' ' + '(KAR)',
286
286
  'KAVA': 'Kava',
287
- 'KEEP': 'Keep Token (KEEP)',
288
- 'KNC': 'Kyber Network (KNC)',
287
+ 'KEEP': 'Keep Token' + ' ' + '(KEEP)',
288
+ 'KNC': 'Kyber Network' + ' ' + '(KNC)',
289
289
  'KSM': 'Kusama',
290
290
  'LINK': 'Link',
291
- 'LPT': 'Livepeer Token (LPT)',
292
- 'LRC': 'Loopring (LRC)',
291
+ 'LPT': 'Livepeer Token' + ' ' + '(LPT)',
292
+ 'LRC': 'Loopring' + ' ' + '(LRC)',
293
293
  'LSK': 'Lisk',
294
294
  'LTC': 'Litecoin',
295
295
  'MANA': 'MANA',
296
- 'MATIC': 'Polygon (MATIC)',
296
+ 'MATIC': 'Polygon' + ' ' + '(MATIC)',
297
297
  'MINA': 'Mina',
298
- 'MIR': 'Mirror Protocol (MIR)',
299
- 'MKR': 'Maker (MKR)',
298
+ 'MIR': 'Mirror Protocol' + ' ' + '(MIR)',
299
+ 'MKR': 'Maker' + ' ' + '(MKR)',
300
300
  'MLN': 'MLN',
301
- 'MOVR': 'Moonriver (MOVR)',
301
+ 'MOVR': 'Moonriver' + ' ' + '(MOVR)',
302
302
  'NANO': 'NANO',
303
303
  'OCEAN': 'OCEAN',
304
- 'OGN': 'Origin Protocol (OGN)',
304
+ 'OGN': 'Origin Protocol' + ' ' + '(OGN)',
305
305
  'OMG': 'OMG',
306
- 'OXT': 'Orchid (OXT)',
307
- 'OXY': 'Oxygen (OXY)',
308
- 'PAXG': 'PAX (Gold)',
309
- 'PERP': 'Perpetual Protocol (PERP)',
310
- 'PHA': 'Phala (PHA)',
306
+ 'OXT': 'Orchid' + ' ' + '(OXT)',
307
+ 'OXY': 'Oxygen' + ' ' + '(OXY)',
308
+ 'PAXG': 'PAX' + ' ' + '(Gold)',
309
+ 'PERP': 'Perpetual Protocol' + ' ' + '(PERP)',
310
+ 'PHA': 'Phala' + ' ' + '(PHA)',
311
311
  'QTUM': 'QTUM',
312
- 'RARI': 'Rarible (RARI)',
313
- 'RAY': 'Raydium (RAY)',
314
- 'REN': 'Ren Protocol (REN)',
312
+ 'RARI': 'Rarible' + ' ' + '(RARI)',
313
+ 'RAY': 'Raydium' + ' ' + '(RAY)',
314
+ 'REN': 'Ren Protocol' + ' ' + '(REN)',
315
315
  'REP': 'REPv2',
316
316
  'REPV1': 'REP',
317
- 'SAND': 'The Sandbox (SAND)',
317
+ 'SAND': 'The Sandbox' + ' ' + '(SAND)',
318
318
  'SC': 'Siacoin',
319
- 'SDN': 'Shiden (SDN)',
319
+ 'SDN': 'Shiden' + ' ' + '(SDN)',
320
320
  'SOL': 'Solana',
321
- 'SNX': 'Synthetix Network (SNX)',
321
+ 'SNX': 'Synthetix Network' + ' ' + '(SNX)',
322
322
  'SRM': 'Serum',
323
- 'STORJ': 'Storj (STORJ)',
324
- 'SUSHI': 'Sushiswap (SUSHI)',
323
+ 'STORJ': 'Storj' + ' ' + '(STORJ)',
324
+ 'SUSHI': 'Sushiswap' + ' ' + '(SUSHI)',
325
325
  'TBTC': 'tBTC',
326
326
  'TRX': 'Tron',
327
327
  'UNI': 'UNI',
328
328
  'USDC': 'USDC',
329
- 'USDT': 'Tether USD (ERC20)',
330
- 'USDT-TRC20': 'Tether USD (TRC20)',
329
+ 'USDT': 'Tether USD' + ' ' + '(ERC20)',
330
+ 'USDT-TRC20': 'Tether USD' + ' ' + '(TRC20)',
331
331
  'WAVES': 'Waves',
332
- 'WBTC': 'Wrapped Bitcoin (WBTC)',
332
+ 'WBTC': 'Wrapped Bitcoin' + ' ' + '(WBTC)',
333
333
  'XLM': 'Stellar XLM',
334
334
  'XMR': 'Monero',
335
335
  'XRP': 'Ripple XRP',
336
336
  'XTZ': 'XTZ',
337
337
  'YFI': 'YFI',
338
- 'ZEC': 'Zcash (Transparent)',
339
- 'ZRX': '0x (ZRX)',
338
+ 'ZEC': 'Zcash' + ' ' + '(Transparent)',
339
+ 'ZRX': '0x' + ' ' + '(ZRX)',
340
340
  },
341
341
  'withdrawMethods': {
342
342
  'Lightning': 'Lightning',
package/js/src/mexc.js CHANGED
@@ -566,7 +566,7 @@ export default class mexc extends Exchange {
566
566
  'POKT': 'POKT',
567
567
  'QKC': 'QKC',
568
568
  'QTUM': 'QTUM',
569
- 'RAP20': 'RAP20 (Rangers Mainnet)',
569
+ 'RAP20': 'RAP20' + ' ' + '(Rangers Mainnet)',
570
570
  'REI': 'REI',
571
571
  'RSK': 'RBTC',
572
572
  'RVN': 'Ravencoin(RVN)',
@@ -716,69 +716,9 @@ export default class mexc extends Exchange {
716
716
  // OKB <> OKT (for usdt it's exception) for OKC, PMEER, FLARE, STRD, ZEL, FUND, "NONE", CRING, FREETON, QTZ (probably unique network is meant), HT, BSC(RACAV1), BSC(RACAV2), AMBROSUS, BAJUN, NOM. their individual info is at https://www.mexc.com/api/platform/asset/spot/{COINNAME}
717
717
  },
718
718
  'networksById': {
719
- 'Aleph Zero(AZERO)': 'AZERO',
720
- 'Alephium(ALPH)': 'ALPH',
721
- 'Algorand(ALGO)': 'ALGO',
722
- 'APTOS(APT)': 'APT',
723
- 'Arbitrum One(ARB)': 'ARB',
724
- 'Avalanche C Chain(AVAX CCHAIN)': 'AVAXC',
725
- 'Avalanche X Chain(AVAX XCHAIN)': 'AVAXX',
726
- 'BEP20(BSC)': 'BSC',
727
- 'Bitcoin Cash(BCH)': 'BCH',
728
- 'Bitcoin SV(BSV)': 'BSV',
729
- 'Bitcoin(BTC)': 'BTC',
730
- 'Bittensor(TAO)': 'TAO',
731
- 'BNB Beacon Chain(BEP2)': 'BEP2',
732
719
  'BNB Smart Chain(BEP20-RACAV1)': 'BSC',
733
720
  'BNB Smart Chain(BEP20-RACAV2)': 'BSC',
734
721
  'BNB Smart Chain(BEP20)': 'BSC',
735
- 'Cardano(ADA)': 'ADA',
736
- 'Celestia(TIA)': 'TIA',
737
- 'Chia(XCH)': 'XCH',
738
- 'Chiliz Chain(CHZ2)': 'CHZ2',
739
- 'Chiliz Legacy Chain(CHZ)': 'CHZ',
740
- 'Clore.ai(CLORE)': 'CLORE',
741
- 'Cosmos(ATOM)': 'ATOM',
742
- 'Dogechain(DC)': 'DC',
743
- 'Dogecoin(DOGE)': 'DOGE',
744
- 'Dymension(DYM)': 'DYM',
745
- 'Dynex(DNX)': 'DNX',
746
- 'Elysium(LAVA)': 'LAVA',
747
- 'Ethereum Classic(ETC)': 'ETC',
748
- 'Ethereum(ERC20)': 'ERC20',
749
- 'Fantom(FTM)': 'FTM',
750
- 'Hedera(HBAR)': 'HBAR',
751
- 'Index Chain': 'INDEX',
752
- 'Internet Computer(ICP)': 'ICP',
753
- 'Kaspa(KAS)': 'KAS',
754
- 'Klaytn(KLAY)': 'KLAY',
755
- 'Litecoin(LTC)': 'LTC',
756
- 'Mantle(MNT)': 'MNT',
757
- 'Mcoin Network': 'MCOIN',
758
- 'Meter(MTRG)': 'MTRG',
759
- 'Monero(XMR)': 'XMR',
760
- 'NEAR Protocol(NEAR)': 'NEAR',
761
- 'Neoxa Network': 'NEOXA',
762
- 'Neurai(XNA)': 'XNA',
763
- 'Omega Network(OMN)': 'OMN',
764
- 'Optimism(OP)': 'OPTIMISM',
765
- 'Polkadot(DOT)': 'DOT',
766
- 'Polygon(MATIC)': 'MATIC',
767
- 'RAP20 (Rangers Mainnet)': 'RAP20',
768
- 'Ravencoin(RVN)': 'RVN',
769
- 'Ripple(XRP)': 'XRP',
770
- 'Satoxcoin(SATOX)': 'SATOX',
771
- 'Solana(SOL)': 'SOL',
772
- 'Starknet(STARK)': 'STARK',
773
- 'Stellar(XLM)': 'XLM',
774
- 'Terra(LUNA)': 'LUNA',
775
- 'Toncoin(TON)': 'TON',
776
- 'Tron(TRC20)': 'TRC20',
777
- 'UGAS(Ultrain)': 'UGAS',
778
- 'VeChain(VET)': 'VET',
779
- 'Vexanium(VEX)': 'VEX',
780
- 'XPR Network': 'XPR',
781
- 'Zilliqa(ZIL)': 'ZIL',
782
722
  // TODO: uncomment below after deciding unified name
783
723
  // 'PEPE COIN BSC':
784
724
  // 'SMART BLOCKCHAIN':
@@ -9,7 +9,6 @@ export default class okcoin extends Exchange {
9
9
  fetchTime(params?: {}): Promise<number>;
10
10
  fetchMarkets(params?: {}): Promise<Market[]>;
11
11
  parseMarket(market: Dict): Market;
12
- safeNetwork(networkId: any): string;
13
12
  fetchCurrencies(params?: {}): Promise<Currencies>;
14
13
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
15
14
  parseTicker(ticker: Dict, market?: Market): Ticker;