kucoin-api 1.0.23 → 2.0.1

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 (34) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/FuturesClient.d.ts +411 -117
  3. package/dist/cjs/FuturesClient.js +381 -113
  4. package/dist/cjs/FuturesClient.js.map +1 -1
  5. package/dist/cjs/SpotClient.d.ts +906 -338
  6. package/dist/cjs/SpotClient.js +926 -364
  7. package/dist/cjs/SpotClient.js.map +1 -1
  8. package/dist/cjs/types/request/futures.types.d.ts +68 -16
  9. package/dist/cjs/types/request/spot-account.d.ts +1 -1
  10. package/dist/cjs/types/request/spot-funding.d.ts +0 -2
  11. package/dist/cjs/types/request/spot-trading.d.ts +11 -20
  12. package/dist/cjs/types/response/futures.types.d.ts +118 -58
  13. package/dist/cjs/types/response/spot-account.d.ts +76 -28
  14. package/dist/cjs/types/response/spot-funding.d.ts +34 -32
  15. package/dist/cjs/types/response/spot-margin-trading.d.ts +80 -15
  16. package/dist/cjs/types/response/spot-misc.d.ts +1 -1
  17. package/dist/cjs/types/response/spot-trading.d.ts +100 -74
  18. package/dist/mjs/FuturesClient.d.ts +411 -117
  19. package/dist/mjs/FuturesClient.js +381 -113
  20. package/dist/mjs/FuturesClient.js.map +1 -1
  21. package/dist/mjs/SpotClient.d.ts +906 -338
  22. package/dist/mjs/SpotClient.js +926 -364
  23. package/dist/mjs/SpotClient.js.map +1 -1
  24. package/dist/mjs/types/request/futures.types.d.ts +68 -16
  25. package/dist/mjs/types/request/spot-account.d.ts +1 -1
  26. package/dist/mjs/types/request/spot-funding.d.ts +0 -2
  27. package/dist/mjs/types/request/spot-trading.d.ts +11 -20
  28. package/dist/mjs/types/response/futures.types.d.ts +118 -58
  29. package/dist/mjs/types/response/spot-account.d.ts +76 -28
  30. package/dist/mjs/types/response/spot-funding.d.ts +34 -32
  31. package/dist/mjs/types/response/spot-margin-trading.d.ts +80 -15
  32. package/dist/mjs/types/response/spot-misc.d.ts +1 -1
  33. package/dist/mjs/types/response/spot-trading.d.ts +100 -74
  34. package/package.json +1 -1
