ccxt 4.0.101 → 4.0.103

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 (50) hide show
  1. package/README.md +5 -6
  2. package/dist/ccxt.browser.js +1130 -2730
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +2 -4
  5. package/dist/cjs/src/base/errors.js +2 -1
  6. package/dist/cjs/src/binance.js +8 -0
  7. package/dist/cjs/src/bingx.js +111 -4
  8. package/dist/cjs/src/bitget.js +3 -0
  9. package/dist/cjs/src/bitmart.js +271 -46
  10. package/dist/cjs/src/bitrue.js +7 -0
  11. package/dist/cjs/src/bl3p.js +8 -0
  12. package/dist/cjs/src/bybit.js +79 -55
  13. package/dist/cjs/src/gate.js +221 -218
  14. package/dist/cjs/src/gemini.js +1 -0
  15. package/dist/cjs/src/pro/binance.js +7 -7
  16. package/dist/cjs/src/pro/bybit.js +18 -17
  17. package/dist/cjs/src/pro/coinbasepro.js +10 -10
  18. package/dist/cjs/src/pro/kucoin.js +3 -3
  19. package/dist/cjs/src/wavesexchange.js +2 -1
  20. package/js/ccxt.d.ts +3 -6
  21. package/js/ccxt.js +3 -5
  22. package/js/src/abstract/binance.d.ts +8 -0
  23. package/js/src/abstract/binancecoinm.d.ts +8 -0
  24. package/js/src/abstract/binanceus.d.ts +8 -0
  25. package/js/src/abstract/binanceusdm.d.ts +8 -0
  26. package/js/src/abstract/bingx.d.ts +16 -1
  27. package/js/src/base/errorHierarchy.d.ts +1 -0
  28. package/js/src/base/errorHierarchy.js +1 -0
  29. package/js/src/base/errors.d.ts +2 -1
  30. package/js/src/base/errors.js +2 -2
  31. package/js/src/binance.js +8 -0
  32. package/js/src/bingx.d.ts +8 -0
  33. package/js/src/bingx.js +111 -4
  34. package/js/src/bitget.js +3 -0
  35. package/js/src/bitmart.d.ts +46 -5
  36. package/js/src/bitmart.js +271 -46
  37. package/js/src/bitrue.js +7 -0
  38. package/js/src/bl3p.js +8 -0
  39. package/js/src/bybit.js +80 -56
  40. package/js/src/gate.js +221 -218
  41. package/js/src/gemini.js +1 -0
  42. package/js/src/pro/binance.js +7 -7
  43. package/js/src/pro/bybit.js +18 -17
  44. package/js/src/pro/coinbasepro.js +10 -10
  45. package/js/src/pro/kucoin.js +3 -3
  46. package/js/src/wavesexchange.js +2 -1
  47. package/package.json +1 -1
  48. package/skip-tests.json +5 -7
  49. package/js/src/abstract/bkex.d.ts +0 -61
  50. package/js/src/abstract/bkex.js +0 -11
