ccxt 4.5.63 → 4.5.64

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 (124) hide show
  1. package/README.md +6 -8
  2. package/dist/ccxt.browser.min.js +4 -4
  3. package/dist/cjs/ccxt.js +6 -12
  4. package/dist/cjs/src/aster.js +2 -2
  5. package/dist/cjs/src/base/Exchange.js +34 -3
  6. package/dist/cjs/src/bitget.js +5 -3
  7. package/dist/cjs/src/bitmex.js +1 -1
  8. package/dist/cjs/src/bitstamp.js +2 -1
  9. package/dist/cjs/src/bitvavo.js +1 -0
  10. package/dist/cjs/src/btcbox.js +1 -1
  11. package/dist/cjs/src/bullish.js +1 -1
  12. package/dist/cjs/src/bybiteu.js +3 -0
  13. package/dist/cjs/src/coinbase.js +3 -2
  14. package/dist/cjs/src/coinbaseinternational.js +1 -1
  15. package/dist/cjs/src/delta.js +23 -1
  16. package/dist/cjs/src/derive.js +1 -1
  17. package/dist/cjs/src/digifinex.js +12 -0
  18. package/dist/cjs/src/dydx.js +2 -2
  19. package/dist/cjs/src/extended.js +1 -1
  20. package/dist/cjs/src/gateeu.js +1 -0
  21. package/dist/cjs/src/grvt.js +1 -1
  22. package/dist/cjs/src/hashkey.js +127 -6
  23. package/dist/cjs/src/hibachi.js +20 -10
  24. package/dist/cjs/src/hyperliquid.js +1 -1
  25. package/dist/cjs/src/kraken.js +2 -0
  26. package/dist/cjs/src/kucoin.js +1 -1
  27. package/dist/cjs/src/kucoineu.js +3 -0
  28. package/dist/cjs/src/lighter.js +6 -4
  29. package/dist/cjs/src/mudrex.js +1328 -0
  30. package/dist/cjs/src/myokx.js +3 -0
  31. package/dist/cjs/src/okxus.js +1 -5
  32. package/dist/cjs/src/onetrading.js +1 -0
  33. package/dist/cjs/src/pacifica.js +1 -1
  34. package/dist/cjs/src/poloniex.js +1 -1
  35. package/dist/cjs/src/pro/bingx.js +4 -2
  36. package/dist/cjs/src/pro/bitget.js +9 -7
  37. package/dist/cjs/src/pro/grvt.js +1 -1
  38. package/dist/cjs/src/pro/hashkey.js +1 -1
  39. package/dist/cjs/src/pro/kraken.js +1 -1
  40. package/dist/cjs/src/pro/mudrex.js +226 -0
  41. package/dist/cjs/src/pro/okxus.js +1 -1
  42. package/js/ccxt.d.ts +8 -14
  43. package/js/ccxt.js +6 -10
  44. package/js/src/abstract/binance.d.ts +3 -0
  45. package/js/src/abstract/binancecoinm.d.ts +3 -0
  46. package/js/src/abstract/binanceus.d.ts +3 -0
  47. package/js/src/abstract/binanceusdm.d.ts +3 -0
  48. package/js/src/abstract/bybit.d.ts +39 -0
  49. package/js/src/abstract/bybiteu.d.ts +39 -0
  50. package/js/src/abstract/coincheck.d.ts +3 -0
  51. package/js/src/abstract/coinsph.d.ts +8 -1
  52. package/js/src/abstract/kucoineu.js +0 -6
  53. package/js/src/abstract/mudrex.d.ts +33 -0
  54. package/js/src/aster.js +2 -2
  55. package/js/src/base/Exchange.d.ts +10 -1
  56. package/js/src/base/Exchange.js +34 -3
  57. package/js/src/bitget.js +5 -3
  58. package/js/src/bitmex.js +1 -1
  59. package/js/src/bitstamp.js +2 -1
  60. package/js/src/bitvavo.js +1 -0
  61. package/js/src/btcbox.js +1 -1
  62. package/js/src/bullish.js +1 -1
  63. package/js/src/bybiteu.js +3 -0
  64. package/js/src/coinbase.js +3 -2
  65. package/js/src/coinbaseinternational.js +1 -1
  66. package/js/src/delta.d.ts +12 -0
  67. package/js/src/delta.js +23 -1
  68. package/js/src/derive.js +1 -1
  69. package/js/src/digifinex.d.ts +12 -0
  70. package/js/src/digifinex.js +12 -0
  71. package/js/src/dydx.d.ts +2 -2
  72. package/js/src/dydx.js +2 -2
  73. package/js/src/extended.js +1 -1
  74. package/js/src/gateeu.js +1 -0
  75. package/js/src/grvt.d.ts +1 -1
  76. package/js/src/grvt.js +1 -1
  77. package/js/src/hashkey.d.ts +40 -3
  78. package/js/src/hashkey.js +127 -6
  79. package/js/src/hibachi.d.ts +9 -5
  80. package/js/src/hibachi.js +20 -10
  81. package/js/src/hyperliquid.js +1 -1
  82. package/js/src/kraken.js +2 -0
  83. package/js/src/kucoin.js +1 -1
  84. package/js/src/kucoineu.js +3 -0
  85. package/js/src/lighter.js +6 -4
  86. package/js/src/mudrex.d.ts +310 -0
  87. package/js/src/mudrex.js +1321 -0
  88. package/js/src/myokx.js +3 -0
  89. package/js/src/okxus.js +1 -5
  90. package/js/src/onetrading.js +1 -0
  91. package/js/src/pacifica.js +1 -1
  92. package/js/src/poloniex.js +1 -1
  93. package/js/src/pro/bingx.js +4 -2
  94. package/js/src/pro/bitget.js +9 -7
  95. package/js/src/pro/grvt.d.ts +1 -1
  96. package/js/src/pro/grvt.js +1 -1
  97. package/js/src/pro/hashkey.d.ts +1 -1
  98. package/js/src/pro/hashkey.js +1 -1
  99. package/js/src/pro/kraken.js +1 -1
  100. package/js/src/pro/mudrex.d.ts +23 -0
  101. package/js/src/pro/mudrex.js +219 -0
  102. package/js/src/pro/okxus.js +1 -1
  103. package/package.json +3 -3
  104. package/dist/cjs/src/abstract/coinmetro.js +0 -11
  105. package/dist/cjs/src/abstract/novadax.js +0 -11
  106. package/dist/cjs/src/ascendex.js +0 -3780
  107. package/dist/cjs/src/coinmetro.js +0 -2030
  108. package/dist/cjs/src/novadax.js +0 -1678
  109. package/dist/cjs/src/pro/ascendex.js +0 -1013
  110. package/js/src/abstract/ascendex.d.ts +0 -80
  111. package/js/src/abstract/coinmetro.d.ts +0 -37
  112. package/js/src/abstract/coinmetro.js +0 -5
  113. package/js/src/abstract/novadax.d.ts +0 -32
  114. package/js/src/abstract/novadax.js +0 -5
  115. package/js/src/ascendex.d.ts +0 -436
  116. package/js/src/ascendex.js +0 -3773
  117. package/js/src/coinmetro.d.ts +0 -245
  118. package/js/src/coinmetro.js +0 -2023
  119. package/js/src/novadax.d.ts +0 -279
  120. package/js/src/novadax.js +0 -1671
  121. package/js/src/pro/ascendex.d.ts +0 -99
  122. package/js/src/pro/ascendex.js +0 -1006
  123. /package/dist/cjs/src/abstract/{ascendex.js → mudrex.js} +0 -0
  124. /package/js/src/abstract/{ascendex.js → mudrex.js} +0 -0