@@ -20,269 +20,508 @@ export class FuturesClient extends BaseRestClient {
20
20
  generateNewOrderID() {
21
21
  return nanoid(32);
22
22
  }
23
- getServerTime() {
24
- return this.get('api/v1/timestamp');
25
- }
26
- getServiceStatus() {
27
- return this.get('api/v1/status');
23
+ /**
24
+ *
25
+ * REST - ACCOUNT INFO - Account & Funding
26
+ *
27
+ */
28
+ /**
29
+ * Get Account - Futures
30
+ * Request via this endpoint to get the info of the futures account.
31
+ */
32
+ getBalance(params) {
33
+ return this.getPrivate('api/v1/account-overview', params);
28
34
  }
29
35
  /**
30
- * REST - ACCOUNT - BASIC INFO
31
36
  * Get Account Ledgers - Futures
37
+ * This endpoint can query the ledger records of the futures business line
32
38
  */
33
39
  getTransactions(params) {
34
40
  return this.getPrivate('api/v1/transaction-history', params);
35
41
  }
36
42
  /**
37
- * REST - ACCOUNT - SUBACCOUNT API
43
+ *
44
+ * REST - ACCOUNT INFO - Sub Account
45
+ *
38
46
  */
39
- getSubAPIs(params) {
40
- return this.getPrivate('api/v1/sub/api-key', params);
41
- }
42
- createSubAPI(params) {
43
- return this.postPrivate('api/v1/sub/api-key', params);
44
- }
45
- updateSubAPI(params) {
46
- return this.postPrivate('api/v1/sub/api-key/update', params);
47
- }
48
- deleteSubAPI(params) {
49
- return this.deletePrivate('api/v1/sub/api-key', params);
50
- }
51
47
  /**
52
- * REST - FUNDING - FUNDING OVERVIEW
48
+ * Get SubAccount List - Futures Balance(V2)
49
+ * This endpoint can be used to get Futures sub-account information.
53
50
  */
54
- getBalance(params) {
55
- return this.getPrivate('api/v1/account-overview', params);
56
- }
57
51
  getSubBalances(params) {
58
52
  return this.getPrivate('api/v1/account-overview-all', params);
59
53
  }
60
54
  /**
61
- * REST - FUNDING - TRANSFER
55
+ *
56
+ * REST - Account Info - Trade Fee
57
+ *
62
58
  */
63
59
  /**
64
- * @deprecated This method is deprecated.
65
- * It is recommended to use the GET /api/v3/accounts/universal-transfer endpoint instead of this endpoint
60
+ * Get Actual Fee - Futures
61
+ * This endpoint is for the actual futures fee rate of the trading pair. The fee rate of your sub-account is the same as that of the master account.
66
62
  */
67
- submitTransferOut(params) {
68
- return this.postPrivate('api/v3/transfer-out', params);
69
- }
70
- /**
71
- * @deprecated This method is deprecated.
72
- * It is recommended to use the GET /api/v3/accounts/universal-transfer endpoint instead of this endpoint
73
- */
74
- submitTransferIn(params) {
75
- return this.postPrivate('api/v1/transfer-in', params);
63
+ getTradingPairFee(params) {
64
+ return this.getPrivate('api/v1/trade-fees', params);
76
65
  }
77
66
  /**
78
- * @deprecated This method is deprecated.
67
+ *
68
+ * REST - Futures Trading - Market Data
69
+ *
79
70
  */
80
- getTransfers(params) {
81
- return this.getPrivate('api/v1/transfer-list', params);
82
- }
83
71
  /**
84
- * REST - FUNDING - TRADE FEE
72
+ * Get Symbol
73
+ * Get information of specified contracts that can be traded.
74
+ * This API will return a list of tradable contracts, including some key parameters of the contract such as the symbol name, tick size, mark price,etc.
85
75
  */
86
- getTradingPairFee(params) {
87
- return this.getPrivate('api/v1/trade-fees', params);
76
+ getSymbol(params) {
77
+ return this.get(`api/v1/contracts/${params.symbol}`);
88
78
  }
89
79
  /**
90
- *
91
- * REST - FUTURES TRADING - Market Data
92
- *
80
+ * Get Symbol
81
+ * Get information of specified contracts that can be traded.
82
+ * This API will return a list of tradable contracts, including some key parameters of the contract such as the symbol name, tick size, mark price,etc.
93
83
  */
94
84
  getSymbols() {
95
85
  return this.get('api/v1/contracts/active');
96
86
  }
97
- getSymbol(params) {
98
- return this.get(`api/v1/contracts/${params.symbol}`);
99
- }
87
+ /**
88
+ * Get Ticker
89
+ * This endpoint returns "last traded price/size"、"best bid/ask price/size" etc. of a single symbol.
90
+ */
100
91
  getTicker(params) {
101
92
  return this.get('api/v1/ticker', params);
102
93
  }
94
+ /**
95
+ * Get All Tickers
96
+ * This endpoint returns "last traded price/size"、"best bid/ask price/size" etc. of all symbol.
97
+ */
103
98
  getTickers() {
104
99
  return this.get('api/v1/allTickers');
105
100
  }
101
+ /**
102
+ * Get Full OrderBook
103
+ * Query for Full orderbook depth data. (aggregated by price)
104
+ */
106
105
  getFullOrderBookLevel2(params) {
107
106
  return this.get('api/v1/level2/snapshot', params);
108
107
  }
108
+ /**
109
+ * Get Part OrderBook
110
+ * Query for part orderbook depth data. (aggregated by price)
111
+ */
109
112
  getPartOrderBookLevel2Depth20(params) {
110
113
  return this.get('api/v1/level2/depth20', params);
111
114
  }
115
+ /**
116
+ * Get Part OrderBook
117
+ * Query for part orderbook depth data. (aggregated by price)
118
+ */
112
119
  getPartOrderBookLevel2Depth100(params) {
113
120
  return this.get('api/v1/level2/depth100', params);
114
121
  }
122
+ /**
123
+ * Get Trade History
124
+ * Request via this endpoint to get the trade history of the specified symbol, the returned quantity is the last 100 transaction records.
125
+ */
115
126
  getMarketTrades(params) {
116
127
  return this.get('api/v1/trade/history', params);
117
128
  }
129
+ /**
130
+ * Get Klines
131
+ * Get the Kline of the symbol. Data are returned in grouped buckets based on requested type.
132
+ */
118
133
  getKlines(params) {
119
134
  return this.get('api/v1/kline/query', params);
120
135
  }
121
- getInterestRates(params) {
122
- return this.get('api/v1/interest/query', params);
136
+ /**
137
+ * Get Mark Price
138
+ * Get the mark price of the symbol.
139
+ */
140
+ getMarkPrice(params) {
141
+ return this.get(`api/v1/mark-price/${params.symbol}/current`);
123
142
  }
143
+ /**
144
+ * Get Spot Index Price
145
+ * This endpoint returns the index price of the specified symbol.
146
+ */
124
147
  getIndex(params) {
125
148
  return this.get('api/v1/index/query', params);
126
149
  }
127
- getMarkPrice(params) {
128
- return this.get(`api/v1/mark-price/${params.symbol}/current`);
150
+ /**
151
+ * Get Interest Rate Index
152
+ * This endpoint returns the interest rate index of the specified symbol.
153
+ */
154
+ getInterestRates(params) {
155
+ return this.get('api/v1/interest/query', params);
129
156
  }
157
+ /**
158
+ * Get Premium Index
159
+ * This endpoint returns the premium index of the specified symbol.
160
+ */
130
161
  getPremiumIndex(params) {
131
162
  return this.get('api/v1/premium/query', params);
132
163
  }
164
+ /**
165
+ * Get 24hr Stats
166
+ * Get the statistics of the platform futures trading volume in the last 24 hours.
167
+ */
133
168
  get24HourTransactionVolume() {
134
169
  return this.get('api/v1/trade-statistics');
135
170
  }
171
+ /**
172
+ * Get Server Time
173
+ * Get the API server time. This is the Unix timestamp.
174
+ */
175
+ getServerTime() {
176
+ return this.get('api/v1/timestamp');
177
+ }
178
+ /**
179
+ * Get Service Status
180
+ * This endpoint returns the status of the API service.
181
+ */
182
+ getServiceStatus() {
183
+ return this.get('api/v1/status');
184
+ }
136
185
  /**
137
186
  *
138
- * REST - FUTURES TRADING - Orders
187
+ * REST - Futures Trading - Orders
139
188
  *
140
189
  */
190
+ /**
191
+ * Add Order
192
+ * Place order to the futures trading system
193
+ */
141
194
  submitOrder(params) {
142
195
  return this.postPrivate('api/v1/orders', params);
143
196
  }
144
- submitNewOrderTest() {
145
- return this.postPrivate('api/v1/orders/test');
197
+ /**
198
+ * Add Order Test
199
+ * Order test endpoint, the request parameters and return parameters of this endpoint are exactly the same as the order endpoint, and can be used to verify whether the signature is correct and other operations.
200
+ */
201
+ submitNewOrderTest(params) {
202
+ return this.postPrivate('api/v1/orders/test', params);
146
203
  }
204
+ /**
205
+ * Batch Add Orders
206
+ * Place multiple order to the futures trading system
207
+ */
208
+ submitMultipleOrders(params) {
209
+ return this.postPrivate('api/v1/orders/multi', params);
210
+ }
211
+ /**
212
+ * Add Take Profit And Stop Loss Order
213
+ * Place take profit and stop loss order supports both take-profit and stop-loss functions, and other functions are exactly the same as the place order endpoint.
214
+ */
215
+ submitSLTPOrder(params) {
216
+ return this.postPrivate('api/v1/st-orders', params);
217
+ }
218
+ /**
219
+ * Cancel Order By OrderId
220
+ * Cancel an order (including a stop order).
221
+ */
147
222
  cancelOrderById(params) {
148
223
  return this.deletePrivate(`api/v1/orders/${params.orderId}`);
149
224
  }
225
+ /**
226
+ * Cancel Order By Client Order Id
227
+ * Cancel an order (including a stop order) by client order id.
228
+ */
150
229
  cancelOrderByClientOid(params) {
151
- return this.deletePrivate(`api/v1/orders/client-order/${params.clientOid}`);
230
+ const { clientOid, symbol } = params;
231
+ return this.deletePrivate(`api/v1/orders/client-order/${clientOid}`, {
232
+ symbol,
233
+ });
152
234
  }
235
+ /**
236
+ * Batch Cancel Orders
237
+ * Cancel multiple orders.
238
+ */
153
239
  batchCancelOrders(params) {
154
240
  return this.deletePrivate('api/v1/orders/multi-cancel', params);
155
241
  }
156
- submitSLTPOrder(params) {
157
- return this.postPrivate('api/v1/st-orders', params);
158
- }
159
- submitMultipleOrders(params) {
160
- return this.postPrivate('api/v1/orders/multi', params);
161
- }
162
242
  /**
163
- * @deprecated, use cancelAllOrdersV3 instead
243
+ * Cancel All Orders
244
+ * Using this endpoint, all open orders (excluding stop orders) can be canceled in batches.
164
245
  */
165
- cancelAllOrders(params) {
166
- return this.deletePrivate('api/v1/orders', params);
167
- }
168
246
  cancelAllOrdersV3(params) {
169
247
  return this.deletePrivate('api/v3/orders', params);
170
248
  }
249
+ /**
250
+ * Cancel All Stop orders
251
+ * Using this endpoint, all untriggered stop orders can be canceled in batches.
252
+ */
171
253
  cancelAllStopOrders(params) {
172
254
  return this.deletePrivate('api/v1/stopOrders', params);
173
255
  }
256
+ /**
257
+ * Get Order By OrderId
258
+ * Get order details by order id.
259
+ */
260
+ getOrderByOrderId(params) {
261
+ return this.getPrivate(`api/v1/orders/${params.orderId}`);
262
+ }
263
+ /**
264
+ * Get Order By Client Order Id
265
+ * Get order details by client order id.
266
+ */
267
+ getOrderByClientOrderId(params) {
268
+ return this.getPrivate(`api/v1/orders/byClientOid`, params);
269
+ }
270
+ /**
271
+ * Get Order List
272
+ * List your current orders. Any limit order on the exchange order book is in active status.
273
+ */
174
274
  getOrders(params) {
175
275
  return this.getPrivate('api/v1/orders', params);
176
276
  }
177
- getStopOrders(params) {
178
- return this.getPrivate('api/v1/stopOrders', params);
179
- }
277
+ /**
278
+ * Get Recent Closed Orders
279
+ * Get a list of recent 1000 closed orders in the last 24 hours.
280
+ */
180
281
  getRecentOrders(params) {
181
282
  return this.getPrivate('api/v1/recentDoneOrders', params);
182
283
  }
183
- getOrderByOrderId(params) {
184
- return this.getPrivate(`api/v1/orders/${params.orderId}`);
284
+ /**
285
+ * Get Stop Order List
286
+ * Get the un-triggered stop orders list. Stop orders that have been triggered can be queried through the general order endpoint
287
+ */
288
+ getStopOrders(params) {
289
+ return this.getPrivate('api/v1/stopOrders', params);
185
290
  }
186
- getOrderByClientOrderId(params) {
187
- return this.getPrivate(`api/v1/orders/byClientOid`, params);
291
+ /**
292
+ * Get Open Order Value
293
+ * You can query this endpoint to get the the total number and value of the all your active orders.
294
+ */
295
+ getOpenOrderStatistics(params) {
296
+ return this.getPrivate('api/v1/openOrderStatistics', params);
188
297
  }
189
298
  /**
190
- *
191
- * REST - FUTURES TRADING - Fills
192
- *
299
+ * Get Recent Trade History
300
+ * Get a list of recent 1000 fills in the last 24 hours.
193
301
  */
302
+ getRecentFills(params) {
303
+ return this.getPrivate('api/v1/recentFills', params);
304
+ }
194
305
  /**
306
+ * Get Trade History
195
307
  * Get a list of recent fills.
196
- *
197
- * If you need to get your recent trade history with low latency, please query endpoint Get List of Orders Completed in 24h.
198
- * The requested data is not real-time.
308
+ * If you need to get your recent trade history with low latency, please query endpoint Get List of Orders Completed in 24h. The requested data is not real-time.
199
309
  */
200
310
  getFills(params) {
201
311
  return this.getPrivate('api/v1/fills', params);
202
312
  }
203
313
  /**
204
- * Get a list of recent 1000 fills in the last 24 hours.
205
314
  *
206
- * If you need to get your recent traded order history with low latency, you may query this endpoint.
315
+ * REST - Futures Trading - Positions
316
+ *
207
317
  */
208
- getRecentFills(params) {
209
- return this.getPrivate('api/v1/recentFills', params);
318
+ /**
319
+ * Get Margin Mode
320
+ * This endpoint can query the margin mode of the current symbol.
321
+ */
322
+ getMarginMode(params) {
323
+ return this.getPrivate('api/v2/position/getMarginMode', params);
210
324
  }
211
- getOpenOrderStatistics(params) {
212
- return this.getPrivate('api/v1/openOrderStatistics', params);
325
+ /**
326
+ * Switch Margin Mode
327
+ * Modify the margin mode of the current symbol.
328
+ */
329
+ updateMarginMode(params) {
330
+ return this.postPrivate('api/v2/position/changeMarginMode', params);
213
331
  }
214
332
  /**
215
- *
216
- * REST - FUTURES TRADING - Positions
217
- *
333
+ * Get Max Open Size
334
+ * Get Maximum Open Position Size.
218
335
  */
219
336
  getMaxOpenSize(params) {
220
337
  return this.getPrivate('api/v2/getMaxOpenSize', params);
221
338
  }
339
+ /**
340
+ * Get Position Details
341
+ * Get the position details of a specified position.
342
+ */
222
343
  getPosition(params) {
223
344
  return this.getPrivate('api/v1/position', params);
224
345
  }
346
+ /**
347
+ * Get Position List
348
+ * Get the position details of a specified position.
349
+ */
225
350
  getPositions(params) {
226
351
  return this.getPrivate('api/v1/positions', params);
227
352
  }
353
+ /**
354
+ * Get Positions History
355
+ * This endpoint can query position history information records.
356
+ */
228
357
  getHistoryPositions(params) {
229
358
  return this.getPrivate('api/v1/history-positions', params);
230
359
  }
231
360
  /**
232
- * @deprecated This method is deprecated.
233
- * Currently, it is not recommended to use the Isolated margin + auto deposit margin feature.
234
- * It is recommended to switch to the cross margin mode.
235
- * Please refer to POST /api/v2/position/changeMarginMode endpoint
361
+ * Get Max Withdraw Margin
362
+ * This endpoint can query the maximum amount of margin that the current position supports withdrawal.
236
363
  */
237
- updateAutoDepositStatus(params) {
238
- return this.postPrivate('api/v1/position/margin/auto-deposit-status', params);
239
- }
240
364
  getMaxWithdrawMargin(params) {
241
365
  return this.getPrivate('api/v1/margin/maxWithdrawMargin', params);
242
366
  }
243
- withdrawMargin(params) {
244
- return this.postPrivate('api/v1/margin/withdrawMargin', params);
245
- }
246
- depositMargin(params) {
247
- return this.postPrivate('api/v1/position/margin/deposit-margin', params);
248
- }
249
- getMarginMode(params) {
250
- return this.getPrivate('api/v2/position/getMarginMode', params);
251
- }
252
- updateMarginMode(params) {
253
- return this.postPrivate('api/v2/position/changeMarginMode', params);
254
- }
367
+ /**
368
+ * Get Cross Margin Leverage
369
+ * This endpoint can query the current symbol’s cross-margin leverage multiple.
370
+ */
255
371
  getCrossMarginLeverage(params) {
256
372
  return this.getPrivate('api/v2/getCrossUserLeverage', params);
257
373
  }
374
+ /**
375
+ * Modify Cross Margin Leverage
376
+ * This endpoint can modify the current symbol’s cross-margin leverage multiple.
377
+ */
258
378
  changeCrossMarginLeverage(params) {
259
379
  return this.postPrivate('api/v2/changeCrossUserLeverage', params);
260
380
  }
261
381
  /**
262
- *
263
- * REST - FUTURES TRADING - Risk limit
264
- *
382
+ * Add Isolated Margin
383
+ * Add Isolated Margin Manually.
384
+ */
385
+ depositMargin(params) {
386
+ return this.postPrivate('api/v1/position/margin/deposit-margin', params);
387
+ }
388
+ /**
389
+ * Remove Isolated Margin
390
+ * Remove Isolated Margin Manually.
391
+ */
392
+ withdrawMargin(params) {
393
+ return this.postPrivate('api/v1/margin/withdrawMargin', params);
394
+ }
395
+ /**
396
+ * Get Isolated Margin Risk Limit
397
+ * This endpoint can be used to obtain information about risk limit level of a specific contract(Only valid for isolated Margin).
265
398
  */
266
399
  getRiskLimitLevel(params) {
267
400
  return this.getPrivate(`api/v1/contracts/risk-limit/${params.symbol}`);
268
401
  }
402
+ /**
403
+ * Modify Isolated Margin Risk Limit
404
+ * This endpoint is for the adjustment of the risk limit level(Only valid for isolated Margin).
405
+ */
269
406
  updateRiskLimitLevel(params) {
270
407
  return this.postPrivate('api/v1/position/risk-limit-level/change', params);
271
408
  }
272
409
  /**
273
410
  *
274
- * REST - FUTURES TRADING - Funding fees
411
+ * REST - Futures Trading - Funding Fees
275
412
  *
276
413
  */
414
+ /**
415
+ * Get Current Funding Rate
416
+ * This endpoint can be used to obtain the current funding rate of the specified symbol.
417
+ */
277
418
  getFundingRate(params) {
278
- return this.get(`api/v1/funding-rate/${params.symbol}/current`);
419
+ return this.getPrivate(`api/v1/funding-rate/${params.symbol}/current`);
279
420
  }
421
+ /**
422
+ * Get Public Funding History
423
+ * Query the funding rate at each settlement time point within a certain time range of the corresponding contract
424
+ */
280
425
  getFundingRates(params) {
281
- return this.get('api/v1/contract/funding-rates', params);
426
+ return this.getPrivate('api/v1/contract/funding-rates', params);
282
427
  }
428
+ /**
429
+ * Get Private Funding History
430
+ * Submit request to get the funding history.
431
+ */
283
432
  getFundingHistory(params) {
284
433
  return this.getPrivate('api/v1/funding-history', params);
285
434
  }
435
+ /**
436
+ *
437
+ * REST - Futures Trading - CopyTrading
438
+ *
439
+ */
440
+ /**
441
+ * Add Order
442
+ * Place order to the futures trading system for copy trading
443
+ */
444
+ submitCopyTradeOrder(params) {
445
+ return this.postPrivate('api/v1/copy-trade/futures/orders', params);
446
+ }
447
+ /**
448
+ * Add Order Test
449
+ * Order test endpoint, the request parameters and return parameters of this endpoint are exactly the same as the order endpoint,
450
+ * and can be used to verify whether the signature is correct and other operations.
451
+ */
452
+ submitCopyTradeOrderTest(params) {
453
+ return this.postPrivate('api/v1/copy-trade/futures/orders/test', params);
454
+ }
455
+ /**
456
+ * Add Take Profit And Stop Loss Order
457
+ * Place take profit and stop loss order supports both take-profit and stop-loss functions, and other functions are exactly the same as the place order endpoint.
458
+ */
459
+ submitCopyTradeSLTPOrder(params) {
460
+ return this.postPrivate('api/v1/copy-trade/futures/st-orders', params);
461
+ }
462
+ /**
463
+ * Cancel Order By OrderId
464
+ * Cancel an order (including a stop order) in copy trading.
465
+ */
466
+ cancelCopyTradeOrderById(params) {
467
+ return this.deletePrivate('api/v1/copy-trade/futures/orders', params);
468
+ }
469
+ /**
470
+ * Cancel Order By Client Order Id
471
+ * Cancel an order (including a stop order) in copy trading by client order id.
472
+ */
473
+ cancelCopyTradeOrderByClientOid(params) {
474
+ return this.deletePrivate(`api/v1/copy-trade/futures/orders/client-order`, params);
475
+ }
476
+ /**
477
+ * Get Max Open Size
478
+ * Get Maximum Open Position Size.
479
+ */
480
+ getCopyTradeMaxOpenSize(params) {
481
+ return this.getPrivate('api/v1/copy-trade/futures/get-max-open-size', params);
482
+ }
483
+ /**
484
+ * Get Max Withdraw Margin
485
+ * This endpoint can query the maximum amount of margin that the current position supports withdrawal.
486
+ */
487
+ getCopyTradeMaxWithdrawMargin(params) {
488
+ return this.getPrivate('api/v1/copy-trade/futures/position/margin/max-withdraw-margin', params);
489
+ }
490
+ /**
491
+ * Add Isolated Margin
492
+ * Add Isolated Margin Manually.
493
+ */
494
+ addCopyTradeIsolatedMargin(params) {
495
+ return this.postPrivate('api/v1/copy-trade/futures/position/margin/deposit-margin', params);
496
+ }
497
+ /**
498
+ * Remove Isolated Margin
499
+ * Remove Isolated Margin Manually.
500
+ */
501
+ removeCopyTradeIsolatedMargin(params) {
502
+ return this.postPrivate('api/v1/copy-trade/futures/position/margin/withdraw-margin', params);
503
+ }
504
+ /**
505
+ * Modify Isolated Margin Risk Limit
506
+ * This endpoint is for the adjustment of the risk limit level(Only valid for isolated Margin).
507
+ * To adjust the level will cancel the open order, the response can only indicate whether the submit of the adjustment request is successful or not.
508
+ */
509
+ modifyCopyTradeRiskLimitLevel(params) {
510
+ return this.postPrivate('api/v1/copy-trade/futures/position/risk-limit-level/change', params);
511
+ }
512
+ /**
513
+ * Modify Isolated Margin Auto-Deposit Status
514
+ * This endpoint is only applicable to isolated margin and is no longer recommended. It is recommended to use cross margin instead.
515
+ * @deprecated - It is recommended to use cross margin instead
516
+ */
517
+ updateCopyTradeAutoDepositStatus(params) {
518
+ return this.postPrivate('api/v1/copy-trade/futures/position/margin/auto-deposit-status', params);
519
+ }
520
+ /**
521
+ *
522
+ * REST - Futures - Broker
523
+ *
524
+ */
286
525
  /**
287
526
  * Get download link for broker rebate orders
288
527
  *
@@ -302,5 +541,34 @@ export class FuturesClient extends BaseRestClient {
302
541
  getPrivateWSConnectionToken() {
303
542
  return this.postPrivate('api/v1/bullet-private');
304
543
  }
544
+ /*
545
+ *
546
+ * DEPRECATED
547
+ *
548
+ */
549
+ /**
550
+ * @deprecated - please use universal transfer from SpotClient
551
+ */
552
+ submitTransferOut(params) {
553
+ return this.postPrivate('api/v3/transfer-out', params);
554
+ }
555
+ /**
556
+ * @deprecated - please use universal transfer from SpotClient
557
+ */
558
+ submitTransferIn(params) {
559
+ return this.postPrivate('api/v1/transfer-in', params);
560
+ }
561
+ /**
562
+ * @deprecated - please use universal transfer from SpotClient
563
+ */
564
+ getTransfers(params) {
565
+ return this.getPrivate('api/v1/transfer-list', params);
566
+ }
567
+ /**
568
+ * @deprecated - please use updateMarginMode() instead
569
+ */
570
+ updateAutoDepositStatus(params) {
571
+ return this.postPrivate('api/v1/position/margin/auto-deposit-status', params);
572
+ }
305
573
  }
306
574
  //# sourceMappingURL=FuturesClient.js.map