@@ -17,7 +17,7 @@ class gate extends gate$1 {
17
17
  'id': 'gate',
18
18
  'name': 'Gate.io',
19
19
  'countries': ['KR'],
20
- 'rateLimit': 10 / 3,
20
+ 'rateLimit': 50,
21
21
  'version': 'v4',
22
22
  'certified': true,
23
23
  'pro': true,
@@ -144,9 +144,10 @@ class gate extends gate$1 {
144
144
  },
145
145
  'api': {
146
146
  'public': {
147
+ // All public endpoints 200r/10s per endpoint
147
148
  'wallet': {
148
149
  'get': {
149
- 'currency_chains': 1.5,
150
+ 'currency_chains': 1,
150
151
  },
151
152
  },
152
153
  'spot': {
@@ -180,131 +181,133 @@ class gate extends gate$1 {
180
181
  },
181
182
  'futures': {
182
183
  'get': {
183
- '{settle}/contracts': 1.5,
184
- '{settle}/contracts/{contract}': 1.5,
185
- '{settle}/order_book': 1.5,
186
- '{settle}/trades': 1.5,
187
- '{settle}/candlesticks': 1.5,
188
- '{settle}/premium_index': 1.5,
189
- '{settle}/tickers': 1.5,
190
- '{settle}/funding_rate': 1.5,
191
- '{settle}/insurance': 1.5,
192
- '{settle}/contract_stats': 1.5,
193
- '{settle}/index_constituents/{index}': 1.5,
194
- '{settle}/liq_orders': 1.5,
184
+ '{settle}/contracts': 1,
185
+ '{settle}/contracts/{contract}': 1,
186
+ '{settle}/order_book': 1,
187
+ '{settle}/trades': 1,
188
+ '{settle}/candlesticks': 1,
189
+ '{settle}/premium_index': 1,
190
+ '{settle}/tickers': 1,
191
+ '{settle}/funding_rate': 1,
192
+ '{settle}/insurance': 1,
193
+ '{settle}/contract_stats': 1,
194
+ '{settle}/index_constituents/{index}': 1,
195
+ '{settle}/liq_orders': 1,
195
196
  },
196
197
  },
197
198
  'delivery': {
198
199
  'get': {
199
- '{settle}/contracts': 1.5,
200
- '{settle}/contracts/{contract}': 1.5,
201
- '{settle}/order_book': 1.5,
202
- '{settle}/trades': 1.5,
203
- '{settle}/candlesticks': 1.5,
204
- '{settle}/tickers': 1.5,
205
- '{settle}/insurance': 1.5,
200
+ '{settle}/contracts': 1,
201
+ '{settle}/contracts/{contract}': 1,
202
+ '{settle}/order_book': 1,
203
+ '{settle}/trades': 1,
204
+ '{settle}/candlesticks': 1,
205
+ '{settle}/tickers': 1,
206
+ '{settle}/insurance': 1,
206
207
  },
207
208
  },
208
209
  'options': {
209
210
  'get': {
210
- 'underlyings': 1.5,
211
- 'expirations': 1.5,
212
- 'contracts': 1.5,
213
- 'contracts/{contract}': 1.5,
214
- 'settlements': 1.5,
215
- 'settlements/{contract}': 1.5,
216
- 'order_book': 1.5,
217
- 'tickers': 1.5,
218
- 'underlying/tickers/{underlying}': 1.5,
219
- 'candlesticks': 1.5,
220
- 'underlying/candlesticks': 1.5,
221
- 'trades': 1.5,
211
+ 'underlyings': 1,
212
+ 'expirations': 1,
213
+ 'contracts': 1,
214
+ 'contracts/{contract}': 1,
215
+ 'settlements': 1,
216
+ 'settlements/{contract}': 1,
217
+ 'order_book': 1,
218
+ 'tickers': 1,
219
+ 'underlying/tickers/{underlying}': 1,
220
+ 'candlesticks': 1,
221
+ 'underlying/candlesticks': 1,
222
+ 'trades': 1,
222
223
  },
223
224
  },
224
225
  'earn': {
225
226
  'get': {
226
- 'uni/currencies': 1.5,
227
- 'uni/currencies/{currency}': 1.5,
227
+ 'uni/currencies': 1,
228
+ 'uni/currencies/{currency}': 1,
228
229
  },
229
230
  },
230
231
  },
231
232
  'private': {
233
+ // private endpoints default is 150r/10s per endpoint
232
234
  'withdrawals': {
233
235
  'post': {
234
- 'withdrawals': 3000, // 3000 = 10 seconds
236
+ 'withdrawals': 20, // 1r/s cost = 20 / 1 = 20
235
237
  },
236
238
  'delete': {
237
- 'withdrawals/{withdrawal_id}': 300,
239
+ 'withdrawals/{withdrawal_id}': 1,
238
240
  },
239
241
  },
240
242
  'wallet': {
241
243
  'get': {
242
- 'deposit_address': 300,
243
- 'withdrawals': 300,
244
- 'deposits': 300,
245
- 'sub_account_transfers': 300,
246
- 'withdraw_status': 300,
247
- 'sub_account_balances': 300,
248
- 'sub_account_margin_balances': 300,
249
- 'sub_account_futures_balances': 300,
250
- 'sub_account_cross_margin_balances': 300,
251
- 'saved_address': 300,
252
- 'fee': 300,
253
- 'total_balance': 300,
244
+ 'deposit_address': 1,
245
+ 'withdrawals': 1,
246
+ 'deposits': 1,
247
+ 'sub_account_transfers': 1,
248
+ 'withdraw_status': 1,
249
+ 'sub_account_balances': 2.5,
250
+ 'sub_account_margin_balances': 2.5,
251
+ 'sub_account_futures_balances': 2.5,
252
+ 'sub_account_cross_margin_balances': 2.5,
253
+ 'saved_address': 1,
254
+ 'fee': 1,
255
+ 'total_balance': 2.5,
254
256
  },
255
257
  'post': {
256
- 'transfers': 300,
257
- 'sub_account_transfers': 300,
258
- 'sub_account_to_sub_account': 300,
258
+ 'transfers': 2.5,
259
+ 'sub_account_transfers': 2.5,
260
+ 'sub_account_to_sub_account': 2.5,
259
261
  },
260
262
  },
261
263
  'subAccounts': {
262
264
  'get': {
263
- 'sub_accounts': 1,
264
- 'sub_accounts/{user_id}': 1,
265
- 'sub_accounts/{user_id}/keys': 1,
266
- 'sub_accounts/{user_id}/keys/{key}': 1,
265
+ 'sub_accounts': 2.5,
266
+ 'sub_accounts/{user_id}': 2.5,
267
+ 'sub_accounts/{user_id}/keys': 2.5,
268
+ 'sub_accounts/{user_id}/keys/{key}': 2.5,
267
269
  },
268
270
  'post': {
269
- 'sub_accounts': 1,
270
- 'sub_accounts/{user_id}/keys': 1,
271
- 'sub_accounts/{user_id}/lock': 1,
272
- 'sub_accounts/{user_id}/unlock': 1,
271
+ 'sub_accounts': 2.5,
272
+ 'sub_accounts/{user_id}/keys': 2.5,
273
+ 'sub_accounts/{user_id}/lock': 2.5,
274
+ 'sub_accounts/{user_id}/unlock': 2.5,
273
275
  },
274
276
  'put': {
275
- 'sub_accounts/{user_id}/keys/{key}': 1,
277
+ 'sub_accounts/{user_id}/keys/{key}': 2.5,
276
278
  },
277
279
  'delete': {
278
- 'sub_accounts/{user_id}/keys/{key}': 1,
280
+ 'sub_accounts/{user_id}/keys/{key}': 2.5,
279
281
  },
280
282
  },
281
283
  'portfolio': {
282
284
  'get': {
283
- 'spot/currency_pairs': 1.5,
284
- 'spot/currency_pairs/{currency_pair}': 1.5,
285
- 'accounts': 1.5,
286
- 'account_mode': 1.5,
287
- 'borrowable': 1.5,
288
- 'transferable': 1.5,
289
- 'loans': 1.5,
290
- 'loan_records': 1.5,
291
- 'interest_records': 1.5,
292
- 'spot/orders': 1.5,
293
- 'spot/orders/{order_id}': 1.5,
285
+ 'spot/currency_pairs': 20 / 15,
286
+ 'spot/currency_pairs/{currency_pair}': 20 / 15,
287
+ 'accounts': 20 / 15,
288
+ 'account_mode': 20 / 15,
289
+ 'borrowable': 20 / 15,
290
+ 'transferable': 20 / 15,
291
+ 'loans': 20 / 15,
292
+ 'loan_records': 20 / 15,
293
+ 'interest_records': 20 / 15,
294
+ 'spot/orders': 20 / 15,
295
+ 'spot/orders/{order_id}': 20 / 15,
294
296
  },
295
297
  'post': {
296
- 'account_mode': 1.5,
297
- 'loans': 1.5,
298
- 'spot/orders': 1.5,
298
+ 'account_mode': 20 / 15,
299
+ 'loans': 200 / 15,
300
+ 'spot/orders': 20 / 15,
299
301
  },
300
302
  'delete': {
301
- 'spot/orders/{order_id}': 1.5,
303
+ 'spot/orders/{order_id}': 20 / 15,
302
304
  },
303
305
  'patch': {
304
- 'spot/orders/{order_id}': 1.5,
306
+ 'spot/orders/{order_id}': 20 / 15,
305
307
  },
306
308
  },
307
309
  'spot': {
310
+ // default is 200r/10s
308
311
  'get': {
309
312
  'fee': 1,
310
313
  'batch_fee': 1,
@@ -318,219 +321,219 @@ class gate extends gate$1 {
318
321
  'price_orders/{order_id}': 1,
319
322
  },
320
323
  'post': {
321
- 'batch_orders': 1,
324
+ 'batch_orders': 0.4,
322
325
  'cross_liquidate_orders': 1,
323
- 'orders': 1,
324
- 'cancel_batch_orders': 1,
325
- 'countdown_cancel_all': 1,
326
- 'price_orders': 1,
326
+ 'orders': 0.4,
327
+ 'cancel_batch_orders': 20 / 75,
328
+ 'countdown_cancel_all': 20 / 75,
329
+ 'price_orders': 0.4,
327
330
  },
328
331
  'delete': {
329
- 'orders': 1,
330
- 'orders/{order_id}': 1,
331
- 'price_orders': 1,
332
- 'price_orders/{order_id}': 1,
332
+ 'orders': 20 / 75,
333
+ 'orders/{order_id}': 20 / 75,
334
+ 'price_orders': 20 / 75,
335
+ 'price_orders/{order_id}': 20 / 75,
333
336
  },
334
337
  'patch': {
335
- 'orders/{order_id}': 1,
338
+ 'orders/{order_id}': 0.4,
336
339
  },
337
340
  },
338
341
  'margin': {
339
342
  'get': {
340
- 'accounts': 1.5,
341
- 'account_book': 1.5,
342
- 'funding_accounts': 1.5,
343
- 'auto_repay': 1.5,
344
- 'transferable': 1.5,
345
- 'loans': 1.5,
346
- 'loans/{loan_id}': 1.5,
347
- 'loans/{loan_id}/repayment': 1.5,
348
- 'loan_records': 1.5,
349
- 'loan_records/{loan_record_id}': 1.5,
350
- 'borrowable': 1.5,
351
- 'cross/accounts': 1.5,
352
- 'cross/account_book': 1.5,
353
- 'cross/loans': 1.5,
354
- 'cross/loans/{loan_id}': 1.5,
355
- 'cross/repayments': 1.5,
356
- 'cross/interest_records': 1.5,
357
- 'cross/transferable': 1.5,
358
- 'cross/estimate_rate': 1.5,
359
- 'cross/borrowable': 1.5,
360
- 'uni/estimate_rate': 1.5,
361
- 'uni/loans': 1.5,
362
- 'uni/loan_records': 1.5,
363
- 'uni/interest_records': 1.5,
364
- 'uni/borrowable': 1.5,
343
+ 'accounts': 20 / 15,
344
+ 'account_book': 20 / 15,
345
+ 'funding_accounts': 20 / 15,
346
+ 'auto_repay': 20 / 15,
347
+ 'transferable': 20 / 15,
348
+ 'loans': 20 / 15,
349
+ 'loans/{loan_id}': 20 / 15,
350
+ 'loans/{loan_id}/repayment': 20 / 15,
351
+ 'loan_records': 20 / 15,
352
+ 'loan_records/{loan_record_id}': 20 / 15,
353
+ 'borrowable': 20 / 15,
354
+ 'cross/accounts': 20 / 15,
355
+ 'cross/account_book': 20 / 15,
356
+ 'cross/loans': 20 / 15,
357
+ 'cross/loans/{loan_id}': 20 / 15,
358
+ 'cross/repayments': 20 / 15,
359
+ 'cross/interest_records': 20 / 15,
360
+ 'cross/transferable': 20 / 15,
361
+ 'cross/estimate_rate': 20 / 15,
362
+ 'cross/borrowable': 20 / 15,
363
+ 'uni/estimate_rate': 20 / 15,
364
+ 'uni/loans': 20 / 15,
365
+ 'uni/loan_records': 20 / 15,
366
+ 'uni/interest_records': 20 / 15,
367
+ 'uni/borrowable': 20 / 15,
365
368
  },
366
369
  'post': {
367
- 'auto_repay': 1.5,
368
- 'loans': 1.5,
369
- 'merged_loans': 1.5,
370
- 'loans/{loan_id}/repayment': 1.5,
371
- 'cross/loans': 1.5,
372
- 'cross/repayments': 1.5,
373
- 'uni/loans': 1.5,
370
+ 'auto_repay': 20 / 15,
371
+ 'loans': 20 / 15,
372
+ 'merged_loans': 20 / 15,
373
+ 'loans/{loan_id}/repayment': 20 / 15,
374
+ 'cross/loans': 20 / 15,
375
+ 'cross/repayments': 20 / 15,
376
+ 'uni/loans': 20 / 15,
374
377
  },
375
378
  'patch': {
376
- 'loans/{loan_id}': 1.5,
377
- 'loan_records/{loan_record_id}': 1.5,
379
+ 'loans/{loan_id}': 20 / 15,
380
+ 'loan_records/{loan_record_id}': 20 / 15,
378
381
  },
379
382
  'delete': {
380
- 'loans/{loan_id}': 1.5,
383
+ 'loans/{loan_id}': 20 / 15,
381
384
  },
382
385
  },
383
386
  'flash_swap': {
384
387
  'get': {
385
- 'currencies': 1.5,
386
- 'currency_pairs': 1.5,
387
- 'orders': 1.5,
388
- 'orders/{order_id}': 1.5,
388
+ 'currencies': 1,
389
+ 'currency_pairs': 1,
390
+ 'orders': 1,
391
+ 'orders/{order_id}': 1,
389
392
  },
390
393
  'post': {
391
- 'orders': 1.5,
392
- 'orders/preview': 1.5,
394
+ 'orders': 1,
395
+ 'orders/preview': 1,
393
396
  },
394
397
  },
395
398
  'futures': {
396
399
  'get': {
397
- '{settle}/accounts': 1.5,
398
- '{settle}/account_book': 1.5,
399
- '{settle}/positions': 1.5,
400
- '{settle}/positions/{contract}': 1.5,
401
- '{settle}/dual_comp/positions/{contract}': 1.5,
402
- '{settle}/orders': 1.5,
403
- '{settle}/orders_timerange': 1.5,
404
- '{settle}/orders/{order_id}': 1.5,
405
- '{settle}/my_trades': 1.5,
406
- '{settle}/my_trades_timerange': 1.5,
407
- '{settle}/position_close': 1.5,
408
- '{settle}/liquidates': 1.5,
409
- '{settle}/auto_deleverages': 1.5,
410
- '{settle}/fee': 1.5,
411
- '{settle}/price_orders': 1.5,
412
- '{settle}/price_orders/{order_id}': 1.5,
400
+ '{settle}/accounts': 1,
401
+ '{settle}/account_book': 1,
402
+ '{settle}/positions': 1,
403
+ '{settle}/positions/{contract}': 1,
404
+ '{settle}/dual_comp/positions/{contract}': 1,
405
+ '{settle}/orders': 1,
406
+ '{settle}/orders_timerange': 1,
407
+ '{settle}/orders/{order_id}': 1,
408
+ '{settle}/my_trades': 1,
409
+ '{settle}/my_trades_timerange': 1,
410
+ '{settle}/position_close': 1,
411
+ '{settle}/liquidates': 1,
412
+ '{settle}/auto_deleverages': 1,
413
+ '{settle}/fee': 1,
414
+ '{settle}/price_orders': 1,
415
+ '{settle}/price_orders/{order_id}': 1,
413
416
  },
414
417
  'post': {
415
- '{settle}/positions/{contract}/margin': 1.5,
416
- '{settle}/positions/{contract}/leverage': 1.5,
417
- '{settle}/positions/{contract}/risk_limit': 1.5,
418
- '{settle}/dual_mode': 1.5,
419
- '{settle}/dual_comp/positions/{contract}/margin': 1.5,
420
- '{settle}/dual_comp/positions/{contract}/leverage': 1.5,
421
- '{settle}/dual_comp/positions/{contract}/risk_limit': 1.5,
422
- '{settle}/orders': 1.5,
423
- '{settle}/batch_orders': 1.5,
424
- '{settle}/countdown_cancel_all': 1.5,
425
- '{settle}/price_orders': 1.5,
418
+ '{settle}/positions/{contract}/margin': 1,
419
+ '{settle}/positions/{contract}/leverage': 1,
420
+ '{settle}/positions/{contract}/risk_limit': 1,
421
+ '{settle}/dual_mode': 1,
422
+ '{settle}/dual_comp/positions/{contract}/margin': 1,
423
+ '{settle}/dual_comp/positions/{contract}/leverage': 1,
424
+ '{settle}/dual_comp/positions/{contract}/risk_limit': 1,
425
+ '{settle}/orders': 0.4,
426
+ '{settle}/batch_orders': 0.4,
427
+ '{settle}/countdown_cancel_all': 0.4,
428
+ '{settle}/price_orders': 0.4,
426
429
  },
427
430
  'put': {
428
- '{settle}/orders/{order_id}': 1.5,
431
+ '{settle}/orders/{order_id}': 1,
429
432
  },
430
433
  'delete': {
431
- '{settle}/orders': 1.5,
432
- '{settle}/orders/{order_id}': 1.5,
433
- '{settle}/price_orders': 1.5,
434
- '{settle}/price_orders/{order_id}': 1.5,
434
+ '{settle}/orders': 20 / 75,
435
+ '{settle}/orders/{order_id}': 20 / 75,
436
+ '{settle}/price_orders': 20 / 75,
437
+ '{settle}/price_orders/{order_id}': 20 / 75,
435
438
  },
436
439
  },
437
440
  'delivery': {
438
441
  'get': {
439
- '{settle}/accounts': 1.5,
440
- '{settle}/account_book': 1.5,
441
- '{settle}/positions': 1.5,
442
- '{settle}/positions/{contract}': 1.5,
443
- '{settle}/orders': 1.5,
444
- '{settle}/orders/{order_id}': 1.5,
445
- '{settle}/my_trades': 1.5,
446
- '{settle}/position_close': 1.5,
447
- '{settle}/liquidates': 1.5,
448
- '{settle}/settlements': 1.5,
449
- '{settle}/price_orders': 1.5,
450
- '{settle}/price_orders/{order_id}': 1.5,
442
+ '{settle}/accounts': 20 / 15,
443
+ '{settle}/account_book': 20 / 15,
444
+ '{settle}/positions': 20 / 15,
445
+ '{settle}/positions/{contract}': 20 / 15,
446
+ '{settle}/orders': 20 / 15,
447
+ '{settle}/orders/{order_id}': 20 / 15,
448
+ '{settle}/my_trades': 20 / 15,
449
+ '{settle}/position_close': 20 / 15,
450
+ '{settle}/liquidates': 20 / 15,
451
+ '{settle}/settlements': 20 / 15,
452
+ '{settle}/price_orders': 20 / 15,
453
+ '{settle}/price_orders/{order_id}': 20 / 15,
451
454
  },
452
455
  'post': {
453
- '{settle}/positions/{contract}/margin': 1.5,
454
- '{settle}/positions/{contract}/leverage': 1.5,
455
- '{settle}/positions/{contract}/risk_limit': 1.5,
456
- '{settle}/orders': 1.5,
457
- '{settle}/price_orders': 1.5,
456
+ '{settle}/positions/{contract}/margin': 20 / 15,
457
+ '{settle}/positions/{contract}/leverage': 20 / 15,
458
+ '{settle}/positions/{contract}/risk_limit': 20 / 15,
459
+ '{settle}/orders': 20 / 15,
460
+ '{settle}/price_orders': 20 / 15,
458
461
  },
459
462
  'delete': {
460
- '{settle}/orders': 1.5,
461
- '{settle}/orders/{order_id}': 1.5,
462
- '{settle}/price_orders': 1.5,
463
- '{settle}/price_orders/{order_id}': 1.5,
463
+ '{settle}/orders': 20 / 15,
464
+ '{settle}/orders/{order_id}': 20 / 15,
465
+ '{settle}/price_orders': 20 / 15,
466
+ '{settle}/price_orders/{order_id}': 20 / 15,
464
467
  },
465
468
  },
466
469
  'options': {
467
470
  'get': {
468
- 'my_settlements': 1.5,
469
- 'accounts': 1.5,
470
- 'account_book': 1.5,
471
- 'positions': 1.5,
472
- 'positions/{contract}': 1.5,
473
- 'position_close': 1.5,
474
- 'orders': 1.5,
475
- 'orders/{order_id}': 1.5,
476
- 'my_trades': 1.5,
471
+ 'my_settlements': 20 / 15,
472
+ 'accounts': 20 / 15,
473
+ 'account_book': 20 / 15,
474
+ 'positions': 20 / 15,
475
+ 'positions/{contract}': 20 / 15,
476
+ 'position_close': 20 / 15,
477
+ 'orders': 20 / 15,
478
+ 'orders/{order_id}': 20 / 15,
479
+ 'my_trades': 20 / 15,
477
480
  },
478
481
  'post': {
479
- 'orders': 1.5,
482
+ 'orders': 20 / 15,
480
483
  },
481
484
  'delete': {
482
- 'orders': 1.5,
483
- 'orders/{order_id}': 1.5,
485
+ 'orders': 20 / 15,
486
+ 'orders/{order_id}': 20 / 15,
484
487
  },
485
488
  },
486
489
  'earn': {
487
490
  'get': {
488
- 'uni/lends': 1.5,
489
- 'uni/lend_records': 1.5,
490
- 'uni/interests/{currency}': 1.5,
491
- 'uni/interest_records': 1.5,
491
+ 'uni/lends': 20 / 15,
492
+ 'uni/lend_records': 20 / 15,
493
+ 'uni/interests/{currency}': 20 / 15,
494
+ 'uni/interest_records': 20 / 15,
492
495
  },
493
496
  'post': {
494
- 'uni/lends': 1.5,
497
+ 'uni/lends': 20 / 15,
495
498
  },
496
499
  'patch': {
497
- 'uni/lends': 1.5,
500
+ 'uni/lends': 20 / 15,
498
501
  },
499
502
  },
500
503
  'loan': {
501
504
  'get': {
502
- 'collateral/orders': 1.5,
503
- 'collateral/orders/{order_id}': 1.5,
504
- 'collateral/repay_records': 1.5,
505
- 'collateral/collaterals': 1.5,
506
- 'collateral/total_amount': 1.5,
507
- 'collateral/ltv': 1.5,
508
- 'collateral/currencies': 1.5,
505
+ 'collateral/orders': 20 / 15,
506
+ 'collateral/orders/{order_id}': 20 / 15,
507
+ 'collateral/repay_records': 20 / 15,
508
+ 'collateral/collaterals': 20 / 15,
509
+ 'collateral/total_amount': 20 / 15,
510
+ 'collateral/ltv': 20 / 15,
511
+ 'collateral/currencies': 20 / 15,
509
512
  },
510
513
  'post': {
511
- 'collateral/orders': 1.5,
512
- 'collateral/repay': 1.5,
513
- 'collateral/collaterals': 1.5,
514
+ 'collateral/orders': 20 / 15,
515
+ 'collateral/repay': 20 / 15,
516
+ 'collateral/collaterals': 20 / 15,
514
517
  },
515
518
  },
516
519
  'account': {
517
520
  'get': {
518
- 'detail': 1.5,
519
- 'stp_groups': 1.5,
520
- 'stp_groups/{stp_id}/users': 1.5,
521
+ 'detail': 20 / 15,
522
+ 'stp_groups': 20 / 15,
523
+ 'stp_groups/{stp_id}/users': 20 / 15,
521
524
  },
522
525
  'post': {
523
- 'stp_groups': 1.5,
524
- 'stp_groups/{stp_id}/users': 1.5,
526
+ 'stp_groups': 20 / 15,
527
+ 'stp_groups/{stp_id}/users': 20 / 15,
525
528
  },
526
529
  'delete': {
527
- 'stp_groups/{stp_id}/users': 1.5,
530
+ 'stp_groups/{stp_id}/users': 20 / 15,
528
531
  },
529
532
  },
530
533
  'rebate': {
531
534
  'get': {
532
- 'agency/transaction_history': 1.5,
533
- 'agency/commission_history': 1.5,
535
+ 'agency/transaction_history': 20 / 15,
536
+ 'agency/commission_history': 20 / 15,
534
537
  },
535
538
  },
536
539
  },
@@ -221,6 +221,7 @@ class gemini extends gemini$1 {
221
221
  'InsufficientFunds': errors.InsufficientFunds,
222
222
  'InvalidJson': errors.BadRequest,
223
223
  'InvalidNonce': errors.InvalidNonce,
224
+ 'InvalidApiKey': errors.AuthenticationError,
224
225
  'InvalidOrderType': errors.InvalidOrder,
225
226
  'InvalidPrice': errors.InvalidOrder,
226
227
  'InvalidQuantity': errors.InvalidOrder,