package/js/src/bitget.js CHANGED
@@ -6382,7 +6382,7 @@ export default class bitget extends Exchange {
6382
6382
  // {
6383
6383
  // "code": "00000",
6384
6384
  // "msg": "success",
6385
- // "requestTime": "1680008815965",
6385
+ // "requestTime": "1680008815966",
6386
6386
  // "data": {
6387
6387
  // "successList": [
6388
6388
  // {
@@ -11250,8 +11250,10 @@ export default class bitget extends Exchange {
11250
11250
  }
11251
11251
  url += queryInner;
11252
11252
  // bitget signs the raw (non-percent-encoded) query string, so the
11253
- // signature must use the decoded values (e.g. non-ascii market ids)
11254
- auth += '?' + this.rawencode(sortedParams);
11253
+ // signature must use the decoded values (e.g. non-ascii market ids).
11254
+ // sort explicitly (true) so the signed order matches the url order in Go,
11255
+ // where map iteration is not ordered (keysort's order is otherwise lost)
11256
+ auth += '?' + this.rawencode(sortedParams, true);
11255
11257
  }
11256
11258
  }
11257
11259
  const signature = this.hmac(this.encode(auth), this.encode(this.secret), sha256, 'base64');
package/js/src/bitmex.js CHANGED
@@ -110,7 +110,7 @@ export default class bitmex extends Exchange {
110
110
  'fetchTransfer': false,
111
111
  'fetchTransfers': false,
112
112
  'fetchVolatilityHistory': false,
113
- 'index': true,
113
+ 'index': false,
114
114
  'reduceMargin': undefined,
115
115
  'repayCrossMargin': false,
116
116
  'repayIsolatedMargin': false,
@@ -24,7 +24,7 @@ export default class bitstamp extends Exchange {
24
24
  'CORS': true,
25
25
  'spot': true,
26
26
  'margin': false,
27
- 'swap': false,
27
+ 'swap': true,
28
28
  'future': false,
29
29
  'option': false,
30
30
  'addMargin': false,
@@ -484,6 +484,7 @@ export default class bitstamp extends Exchange {
484
484
  },
485
485
  // exchange-specific options
486
486
  'options': {
487
+ 'mica': true,
487
488
  'networksById': {
488
489
  'bitcoin-cash': 'BCH',
489
490
  'bitcoin': 'BTC',
package/js/src/bitvavo.js CHANGED
@@ -399,6 +399,7 @@ export default class bitvavo extends Exchange {
399
399
  },
400
400
  },
401
401
  'options': {
402
+ 'mica': true,
402
403
  'currencyToPrecisionRoundingMode': TRUNCATE,
403
404
  'BITVAVO-ACCESS-WINDOW': 10000, // default 10 sec
404
405
  'networks': {
package/js/src/btcbox.js CHANGED
@@ -572,7 +572,7 @@ export default class btcbox extends Exchange {
572
572
  //
573
573
  // {
574
574
  // "result":true,
575
- // "id":"11"
575
+ // "id":"12"
576
576
  // }
577
577
  //
578
578
  return this.parseOrder(response, market);
package/js/src/bullish.js CHANGED
@@ -21,7 +21,7 @@ export default class bullish extends Exchange {
21
21
  'CORS': undefined,
22
22
  'spot': true,
23
23
  'margin': false,
24
- 'swap': false,
24
+ 'swap': true,
25
25
  'future': false,
26
26
  'option': false,
27
27
  'addMargin': false,
package/js/src/bybiteu.js CHANGED
@@ -52,6 +52,9 @@ export default class bybiteu extends bybit {
52
52
  'future': false,
53
53
  'option': undefined,
54
54
  },
55
+ 'options': {
56
+ 'mica': true,
57
+ },
55
58
  });
56
59
  }
57
60
  }
@@ -384,6 +384,7 @@ export default class coinbase extends Exchange {
384
384
  'CGLD': 'CELO',
385
385
  },
386
386
  'options': {
387
+ 'mica': true,
387
388
  'usePrivate': false,
388
389
  'brokerId': 'ccxt',
389
390
  'stablePairs': ['BUSD-USD', 'CBETH-ETH', 'DAI-USD', 'GUSD-USD', 'GYEN-USD', 'PAX-USD', 'PAX-USDT', 'USDC-EUR', 'USDC-GBP', 'USDT-EUR', 'USDT-GBP', 'USDT-USD', 'USDT-USDC', 'WBTC-BTC'],
@@ -1367,8 +1368,8 @@ export default class coinbase extends Exchange {
1367
1368
  'type': 'spot',
1368
1369
  'spot': true,
1369
1370
  'margin': false,
1370
- 'swap': false,
1371
- 'future': false,
1371
+ 'swap': true,
1372
+ 'future': true,
1372
1373
  'option': false,
1373
1374
  'active': undefined,
1374
1375
  'contract': false,
@@ -1453,7 +1453,7 @@ export default class coinbaseinternational extends Exchange {
1453
1453
  // [
1454
1454
  // {
1455
1455
  // "asset_id":"1",
1456
- // "asset_uuid":"2b92315d-eab7-5bef-84fa-089a131333f5",
1456
+ // "asset_uuid":"2b92315d-eab7-5bef-84fa-089a131333f6",
1457
1457
  // "asset_name":"USDC",
1458
1458
  // "status":"ACTIVE",
1459
1459
  // "collateral_weight":1.0,
package/js/src/delta.d.ts CHANGED
@@ -400,6 +400,18 @@ export default class delta extends Exchange {
400
400
  */
401
401
  fetchMarginMode(symbol: string, params?: {}): Promise<MarginMode>;
402
402
  parseMarginMode(marginMode: Dict, market?: Market): MarginMode;
403
+ /**
404
+ * @method
405
+ * @name delta#setMarginMode
406
+ * @description set margin mode to 'isolated' or 'portfolio'
407
+ * @see https://docs.delta.exchange/#change-margin-mode
408
+ * @param {string} marginMode 'isolated' or 'portfolio'
409
+ * @param {string} [symbol] not used by delta.setMarginMode
410
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
411
+ * @param {string} params.subaccount_user_id the user id of the subaccount
412
+ * @returns {object} response from the exchange
413
+ */
414
+ setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
403
415
  /**
404
416
  * @method
405
417
  * @name delta#fetchOption
package/js/src/delta.js CHANGED
@@ -85,7 +85,7 @@ export default class delta extends Exchange {
85
85
  'reduceMargin': true,
86
86
  'setLeverage': true,
87
87
  'setMargin': false,
88
- 'setMarginMode': false,
88
+ 'setMarginMode': true,
89
89
  'setPositionMode': false,
90
90
  'transfer': false,
91
91
  'withdraw': false,
@@ -158,6 +158,7 @@ export default class delta extends Exchange {
158
158
  'users/trading_preferences',
159
159
  'sub_accounts',
160
160
  'profile',
161
+ 'rate_limits/quota',
161
162
  'heartbeat',
162
163
  'deposits/address',
163
164
  ],
@@ -181,6 +182,7 @@ export default class delta extends Exchange {
181
182
  'positions/auto_topup',
182
183
  'users/update_mmp',
183
184
  'users/reset_mmp',
185
+ 'users/margin_mode',
184
186
  ],
185
187
  'delete': [
186
188
  'orders',
@@ -3547,6 +3549,26 @@ export default class delta extends Exchange {
3547
3549
  'marginMode': this.safeString(marginMode, 'margin_mode'),
3548
3550
  };
3549
3551
  }
3552
+ /**
3553
+ * @method
3554
+ * @name delta#setMarginMode
3555
+ * @description set margin mode to 'isolated' or 'portfolio'
3556
+ * @see https://docs.delta.exchange/#change-margin-mode
3557
+ * @param {string} marginMode 'isolated' or 'portfolio'
3558
+ * @param {string} [symbol] not used by delta.setMarginMode
3559
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
3560
+ * @param {string} params.subaccount_user_id the user id of the subaccount
3561
+ * @returns {object} response from the exchange
3562
+ */
3563
+ async setMarginMode(marginMode, symbol = undefined, params = {}) {
3564
+ this.checkRequiredArgument('setMarginMode', marginMode, 'marginMode', ['isolated', 'portfolio']);
3565
+ const subaccountUserId = this.safeString(params, 'subaccount_user_id');
3566
+ this.checkRequiredArgument('setMarginMode', subaccountUserId, 'params["subaccount_user_id"]');
3567
+ const request = {
3568
+ 'margin_mode': marginMode,
3569
+ };
3570
+ return await this.privatePutUsersMarginMode(this.extend(request, params));
3571
+ }
3550
3572
  /**
3551
3573
  * @method
3552
3574
  * @name delta#fetchOption
package/js/src/derive.js CHANGED
@@ -1648,7 +1648,7 @@ export default class derive extends Exchange {
1648
1648
  // "result": {
1649
1649
  // "cancelled_orders": 0
1650
1650
  // },
1651
- // "id": "9d633799-2098-4559-b547-605bb6f4d8f4"
1651
+ // "id": "9d633799-2098-4559-b547-605bb6f4d8f5"
1652
1652
  // }
1653
1653
  //
1654
1654
  // {
@@ -10,6 +10,7 @@ export default class digifinex extends Exchange {
10
10
  * @method
11
11
  * @name digifinex#fetchCurrencies
12
12
  * @description fetches all available currencies on an exchange
13
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
13
14
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14
15
  * @returns {object} an associative dictionary of currencies
15
16
  */
@@ -19,6 +20,10 @@ export default class digifinex extends Exchange {
19
20
  * @method
20
21
  * @name digifinex#fetchMarkets
21
22
  * @description retrieves data on all markets for digifinex
23
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#all-the-market-description
24
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-trading-pair-symbol
25
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-trading-pair-symbol
26
+ * @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
22
27
  * @param {object} [params] extra parameters specific to the exchange API endpoint
23
28
  * @returns {object[]} an array of objects representing market data
24
29
  */
@@ -77,6 +82,7 @@ export default class digifinex extends Exchange {
77
82
  * @method
78
83
  * @name digifinex#fetchTime
79
84
  * @description fetches the current integer timestamp in milliseconds from the exchange server
85
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#server-timestamp
80
86
  * @param {object} [params] extra parameters specific to the exchange API endpoint
81
87
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
82
88
  */
@@ -85,6 +91,7 @@ export default class digifinex extends Exchange {
85
91
  * @method
86
92
  * @name digifinex#fetchStatus
87
93
  * @description the latest known information on the availability of the exchange API
94
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#server-ping
88
95
  * @param {object} [params] extra parameters specific to the exchange API endpoint
89
96
  * @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
90
97
  */
@@ -184,6 +191,7 @@ export default class digifinex extends Exchange {
184
191
  * @method
185
192
  * @name digifinex#cancelOrders
186
193
  * @description cancel multiple orders
194
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
187
195
  * @param {string[]} ids order ids
188
196
  * @param {string} symbol not used by digifinex cancelOrders ()
189
197
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -263,6 +271,7 @@ export default class digifinex extends Exchange {
263
271
  * @method
264
272
  * @name digifinex#fetchDepositAddress
265
273
  * @description fetch the deposit address for a currency associated with this account
274
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#deposit-address-inquiry
266
275
  * @param {string} code unified currency code
267
276
  * @param {object} [params] extra parameters specific to the exchange API endpoint
268
277
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
@@ -273,6 +282,7 @@ export default class digifinex extends Exchange {
273
282
  * @method
274
283
  * @name digifinex#fetchDeposits
275
284
  * @description fetch all deposits made to an account
285
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#deposit-history
276
286
  * @param {string} code unified currency code
277
287
  * @param {int} [since] the earliest time in ms to fetch deposits for
278
288
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -284,6 +294,7 @@ export default class digifinex extends Exchange {
284
294
  * @method
285
295
  * @name digifinex#fetchWithdrawals
286
296
  * @description fetch all withdrawals made from an account
297
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#withdrawal-history
287
298
  * @param {string} code unified currency code
288
299
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
289
300
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -377,6 +388,7 @@ export default class digifinex extends Exchange {
377
388
  * @method
378
389
  * @name digifinex#fetchFundingRateHistory
379
390
  * @description fetches historical funding rate prices
391
+ * @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#fundingratehistory
380
392
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
381
393
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
382
394
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
@@ -466,6 +466,7 @@ export default class digifinex extends Exchange {
466
466
  * @method
467
467
  * @name digifinex#fetchCurrencies
468
468
  * @description fetches all available currencies on an exchange
469
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#get-currency-deposit-and-withdrawal-information
469
470
  * @param {object} [params] extra parameters specific to the exchange API endpoint
470
471
  * @returns {object} an associative dictionary of currencies
471
472
  */
@@ -558,6 +559,10 @@ export default class digifinex extends Exchange {
558
559
  * @method
559
560
  * @name digifinex#fetchMarkets
560
561
  * @description retrieves data on all markets for digifinex
562
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#all-the-market-description
563
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#spot-trading-pair-symbol
564
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#margin-trading-pair-symbol
565
+ * @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#instruments
561
566
  * @param {object} [params] extra parameters specific to the exchange API endpoint
562
567
  * @returns {object[]} an array of objects representing market data
563
568
  */
@@ -1383,6 +1388,7 @@ export default class digifinex extends Exchange {
1383
1388
  * @method
1384
1389
  * @name digifinex#fetchTime
1385
1390
  * @description fetches the current integer timestamp in milliseconds from the exchange server
1391
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#server-timestamp
1386
1392
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1387
1393
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
1388
1394
  */
@@ -1400,6 +1406,7 @@ export default class digifinex extends Exchange {
1400
1406
  * @method
1401
1407
  * @name digifinex#fetchStatus
1402
1408
  * @description the latest known information on the availability of the exchange API
1409
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#server-ping
1403
1410
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1404
1411
  * @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
1405
1412
  */
@@ -2028,6 +2035,7 @@ export default class digifinex extends Exchange {
2028
2035
  * @method
2029
2036
  * @name digifinex#cancelOrders
2030
2037
  * @description cancel multiple orders
2038
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#cancel-order
2031
2039
  * @param {string[]} ids order ids
2032
2040
  * @param {string} symbol not used by digifinex cancelOrders ()
2033
2041
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -2804,6 +2812,7 @@ export default class digifinex extends Exchange {
2804
2812
  * @method
2805
2813
  * @name digifinex#fetchDepositAddress
2806
2814
  * @description fetch the deposit address for a currency associated with this account
2815
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#deposit-address-inquiry
2807
2816
  * @param {string} code unified currency code
2808
2817
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2809
2818
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
@@ -2886,6 +2895,7 @@ export default class digifinex extends Exchange {
2886
2895
  * @method
2887
2896
  * @name digifinex#fetchDeposits
2888
2897
  * @description fetch all deposits made to an account
2898
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#deposit-history
2889
2899
  * @param {string} code unified currency code
2890
2900
  * @param {int} [since] the earliest time in ms to fetch deposits for
2891
2901
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -2899,6 +2909,7 @@ export default class digifinex extends Exchange {
2899
2909
  * @method
2900
2910
  * @name digifinex#fetchWithdrawals
2901
2911
  * @description fetch all withdrawals made from an account
2912
+ * @see https://docs.digifinex.com/en-ww/spot/v3/rest.html#withdrawal-history
2902
2913
  * @param {string} code unified currency code
2903
2914
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2904
2915
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -3410,6 +3421,7 @@ export default class digifinex extends Exchange {
3410
3421
  * @method
3411
3422
  * @name digifinex#fetchFundingRateHistory
3412
3423
  * @description fetches historical funding rate prices
3424
+ * @see https://docs.digifinex.com/en-ww/swap/v2/rest.html#fundingratehistory
3413
3425
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
3414
3426
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
3415
3427
  * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
package/js/src/dydx.d.ts CHANGED
@@ -19,7 +19,7 @@ export default class dydx extends Exchange {
19
19
  /**
20
20
  * @method
21
21
  * @name dydx#fetchMarkets
22
- * @description retrieves data on all markets for hyperliquid
22
+ * @description retrieves data on all markets for dydx
23
23
  * @see https://docs.dydx.xyz/indexer-client/http#get-perpetual-markets
24
24
  * @param {object} [params] extra parameters specific to the exchange API endpoint
25
25
  * @returns {object[]} an array of objects representing market data
@@ -30,7 +30,7 @@ export default class dydx extends Exchange {
30
30
  * @method
31
31
  * @name dydx#fetchTrades
32
32
  * @description get the list of most recent trades for a particular symbol
33
- * @see https://developer.woox.io/api-reference/endpoint/public_data/marketTrades
33
+ * @see https://docs.dydx.xyz/indexer-client/http#get-trades
34
34
  * @param {string} symbol unified symbol of the market to fetch trades for
35
35
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
36
36
  * @param {int} [limit] the maximum amount of trades to fetch
package/js/src/dydx.js CHANGED
@@ -571,7 +571,7 @@ export default class dydx extends Exchange {
571
571
  /**
572
572
  * @method
573
573
  * @name dydx#fetchMarkets
574
- * @description retrieves data on all markets for hyperliquid
574
+ * @description retrieves data on all markets for dydx
575
575
  * @see https://docs.dydx.xyz/indexer-client/http#get-perpetual-markets
576
576
  * @param {object} [params] extra parameters specific to the exchange API endpoint
577
577
  * @returns {object[]} an array of objects representing market data
@@ -653,7 +653,7 @@ export default class dydx extends Exchange {
653
653
  * @method
654
654
  * @name dydx#fetchTrades
655
655
  * @description get the list of most recent trades for a particular symbol
656
- * @see https://developer.woox.io/api-reference/endpoint/public_data/marketTrades
656
+ * @see https://docs.dydx.xyz/indexer-client/http#get-trades
657
657
  * @param {string} symbol unified symbol of the market to fetch trades for
658
658
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
659
659
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -22,7 +22,7 @@ export default class extended extends Exchange {
22
22
  'dex': true,
23
23
  'has': {
24
24
  'CORS': undefined,
25
- 'spot': false,
25
+ 'spot': true,
26
26
  'margin': false,
27
27
  'swap': true,
28
28
  'future': false,
package/js/src/gateeu.js CHANGED
@@ -47,6 +47,7 @@ export default class gateeu extends gate {
47
47
  'fetchMarkets': {
48
48
  'types': ['spot'],
49
49
  },
50
+ 'mica': true,
50
51
  },
51
52
  });
52
53
  }
package/js/src/grvt.d.ts CHANGED
@@ -187,7 +187,7 @@ export default class grvt extends Exchange {
187
187
  * @method
188
188
  * @name grvt#fetchWithdrawals
189
189
  * @description fetch all withdrawals made from an account
190
- * @see https://docs.backpack.exchange/#tag/Capital/operation/get_withdrawals
190
+ * @see https://api-docs.grvt.io/trading_api/#withdrawal-history
191
191
  * @param {string} [code] unified currency code of the currency transferred
192
192
  * @param {int} [since] the earliest time in ms to fetch transfers for (default 24 hours ago)
193
193
  * @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
package/js/src/grvt.js CHANGED
@@ -1416,7 +1416,7 @@ export default class grvt extends Exchange {
1416
1416
  * @method
1417
1417
  * @name grvt#fetchWithdrawals
1418
1418
  * @description fetch all withdrawals made from an account
1419
- * @see https://docs.backpack.exchange/#tag/Capital/operation/get_withdrawals
1419
+ * @see https://api-docs.grvt.io/trading_api/#withdrawal-history
1420
1420
  * @param {string} [code] unified currency code of the currency transferred
1421
1421
  * @param {int} [since] the earliest time in ms to fetch transfers for (default 24 hours ago)
1422
1422
  * @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/hashkey.js';
2
- import type { Account, Balances, Currencies, Currency, Dict, NullableDict, FundingRateHistory, LastPrice, LastPrices, Leverage, LeverageTier, LeverageTiers, Int, Market, Num, OHLCV, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry, LedgerEntry, FundingRate, FundingRates, DepositAddress, int } from './base/types.js';
2
+ import type { Account, Balances, Currencies, Currency, Dict, NullableDict, FundingRateHistory, LastPrice, LastPrices, Leverage, LeverageTier, LeverageTiers, MarginModification, Int, Market, Num, OHLCV, Order, OrderBook, OrderRequest, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry, LedgerEntry, FundingRate, FundingRates, DepositAddress, int } from './base/types.js';
3
3
  /**
4
4
  * @class hashkey
5
5
  * @augments Exchange
@@ -586,6 +586,43 @@ export default class hashkey extends Exchange {
586
586
  * @returns {object} response from the exchange
587
587
  */
588
588
  setLeverage(leverage: int, symbol?: Str, params?: {}): Promise<Leverage>;
589
+ /**
590
+ * @method
591
+ * @name hashkey#setMarginMode
592
+ * @description set margin mode to 'cross' or 'isolated'
593
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/change-margin-type
594
+ * @param {string} marginMode 'cross' or 'isolated'
595
+ * @param {string} symbol unified market symbol
596
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
597
+ * @returns {object} response from the exchange
598
+ */
599
+ setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<Dict>;
600
+ /**
601
+ * @method
602
+ * @name hashkey#addMargin
603
+ * @description add margin
604
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/modify-isolated-position-margin
605
+ * @param {string} symbol unified market symbol
606
+ * @param {float} amount amount of margin to add
607
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
608
+ * @param {string} params.side position side, either 'long' or 'short'
609
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
610
+ */
611
+ addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
612
+ /**
613
+ * @method
614
+ * @name hashkey#reduceMargin
615
+ * @description remove margin from a position
616
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/modify-isolated-position-margin
617
+ * @param {string} symbol unified market symbol
618
+ * @param {float} amount the amount of margin to remove
619
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
620
+ * @param {string} params.side position side, either 'long' or 'short'
621
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
622
+ */
623
+ reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
624
+ modifyMarginHelper(symbol: string, amount: any, type: any, params?: {}): Promise<MarginModification>;
625
+ parseMarginModification(data: Dict, market?: Market): MarginModification;
589
626
  /**
590
627
  * @method
591
628
  * @name hashkey#fetchLeverageTiers
@@ -601,7 +638,7 @@ export default class hashkey extends Exchange {
601
638
  * @method
602
639
  * @name hashkey#fetchTradingFee
603
640
  * @description fetch the trading fees for a market
604
- * @see https://developers.binance.com/docs/wallet/asset/trade-fee // spot
641
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/get-vip-information // spot
605
642
  * @see https://hashkeyglobal-apidoc.readme.io/reference/get-futures-commission-rate-request-weight // swap
606
643
  * @param {string} symbol unified market symbol
607
644
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -612,7 +649,7 @@ export default class hashkey extends Exchange {
612
649
  * @method
613
650
  * @name hashkey#fetchTradingFees
614
651
  * @description *for spot markets only* fetch the trading fees for multiple markets
615
- * @see https://developers.binance.com/docs/wallet/asset/trade-fee
652
+ * @see https://hashkeyglobal-apidoc.readme.io/reference/get-vip-information
616
653
  * @param {object} [params] extra parameters specific to the exchange API endpoint
617
654
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
618
655
  */