ccxt 4.5.13 → 4.5.14

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.
package/dist/cjs/ccxt.js CHANGED
@@ -213,7 +213,7 @@ SOFTWARE.
213
213
  */
214
214
  //-----------------------------------------------------------------------------
215
215
  // this is updated by vss.js when building
216
- const version = '4.5.13';
216
+ const version = '4.5.14';
217
217
  Exchange["default"].ccxtVersion = version;
218
218
  const exchanges = {
219
219
  'alpaca': alpaca["default"],
@@ -22,7 +22,7 @@ class arkham extends arkham$1["default"] {
22
22
  'version': 'v1',
23
23
  'rateLimit': 20 / 3,
24
24
  'certified': false,
25
- 'pro': false,
25
+ 'pro': true,
26
26
  'has': {
27
27
  'CORS': false,
28
28
  'spot': true,
@@ -71,7 +71,7 @@ class arkham extends arkham$1["default"] {
71
71
  '1d': '24h',
72
72
  },
73
73
  'urls': {
74
- 'logo': '',
74
+ 'logo': 'https://github.com/user-attachments/assets/5cefdcfb-2c10-445b-835c-fa21317bf5ac',
75
75
  'api': {
76
76
  'v1': 'https://arkm.com/api',
77
77
  },
@@ -243,6 +243,7 @@ class binance extends binance$1["default"] {
243
243
  'private': 'https://api.binance.com/api/v3',
244
244
  'v1': 'https://api.binance.com/api/v1',
245
245
  'papi': 'https://papi.binance.com/papi/v1',
246
+ 'papiV2': 'https://papi.binance.com/papi/v2',
246
247
  },
247
248
  'www': 'https://www.binance.com',
248
249
  'referral': {
@@ -1191,6 +1192,11 @@ class binance extends binance$1["default"] {
1191
1192
  'listenKey': 0.2,
1192
1193
  },
1193
1194
  },
1195
+ 'papiV2': {
1196
+ 'get': {
1197
+ 'um/account': 1,
1198
+ },
1199
+ },
1194
1200
  },
1195
1201
  'fees': {
1196
1202
  'trading': {
@@ -10984,7 +10990,7 @@ class binance extends binance$1["default"] {
10984
10990
  let response = undefined;
10985
10991
  if (this.isLinear(type, subType)) {
10986
10992
  if (isPortfolioMargin) {
10987
- response = await this.papiGetUmAccount(params);
10993
+ response = await this.papiV2GetUmAccount(params);
10988
10994
  }
10989
10995
  else {
10990
10996
  let useV2 = undefined;
@@ -12066,7 +12072,7 @@ class binance extends binance$1["default"] {
12066
12072
  throw new errors.AuthenticationError(this.id + ' userDataStream endpoint requires `apiKey` credential');
12067
12073
  }
12068
12074
  }
12069
- else if ((api === 'private') || (api === 'eapiPrivate') || (api === 'sapi' && path !== 'system/status') || (api === 'sapiV2') || (api === 'sapiV3') || (api === 'sapiV4') || (api === 'dapiPrivate') || (api === 'dapiPrivateV2') || (api === 'fapiPrivate') || (api === 'fapiPrivateV2') || (api === 'fapiPrivateV3') || (api === 'papi' && path !== 'ping')) {
12075
+ else if ((api === 'private') || (api === 'eapiPrivate') || (api === 'sapi' && path !== 'system/status') || (api === 'sapiV2') || (api === 'sapiV3') || (api === 'sapiV4') || (api === 'dapiPrivate') || (api === 'dapiPrivateV2') || (api === 'fapiPrivate') || (api === 'fapiPrivateV2') || (api === 'fapiPrivateV3') || (api === 'papiV2' || api === 'papi' && path !== 'ping')) {
12070
12076
  this.checkRequiredCredentials();
12071
12077
  if ((url.indexOf('testnet.binancefuture.com') > -1) && this.isSandboxModeEnabled && (!this.safeBool(this.options, 'disableFuturesSandboxWarning'))) {
12072
12078
  throw new errors.NotSupported(this.id + ' testnet/sandbox mode is not supported for futures anymore, please check the deprecation announcement https://t.me/ccxt_announcements/92 and consider using the demo trading instead.');
@@ -83,7 +83,7 @@ class bitget extends bitget$1["default"] {
83
83
  'fetchDepositWithdrawFees': true,
84
84
  'fetchFundingHistory': true,
85
85
  'fetchFundingInterval': true,
86
- 'fetchFundingIntervals': false,
86
+ 'fetchFundingIntervals': true,
87
87
  'fetchFundingRate': true,
88
88
  'fetchFundingRateHistory': true,
89
89
  'fetchFundingRates': true,
@@ -8586,6 +8586,7 @@ class bitget extends bitget$1["default"] {
8586
8586
  * @param {object} [params] extra parameters specific to the exchange API endpoint
8587
8587
  * @param {string} [params.subType] *contract only* 'linear', 'inverse'
8588
8588
  * @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
8589
+ * @param {string} [params.method] either (default) 'publicMixGetV2MixMarketTickers' or 'publicMixGetV2MixMarketCurrentFundRate'
8589
8590
  * @returns {object} a dictionary of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
8590
8591
  */
8591
8592
  async fetchFundingRates(symbols = undefined, params = {}) {
@@ -8598,44 +8599,84 @@ class bitget extends bitget$1["default"] {
8598
8599
  const request = {};
8599
8600
  let productType = undefined;
8600
8601
  [productType, params] = this.handleProductTypeAndParams(market, params);
8602
+ let method = 'publicMixGetV2MixMarketTickers';
8603
+ [method, params] = this.handleOptionAndParams(params, 'fetchFundingRates', 'method', method);
8604
+ let response = undefined;
8601
8605
  request['productType'] = productType;
8602
- const response = await this.publicMixGetV2MixMarketTickers(this.extend(request, params));
8603
- // {
8604
- // "code": "00000",
8605
- // "msg": "success",
8606
- // "requestTime": 1700533773477,
8607
- // "data": [
8608
- // {
8609
- // "symbol": "BTCUSD",
8610
- // "lastPr": "29904.5",
8611
- // "askPr": "29904.5",
8612
- // "bidPr": "29903.5",
8613
- // "bidSz": "0.5091",
8614
- // "askSz": "2.2694",
8615
- // "high24h": "0",
8616
- // "low24h": "0",
8617
- // "ts": "1695794271400",
8618
- // "change24h": "0",
8619
- // "baseVolume": "0",
8620
- // "quoteVolume": "0",
8621
- // "usdtVolume": "0",
8622
- // "openUtc": "0",
8623
- // "changeUtc24h": "0",
8624
- // "indexPrice": "29132.353333",
8625
- // "fundingRate": "-0.0007",
8626
- // "holdingAmount": "125.6844",
8627
- // "deliveryStartTime": null,
8628
- // "deliveryTime": null,
8629
- // "deliveryStatus": "delivery_normal",
8630
- // "open24h": "0",
8631
- // "markPrice": "12345"
8632
- // },
8633
- // ]
8634
- // }
8606
+ if (method === 'publicMixGetV2MixMarketTickers') {
8607
+ // {
8608
+ // "code": "00000",
8609
+ // "msg": "success",
8610
+ // "requestTime": 1700533773477,
8611
+ // "data": [
8612
+ // {
8613
+ // "symbol": "BTCUSD",
8614
+ // "lastPr": "29904.5",
8615
+ // "askPr": "29904.5",
8616
+ // "bidPr": "29903.5",
8617
+ // "bidSz": "0.5091",
8618
+ // "askSz": "2.2694",
8619
+ // "high24h": "0",
8620
+ // "low24h": "0",
8621
+ // "ts": "1695794271400",
8622
+ // "change24h": "0",
8623
+ // "baseVolume": "0",
8624
+ // "quoteVolume": "0",
8625
+ // "usdtVolume": "0",
8626
+ // "openUtc": "0",
8627
+ // "changeUtc24h": "0",
8628
+ // "indexPrice": "29132.353333",
8629
+ // "fundingRate": "-0.0007",
8630
+ // "holdingAmount": "125.6844",
8631
+ // "deliveryStartTime": null,
8632
+ // "deliveryTime": null,
8633
+ // "deliveryStatus": "delivery_normal",
8634
+ // "open24h": "0",
8635
+ // "markPrice": "12345"
8636
+ // },
8637
+ // ]
8638
+ // }
8639
+ response = await this.publicMixGetV2MixMarketTickers(this.extend(request, params));
8640
+ }
8641
+ else if (method === 'publicMixGetV2MixMarketCurrentFundRate') {
8642
+ //
8643
+ // {
8644
+ // "code": "00000",
8645
+ // "msg": "success",
8646
+ // "requestTime":1761659449917,
8647
+ // "data":[
8648
+ // {
8649
+ // "symbol": "BTCUSDT",
8650
+ // "fundingRate": "-0.000024",
8651
+ // "fundingRateInterval": "8",
8652
+ // "nextUpdate": "1761667200000",
8653
+ // "minFundingRate": "-0.003",
8654
+ // "maxFundingRate": "0.003"
8655
+ // }
8656
+ // ]
8657
+ // }
8658
+ //
8659
+ response = await this.publicMixGetV2MixMarketCurrentFundRate(this.extend(request, params));
8660
+ }
8635
8661
  symbols = this.marketSymbols(symbols);
8636
8662
  const data = this.safeList(response, 'data', []);
8637
8663
  return this.parseFundingRates(data, symbols);
8638
8664
  }
8665
+ /**
8666
+ * @method
8667
+ * @name bitget#fetchFundingIntervals
8668
+ * @description fetch the funding rate interval for multiple markets
8669
+ * @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbol-Ticker
8670
+ * @param {string[]} [symbols] list of unified market symbols
8671
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
8672
+ * @param {string} [params.productType] 'USDT-FUTURES' (default), 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
8673
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
8674
+ */
8675
+ async fetchFundingIntervals(symbols = undefined, params = {}) {
8676
+ await this.loadMarkets();
8677
+ params = this.extend({ 'method': 'publicMixGetV2MixMarketCurrentFundRate' }, params);
8678
+ return await this.fetchFundingRates(symbols, params);
8679
+ }
8639
8680
  parseFundingRate(contract, market = undefined) {
8640
8681
  //
8641
8682
  // fetchFundingRate: publicMixGetV2MixMarketCurrentFundRate, publicUtaGetV3MarketCurrentFundRate
@@ -315,30 +315,34 @@ class cryptocom extends cryptocom$1["default"] {
315
315
  },
316
316
  'fees': {
317
317
  'trading': {
318
- 'maker': this.parseNumber('0.004'),
319
- 'taker': this.parseNumber('0.004'),
318
+ 'maker': this.parseNumber('0.0025'),
319
+ 'taker': this.parseNumber('0.005'),
320
320
  'tiers': {
321
321
  'maker': [
322
- [this.parseNumber('0'), this.parseNumber('0.004')],
323
- [this.parseNumber('25000'), this.parseNumber('0.0035')],
322
+ [this.parseNumber('0'), this.parseNumber('0.0025')],
323
+ [this.parseNumber('10000'), this.parseNumber('0.002')],
324
324
  [this.parseNumber('50000'), this.parseNumber('0.0015')],
325
- [this.parseNumber('100000'), this.parseNumber('0.001')],
326
- [this.parseNumber('250000'), this.parseNumber('0.0009')],
327
- [this.parseNumber('1000000'), this.parseNumber('0.0008')],
328
- [this.parseNumber('20000000'), this.parseNumber('0.0007')],
329
- [this.parseNumber('100000000'), this.parseNumber('0.0006')],
330
- [this.parseNumber('200000000'), this.parseNumber('0.0004')],
325
+ [this.parseNumber('250000'), this.parseNumber('0.001')],
326
+ [this.parseNumber('500000'), this.parseNumber('0.0008')],
327
+ [this.parseNumber('2500000'), this.parseNumber('0.00065')],
328
+ [this.parseNumber('10000000'), this.parseNumber('0')],
329
+ [this.parseNumber('25000000'), this.parseNumber('0')],
330
+ [this.parseNumber('100000000'), this.parseNumber('0')],
331
+ [this.parseNumber('250000000'), this.parseNumber('0')],
332
+ [this.parseNumber('500000000'), this.parseNumber('0')],
331
333
  ],
332
334
  'taker': [
333
- [this.parseNumber('0'), this.parseNumber('0.004')],
334
- [this.parseNumber('25000'), this.parseNumber('0.0035')],
335
+ [this.parseNumber('0'), this.parseNumber('0.005')],
336
+ [this.parseNumber('10000'), this.parseNumber('0.004')],
335
337
  [this.parseNumber('50000'), this.parseNumber('0.0025')],
336
- [this.parseNumber('100000'), this.parseNumber('0.0016')],
337
- [this.parseNumber('250000'), this.parseNumber('0.00015')],
338
- [this.parseNumber('1000000'), this.parseNumber('0.00014')],
339
- [this.parseNumber('20000000'), this.parseNumber('0.00013')],
340
- [this.parseNumber('100000000'), this.parseNumber('0.00012')],
341
- [this.parseNumber('200000000'), this.parseNumber('0.0001')],
338
+ [this.parseNumber('250000'), this.parseNumber('0.002')],
339
+ [this.parseNumber('500000'), this.parseNumber('0.0018')],
340
+ [this.parseNumber('2500000'), this.parseNumber('0.001')],
341
+ [this.parseNumber('10000000'), this.parseNumber('0.0005')],
342
+ [this.parseNumber('25000000'), this.parseNumber('0.0004')],
343
+ [this.parseNumber('100000000'), this.parseNumber('0.00035')],
344
+ [this.parseNumber('250000000'), this.parseNumber('0.00031')],
345
+ [this.parseNumber('500000000'), this.parseNumber('0.00025')],
342
346
  ],
343
347
  },
344
348
  },
@@ -190,6 +190,12 @@ class gate extends gate$1["default"] {
190
190
  'currency_chains': 1,
191
191
  },
192
192
  },
193
+ 'unified': {
194
+ 'get': {
195
+ 'currencies': 1,
196
+ 'history_loan_rate': 1,
197
+ },
198
+ },
193
199
  'spot': {
194
200
  'get': {
195
201
  'currencies': 1,
@@ -201,22 +207,25 @@ class gate extends gate$1["default"] {
201
207
  'trades': 1,
202
208
  'candlesticks': 1,
203
209
  'time': 1,
210
+ 'insurance_history': 1,
204
211
  },
205
212
  },
206
213
  'margin': {
207
214
  'get': {
215
+ 'uni/currency_pairs': 1,
216
+ 'uni/currency_pairs/{currency_pair}': 1,
217
+ 'loan_margin_tiers': 1,
208
218
  'currency_pairs': 1,
209
219
  'currency_pairs/{currency_pair}': 1,
210
220
  'funding_book': 1,
211
221
  'cross/currencies': 1,
212
- 'cross/currencies/{currency}': 1,
213
- 'uni/currency_pairs': 1,
214
- 'uni/currency_pairs/{currency_pair}': 1,
222
+ 'cross/currencies/{currency}': 1, // deprecated
215
223
  },
216
224
  },
217
225
  'flash_swap': {
218
226
  'get': {
219
- 'currencies': 1,
227
+ 'currency_pairs': 1,
228
+ 'currencies': 1, // deprecated
220
229
  },
221
230
  },
222
231
  'futures': {
@@ -245,6 +254,7 @@ class gate extends gate$1["default"] {
245
254
  '{settle}/candlesticks': 1,
246
255
  '{settle}/tickers': 1,
247
256
  '{settle}/insurance': 1,
257
+ '{settle}/risk_limit_tiers': 1,
248
258
  },
249
259
  },
250
260
  'options': {
@@ -267,6 +277,17 @@ class gate extends gate$1["default"] {
267
277
  'get': {
268
278
  'uni/currencies': 1,
269
279
  'uni/currencies/{currency}': 1,
280
+ 'dual/investment_plan': 1,
281
+ 'structured/products': 1,
282
+ },
283
+ },
284
+ 'loan': {
285
+ 'get': {
286
+ 'collateral/currencies': 1,
287
+ 'multi_collateral/currencies': 1,
288
+ 'multi_collateral/ltv': 1,
289
+ 'multi_collateral/fixed_rate': 1,
290
+ 'multi_collateral/current_rate': 1,
270
291
  },
271
292
  },
272
293
  },
@@ -330,25 +351,28 @@ class gate extends gate$1["default"] {
330
351
  'unified': {
331
352
  'get': {
332
353
  'accounts': 20 / 15,
333
- 'account_mode': 20 / 15,
334
354
  'borrowable': 20 / 15,
335
355
  'transferable': 20 / 15,
356
+ 'transferables': 20 / 15,
357
+ 'batch_borrowable': 20 / 15,
336
358
  'loans': 20 / 15,
337
359
  'loan_records': 20 / 15,
338
360
  'interest_records': 20 / 15,
339
- 'estimate_rate': 20 / 15,
340
- 'currency_discount_tiers': 20 / 15,
341
361
  'risk_units': 20 / 15,
342
362
  'unified_mode': 20 / 15,
363
+ 'estimate_rate': 20 / 15,
364
+ 'currency_discount_tiers': 20 / 15,
343
365
  'loan_margin_tiers': 20 / 15,
344
366
  'leverage/user_currency_config': 20 / 15,
345
367
  'leverage/user_currency_setting': 20 / 15,
368
+ 'account_mode': 20 / 15, // deprecated
346
369
  },
347
370
  'post': {
348
- 'account_mode': 20 / 15,
349
371
  'loans': 200 / 15,
350
372
  'portfolio_calculator': 20 / 15,
351
373
  'leverage/user_currency_setting': 20 / 15,
374
+ 'collateral_currencies': 20 / 15,
375
+ 'account_mode': 20 / 15, // deprecated
352
376
  },
353
377
  'put': {
354
378
  'unified_mode': 20 / 15,
@@ -394,6 +418,13 @@ class gate extends gate$1["default"] {
394
418
  'funding_accounts': 20 / 15,
395
419
  'auto_repay': 20 / 15,
396
420
  'transferable': 20 / 15,
421
+ 'uni/estimate_rate': 20 / 15,
422
+ 'uni/loans': 20 / 15,
423
+ 'uni/loan_records': 20 / 15,
424
+ 'uni/interest_records': 20 / 15,
425
+ 'uni/borrowable': 20 / 15,
426
+ 'user/loan_margin_tiers': 20 / 15,
427
+ 'user/account': 20 / 15,
397
428
  'loans': 20 / 15,
398
429
  'loans/{loan_id}': 20 / 15,
399
430
  'loans/{loan_id}/repayment': 20 / 15,
@@ -408,34 +439,28 @@ class gate extends gate$1["default"] {
408
439
  'cross/interest_records': 20 / 15,
409
440
  'cross/transferable': 20 / 15,
410
441
  'cross/estimate_rate': 20 / 15,
411
- 'cross/borrowable': 20 / 15,
412
- 'uni/estimate_rate': 20 / 15,
413
- 'uni/loans': 20 / 15,
414
- 'uni/loan_records': 20 / 15,
415
- 'uni/interest_records': 20 / 15,
416
- 'uni/borrowable': 20 / 15,
442
+ 'cross/borrowable': 20 / 15, // deprecated
417
443
  },
418
444
  'post': {
419
445
  'auto_repay': 20 / 15,
446
+ 'uni/loans': 20 / 15,
447
+ 'leverage/user_market_setting': 20 / 15,
420
448
  'loans': 20 / 15,
421
449
  'merged_loans': 20 / 15,
422
450
  'loans/{loan_id}/repayment': 20 / 15,
423
451
  'cross/loans': 20 / 15,
424
- 'cross/repayments': 20 / 15,
425
- 'uni/loans': 20 / 15,
452
+ 'cross/repayments': 20 / 15, // deprecated
426
453
  },
427
454
  'patch': {
428
455
  'loans/{loan_id}': 20 / 15,
429
- 'loan_records/{loan_record_id}': 20 / 15,
456
+ 'loan_records/{loan_record_id}': 20 / 15, // deprecated
430
457
  },
431
458
  'delete': {
432
- 'loans/{loan_id}': 20 / 15,
459
+ 'loans/{loan_id}': 20 / 15, // deprecated
433
460
  },
434
461
  },
435
462
  'flash_swap': {
436
463
  'get': {
437
- 'currencies': 1,
438
- 'currency_pairs': 1,
439
464
  'orders': 1,
440
465
  'orders/{order_id}': 1,
441
466
  },
@@ -460,7 +485,7 @@ class gate extends gate$1["default"] {
460
485
  '{settle}/liquidates': 1,
461
486
  '{settle}/auto_deleverages': 1,
462
487
  '{settle}/fee': 1,
463
- '{settle}/risk_limit_tiers': 1,
488
+ '{settle}/risk_limit_table': 1,
464
489
  '{settle}/price_orders': 1,
465
490
  '{settle}/price_orders/{order_id}': 1,
466
491
  },
@@ -468,6 +493,8 @@ class gate extends gate$1["default"] {
468
493
  '{settle}/positions/{contract}/margin': 1,
469
494
  '{settle}/positions/{contract}/leverage': 1,
470
495
  '{settle}/positions/{contract}/risk_limit': 1,
496
+ '{settle}/positions/cross_mode': 1,
497
+ '{settle}/dual_comp/positions/cross_mode': 1,
471
498
  '{settle}/dual_mode': 1,
472
499
  '{settle}/dual_comp/positions/{contract}/margin': 1,
473
500
  '{settle}/dual_comp/positions/{contract}/leverage': 1,
@@ -476,6 +503,8 @@ class gate extends gate$1["default"] {
476
503
  '{settle}/batch_orders': 0.4,
477
504
  '{settle}/countdown_cancel_all': 0.4,
478
505
  '{settle}/batch_cancel_orders': 0.4,
506
+ '{settle}/batch_amend_orders': 0.4,
507
+ '{settle}/bbo_orders': 0.4,
479
508
  '{settle}/price_orders': 0.4,
480
509
  },
481
510
  'put': {
@@ -543,19 +572,32 @@ class gate extends gate$1["default"] {
543
572
  },
544
573
  'earn': {
545
574
  'get': {
546
- 'uni/currencies': 20 / 15,
547
- 'uni/currencies/{currency}': 20 / 15,
548
575
  'uni/lends': 20 / 15,
549
576
  'uni/lend_records': 20 / 15,
550
577
  'uni/interests/{currency}': 20 / 15,
551
578
  'uni/interest_records': 20 / 15,
552
579
  'uni/interest_status/{currency}': 20 / 15,
580
+ 'uni/chart': 20 / 15,
581
+ 'uni/rate': 20 / 15,
582
+ 'staking/eth2/rate_records': 20 / 15,
583
+ 'dual/orders': 20 / 15,
584
+ 'structured/orders': 20 / 15,
585
+ 'staking/coins': 20 / 15,
586
+ 'staking/order_list': 20 / 15,
587
+ 'staking/award_list': 20 / 15,
588
+ 'staking/assets': 20 / 15,
589
+ 'uni/currencies': 20 / 15,
590
+ 'uni/currencies/{currency}': 20 / 15, // deprecated
553
591
  },
554
592
  'post': {
555
593
  'uni/lends': 20 / 15,
594
+ 'staking/eth2/swap': 20 / 15,
595
+ 'dual/orders': 20 / 15,
596
+ 'structured/orders': 20 / 15,
597
+ 'staking/swap': 20 / 15,
556
598
  },
557
599
  'put': {
558
- 'uni/interest_reinvest': 20 / 15,
600
+ 'uni/interest_reinvest': 20 / 15, // deprecated
559
601
  },
560
602
  'patch': {
561
603
  'uni/lends': 20 / 15,
@@ -569,16 +611,16 @@ class gate extends gate$1["default"] {
569
611
  'collateral/collaterals': 20 / 15,
570
612
  'collateral/total_amount': 20 / 15,
571
613
  'collateral/ltv': 20 / 15,
572
- 'collateral/currencies': 20 / 15,
573
614
  'multi_collateral/orders': 20 / 15,
574
615
  'multi_collateral/orders/{order_id}': 20 / 15,
575
616
  'multi_collateral/repay': 20 / 15,
576
617
  'multi_collateral/mortgage': 20 / 15,
577
618
  'multi_collateral/currency_quota': 20 / 15,
619
+ 'collateral/currencies': 20 / 15,
578
620
  'multi_collateral/currencies': 20 / 15,
579
621
  'multi_collateral/ltv': 20 / 15,
580
622
  'multi_collateral/fixed_rate': 20 / 15,
581
- 'multi_collateral/current_rate': 20 / 15,
623
+ 'multi_collateral/current_rate': 20 / 15, // deprecated
582
624
  },
583
625
  'post': {
584
626
  'collateral/orders': 20 / 15,
@@ -592,14 +634,17 @@ class gate extends gate$1["default"] {
592
634
  'account': {
593
635
  'get': {
594
636
  'detail': 20 / 15,
637
+ 'main_keys': 20 / 15,
595
638
  'rate_limit': 20 / 15,
596
639
  'stp_groups': 20 / 15,
597
640
  'stp_groups/{stp_id}/users': 20 / 15,
598
641
  'stp_groups/debit_fee': 20 / 15,
642
+ 'debit_fee': 20 / 15,
599
643
  },
600
644
  'post': {
601
645
  'stp_groups': 20 / 15,
602
646
  'stp_groups/{stp_id}/users': 20 / 15,
647
+ 'debit_fee': 20 / 15,
603
648
  },
604
649
  'delete': {
605
650
  'stp_groups/{stp_id}/users': 20 / 15,
@@ -609,6 +654,13 @@ class gate extends gate$1["default"] {
609
654
  'get': {
610
655
  'agency/transaction_history': 20 / 15,
611
656
  'agency/commission_history': 20 / 15,
657
+ 'partner/transaction_history': 20 / 15,
658
+ 'partner/commission_history': 20 / 15,
659
+ 'partner/sub_list': 20 / 15,
660
+ 'broker/commission_history': 20 / 15,
661
+ 'broker/transaction_history': 20 / 15,
662
+ 'user/info': 20 / 15,
663
+ 'user/sub_relation': 20 / 15,
612
664
  },
613
665
  },
614
666
  },
@@ -6388,7 +6440,7 @@ class gate extends gate$1["default"] {
6388
6440
  if (type !== 'future' && type !== 'swap') {
6389
6441
  throw new errors.BadRequest(this.id + ' fetchMarketLeverageTiers only supports swap and future');
6390
6442
  }
6391
- const response = await this.privateFuturesGetSettleRiskLimitTiers(this.extend(request, requestParams));
6443
+ const response = await this.publicFuturesGetSettleRiskLimitTiers(this.extend(request, requestParams));
6392
6444
  //
6393
6445
  // [
6394
6446
  // {