@binance/derivatives-trading-portfolio-margin 18.1.2 → 19.0.0
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/index.d.mts +80 -1830
- package/dist/index.d.ts +80 -1830
- package/dist/index.js +1 -577
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -577
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { BadRequestError, ConfigurationRestAPI, ConfigurationWebsocketStreams, C
|
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
5
|
var name = "@binance/derivatives-trading-portfolio-margin";
|
|
6
|
-
var version = "
|
|
6
|
+
var version = "19.0.0";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -1854,24 +1854,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1854
1854
|
timeUnit: _timeUnit
|
|
1855
1855
|
};
|
|
1856
1856
|
},
|
|
1857
|
-
cancelAllUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
1858
|
-
assertParamExists("cancelAllUmOpenConditionalOrders", "symbol", symbol);
|
|
1859
|
-
const localVarQueryParameter = {};
|
|
1860
|
-
const localVarBodyParameter = {};
|
|
1861
|
-
const localVarHeaderParameter = {};
|
|
1862
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1863
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1864
|
-
let _timeUnit;
|
|
1865
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1866
|
-
return {
|
|
1867
|
-
endpoint: "/papi/v1/um/conditional/allOpenOrders",
|
|
1868
|
-
method: "DELETE",
|
|
1869
|
-
queryParams: localVarQueryParameter,
|
|
1870
|
-
bodyParams: localVarBodyParameter,
|
|
1871
|
-
headerParams: localVarHeaderParameter,
|
|
1872
|
-
timeUnit: _timeUnit
|
|
1873
|
-
};
|
|
1874
|
-
},
|
|
1875
1857
|
cancelAllUmOpenOrders: async (symbol, recvWindow) => {
|
|
1876
1858
|
assertParamExists("cancelAllUmOpenOrders", "symbol", symbol);
|
|
1877
1859
|
const localVarQueryParameter = {};
|
|
@@ -2008,26 +1990,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2008
1990
|
timeUnit: _timeUnit
|
|
2009
1991
|
};
|
|
2010
1992
|
},
|
|
2011
|
-
cancelUmConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2012
|
-
assertParamExists("cancelUmConditionalOrder", "symbol", symbol);
|
|
2013
|
-
const localVarQueryParameter = {};
|
|
2014
|
-
const localVarBodyParameter = {};
|
|
2015
|
-
const localVarHeaderParameter = {};
|
|
2016
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2017
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2018
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2019
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2020
|
-
let _timeUnit;
|
|
2021
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2022
|
-
return {
|
|
2023
|
-
endpoint: "/papi/v1/um/conditional/order",
|
|
2024
|
-
method: "DELETE",
|
|
2025
|
-
queryParams: localVarQueryParameter,
|
|
2026
|
-
bodyParams: localVarBodyParameter,
|
|
2027
|
-
headerParams: localVarHeaderParameter,
|
|
2028
|
-
timeUnit: _timeUnit
|
|
2029
|
-
};
|
|
2030
|
-
},
|
|
2031
1993
|
cancelUmOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2032
1994
|
assertParamExists("cancelUmOrder", "symbol", symbol);
|
|
2033
1995
|
const localVarQueryParameter = {};
|
|
@@ -2429,42 +2391,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2429
2391
|
timeUnit: _timeUnit
|
|
2430
2392
|
};
|
|
2431
2393
|
},
|
|
2432
|
-
newUmConditionalOrder: async (symbol, side, strategyType, positionSide, timeInForce, quantity, reduceOnly, price, workingType, priceProtect, newClientStrategyId, stopPrice, activationPrice, callbackRate, priceMatch, selfTradePreventionMode, goodTillDate, recvWindow) => {
|
|
2433
|
-
assertParamExists("newUmConditionalOrder", "symbol", symbol);
|
|
2434
|
-
assertParamExists("newUmConditionalOrder", "side", side);
|
|
2435
|
-
assertParamExists("newUmConditionalOrder", "strategyType", strategyType);
|
|
2436
|
-
const localVarQueryParameter = {};
|
|
2437
|
-
const localVarBodyParameter = {};
|
|
2438
|
-
const localVarHeaderParameter = {};
|
|
2439
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2440
|
-
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2441
|
-
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
2442
|
-
if (strategyType !== void 0 && strategyType !== null) localVarQueryParameter["strategyType"] = strategyType;
|
|
2443
|
-
if (timeInForce !== void 0 && timeInForce !== null) localVarQueryParameter["timeInForce"] = timeInForce;
|
|
2444
|
-
if (quantity !== void 0 && quantity !== null) localVarQueryParameter["quantity"] = quantity;
|
|
2445
|
-
if (reduceOnly !== void 0 && reduceOnly !== null) localVarQueryParameter["reduceOnly"] = reduceOnly;
|
|
2446
|
-
if (price !== void 0 && price !== null) localVarQueryParameter["price"] = price;
|
|
2447
|
-
if (workingType !== void 0 && workingType !== null) localVarQueryParameter["workingType"] = workingType;
|
|
2448
|
-
if (priceProtect !== void 0 && priceProtect !== null) localVarQueryParameter["priceProtect"] = priceProtect;
|
|
2449
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2450
|
-
if (stopPrice !== void 0 && stopPrice !== null) localVarQueryParameter["stopPrice"] = stopPrice;
|
|
2451
|
-
if (activationPrice !== void 0 && activationPrice !== null) localVarQueryParameter["activationPrice"] = activationPrice;
|
|
2452
|
-
if (callbackRate !== void 0 && callbackRate !== null) localVarQueryParameter["callbackRate"] = callbackRate;
|
|
2453
|
-
if (priceMatch !== void 0 && priceMatch !== null) localVarQueryParameter["priceMatch"] = priceMatch;
|
|
2454
|
-
if (selfTradePreventionMode !== void 0 && selfTradePreventionMode !== null) localVarQueryParameter["selfTradePreventionMode"] = selfTradePreventionMode;
|
|
2455
|
-
if (goodTillDate !== void 0 && goodTillDate !== null) localVarQueryParameter["goodTillDate"] = goodTillDate;
|
|
2456
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2457
|
-
let _timeUnit;
|
|
2458
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2459
|
-
return {
|
|
2460
|
-
endpoint: "/papi/v1/um/conditional/order",
|
|
2461
|
-
method: "POST",
|
|
2462
|
-
queryParams: localVarQueryParameter,
|
|
2463
|
-
bodyParams: localVarBodyParameter,
|
|
2464
|
-
headerParams: localVarHeaderParameter,
|
|
2465
|
-
timeUnit: _timeUnit
|
|
2466
|
-
};
|
|
2467
|
-
},
|
|
2468
2394
|
newUmOrder: async (symbol, side, type, positionSide, timeInForce, quantity, reduceOnly, price, newClientOrderId, newOrderRespType, priceMatch, selfTradePreventionMode, goodTillDate, recvWindow) => {
|
|
2469
2395
|
assertParamExists("newUmOrder", "symbol", symbol);
|
|
2470
2396
|
assertParamExists("newUmOrder", "side", side);
|
|
@@ -2594,23 +2520,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2594
2520
|
timeUnit: _timeUnit
|
|
2595
2521
|
};
|
|
2596
2522
|
},
|
|
2597
|
-
queryAllCurrentUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2598
|
-
const localVarQueryParameter = {};
|
|
2599
|
-
const localVarBodyParameter = {};
|
|
2600
|
-
const localVarHeaderParameter = {};
|
|
2601
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2602
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2603
|
-
let _timeUnit;
|
|
2604
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2605
|
-
return {
|
|
2606
|
-
endpoint: "/papi/v1/um/conditional/openOrders",
|
|
2607
|
-
method: "GET",
|
|
2608
|
-
queryParams: localVarQueryParameter,
|
|
2609
|
-
bodyParams: localVarBodyParameter,
|
|
2610
|
-
headerParams: localVarHeaderParameter,
|
|
2611
|
-
timeUnit: _timeUnit
|
|
2612
|
-
};
|
|
2613
|
-
},
|
|
2614
2523
|
queryAllCurrentUmOpenOrders: async (symbol, recvWindow) => {
|
|
2615
2524
|
const localVarQueryParameter = {};
|
|
2616
2525
|
const localVarBodyParameter = {};
|
|
@@ -2650,27 +2559,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2650
2559
|
timeUnit: _timeUnit
|
|
2651
2560
|
};
|
|
2652
2561
|
},
|
|
2653
|
-
queryAllUmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
2654
|
-
const localVarQueryParameter = {};
|
|
2655
|
-
const localVarBodyParameter = {};
|
|
2656
|
-
const localVarHeaderParameter = {};
|
|
2657
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2658
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2659
|
-
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2660
|
-
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
2661
|
-
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
2662
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2663
|
-
let _timeUnit;
|
|
2664
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2665
|
-
return {
|
|
2666
|
-
endpoint: "/papi/v1/um/conditional/allOrders",
|
|
2667
|
-
method: "GET",
|
|
2668
|
-
queryParams: localVarQueryParameter,
|
|
2669
|
-
bodyParams: localVarBodyParameter,
|
|
2670
|
-
headerParams: localVarHeaderParameter,
|
|
2671
|
-
timeUnit: _timeUnit
|
|
2672
|
-
};
|
|
2673
|
-
},
|
|
2674
2562
|
queryAllUmOrders: async (symbol, orderId, startTime, endTime, limit, recvWindow) => {
|
|
2675
2563
|
assertParamExists("queryAllUmOrders", "symbol", symbol);
|
|
2676
2564
|
const localVarQueryParameter = {};
|
|
@@ -2832,26 +2720,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2832
2720
|
timeUnit: _timeUnit
|
|
2833
2721
|
};
|
|
2834
2722
|
},
|
|
2835
|
-
queryCurrentUmOpenConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2836
|
-
assertParamExists("queryCurrentUmOpenConditionalOrder", "symbol", symbol);
|
|
2837
|
-
const localVarQueryParameter = {};
|
|
2838
|
-
const localVarBodyParameter = {};
|
|
2839
|
-
const localVarHeaderParameter = {};
|
|
2840
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2841
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2842
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2843
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2844
|
-
let _timeUnit;
|
|
2845
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2846
|
-
return {
|
|
2847
|
-
endpoint: "/papi/v1/um/conditional/openOrder",
|
|
2848
|
-
method: "GET",
|
|
2849
|
-
queryParams: localVarQueryParameter,
|
|
2850
|
-
bodyParams: localVarBodyParameter,
|
|
2851
|
-
headerParams: localVarHeaderParameter,
|
|
2852
|
-
timeUnit: _timeUnit
|
|
2853
|
-
};
|
|
2854
|
-
},
|
|
2855
2723
|
queryCurrentUmOpenOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2856
2724
|
assertParamExists("queryCurrentUmOpenOrder", "symbol", symbol);
|
|
2857
2725
|
const localVarQueryParameter = {};
|
|
@@ -2968,26 +2836,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2968
2836
|
timeUnit: _timeUnit
|
|
2969
2837
|
};
|
|
2970
2838
|
},
|
|
2971
|
-
queryUmConditionalOrderHistory: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2972
|
-
assertParamExists("queryUmConditionalOrderHistory", "symbol", symbol);
|
|
2973
|
-
const localVarQueryParameter = {};
|
|
2974
|
-
const localVarBodyParameter = {};
|
|
2975
|
-
const localVarHeaderParameter = {};
|
|
2976
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2977
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2978
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2979
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2980
|
-
let _timeUnit;
|
|
2981
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2982
|
-
return {
|
|
2983
|
-
endpoint: "/papi/v1/um/conditional/orderHistory",
|
|
2984
|
-
method: "GET",
|
|
2985
|
-
queryParams: localVarQueryParameter,
|
|
2986
|
-
bodyParams: localVarBodyParameter,
|
|
2987
|
-
headerParams: localVarHeaderParameter,
|
|
2988
|
-
timeUnit: _timeUnit
|
|
2989
|
-
};
|
|
2990
|
-
},
|
|
2991
2839
|
queryUmModifyOrderHistory: async (symbol, orderId, origClientOrderId, startTime, endTime, limit, recvWindow) => {
|
|
2992
2840
|
assertParamExists("queryUmModifyOrderHistory", "symbol", symbol);
|
|
2993
2841
|
const localVarQueryParameter = {};
|
|
@@ -3216,26 +3064,6 @@ var TradeApi = class {
|
|
|
3216
3064
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3217
3065
|
}
|
|
3218
3066
|
/**
|
|
3219
|
-
* Cancel All UM Open Conditional Orders
|
|
3220
|
-
*
|
|
3221
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `DELETE /papi/v1/um/algo/allOpenOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
3222
|
-
*
|
|
3223
|
-
* Weight(IP): 1
|
|
3224
|
-
*
|
|
3225
|
-
* Security Type: TRADE
|
|
3226
|
-
*
|
|
3227
|
-
* @summary Cancel All UM Open Conditional Orders - Deprecated (TRADE)
|
|
3228
|
-
* @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
3229
|
-
* @returns {Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>}
|
|
3230
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3231
|
-
* @memberof TradeApi
|
|
3232
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-all-um-open-conditional-orders Binance API Documentation}
|
|
3233
|
-
*/
|
|
3234
|
-
async cancelAllUmOpenConditionalOrders(requestParameters) {
|
|
3235
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3236
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3237
|
-
}
|
|
3238
|
-
/**
|
|
3239
3067
|
* Cancel all active LIMIT orders on specific symbol
|
|
3240
3068
|
*
|
|
3241
3069
|
* Weight(IP): 1
|
|
@@ -3377,29 +3205,6 @@ var TradeApi = class {
|
|
|
3377
3205
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3378
3206
|
}
|
|
3379
3207
|
/**
|
|
3380
|
-
* Cancel UM Conditional Order
|
|
3381
|
-
*
|
|
3382
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `DELETE /papi/v1/um/algo/order` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
3383
|
-
*
|
|
3384
|
-
* Weight(IP): 1
|
|
3385
|
-
*
|
|
3386
|
-
* Security Type: TRADE
|
|
3387
|
-
*
|
|
3388
|
-
* Notes:
|
|
3389
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
3390
|
-
*
|
|
3391
|
-
* @summary Cancel UM Conditional Order - Deprecated (TRADE)
|
|
3392
|
-
* @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
|
|
3393
|
-
* @returns {Promise<RestApiResponse<CancelUmConditionalOrderResponse>>}
|
|
3394
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3395
|
-
* @memberof TradeApi
|
|
3396
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-um-conditional-order Binance API Documentation}
|
|
3397
|
-
*/
|
|
3398
|
-
async cancelUmConditionalOrder(requestParameters) {
|
|
3399
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3400
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3401
|
-
}
|
|
3402
|
-
/**
|
|
3403
3208
|
* Cancel an active UM LIMIT order
|
|
3404
3209
|
*
|
|
3405
3210
|
* Weight(IP): 1
|
|
@@ -3774,41 +3579,6 @@ var TradeApi = class {
|
|
|
3774
3579
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3775
3580
|
}
|
|
3776
3581
|
/**
|
|
3777
|
-
* Place new UM conditional order
|
|
3778
|
-
*
|
|
3779
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `POST /papi/v1/um/algo/order` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
3780
|
-
*
|
|
3781
|
-
* Weight(IP): 1
|
|
3782
|
-
*
|
|
3783
|
-
* Security Type: TRADE
|
|
3784
|
-
*
|
|
3785
|
-
* Notes:
|
|
3786
|
-
* - Additional mandatory parameters based on type:
|
|
3787
|
-
* - Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
|
|
3788
|
-
* - Condition orders will be triggered when:
|
|
3789
|
-
* - `STOP`, `STOP_MARKET`:
|
|
3790
|
-
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
3791
|
-
* - SELL: "MARK_PRICE" = `stopPrice`
|
|
3792
|
-
* - `TRAILING_STOP_MARKET`:
|
|
3793
|
-
* - BUY: the lowest mark price after order placed ``= the lowest mark price
|
|
3794
|
-
* - (1 + `callbackRate`)
|
|
3795
|
-
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price = `stopPrice`
|
|
3796
|
-
* - SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") = `stopPrice`
|
|
3797
|
-
* - `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
|
|
3798
|
-
* - In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
|
|
3799
|
-
*
|
|
3800
|
-
* @summary New UM Conditional Order - Deprecated (TRADE)
|
|
3801
|
-
* @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
|
|
3802
|
-
* @returns {Promise<RestApiResponse<NewUmConditionalOrderResponse>>}
|
|
3803
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3804
|
-
* @memberof TradeApi
|
|
3805
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#new-um-conditional-order Binance API Documentation}
|
|
3806
|
-
*/
|
|
3807
|
-
async newUmConditionalOrder(requestParameters) {
|
|
3808
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.newUmConditionalOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.strategyType, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.reduceOnly, requestParameters?.price, requestParameters?.workingType, requestParameters?.priceProtect, requestParameters?.newClientStrategyId, requestParameters?.stopPrice, requestParameters?.activationPrice, requestParameters?.callbackRate, requestParameters?.priceMatch, requestParameters?.selfTradePreventionMode, requestParameters?.goodTillDate, requestParameters?.recvWindow);
|
|
3809
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3810
|
-
}
|
|
3811
|
-
/**
|
|
3812
3582
|
* Place new UM order
|
|
3813
3583
|
*
|
|
3814
3584
|
* Weight(IP): 1
|
|
@@ -3951,30 +3721,6 @@ var TradeApi = class {
|
|
|
3951
3721
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3952
3722
|
}
|
|
3953
3723
|
/**
|
|
3954
|
-
* Get all open conditional orders on a symbol.
|
|
3955
|
-
*
|
|
3956
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/openAlgoOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
3957
|
-
*
|
|
3958
|
-
* Weight: - 1 for a single `symbol`
|
|
3959
|
-
* - 40 when `symbol` is omitted
|
|
3960
|
-
*
|
|
3961
|
-
* Security Type: USER_DATA
|
|
3962
|
-
*
|
|
3963
|
-
* Notes:
|
|
3964
|
-
* - If `symbol` is not provided, conditional open orders for all symbols are returned.
|
|
3965
|
-
*
|
|
3966
|
-
* @summary Query All Current UM Open Conditional Orders - Deprecated (USER_DATA)
|
|
3967
|
-
* @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
3968
|
-
* @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>}
|
|
3969
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3970
|
-
* @memberof TradeApi
|
|
3971
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-all-current-um-open-conditional-orders Binance API Documentation}
|
|
3972
|
-
*/
|
|
3973
|
-
async queryAllCurrentUmOpenConditionalOrders(requestParameters = {}) {
|
|
3974
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3975
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3976
|
-
}
|
|
3977
|
-
/**
|
|
3978
3724
|
* Get all open orders on a symbol.
|
|
3979
3725
|
*
|
|
3980
3726
|
* Weight: - 1 for a single `symbol`
|
|
@@ -4019,33 +3765,6 @@ var TradeApi = class {
|
|
|
4019
3765
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4020
3766
|
}
|
|
4021
3767
|
/**
|
|
4022
|
-
* Query All UM Conditional Orders
|
|
4023
|
-
*
|
|
4024
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/allAlgoOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
4025
|
-
*
|
|
4026
|
-
* Weight: - 1 for a single `symbol`
|
|
4027
|
-
* - 40 when `symbol` is omitted
|
|
4028
|
-
*
|
|
4029
|
-
* Security Type: USER_DATA
|
|
4030
|
-
*
|
|
4031
|
-
* Notes:
|
|
4032
|
-
* - These orders will not be found:
|
|
4033
|
-
* - order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
|
|
4034
|
-
* - order has NO filled trade, **AND**
|
|
4035
|
-
* - created time + 7 days * The query time period must be less than 7 days( default as the recent 7 days).
|
|
4036
|
-
*
|
|
4037
|
-
* @summary Query All UM Conditional Orders - Deprecated (USER_DATA)
|
|
4038
|
-
* @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
|
|
4039
|
-
* @returns {Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>}
|
|
4040
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4041
|
-
* @memberof TradeApi
|
|
4042
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-all-um-conditional-orders Binance API Documentation}
|
|
4043
|
-
*/
|
|
4044
|
-
async queryAllUmConditionalOrders(requestParameters = {}) {
|
|
4045
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
4046
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4047
|
-
}
|
|
4048
|
-
/**
|
|
4049
3768
|
* Get all account UM orders; active, canceled, or filled.
|
|
4050
3769
|
*
|
|
4051
3770
|
* Weight(IP): 5
|
|
@@ -4227,30 +3946,6 @@ var TradeApi = class {
|
|
|
4227
3946
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4228
3947
|
}
|
|
4229
3948
|
/**
|
|
4230
|
-
* Query Current UM Open Conditional Order
|
|
4231
|
-
*
|
|
4232
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/algoOrder` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
4233
|
-
*
|
|
4234
|
-
* Weight(IP): 1
|
|
4235
|
-
*
|
|
4236
|
-
* Security Type: USER_DATA
|
|
4237
|
-
*
|
|
4238
|
-
* Notes:
|
|
4239
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
4240
|
-
* - If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message "Order does not exist" will be returned.
|
|
4241
|
-
*
|
|
4242
|
-
* @summary Query Current UM Open Conditional Order - Deprecated (USER_DATA)
|
|
4243
|
-
* @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
|
|
4244
|
-
* @returns {Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>}
|
|
4245
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4246
|
-
* @memberof TradeApi
|
|
4247
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-current-um-open-conditional-order Binance API Documentation}
|
|
4248
|
-
*/
|
|
4249
|
-
async queryCurrentUmOpenConditionalOrder(requestParameters) {
|
|
4250
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
4251
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4252
|
-
}
|
|
4253
|
-
/**
|
|
4254
3949
|
* Query current UM open order
|
|
4255
3950
|
*
|
|
4256
3951
|
* Weight(IP): 1
|
|
@@ -4371,34 +4066,6 @@ var TradeApi = class {
|
|
|
4371
4066
|
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4372
4067
|
}
|
|
4373
4068
|
/**
|
|
4374
|
-
* Query UM Conditional Order History
|
|
4375
|
-
*
|
|
4376
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/allAlgoOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
4377
|
-
*
|
|
4378
|
-
* Weight(IP): 1
|
|
4379
|
-
*
|
|
4380
|
-
* Security Type: USER_DATA
|
|
4381
|
-
*
|
|
4382
|
-
* Notes:
|
|
4383
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
4384
|
-
* - `NEW` orders will not be found.
|
|
4385
|
-
* - These orders will not be found:
|
|
4386
|
-
* - order status is `CANCELED` or `EXPIRED`, **AND**
|
|
4387
|
-
* - order has NO filled trade, **AND**
|
|
4388
|
-
* - created time + 7 days < current time
|
|
4389
|
-
*
|
|
4390
|
-
* @summary Query UM Conditional Order History - Deprecated (USER_DATA)
|
|
4391
|
-
* @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
|
|
4392
|
-
* @returns {Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>}
|
|
4393
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4394
|
-
* @memberof TradeApi
|
|
4395
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-um-conditional-order-history Binance API Documentation}
|
|
4396
|
-
*/
|
|
4397
|
-
async queryUmConditionalOrderHistory(requestParameters) {
|
|
4398
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
4399
|
-
return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4400
|
-
}
|
|
4401
|
-
/**
|
|
4402
4069
|
* Get order modification history
|
|
4403
4070
|
*
|
|
4404
4071
|
* Weight(IP): 1
|
|
@@ -4829,66 +4496,6 @@ let NewUmAlgoOrderSelfTradePreventionModeEnum = /* @__PURE__ */ function(NewUmAl
|
|
|
4829
4496
|
NewUmAlgoOrderSelfTradePreventionModeEnum$1["EXPIRE_BOTH"] = "EXPIRE_BOTH";
|
|
4830
4497
|
return NewUmAlgoOrderSelfTradePreventionModeEnum$1;
|
|
4831
4498
|
}({});
|
|
4832
|
-
let NewUmConditionalOrderSideEnum = /* @__PURE__ */ function(NewUmConditionalOrderSideEnum$1) {
|
|
4833
|
-
NewUmConditionalOrderSideEnum$1["BUY"] = "BUY";
|
|
4834
|
-
NewUmConditionalOrderSideEnum$1["SELL"] = "SELL";
|
|
4835
|
-
return NewUmConditionalOrderSideEnum$1;
|
|
4836
|
-
}({});
|
|
4837
|
-
let NewUmConditionalOrderStrategyTypeEnum = /* @__PURE__ */ function(NewUmConditionalOrderStrategyTypeEnum$1) {
|
|
4838
|
-
NewUmConditionalOrderStrategyTypeEnum$1["STOP"] = "STOP";
|
|
4839
|
-
NewUmConditionalOrderStrategyTypeEnum$1["STOP_MARKET"] = "STOP_MARKET";
|
|
4840
|
-
NewUmConditionalOrderStrategyTypeEnum$1["TAKE_PROFIT"] = "TAKE_PROFIT";
|
|
4841
|
-
NewUmConditionalOrderStrategyTypeEnum$1["TAKE_PROFIT_MARKET"] = "TAKE_PROFIT_MARKET";
|
|
4842
|
-
NewUmConditionalOrderStrategyTypeEnum$1["TRAILING_STOP_MARKET"] = "TRAILING_STOP_MARKET";
|
|
4843
|
-
return NewUmConditionalOrderStrategyTypeEnum$1;
|
|
4844
|
-
}({});
|
|
4845
|
-
let NewUmConditionalOrderPositionSideEnum = /* @__PURE__ */ function(NewUmConditionalOrderPositionSideEnum$1) {
|
|
4846
|
-
NewUmConditionalOrderPositionSideEnum$1["BOTH"] = "BOTH";
|
|
4847
|
-
NewUmConditionalOrderPositionSideEnum$1["LONG"] = "LONG";
|
|
4848
|
-
NewUmConditionalOrderPositionSideEnum$1["SHORT"] = "SHORT";
|
|
4849
|
-
return NewUmConditionalOrderPositionSideEnum$1;
|
|
4850
|
-
}({});
|
|
4851
|
-
let NewUmConditionalOrderTimeInForceEnum = /* @__PURE__ */ function(NewUmConditionalOrderTimeInForceEnum$1) {
|
|
4852
|
-
NewUmConditionalOrderTimeInForceEnum$1["GTC"] = "GTC";
|
|
4853
|
-
NewUmConditionalOrderTimeInForceEnum$1["IOC"] = "IOC";
|
|
4854
|
-
NewUmConditionalOrderTimeInForceEnum$1["FOK"] = "FOK";
|
|
4855
|
-
NewUmConditionalOrderTimeInForceEnum$1["GTX"] = "GTX";
|
|
4856
|
-
NewUmConditionalOrderTimeInForceEnum$1["GTD"] = "GTD";
|
|
4857
|
-
return NewUmConditionalOrderTimeInForceEnum$1;
|
|
4858
|
-
}({});
|
|
4859
|
-
let NewUmConditionalOrderReduceOnlyEnum = /* @__PURE__ */ function(NewUmConditionalOrderReduceOnlyEnum$1) {
|
|
4860
|
-
NewUmConditionalOrderReduceOnlyEnum$1["TRUE"] = "true";
|
|
4861
|
-
NewUmConditionalOrderReduceOnlyEnum$1["FALSE"] = "false";
|
|
4862
|
-
return NewUmConditionalOrderReduceOnlyEnum$1;
|
|
4863
|
-
}({});
|
|
4864
|
-
let NewUmConditionalOrderWorkingTypeEnum = /* @__PURE__ */ function(NewUmConditionalOrderWorkingTypeEnum$1) {
|
|
4865
|
-
NewUmConditionalOrderWorkingTypeEnum$1["MARK_PRICE"] = "MARK_PRICE";
|
|
4866
|
-
NewUmConditionalOrderWorkingTypeEnum$1["CONTRACT_PRICE"] = "CONTRACT_PRICE";
|
|
4867
|
-
return NewUmConditionalOrderWorkingTypeEnum$1;
|
|
4868
|
-
}({});
|
|
4869
|
-
let NewUmConditionalOrderPriceProtectEnum = /* @__PURE__ */ function(NewUmConditionalOrderPriceProtectEnum$1) {
|
|
4870
|
-
NewUmConditionalOrderPriceProtectEnum$1["TRUE"] = "true";
|
|
4871
|
-
NewUmConditionalOrderPriceProtectEnum$1["FALSE"] = "false";
|
|
4872
|
-
return NewUmConditionalOrderPriceProtectEnum$1;
|
|
4873
|
-
}({});
|
|
4874
|
-
let NewUmConditionalOrderPriceMatchEnum = /* @__PURE__ */ function(NewUmConditionalOrderPriceMatchEnum$1) {
|
|
4875
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT"] = "OPPONENT";
|
|
4876
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT_5"] = "OPPONENT_5";
|
|
4877
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT_10"] = "OPPONENT_10";
|
|
4878
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT_20"] = "OPPONENT_20";
|
|
4879
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE"] = "QUEUE";
|
|
4880
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE_5"] = "QUEUE_5";
|
|
4881
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE_10"] = "QUEUE_10";
|
|
4882
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE_20"] = "QUEUE_20";
|
|
4883
|
-
return NewUmConditionalOrderPriceMatchEnum$1;
|
|
4884
|
-
}({});
|
|
4885
|
-
let NewUmConditionalOrderSelfTradePreventionModeEnum = /* @__PURE__ */ function(NewUmConditionalOrderSelfTradePreventionModeEnum$1) {
|
|
4886
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["NONE"] = "NONE";
|
|
4887
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["EXPIRE_TAKER"] = "EXPIRE_TAKER";
|
|
4888
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["EXPIRE_BOTH"] = "EXPIRE_BOTH";
|
|
4889
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["EXPIRE_MAKER"] = "EXPIRE_MAKER";
|
|
4890
|
-
return NewUmConditionalOrderSelfTradePreventionModeEnum$1;
|
|
4891
|
-
}({});
|
|
4892
4499
|
let NewUmOrderSideEnum = /* @__PURE__ */ function(NewUmOrderSideEnum$1) {
|
|
4893
4500
|
NewUmOrderSideEnum$1["BUY"] = "BUY";
|
|
4894
4501
|
NewUmOrderSideEnum$1["SELL"] = "SELL";
|
|
@@ -6006,25 +5613,6 @@ var RestAPI = class {
|
|
|
6006
5613
|
return this.tradeApi.cancelAllUmAlgoOpenOrders(requestParameters);
|
|
6007
5614
|
}
|
|
6008
5615
|
/**
|
|
6009
|
-
* Cancel All UM Open Conditional Orders
|
|
6010
|
-
*
|
|
6011
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `DELETE /papi/v1/um/algo/allOpenOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
6012
|
-
*
|
|
6013
|
-
* Weight(IP): 1
|
|
6014
|
-
*
|
|
6015
|
-
* Security Type: TRADE
|
|
6016
|
-
*
|
|
6017
|
-
* @summary Cancel All UM Open Conditional Orders - Deprecated (TRADE)
|
|
6018
|
-
* @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
6019
|
-
* @deprecated
|
|
6020
|
-
* @returns {Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>}
|
|
6021
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6022
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-all-um-open-conditional-orders Binance API Documentation}
|
|
6023
|
-
*/
|
|
6024
|
-
cancelAllUmOpenConditionalOrders(requestParameters) {
|
|
6025
|
-
return this.tradeApi.cancelAllUmOpenConditionalOrders(requestParameters);
|
|
6026
|
-
}
|
|
6027
|
-
/**
|
|
6028
5616
|
* Cancel all active LIMIT orders on specific symbol
|
|
6029
5617
|
*
|
|
6030
5618
|
* Weight(IP): 1
|
|
@@ -6159,28 +5747,6 @@ var RestAPI = class {
|
|
|
6159
5747
|
return this.tradeApi.cancelUmAlgoOrder(requestParameters);
|
|
6160
5748
|
}
|
|
6161
5749
|
/**
|
|
6162
|
-
* Cancel UM Conditional Order
|
|
6163
|
-
*
|
|
6164
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `DELETE /papi/v1/um/algo/order` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
6165
|
-
*
|
|
6166
|
-
* Weight(IP): 1
|
|
6167
|
-
*
|
|
6168
|
-
* Security Type: TRADE
|
|
6169
|
-
*
|
|
6170
|
-
* Notes:
|
|
6171
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
6172
|
-
*
|
|
6173
|
-
* @summary Cancel UM Conditional Order - Deprecated (TRADE)
|
|
6174
|
-
* @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
|
|
6175
|
-
* @deprecated
|
|
6176
|
-
* @returns {Promise<RestApiResponse<CancelUmConditionalOrderResponse>>}
|
|
6177
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6178
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-um-conditional-order Binance API Documentation}
|
|
6179
|
-
*/
|
|
6180
|
-
cancelUmConditionalOrder(requestParameters) {
|
|
6181
|
-
return this.tradeApi.cancelUmConditionalOrder(requestParameters);
|
|
6182
|
-
}
|
|
6183
|
-
/**
|
|
6184
5750
|
* Cancel an active UM LIMIT order
|
|
6185
5751
|
*
|
|
6186
5752
|
* Weight(IP): 1
|
|
@@ -6539,40 +6105,6 @@ var RestAPI = class {
|
|
|
6539
6105
|
return this.tradeApi.newUmAlgoOrder(requestParameters);
|
|
6540
6106
|
}
|
|
6541
6107
|
/**
|
|
6542
|
-
* Place new UM conditional order
|
|
6543
|
-
*
|
|
6544
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `POST /papi/v1/um/algo/order` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
6545
|
-
*
|
|
6546
|
-
* Weight(IP): 1
|
|
6547
|
-
*
|
|
6548
|
-
* Security Type: TRADE
|
|
6549
|
-
*
|
|
6550
|
-
* Notes:
|
|
6551
|
-
* - Additional mandatory parameters based on type:
|
|
6552
|
-
* - Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
|
|
6553
|
-
* - Condition orders will be triggered when:
|
|
6554
|
-
* - `STOP`, `STOP_MARKET`:
|
|
6555
|
-
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
6556
|
-
* - SELL: "MARK_PRICE" = `stopPrice`
|
|
6557
|
-
* - `TRAILING_STOP_MARKET`:
|
|
6558
|
-
* - BUY: the lowest mark price after order placed ``= the lowest mark price
|
|
6559
|
-
* - (1 + `callbackRate`)
|
|
6560
|
-
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price = `stopPrice`
|
|
6561
|
-
* - SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") = `stopPrice`
|
|
6562
|
-
* - `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
|
|
6563
|
-
* - In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
|
|
6564
|
-
*
|
|
6565
|
-
* @summary New UM Conditional Order - Deprecated (TRADE)
|
|
6566
|
-
* @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
|
|
6567
|
-
* @deprecated
|
|
6568
|
-
* @returns {Promise<RestApiResponse<NewUmConditionalOrderResponse>>}
|
|
6569
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6570
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#new-um-conditional-order Binance API Documentation}
|
|
6571
|
-
*/
|
|
6572
|
-
newUmConditionalOrder(requestParameters) {
|
|
6573
|
-
return this.tradeApi.newUmConditionalOrder(requestParameters);
|
|
6574
|
-
}
|
|
6575
|
-
/**
|
|
6576
6108
|
* Place new UM order
|
|
6577
6109
|
*
|
|
6578
6110
|
* Weight(IP): 1
|
|
@@ -6709,29 +6241,6 @@ var RestAPI = class {
|
|
|
6709
6241
|
return this.tradeApi.queryAllCurrentUmOpenAlgoOrders(requestParameters);
|
|
6710
6242
|
}
|
|
6711
6243
|
/**
|
|
6712
|
-
* Get all open conditional orders on a symbol.
|
|
6713
|
-
*
|
|
6714
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/openAlgoOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
6715
|
-
*
|
|
6716
|
-
* Weight: - 1 for a single `symbol`
|
|
6717
|
-
* - 40 when `symbol` is omitted
|
|
6718
|
-
*
|
|
6719
|
-
* Security Type: USER_DATA
|
|
6720
|
-
*
|
|
6721
|
-
* Notes:
|
|
6722
|
-
* - If `symbol` is not provided, conditional open orders for all symbols are returned.
|
|
6723
|
-
*
|
|
6724
|
-
* @summary Query All Current UM Open Conditional Orders - Deprecated (USER_DATA)
|
|
6725
|
-
* @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
6726
|
-
* @deprecated
|
|
6727
|
-
* @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>}
|
|
6728
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6729
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-all-current-um-open-conditional-orders Binance API Documentation}
|
|
6730
|
-
*/
|
|
6731
|
-
queryAllCurrentUmOpenConditionalOrders(requestParameters = {}) {
|
|
6732
|
-
return this.tradeApi.queryAllCurrentUmOpenConditionalOrders(requestParameters);
|
|
6733
|
-
}
|
|
6734
|
-
/**
|
|
6735
6244
|
* Get all open orders on a symbol.
|
|
6736
6245
|
*
|
|
6737
6246
|
* Weight: - 1 for a single `symbol`
|
|
@@ -6774,32 +6283,6 @@ var RestAPI = class {
|
|
|
6774
6283
|
return this.tradeApi.queryAllMarginAccountOrders(requestParameters);
|
|
6775
6284
|
}
|
|
6776
6285
|
/**
|
|
6777
|
-
* Query All UM Conditional Orders
|
|
6778
|
-
*
|
|
6779
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/allAlgoOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
6780
|
-
*
|
|
6781
|
-
* Weight: - 1 for a single `symbol`
|
|
6782
|
-
* - 40 when `symbol` is omitted
|
|
6783
|
-
*
|
|
6784
|
-
* Security Type: USER_DATA
|
|
6785
|
-
*
|
|
6786
|
-
* Notes:
|
|
6787
|
-
* - These orders will not be found:
|
|
6788
|
-
* - order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
|
|
6789
|
-
* - order has NO filled trade, **AND**
|
|
6790
|
-
* - created time + 7 days * The query time period must be less than 7 days( default as the recent 7 days).
|
|
6791
|
-
*
|
|
6792
|
-
* @summary Query All UM Conditional Orders - Deprecated (USER_DATA)
|
|
6793
|
-
* @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
|
|
6794
|
-
* @deprecated
|
|
6795
|
-
* @returns {Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>}
|
|
6796
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6797
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-all-um-conditional-orders Binance API Documentation}
|
|
6798
|
-
*/
|
|
6799
|
-
queryAllUmConditionalOrders(requestParameters = {}) {
|
|
6800
|
-
return this.tradeApi.queryAllUmConditionalOrders(requestParameters);
|
|
6801
|
-
}
|
|
6802
|
-
/**
|
|
6803
6286
|
* Get all account UM orders; active, canceled, or filled.
|
|
6804
6287
|
*
|
|
6805
6288
|
* Weight(IP): 5
|
|
@@ -6973,29 +6456,6 @@ var RestAPI = class {
|
|
|
6973
6456
|
return this.tradeApi.queryCurrentUmOpenAlgoOrder(requestParameters);
|
|
6974
6457
|
}
|
|
6975
6458
|
/**
|
|
6976
|
-
* Query Current UM Open Conditional Order
|
|
6977
|
-
*
|
|
6978
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/algoOrder` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
6979
|
-
*
|
|
6980
|
-
* Weight(IP): 1
|
|
6981
|
-
*
|
|
6982
|
-
* Security Type: USER_DATA
|
|
6983
|
-
*
|
|
6984
|
-
* Notes:
|
|
6985
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
6986
|
-
* - If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message "Order does not exist" will be returned.
|
|
6987
|
-
*
|
|
6988
|
-
* @summary Query Current UM Open Conditional Order - Deprecated (USER_DATA)
|
|
6989
|
-
* @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
|
|
6990
|
-
* @deprecated
|
|
6991
|
-
* @returns {Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>}
|
|
6992
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6993
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-current-um-open-conditional-order Binance API Documentation}
|
|
6994
|
-
*/
|
|
6995
|
-
queryCurrentUmOpenConditionalOrder(requestParameters) {
|
|
6996
|
-
return this.tradeApi.queryCurrentUmOpenConditionalOrder(requestParameters);
|
|
6997
|
-
}
|
|
6998
|
-
/**
|
|
6999
6459
|
* Query current UM open order
|
|
7000
6460
|
*
|
|
7001
6461
|
* Weight(IP): 1
|
|
@@ -7110,33 +6570,6 @@ var RestAPI = class {
|
|
|
7110
6570
|
return this.tradeApi.queryUmAlgoOrderHistory(requestParameters);
|
|
7111
6571
|
}
|
|
7112
6572
|
/**
|
|
7113
|
-
* Query UM Conditional Order History
|
|
7114
|
-
*
|
|
7115
|
-
* > **Deprecated:** This endpoint has returned HTTP 404 since 2026-04-28 and is no longer available. Use `GET /papi/v1/um/algo/allAlgoOrders` instead. Field changes: `strategyId` -> `algoId`, `newClientStrategyId` -> `clientAlgoId`, `strategyStatus` -> `algoStatus`, `stopPrice` -> `triggerPrice`, `activationPrice` -> `activatePrice` (TRAILING_STOP_MARKET orders). `algoType` is a new fixed-value field (`CONDITIONAL`), not a rename of `strategyType` -- the order type now lives in `type` (request) / `orderType` (response).
|
|
7116
|
-
*
|
|
7117
|
-
* Weight(IP): 1
|
|
7118
|
-
*
|
|
7119
|
-
* Security Type: USER_DATA
|
|
7120
|
-
*
|
|
7121
|
-
* Notes:
|
|
7122
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
7123
|
-
* - `NEW` orders will not be found.
|
|
7124
|
-
* - These orders will not be found:
|
|
7125
|
-
* - order status is `CANCELED` or `EXPIRED`, **AND**
|
|
7126
|
-
* - order has NO filled trade, **AND**
|
|
7127
|
-
* - created time + 7 days < current time
|
|
7128
|
-
*
|
|
7129
|
-
* @summary Query UM Conditional Order History - Deprecated (USER_DATA)
|
|
7130
|
-
* @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
|
|
7131
|
-
* @deprecated
|
|
7132
|
-
* @returns {Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>}
|
|
7133
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
7134
|
-
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-um-conditional-order-history Binance API Documentation}
|
|
7135
|
-
*/
|
|
7136
|
-
queryUmConditionalOrderHistory(requestParameters) {
|
|
7137
|
-
return this.tradeApi.queryUmConditionalOrderHistory(requestParameters);
|
|
7138
|
-
}
|
|
7139
|
-
/**
|
|
7140
6573
|
* Get order modification history
|
|
7141
6574
|
*
|
|
7142
6575
|
* Weight(IP): 1
|
|
@@ -7412,15 +6845,6 @@ var rest_api_exports = /* @__PURE__ */ __export({
|
|
|
7412
6845
|
NewUmAlgoOrderTimeInForceEnum: () => NewUmAlgoOrderTimeInForceEnum,
|
|
7413
6846
|
NewUmAlgoOrderTypeEnum: () => NewUmAlgoOrderTypeEnum,
|
|
7414
6847
|
NewUmAlgoOrderWorkingTypeEnum: () => NewUmAlgoOrderWorkingTypeEnum,
|
|
7415
|
-
NewUmConditionalOrderPositionSideEnum: () => NewUmConditionalOrderPositionSideEnum,
|
|
7416
|
-
NewUmConditionalOrderPriceMatchEnum: () => NewUmConditionalOrderPriceMatchEnum,
|
|
7417
|
-
NewUmConditionalOrderPriceProtectEnum: () => NewUmConditionalOrderPriceProtectEnum,
|
|
7418
|
-
NewUmConditionalOrderReduceOnlyEnum: () => NewUmConditionalOrderReduceOnlyEnum,
|
|
7419
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum: () => NewUmConditionalOrderSelfTradePreventionModeEnum,
|
|
7420
|
-
NewUmConditionalOrderSideEnum: () => NewUmConditionalOrderSideEnum,
|
|
7421
|
-
NewUmConditionalOrderStrategyTypeEnum: () => NewUmConditionalOrderStrategyTypeEnum,
|
|
7422
|
-
NewUmConditionalOrderTimeInForceEnum: () => NewUmConditionalOrderTimeInForceEnum,
|
|
7423
|
-
NewUmConditionalOrderWorkingTypeEnum: () => NewUmConditionalOrderWorkingTypeEnum,
|
|
7424
6848
|
NewUmOrderNewOrderRespTypeEnum: () => NewUmOrderNewOrderRespTypeEnum,
|
|
7425
6849
|
NewUmOrderPositionSideEnum: () => NewUmOrderPositionSideEnum,
|
|
7426
6850
|
NewUmOrderPriceMatchEnum: () => NewUmOrderPriceMatchEnum,
|