You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/RestClient.ts
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1248,6 +1248,8 @@ export class RestClient extends BaseRestClient {
1248
1248
* - At most 4 currency pairs, maximum 10 orders each, are allowed in one request
1249
1249
* - No mixture of spot orders and margin orders, i.e. account must be identical for all orders
1250
1250
*
1251
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
1252
+
*
1251
1253
* @param params Parameters for creating a batch of orders
1252
1254
* @returns Promise<SubmitSpotBatchOrdersResp[]>
1253
1255
*/
@@ -1302,6 +1304,8 @@ export class RestClient extends BaseRestClient {
1302
1304
*
1303
1305
* You can place orders with spot, portfolio, margin or cross margin account through setting the account field. It defaults to spot, which means spot account is used to place orders. If the user is using unified account, it defaults to the unified account.
1304
1306
*
1307
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
1308
+
*
1305
1309
* @param params Parameters for creating an order
1306
1310
* @returns Promise<Order>
1307
1311
*/
@@ -1332,6 +1336,8 @@ export class RestClient extends BaseRestClient {
1332
1336
* If account is not set, all open orders, including spot, portfolio, margin and cross margin ones, will be cancelled.
1333
1337
* You can set account to cancel only orders within the specified account.
1334
1338
*
1339
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
1340
+
*
1335
1341
* @param params Parameters for cancelling all open orders in specified currency pair
1336
1342
* @returns Promise<Order[]>
1337
1343
*/
@@ -1358,6 +1364,8 @@ export class RestClient extends BaseRestClient {
1358
1364
*
1359
1365
* Multiple currency pairs can be specified, but maximum 20 orders are allowed per request.
1360
1366
*
1367
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
1368
+
*
1361
1369
* @param params Parameters for cancelling a batch of orders
1362
1370
* @returns Promise<DeleteSpotBatchOrdersResp[]>
1363
1371
*/
@@ -1395,6 +1403,8 @@ export class RestClient extends BaseRestClient {
1395
1403
*
1396
1404
* Currently, only supports modification of price or amount fields.
1397
1405
*
1406
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
1407
+
*
1398
1408
* @param params Parameters for amending an order
1399
1409
* @returns Promise<Order>
1400
1410
*/
@@ -1421,6 +1431,8 @@ export class RestClient extends BaseRestClient {
1421
1431
*
1422
1432
* Spot, portfolio and margin orders are cancelled by default. If trying to cancel cross margin orders or portfolio margin account are used, account must be set to cross_margin.
1423
1433
*
1434
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
1435
+
*
1424
1436
* @param params Parameters for cancelling a single order
1425
1437
* @returns Promise<Order>
1426
1438
*/
@@ -1489,6 +1501,8 @@ export class RestClient extends BaseRestClient {
1489
1501
*
1490
1502
* Default modification of orders for spot, portfolio, and margin accounts. To modify orders for a cross margin account, the account parameter must be specified as cross_margin. For portfolio margin accounts, the account parameter can only be specified as cross_margin. Currently, only modifications to price or quantity (choose one) are supported.
1491
1503
*
1504
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
1505
+
*
1492
1506
* @param params Parameters for batch modification of orders
1493
1507
* @returns Promise<Order[]>
1494
1508
*/
@@ -2403,6 +2417,8 @@ export class RestClient extends BaseRestClient {
2403
2417
* In dual position mode, to close one side position, you need to set auto_size side, reduce_only to true, and size to 0.
2404
2418
* Set stp_act to decide the strategy of self-trade prevention. For detailed usage, refer to the stp_act parameter in the request body.
2405
2419
*
2420
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
2421
+
*
2406
2422
* @param params Parameters for creating a futures order
2407
2423
* @returns Promise<FuturesOrder>
2408
2424
*/
@@ -2437,6 +2453,8 @@ export class RestClient extends BaseRestClient {
2437
2453
*
2438
2454
* Zero-filled order cannot be retrieved 10 minutes after order cancellation.
2439
2455
*
2456
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
2457
+
*
2440
2458
* @param params Parameters for cancelling all open orders matched
2441
2459
* @returns Promise<FuturesOrder[]>
2442
2460
*/
@@ -2478,6 +2496,8 @@ export class RestClient extends BaseRestClient {
2478
2496
* If the execution is successful, the normal order content is included; if the execution fails, the label field is included to indicate the cause of the error.
2479
2497
* In the rate limiting, each order is counted individually.
2480
2498
*
2499
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
2500
+
*
2481
2501
* @param params Parameters for creating a batch of futures orders
2482
2502
* @returns Promise<FuturesOrder[]>
2483
2503
*/
@@ -2518,6 +2538,8 @@ export class RestClient extends BaseRestClient {
2518
2538
/**
2519
2539
* Cancel a single order
2520
2540
*
2541
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
2542
+
*
2521
2543
* @param params Parameters for cancelling a single order
2522
2544
* @returns Promise<FuturesOrder>
2523
2545
*/
@@ -2539,6 +2561,8 @@ export class RestClient extends BaseRestClient {
2539
2561
/**
2540
2562
* Amend an order
2541
2563
*
2564
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
2565
+
*
2542
2566
* @param params Parameters for amending an order
2543
2567
* @returns Promise<FuturesOrder>
2544
2568
*/
@@ -2664,6 +2688,8 @@ export class RestClient extends BaseRestClient {
2664
2688
*
2665
2689
* Multiple distinct order ID list can be specified. Each request can cancel a maximum of 20 records.
2666
2690
*
2691
+
* NOTE: The "xGateExptime" parameter will translate to the "x-gate-exptime" header.
2692
+
*
2667
2693
* @param params Parameters for cancelling a batch of orders with an ID list
0 commit comments