@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.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/derivatives-trading-portfolio-margin";
|
|
17
|
-
var version = "
|
|
17
|
+
var version = "19.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -1865,24 +1865,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
1865
1865
|
timeUnit: _timeUnit
|
|
1866
1866
|
};
|
|
1867
1867
|
},
|
|
1868
|
-
cancelAllUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
1869
|
-
(0, __binance_common.assertParamExists)("cancelAllUmOpenConditionalOrders", "symbol", symbol);
|
|
1870
|
-
const localVarQueryParameter = {};
|
|
1871
|
-
const localVarBodyParameter = {};
|
|
1872
|
-
const localVarHeaderParameter = {};
|
|
1873
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
1874
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
1875
|
-
let _timeUnit;
|
|
1876
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
1877
|
-
return {
|
|
1878
|
-
endpoint: "/papi/v1/um/conditional/allOpenOrders",
|
|
1879
|
-
method: "DELETE",
|
|
1880
|
-
queryParams: localVarQueryParameter,
|
|
1881
|
-
bodyParams: localVarBodyParameter,
|
|
1882
|
-
headerParams: localVarHeaderParameter,
|
|
1883
|
-
timeUnit: _timeUnit
|
|
1884
|
-
};
|
|
1885
|
-
},
|
|
1886
1868
|
cancelAllUmOpenOrders: async (symbol, recvWindow) => {
|
|
1887
1869
|
(0, __binance_common.assertParamExists)("cancelAllUmOpenOrders", "symbol", symbol);
|
|
1888
1870
|
const localVarQueryParameter = {};
|
|
@@ -2019,26 +2001,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2019
2001
|
timeUnit: _timeUnit
|
|
2020
2002
|
};
|
|
2021
2003
|
},
|
|
2022
|
-
cancelUmConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2023
|
-
(0, __binance_common.assertParamExists)("cancelUmConditionalOrder", "symbol", symbol);
|
|
2024
|
-
const localVarQueryParameter = {};
|
|
2025
|
-
const localVarBodyParameter = {};
|
|
2026
|
-
const localVarHeaderParameter = {};
|
|
2027
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2028
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2029
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2030
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2031
|
-
let _timeUnit;
|
|
2032
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2033
|
-
return {
|
|
2034
|
-
endpoint: "/papi/v1/um/conditional/order",
|
|
2035
|
-
method: "DELETE",
|
|
2036
|
-
queryParams: localVarQueryParameter,
|
|
2037
|
-
bodyParams: localVarBodyParameter,
|
|
2038
|
-
headerParams: localVarHeaderParameter,
|
|
2039
|
-
timeUnit: _timeUnit
|
|
2040
|
-
};
|
|
2041
|
-
},
|
|
2042
2004
|
cancelUmOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2043
2005
|
(0, __binance_common.assertParamExists)("cancelUmOrder", "symbol", symbol);
|
|
2044
2006
|
const localVarQueryParameter = {};
|
|
@@ -2440,42 +2402,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2440
2402
|
timeUnit: _timeUnit
|
|
2441
2403
|
};
|
|
2442
2404
|
},
|
|
2443
|
-
newUmConditionalOrder: async (symbol, side, strategyType, positionSide, timeInForce, quantity, reduceOnly, price, workingType, priceProtect, newClientStrategyId, stopPrice, activationPrice, callbackRate, priceMatch, selfTradePreventionMode, goodTillDate, recvWindow) => {
|
|
2444
|
-
(0, __binance_common.assertParamExists)("newUmConditionalOrder", "symbol", symbol);
|
|
2445
|
-
(0, __binance_common.assertParamExists)("newUmConditionalOrder", "side", side);
|
|
2446
|
-
(0, __binance_common.assertParamExists)("newUmConditionalOrder", "strategyType", strategyType);
|
|
2447
|
-
const localVarQueryParameter = {};
|
|
2448
|
-
const localVarBodyParameter = {};
|
|
2449
|
-
const localVarHeaderParameter = {};
|
|
2450
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2451
|
-
if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
|
|
2452
|
-
if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
|
|
2453
|
-
if (strategyType !== void 0 && strategyType !== null) localVarQueryParameter["strategyType"] = strategyType;
|
|
2454
|
-
if (timeInForce !== void 0 && timeInForce !== null) localVarQueryParameter["timeInForce"] = timeInForce;
|
|
2455
|
-
if (quantity !== void 0 && quantity !== null) localVarQueryParameter["quantity"] = quantity;
|
|
2456
|
-
if (reduceOnly !== void 0 && reduceOnly !== null) localVarQueryParameter["reduceOnly"] = reduceOnly;
|
|
2457
|
-
if (price !== void 0 && price !== null) localVarQueryParameter["price"] = price;
|
|
2458
|
-
if (workingType !== void 0 && workingType !== null) localVarQueryParameter["workingType"] = workingType;
|
|
2459
|
-
if (priceProtect !== void 0 && priceProtect !== null) localVarQueryParameter["priceProtect"] = priceProtect;
|
|
2460
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2461
|
-
if (stopPrice !== void 0 && stopPrice !== null) localVarQueryParameter["stopPrice"] = stopPrice;
|
|
2462
|
-
if (activationPrice !== void 0 && activationPrice !== null) localVarQueryParameter["activationPrice"] = activationPrice;
|
|
2463
|
-
if (callbackRate !== void 0 && callbackRate !== null) localVarQueryParameter["callbackRate"] = callbackRate;
|
|
2464
|
-
if (priceMatch !== void 0 && priceMatch !== null) localVarQueryParameter["priceMatch"] = priceMatch;
|
|
2465
|
-
if (selfTradePreventionMode !== void 0 && selfTradePreventionMode !== null) localVarQueryParameter["selfTradePreventionMode"] = selfTradePreventionMode;
|
|
2466
|
-
if (goodTillDate !== void 0 && goodTillDate !== null) localVarQueryParameter["goodTillDate"] = goodTillDate;
|
|
2467
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2468
|
-
let _timeUnit;
|
|
2469
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2470
|
-
return {
|
|
2471
|
-
endpoint: "/papi/v1/um/conditional/order",
|
|
2472
|
-
method: "POST",
|
|
2473
|
-
queryParams: localVarQueryParameter,
|
|
2474
|
-
bodyParams: localVarBodyParameter,
|
|
2475
|
-
headerParams: localVarHeaderParameter,
|
|
2476
|
-
timeUnit: _timeUnit
|
|
2477
|
-
};
|
|
2478
|
-
},
|
|
2479
2405
|
newUmOrder: async (symbol, side, type, positionSide, timeInForce, quantity, reduceOnly, price, newClientOrderId, newOrderRespType, priceMatch, selfTradePreventionMode, goodTillDate, recvWindow) => {
|
|
2480
2406
|
(0, __binance_common.assertParamExists)("newUmOrder", "symbol", symbol);
|
|
2481
2407
|
(0, __binance_common.assertParamExists)("newUmOrder", "side", side);
|
|
@@ -2605,23 +2531,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2605
2531
|
timeUnit: _timeUnit
|
|
2606
2532
|
};
|
|
2607
2533
|
},
|
|
2608
|
-
queryAllCurrentUmOpenConditionalOrders: async (symbol, recvWindow) => {
|
|
2609
|
-
const localVarQueryParameter = {};
|
|
2610
|
-
const localVarBodyParameter = {};
|
|
2611
|
-
const localVarHeaderParameter = {};
|
|
2612
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2613
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2614
|
-
let _timeUnit;
|
|
2615
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2616
|
-
return {
|
|
2617
|
-
endpoint: "/papi/v1/um/conditional/openOrders",
|
|
2618
|
-
method: "GET",
|
|
2619
|
-
queryParams: localVarQueryParameter,
|
|
2620
|
-
bodyParams: localVarBodyParameter,
|
|
2621
|
-
headerParams: localVarHeaderParameter,
|
|
2622
|
-
timeUnit: _timeUnit
|
|
2623
|
-
};
|
|
2624
|
-
},
|
|
2625
2534
|
queryAllCurrentUmOpenOrders: async (symbol, recvWindow) => {
|
|
2626
2535
|
const localVarQueryParameter = {};
|
|
2627
2536
|
const localVarBodyParameter = {};
|
|
@@ -2661,27 +2570,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2661
2570
|
timeUnit: _timeUnit
|
|
2662
2571
|
};
|
|
2663
2572
|
},
|
|
2664
|
-
queryAllUmConditionalOrders: async (symbol, strategyId, startTime, endTime, limit, recvWindow) => {
|
|
2665
|
-
const localVarQueryParameter = {};
|
|
2666
|
-
const localVarBodyParameter = {};
|
|
2667
|
-
const localVarHeaderParameter = {};
|
|
2668
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2669
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2670
|
-
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
2671
|
-
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
2672
|
-
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
2673
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2674
|
-
let _timeUnit;
|
|
2675
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2676
|
-
return {
|
|
2677
|
-
endpoint: "/papi/v1/um/conditional/allOrders",
|
|
2678
|
-
method: "GET",
|
|
2679
|
-
queryParams: localVarQueryParameter,
|
|
2680
|
-
bodyParams: localVarBodyParameter,
|
|
2681
|
-
headerParams: localVarHeaderParameter,
|
|
2682
|
-
timeUnit: _timeUnit
|
|
2683
|
-
};
|
|
2684
|
-
},
|
|
2685
2573
|
queryAllUmOrders: async (symbol, orderId, startTime, endTime, limit, recvWindow) => {
|
|
2686
2574
|
(0, __binance_common.assertParamExists)("queryAllUmOrders", "symbol", symbol);
|
|
2687
2575
|
const localVarQueryParameter = {};
|
|
@@ -2843,26 +2731,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2843
2731
|
timeUnit: _timeUnit
|
|
2844
2732
|
};
|
|
2845
2733
|
},
|
|
2846
|
-
queryCurrentUmOpenConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2847
|
-
(0, __binance_common.assertParamExists)("queryCurrentUmOpenConditionalOrder", "symbol", symbol);
|
|
2848
|
-
const localVarQueryParameter = {};
|
|
2849
|
-
const localVarBodyParameter = {};
|
|
2850
|
-
const localVarHeaderParameter = {};
|
|
2851
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2852
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2853
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2854
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2855
|
-
let _timeUnit;
|
|
2856
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2857
|
-
return {
|
|
2858
|
-
endpoint: "/papi/v1/um/conditional/openOrder",
|
|
2859
|
-
method: "GET",
|
|
2860
|
-
queryParams: localVarQueryParameter,
|
|
2861
|
-
bodyParams: localVarBodyParameter,
|
|
2862
|
-
headerParams: localVarHeaderParameter,
|
|
2863
|
-
timeUnit: _timeUnit
|
|
2864
|
-
};
|
|
2865
|
-
},
|
|
2866
2734
|
queryCurrentUmOpenOrder: async (symbol, orderId, origClientOrderId, recvWindow) => {
|
|
2867
2735
|
(0, __binance_common.assertParamExists)("queryCurrentUmOpenOrder", "symbol", symbol);
|
|
2868
2736
|
const localVarQueryParameter = {};
|
|
@@ -2979,26 +2847,6 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2979
2847
|
timeUnit: _timeUnit
|
|
2980
2848
|
};
|
|
2981
2849
|
},
|
|
2982
|
-
queryUmConditionalOrderHistory: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
|
|
2983
|
-
(0, __binance_common.assertParamExists)("queryUmConditionalOrderHistory", "symbol", symbol);
|
|
2984
|
-
const localVarQueryParameter = {};
|
|
2985
|
-
const localVarBodyParameter = {};
|
|
2986
|
-
const localVarHeaderParameter = {};
|
|
2987
|
-
if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
|
|
2988
|
-
if (strategyId !== void 0 && strategyId !== null) localVarQueryParameter["strategyId"] = strategyId;
|
|
2989
|
-
if (newClientStrategyId !== void 0 && newClientStrategyId !== null) localVarQueryParameter["newClientStrategyId"] = newClientStrategyId;
|
|
2990
|
-
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2991
|
-
let _timeUnit;
|
|
2992
|
-
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
2993
|
-
return {
|
|
2994
|
-
endpoint: "/papi/v1/um/conditional/orderHistory",
|
|
2995
|
-
method: "GET",
|
|
2996
|
-
queryParams: localVarQueryParameter,
|
|
2997
|
-
bodyParams: localVarBodyParameter,
|
|
2998
|
-
headerParams: localVarHeaderParameter,
|
|
2999
|
-
timeUnit: _timeUnit
|
|
3000
|
-
};
|
|
3001
|
-
},
|
|
3002
2850
|
queryUmModifyOrderHistory: async (symbol, orderId, origClientOrderId, startTime, endTime, limit, recvWindow) => {
|
|
3003
2851
|
(0, __binance_common.assertParamExists)("queryUmModifyOrderHistory", "symbol", symbol);
|
|
3004
2852
|
const localVarQueryParameter = {};
|
|
@@ -3227,26 +3075,6 @@ var TradeApi = class {
|
|
|
3227
3075
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3228
3076
|
}
|
|
3229
3077
|
/**
|
|
3230
|
-
* Cancel All UM Open Conditional Orders
|
|
3231
|
-
*
|
|
3232
|
-
* > **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).
|
|
3233
|
-
*
|
|
3234
|
-
* Weight(IP): 1
|
|
3235
|
-
*
|
|
3236
|
-
* Security Type: TRADE
|
|
3237
|
-
*
|
|
3238
|
-
* @summary Cancel All UM Open Conditional Orders - Deprecated (TRADE)
|
|
3239
|
-
* @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
3240
|
-
* @returns {Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>}
|
|
3241
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3242
|
-
* @memberof TradeApi
|
|
3243
|
-
* @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}
|
|
3244
|
-
*/
|
|
3245
|
-
async cancelAllUmOpenConditionalOrders(requestParameters) {
|
|
3246
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3247
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3248
|
-
}
|
|
3249
|
-
/**
|
|
3250
3078
|
* Cancel all active LIMIT orders on specific symbol
|
|
3251
3079
|
*
|
|
3252
3080
|
* Weight(IP): 1
|
|
@@ -3388,29 +3216,6 @@ var TradeApi = class {
|
|
|
3388
3216
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3389
3217
|
}
|
|
3390
3218
|
/**
|
|
3391
|
-
* Cancel UM Conditional Order
|
|
3392
|
-
*
|
|
3393
|
-
* > **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).
|
|
3394
|
-
*
|
|
3395
|
-
* Weight(IP): 1
|
|
3396
|
-
*
|
|
3397
|
-
* Security Type: TRADE
|
|
3398
|
-
*
|
|
3399
|
-
* Notes:
|
|
3400
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
3401
|
-
*
|
|
3402
|
-
* @summary Cancel UM Conditional Order - Deprecated (TRADE)
|
|
3403
|
-
* @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
|
|
3404
|
-
* @returns {Promise<RestApiResponse<CancelUmConditionalOrderResponse>>}
|
|
3405
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3406
|
-
* @memberof TradeApi
|
|
3407
|
-
* @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}
|
|
3408
|
-
*/
|
|
3409
|
-
async cancelUmConditionalOrder(requestParameters) {
|
|
3410
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelUmConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
3411
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3412
|
-
}
|
|
3413
|
-
/**
|
|
3414
3219
|
* Cancel an active UM LIMIT order
|
|
3415
3220
|
*
|
|
3416
3221
|
* Weight(IP): 1
|
|
@@ -3785,41 +3590,6 @@ var TradeApi = class {
|
|
|
3785
3590
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3786
3591
|
}
|
|
3787
3592
|
/**
|
|
3788
|
-
* Place new UM conditional order
|
|
3789
|
-
*
|
|
3790
|
-
* > **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).
|
|
3791
|
-
*
|
|
3792
|
-
* Weight(IP): 1
|
|
3793
|
-
*
|
|
3794
|
-
* Security Type: TRADE
|
|
3795
|
-
*
|
|
3796
|
-
* Notes:
|
|
3797
|
-
* - Additional mandatory parameters based on type:
|
|
3798
|
-
* - Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
|
|
3799
|
-
* - Condition orders will be triggered when:
|
|
3800
|
-
* - `STOP`, `STOP_MARKET`:
|
|
3801
|
-
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
3802
|
-
* - SELL: "MARK_PRICE" = `stopPrice`
|
|
3803
|
-
* - `TRAILING_STOP_MARKET`:
|
|
3804
|
-
* - BUY: the lowest mark price after order placed ``= the lowest mark price
|
|
3805
|
-
* - (1 + `callbackRate`)
|
|
3806
|
-
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price = `stopPrice`
|
|
3807
|
-
* - SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") = `stopPrice`
|
|
3808
|
-
* - `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
|
|
3809
|
-
* - In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
|
|
3810
|
-
*
|
|
3811
|
-
* @summary New UM Conditional Order - Deprecated (TRADE)
|
|
3812
|
-
* @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
|
|
3813
|
-
* @returns {Promise<RestApiResponse<NewUmConditionalOrderResponse>>}
|
|
3814
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3815
|
-
* @memberof TradeApi
|
|
3816
|
-
* @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}
|
|
3817
|
-
*/
|
|
3818
|
-
async newUmConditionalOrder(requestParameters) {
|
|
3819
|
-
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);
|
|
3820
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3821
|
-
}
|
|
3822
|
-
/**
|
|
3823
3593
|
* Place new UM order
|
|
3824
3594
|
*
|
|
3825
3595
|
* Weight(IP): 1
|
|
@@ -3962,30 +3732,6 @@ var TradeApi = class {
|
|
|
3962
3732
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3963
3733
|
}
|
|
3964
3734
|
/**
|
|
3965
|
-
* Get all open conditional orders on a symbol.
|
|
3966
|
-
*
|
|
3967
|
-
* > **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).
|
|
3968
|
-
*
|
|
3969
|
-
* Weight: - 1 for a single `symbol`
|
|
3970
|
-
* - 40 when `symbol` is omitted
|
|
3971
|
-
*
|
|
3972
|
-
* Security Type: USER_DATA
|
|
3973
|
-
*
|
|
3974
|
-
* Notes:
|
|
3975
|
-
* - If `symbol` is not provided, conditional open orders for all symbols are returned.
|
|
3976
|
-
*
|
|
3977
|
-
* @summary Query All Current UM Open Conditional Orders - Deprecated (USER_DATA)
|
|
3978
|
-
* @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
3979
|
-
* @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>}
|
|
3980
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
3981
|
-
* @memberof TradeApi
|
|
3982
|
-
* @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}
|
|
3983
|
-
*/
|
|
3984
|
-
async queryAllCurrentUmOpenConditionalOrders(requestParameters = {}) {
|
|
3985
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentUmOpenConditionalOrders(requestParameters?.symbol, requestParameters?.recvWindow);
|
|
3986
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3987
|
-
}
|
|
3988
|
-
/**
|
|
3989
3735
|
* Get all open orders on a symbol.
|
|
3990
3736
|
*
|
|
3991
3737
|
* Weight: - 1 for a single `symbol`
|
|
@@ -4030,33 +3776,6 @@ var TradeApi = class {
|
|
|
4030
3776
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4031
3777
|
}
|
|
4032
3778
|
/**
|
|
4033
|
-
* Query All UM Conditional Orders
|
|
4034
|
-
*
|
|
4035
|
-
* > **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).
|
|
4036
|
-
*
|
|
4037
|
-
* Weight: - 1 for a single `symbol`
|
|
4038
|
-
* - 40 when `symbol` is omitted
|
|
4039
|
-
*
|
|
4040
|
-
* Security Type: USER_DATA
|
|
4041
|
-
*
|
|
4042
|
-
* Notes:
|
|
4043
|
-
* - These orders will not be found:
|
|
4044
|
-
* - order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
|
|
4045
|
-
* - order has NO filled trade, **AND**
|
|
4046
|
-
* - created time + 7 days * The query time period must be less than 7 days( default as the recent 7 days).
|
|
4047
|
-
*
|
|
4048
|
-
* @summary Query All UM Conditional Orders - Deprecated (USER_DATA)
|
|
4049
|
-
* @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
|
|
4050
|
-
* @returns {Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>}
|
|
4051
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4052
|
-
* @memberof TradeApi
|
|
4053
|
-
* @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}
|
|
4054
|
-
*/
|
|
4055
|
-
async queryAllUmConditionalOrders(requestParameters = {}) {
|
|
4056
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllUmConditionalOrders(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
4057
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4058
|
-
}
|
|
4059
|
-
/**
|
|
4060
3779
|
* Get all account UM orders; active, canceled, or filled.
|
|
4061
3780
|
*
|
|
4062
3781
|
* Weight(IP): 5
|
|
@@ -4238,30 +3957,6 @@ var TradeApi = class {
|
|
|
4238
3957
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4239
3958
|
}
|
|
4240
3959
|
/**
|
|
4241
|
-
* Query Current UM Open Conditional Order
|
|
4242
|
-
*
|
|
4243
|
-
* > **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).
|
|
4244
|
-
*
|
|
4245
|
-
* Weight(IP): 1
|
|
4246
|
-
*
|
|
4247
|
-
* Security Type: USER_DATA
|
|
4248
|
-
*
|
|
4249
|
-
* Notes:
|
|
4250
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
4251
|
-
* - If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message "Order does not exist" will be returned.
|
|
4252
|
-
*
|
|
4253
|
-
* @summary Query Current UM Open Conditional Order - Deprecated (USER_DATA)
|
|
4254
|
-
* @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
|
|
4255
|
-
* @returns {Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>}
|
|
4256
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4257
|
-
* @memberof TradeApi
|
|
4258
|
-
* @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}
|
|
4259
|
-
*/
|
|
4260
|
-
async queryCurrentUmOpenConditionalOrder(requestParameters) {
|
|
4261
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentUmOpenConditionalOrder(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
4262
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4263
|
-
}
|
|
4264
|
-
/**
|
|
4265
3960
|
* Query current UM open order
|
|
4266
3961
|
*
|
|
4267
3962
|
* Weight(IP): 1
|
|
@@ -4382,34 +4077,6 @@ var TradeApi = class {
|
|
|
4382
4077
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4383
4078
|
}
|
|
4384
4079
|
/**
|
|
4385
|
-
* Query UM Conditional Order History
|
|
4386
|
-
*
|
|
4387
|
-
* > **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).
|
|
4388
|
-
*
|
|
4389
|
-
* Weight(IP): 1
|
|
4390
|
-
*
|
|
4391
|
-
* Security Type: USER_DATA
|
|
4392
|
-
*
|
|
4393
|
-
* Notes:
|
|
4394
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
4395
|
-
* - `NEW` orders will not be found.
|
|
4396
|
-
* - These orders will not be found:
|
|
4397
|
-
* - order status is `CANCELED` or `EXPIRED`, **AND**
|
|
4398
|
-
* - order has NO filled trade, **AND**
|
|
4399
|
-
* - created time + 7 days < current time
|
|
4400
|
-
*
|
|
4401
|
-
* @summary Query UM Conditional Order History - Deprecated (USER_DATA)
|
|
4402
|
-
* @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
|
|
4403
|
-
* @returns {Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>}
|
|
4404
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
4405
|
-
* @memberof TradeApi
|
|
4406
|
-
* @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}
|
|
4407
|
-
*/
|
|
4408
|
-
async queryUmConditionalOrderHistory(requestParameters) {
|
|
4409
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryUmConditionalOrderHistory(requestParameters?.symbol, requestParameters?.strategyId, requestParameters?.newClientStrategyId, requestParameters?.recvWindow);
|
|
4410
|
-
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
4411
|
-
}
|
|
4412
|
-
/**
|
|
4413
4080
|
* Get order modification history
|
|
4414
4081
|
*
|
|
4415
4082
|
* Weight(IP): 1
|
|
@@ -4840,66 +4507,6 @@ let NewUmAlgoOrderSelfTradePreventionModeEnum = /* @__PURE__ */ function(NewUmAl
|
|
|
4840
4507
|
NewUmAlgoOrderSelfTradePreventionModeEnum$1["EXPIRE_BOTH"] = "EXPIRE_BOTH";
|
|
4841
4508
|
return NewUmAlgoOrderSelfTradePreventionModeEnum$1;
|
|
4842
4509
|
}({});
|
|
4843
|
-
let NewUmConditionalOrderSideEnum = /* @__PURE__ */ function(NewUmConditionalOrderSideEnum$1) {
|
|
4844
|
-
NewUmConditionalOrderSideEnum$1["BUY"] = "BUY";
|
|
4845
|
-
NewUmConditionalOrderSideEnum$1["SELL"] = "SELL";
|
|
4846
|
-
return NewUmConditionalOrderSideEnum$1;
|
|
4847
|
-
}({});
|
|
4848
|
-
let NewUmConditionalOrderStrategyTypeEnum = /* @__PURE__ */ function(NewUmConditionalOrderStrategyTypeEnum$1) {
|
|
4849
|
-
NewUmConditionalOrderStrategyTypeEnum$1["STOP"] = "STOP";
|
|
4850
|
-
NewUmConditionalOrderStrategyTypeEnum$1["STOP_MARKET"] = "STOP_MARKET";
|
|
4851
|
-
NewUmConditionalOrderStrategyTypeEnum$1["TAKE_PROFIT"] = "TAKE_PROFIT";
|
|
4852
|
-
NewUmConditionalOrderStrategyTypeEnum$1["TAKE_PROFIT_MARKET"] = "TAKE_PROFIT_MARKET";
|
|
4853
|
-
NewUmConditionalOrderStrategyTypeEnum$1["TRAILING_STOP_MARKET"] = "TRAILING_STOP_MARKET";
|
|
4854
|
-
return NewUmConditionalOrderStrategyTypeEnum$1;
|
|
4855
|
-
}({});
|
|
4856
|
-
let NewUmConditionalOrderPositionSideEnum = /* @__PURE__ */ function(NewUmConditionalOrderPositionSideEnum$1) {
|
|
4857
|
-
NewUmConditionalOrderPositionSideEnum$1["BOTH"] = "BOTH";
|
|
4858
|
-
NewUmConditionalOrderPositionSideEnum$1["LONG"] = "LONG";
|
|
4859
|
-
NewUmConditionalOrderPositionSideEnum$1["SHORT"] = "SHORT";
|
|
4860
|
-
return NewUmConditionalOrderPositionSideEnum$1;
|
|
4861
|
-
}({});
|
|
4862
|
-
let NewUmConditionalOrderTimeInForceEnum = /* @__PURE__ */ function(NewUmConditionalOrderTimeInForceEnum$1) {
|
|
4863
|
-
NewUmConditionalOrderTimeInForceEnum$1["GTC"] = "GTC";
|
|
4864
|
-
NewUmConditionalOrderTimeInForceEnum$1["IOC"] = "IOC";
|
|
4865
|
-
NewUmConditionalOrderTimeInForceEnum$1["FOK"] = "FOK";
|
|
4866
|
-
NewUmConditionalOrderTimeInForceEnum$1["GTX"] = "GTX";
|
|
4867
|
-
NewUmConditionalOrderTimeInForceEnum$1["GTD"] = "GTD";
|
|
4868
|
-
return NewUmConditionalOrderTimeInForceEnum$1;
|
|
4869
|
-
}({});
|
|
4870
|
-
let NewUmConditionalOrderReduceOnlyEnum = /* @__PURE__ */ function(NewUmConditionalOrderReduceOnlyEnum$1) {
|
|
4871
|
-
NewUmConditionalOrderReduceOnlyEnum$1["TRUE"] = "true";
|
|
4872
|
-
NewUmConditionalOrderReduceOnlyEnum$1["FALSE"] = "false";
|
|
4873
|
-
return NewUmConditionalOrderReduceOnlyEnum$1;
|
|
4874
|
-
}({});
|
|
4875
|
-
let NewUmConditionalOrderWorkingTypeEnum = /* @__PURE__ */ function(NewUmConditionalOrderWorkingTypeEnum$1) {
|
|
4876
|
-
NewUmConditionalOrderWorkingTypeEnum$1["MARK_PRICE"] = "MARK_PRICE";
|
|
4877
|
-
NewUmConditionalOrderWorkingTypeEnum$1["CONTRACT_PRICE"] = "CONTRACT_PRICE";
|
|
4878
|
-
return NewUmConditionalOrderWorkingTypeEnum$1;
|
|
4879
|
-
}({});
|
|
4880
|
-
let NewUmConditionalOrderPriceProtectEnum = /* @__PURE__ */ function(NewUmConditionalOrderPriceProtectEnum$1) {
|
|
4881
|
-
NewUmConditionalOrderPriceProtectEnum$1["TRUE"] = "true";
|
|
4882
|
-
NewUmConditionalOrderPriceProtectEnum$1["FALSE"] = "false";
|
|
4883
|
-
return NewUmConditionalOrderPriceProtectEnum$1;
|
|
4884
|
-
}({});
|
|
4885
|
-
let NewUmConditionalOrderPriceMatchEnum = /* @__PURE__ */ function(NewUmConditionalOrderPriceMatchEnum$1) {
|
|
4886
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT"] = "OPPONENT";
|
|
4887
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT_5"] = "OPPONENT_5";
|
|
4888
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT_10"] = "OPPONENT_10";
|
|
4889
|
-
NewUmConditionalOrderPriceMatchEnum$1["OPPONENT_20"] = "OPPONENT_20";
|
|
4890
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE"] = "QUEUE";
|
|
4891
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE_5"] = "QUEUE_5";
|
|
4892
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE_10"] = "QUEUE_10";
|
|
4893
|
-
NewUmConditionalOrderPriceMatchEnum$1["QUEUE_20"] = "QUEUE_20";
|
|
4894
|
-
return NewUmConditionalOrderPriceMatchEnum$1;
|
|
4895
|
-
}({});
|
|
4896
|
-
let NewUmConditionalOrderSelfTradePreventionModeEnum = /* @__PURE__ */ function(NewUmConditionalOrderSelfTradePreventionModeEnum$1) {
|
|
4897
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["NONE"] = "NONE";
|
|
4898
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["EXPIRE_TAKER"] = "EXPIRE_TAKER";
|
|
4899
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["EXPIRE_BOTH"] = "EXPIRE_BOTH";
|
|
4900
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum$1["EXPIRE_MAKER"] = "EXPIRE_MAKER";
|
|
4901
|
-
return NewUmConditionalOrderSelfTradePreventionModeEnum$1;
|
|
4902
|
-
}({});
|
|
4903
4510
|
let NewUmOrderSideEnum = /* @__PURE__ */ function(NewUmOrderSideEnum$1) {
|
|
4904
4511
|
NewUmOrderSideEnum$1["BUY"] = "BUY";
|
|
4905
4512
|
NewUmOrderSideEnum$1["SELL"] = "SELL";
|
|
@@ -6017,25 +5624,6 @@ var RestAPI = class {
|
|
|
6017
5624
|
return this.tradeApi.cancelAllUmAlgoOpenOrders(requestParameters);
|
|
6018
5625
|
}
|
|
6019
5626
|
/**
|
|
6020
|
-
* Cancel All UM Open Conditional Orders
|
|
6021
|
-
*
|
|
6022
|
-
* > **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).
|
|
6023
|
-
*
|
|
6024
|
-
* Weight(IP): 1
|
|
6025
|
-
*
|
|
6026
|
-
* Security Type: TRADE
|
|
6027
|
-
*
|
|
6028
|
-
* @summary Cancel All UM Open Conditional Orders - Deprecated (TRADE)
|
|
6029
|
-
* @param {CancelAllUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
6030
|
-
* @deprecated
|
|
6031
|
-
* @returns {Promise<RestApiResponse<CancelAllUmOpenConditionalOrdersResponse>>}
|
|
6032
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6033
|
-
* @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}
|
|
6034
|
-
*/
|
|
6035
|
-
cancelAllUmOpenConditionalOrders(requestParameters) {
|
|
6036
|
-
return this.tradeApi.cancelAllUmOpenConditionalOrders(requestParameters);
|
|
6037
|
-
}
|
|
6038
|
-
/**
|
|
6039
5627
|
* Cancel all active LIMIT orders on specific symbol
|
|
6040
5628
|
*
|
|
6041
5629
|
* Weight(IP): 1
|
|
@@ -6170,28 +5758,6 @@ var RestAPI = class {
|
|
|
6170
5758
|
return this.tradeApi.cancelUmAlgoOrder(requestParameters);
|
|
6171
5759
|
}
|
|
6172
5760
|
/**
|
|
6173
|
-
* Cancel UM Conditional Order
|
|
6174
|
-
*
|
|
6175
|
-
* > **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).
|
|
6176
|
-
*
|
|
6177
|
-
* Weight(IP): 1
|
|
6178
|
-
*
|
|
6179
|
-
* Security Type: TRADE
|
|
6180
|
-
*
|
|
6181
|
-
* Notes:
|
|
6182
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
6183
|
-
*
|
|
6184
|
-
* @summary Cancel UM Conditional Order - Deprecated (TRADE)
|
|
6185
|
-
* @param {CancelUmConditionalOrderRequest} requestParameters Request parameters.
|
|
6186
|
-
* @deprecated
|
|
6187
|
-
* @returns {Promise<RestApiResponse<CancelUmConditionalOrderResponse>>}
|
|
6188
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6189
|
-
* @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}
|
|
6190
|
-
*/
|
|
6191
|
-
cancelUmConditionalOrder(requestParameters) {
|
|
6192
|
-
return this.tradeApi.cancelUmConditionalOrder(requestParameters);
|
|
6193
|
-
}
|
|
6194
|
-
/**
|
|
6195
5761
|
* Cancel an active UM LIMIT order
|
|
6196
5762
|
*
|
|
6197
5763
|
* Weight(IP): 1
|
|
@@ -6550,40 +6116,6 @@ var RestAPI = class {
|
|
|
6550
6116
|
return this.tradeApi.newUmAlgoOrder(requestParameters);
|
|
6551
6117
|
}
|
|
6552
6118
|
/**
|
|
6553
|
-
* Place new UM conditional order
|
|
6554
|
-
*
|
|
6555
|
-
* > **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).
|
|
6556
|
-
*
|
|
6557
|
-
* Weight(IP): 1
|
|
6558
|
-
*
|
|
6559
|
-
* Security Type: TRADE
|
|
6560
|
-
*
|
|
6561
|
-
* Notes:
|
|
6562
|
-
* - Additional mandatory parameters based on type:
|
|
6563
|
-
* - Order with type `STOP/TAKE_PROFIT`, parameter `timeInForce` can be sent ( default `GTC`).
|
|
6564
|
-
* - Condition orders will be triggered when:
|
|
6565
|
-
* - `STOP`, `STOP_MARKET`:
|
|
6566
|
-
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
6567
|
-
* - SELL: "MARK_PRICE" = `stopPrice`
|
|
6568
|
-
* - `TRAILING_STOP_MARKET`:
|
|
6569
|
-
* - BUY: the lowest mark price after order placed ``= the lowest mark price
|
|
6570
|
-
* - (1 + `callbackRate`)
|
|
6571
|
-
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price = `stopPrice`
|
|
6572
|
-
* - SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") = `stopPrice`
|
|
6573
|
-
* - `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC` or `GTD`.
|
|
6574
|
-
* - In extreme market conditions, timeInForce `GTD` order auto cancel time might be delayed comparing to `goodTillDate`
|
|
6575
|
-
*
|
|
6576
|
-
* @summary New UM Conditional Order - Deprecated (TRADE)
|
|
6577
|
-
* @param {NewUmConditionalOrderRequest} requestParameters Request parameters.
|
|
6578
|
-
* @deprecated
|
|
6579
|
-
* @returns {Promise<RestApiResponse<NewUmConditionalOrderResponse>>}
|
|
6580
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6581
|
-
* @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}
|
|
6582
|
-
*/
|
|
6583
|
-
newUmConditionalOrder(requestParameters) {
|
|
6584
|
-
return this.tradeApi.newUmConditionalOrder(requestParameters);
|
|
6585
|
-
}
|
|
6586
|
-
/**
|
|
6587
6119
|
* Place new UM order
|
|
6588
6120
|
*
|
|
6589
6121
|
* Weight(IP): 1
|
|
@@ -6720,29 +6252,6 @@ var RestAPI = class {
|
|
|
6720
6252
|
return this.tradeApi.queryAllCurrentUmOpenAlgoOrders(requestParameters);
|
|
6721
6253
|
}
|
|
6722
6254
|
/**
|
|
6723
|
-
* Get all open conditional orders on a symbol.
|
|
6724
|
-
*
|
|
6725
|
-
* > **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).
|
|
6726
|
-
*
|
|
6727
|
-
* Weight: - 1 for a single `symbol`
|
|
6728
|
-
* - 40 when `symbol` is omitted
|
|
6729
|
-
*
|
|
6730
|
-
* Security Type: USER_DATA
|
|
6731
|
-
*
|
|
6732
|
-
* Notes:
|
|
6733
|
-
* - If `symbol` is not provided, conditional open orders for all symbols are returned.
|
|
6734
|
-
*
|
|
6735
|
-
* @summary Query All Current UM Open Conditional Orders - Deprecated (USER_DATA)
|
|
6736
|
-
* @param {QueryAllCurrentUmOpenConditionalOrdersRequest} requestParameters Request parameters.
|
|
6737
|
-
* @deprecated
|
|
6738
|
-
* @returns {Promise<RestApiResponse<QueryAllCurrentUmOpenConditionalOrdersResponse>>}
|
|
6739
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6740
|
-
* @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}
|
|
6741
|
-
*/
|
|
6742
|
-
queryAllCurrentUmOpenConditionalOrders(requestParameters = {}) {
|
|
6743
|
-
return this.tradeApi.queryAllCurrentUmOpenConditionalOrders(requestParameters);
|
|
6744
|
-
}
|
|
6745
|
-
/**
|
|
6746
6255
|
* Get all open orders on a symbol.
|
|
6747
6256
|
*
|
|
6748
6257
|
* Weight: - 1 for a single `symbol`
|
|
@@ -6785,32 +6294,6 @@ var RestAPI = class {
|
|
|
6785
6294
|
return this.tradeApi.queryAllMarginAccountOrders(requestParameters);
|
|
6786
6295
|
}
|
|
6787
6296
|
/**
|
|
6788
|
-
* Query All UM Conditional Orders
|
|
6789
|
-
*
|
|
6790
|
-
* > **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).
|
|
6791
|
-
*
|
|
6792
|
-
* Weight: - 1 for a single `symbol`
|
|
6793
|
-
* - 40 when `symbol` is omitted
|
|
6794
|
-
*
|
|
6795
|
-
* Security Type: USER_DATA
|
|
6796
|
-
*
|
|
6797
|
-
* Notes:
|
|
6798
|
-
* - These orders will not be found:
|
|
6799
|
-
* - order strategyStatus is `CANCELED` or `EXPIRED`, **AND**
|
|
6800
|
-
* - order has NO filled trade, **AND**
|
|
6801
|
-
* - created time + 7 days * The query time period must be less than 7 days( default as the recent 7 days).
|
|
6802
|
-
*
|
|
6803
|
-
* @summary Query All UM Conditional Orders - Deprecated (USER_DATA)
|
|
6804
|
-
* @param {QueryAllUmConditionalOrdersRequest} requestParameters Request parameters.
|
|
6805
|
-
* @deprecated
|
|
6806
|
-
* @returns {Promise<RestApiResponse<QueryAllUmConditionalOrdersResponse>>}
|
|
6807
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
6808
|
-
* @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}
|
|
6809
|
-
*/
|
|
6810
|
-
queryAllUmConditionalOrders(requestParameters = {}) {
|
|
6811
|
-
return this.tradeApi.queryAllUmConditionalOrders(requestParameters);
|
|
6812
|
-
}
|
|
6813
|
-
/**
|
|
6814
6297
|
* Get all account UM orders; active, canceled, or filled.
|
|
6815
6298
|
*
|
|
6816
6299
|
* Weight(IP): 5
|
|
@@ -6984,29 +6467,6 @@ var RestAPI = class {
|
|
|
6984
6467
|
return this.tradeApi.queryCurrentUmOpenAlgoOrder(requestParameters);
|
|
6985
6468
|
}
|
|
6986
6469
|
/**
|
|
6987
|
-
* Query Current UM Open Conditional Order
|
|
6988
|
-
*
|
|
6989
|
-
* > **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).
|
|
6990
|
-
*
|
|
6991
|
-
* Weight(IP): 1
|
|
6992
|
-
*
|
|
6993
|
-
* Security Type: USER_DATA
|
|
6994
|
-
*
|
|
6995
|
-
* Notes:
|
|
6996
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
6997
|
-
* - If the queried order has been `CANCELED`, `TRIGGERED` or `EXPIRED`, the error message "Order does not exist" will be returned.
|
|
6998
|
-
*
|
|
6999
|
-
* @summary Query Current UM Open Conditional Order - Deprecated (USER_DATA)
|
|
7000
|
-
* @param {QueryCurrentUmOpenConditionalOrderRequest} requestParameters Request parameters.
|
|
7001
|
-
* @deprecated
|
|
7002
|
-
* @returns {Promise<RestApiResponse<QueryCurrentUmOpenConditionalOrderResponse>>}
|
|
7003
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
7004
|
-
* @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}
|
|
7005
|
-
*/
|
|
7006
|
-
queryCurrentUmOpenConditionalOrder(requestParameters) {
|
|
7007
|
-
return this.tradeApi.queryCurrentUmOpenConditionalOrder(requestParameters);
|
|
7008
|
-
}
|
|
7009
|
-
/**
|
|
7010
6470
|
* Query current UM open order
|
|
7011
6471
|
*
|
|
7012
6472
|
* Weight(IP): 1
|
|
@@ -7121,33 +6581,6 @@ var RestAPI = class {
|
|
|
7121
6581
|
return this.tradeApi.queryUmAlgoOrderHistory(requestParameters);
|
|
7122
6582
|
}
|
|
7123
6583
|
/**
|
|
7124
|
-
* Query UM Conditional Order History
|
|
7125
|
-
*
|
|
7126
|
-
* > **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).
|
|
7127
|
-
*
|
|
7128
|
-
* Weight(IP): 1
|
|
7129
|
-
*
|
|
7130
|
-
* Security Type: USER_DATA
|
|
7131
|
-
*
|
|
7132
|
-
* Notes:
|
|
7133
|
-
* - Either `strategyId` or `newClientStrategyId` must be sent.
|
|
7134
|
-
* - `NEW` orders will not be found.
|
|
7135
|
-
* - These orders will not be found:
|
|
7136
|
-
* - order status is `CANCELED` or `EXPIRED`, **AND**
|
|
7137
|
-
* - order has NO filled trade, **AND**
|
|
7138
|
-
* - created time + 7 days < current time
|
|
7139
|
-
*
|
|
7140
|
-
* @summary Query UM Conditional Order History - Deprecated (USER_DATA)
|
|
7141
|
-
* @param {QueryUmConditionalOrderHistoryRequest} requestParameters Request parameters.
|
|
7142
|
-
* @deprecated
|
|
7143
|
-
* @returns {Promise<RestApiResponse<QueryUmConditionalOrderHistoryResponse>>}
|
|
7144
|
-
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
7145
|
-
* @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}
|
|
7146
|
-
*/
|
|
7147
|
-
queryUmConditionalOrderHistory(requestParameters) {
|
|
7148
|
-
return this.tradeApi.queryUmConditionalOrderHistory(requestParameters);
|
|
7149
|
-
}
|
|
7150
|
-
/**
|
|
7151
6584
|
* Get order modification history
|
|
7152
6585
|
*
|
|
7153
6586
|
* Weight(IP): 1
|
|
@@ -7423,15 +6856,6 @@ var rest_api_exports = /* @__PURE__ */ __export({
|
|
|
7423
6856
|
NewUmAlgoOrderTimeInForceEnum: () => NewUmAlgoOrderTimeInForceEnum,
|
|
7424
6857
|
NewUmAlgoOrderTypeEnum: () => NewUmAlgoOrderTypeEnum,
|
|
7425
6858
|
NewUmAlgoOrderWorkingTypeEnum: () => NewUmAlgoOrderWorkingTypeEnum,
|
|
7426
|
-
NewUmConditionalOrderPositionSideEnum: () => NewUmConditionalOrderPositionSideEnum,
|
|
7427
|
-
NewUmConditionalOrderPriceMatchEnum: () => NewUmConditionalOrderPriceMatchEnum,
|
|
7428
|
-
NewUmConditionalOrderPriceProtectEnum: () => NewUmConditionalOrderPriceProtectEnum,
|
|
7429
|
-
NewUmConditionalOrderReduceOnlyEnum: () => NewUmConditionalOrderReduceOnlyEnum,
|
|
7430
|
-
NewUmConditionalOrderSelfTradePreventionModeEnum: () => NewUmConditionalOrderSelfTradePreventionModeEnum,
|
|
7431
|
-
NewUmConditionalOrderSideEnum: () => NewUmConditionalOrderSideEnum,
|
|
7432
|
-
NewUmConditionalOrderStrategyTypeEnum: () => NewUmConditionalOrderStrategyTypeEnum,
|
|
7433
|
-
NewUmConditionalOrderTimeInForceEnum: () => NewUmConditionalOrderTimeInForceEnum,
|
|
7434
|
-
NewUmConditionalOrderWorkingTypeEnum: () => NewUmConditionalOrderWorkingTypeEnum,
|
|
7435
6859
|
NewUmOrderNewOrderRespTypeEnum: () => NewUmOrderNewOrderRespTypeEnum,
|
|
7436
6860
|
NewUmOrderPositionSideEnum: () => NewUmOrderPositionSideEnum,
|
|
7437
6861
|
NewUmOrderPriceMatchEnum: () => NewUmOrderPriceMatchEnum,
|