@binance/derivatives-trading-portfolio-margin 22.0.4 → 22.2.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.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 = "22.0.4";
6
+ var version = "22.2.0";
7
7
 
8
8
  //#endregion
9
9
  //#region src/rest-api/modules/account-api.ts
@@ -272,6 +272,60 @@ const AccountApiAxiosParamCreator = function(configuration) {
272
272
  timeUnit: _timeUnit
273
273
  };
274
274
  },
275
+ getCmFuturesOrderDownloadLinkById: async (downloadId, recvWindow) => {
276
+ assertParamExists("getCmFuturesOrderDownloadLinkById", "downloadId", downloadId);
277
+ const localVarQueryParameter = {};
278
+ const localVarBodyParameter = {};
279
+ const localVarHeaderParameter = {};
280
+ if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
281
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
282
+ let _timeUnit;
283
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
284
+ return {
285
+ endpoint: "/papi/v1/cm/order/asyn/id",
286
+ method: "GET",
287
+ queryParams: localVarQueryParameter,
288
+ bodyParams: localVarBodyParameter,
289
+ headerParams: localVarHeaderParameter,
290
+ timeUnit: _timeUnit
291
+ };
292
+ },
293
+ getCmFuturesTradeDownloadLinkById: async (downloadId, recvWindow) => {
294
+ assertParamExists("getCmFuturesTradeDownloadLinkById", "downloadId", downloadId);
295
+ const localVarQueryParameter = {};
296
+ const localVarBodyParameter = {};
297
+ const localVarHeaderParameter = {};
298
+ if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
299
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
300
+ let _timeUnit;
301
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
302
+ return {
303
+ endpoint: "/papi/v1/cm/trade/asyn/id",
304
+ method: "GET",
305
+ queryParams: localVarQueryParameter,
306
+ bodyParams: localVarBodyParameter,
307
+ headerParams: localVarHeaderParameter,
308
+ timeUnit: _timeUnit
309
+ };
310
+ },
311
+ getCmFuturesTransactionDownloadLinkById: async (downloadId, recvWindow) => {
312
+ assertParamExists("getCmFuturesTransactionDownloadLinkById", "downloadId", downloadId);
313
+ const localVarQueryParameter = {};
314
+ const localVarBodyParameter = {};
315
+ const localVarHeaderParameter = {};
316
+ if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
317
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
318
+ let _timeUnit;
319
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
320
+ return {
321
+ endpoint: "/papi/v1/cm/income/asyn/id",
322
+ method: "GET",
323
+ queryParams: localVarQueryParameter,
324
+ bodyParams: localVarBodyParameter,
325
+ headerParams: localVarHeaderParameter,
326
+ timeUnit: _timeUnit
327
+ };
328
+ },
275
329
  getCmIncomeHistory: async (symbol, incomeType, startTime, endTime, limit, recvWindow) => {
276
330
  const localVarQueryParameter = {};
277
331
  const localVarBodyParameter = {};
@@ -293,6 +347,66 @@ const AccountApiAxiosParamCreator = function(configuration) {
293
347
  timeUnit: _timeUnit
294
348
  };
295
349
  },
350
+ getDownloadIdForCmFuturesOrderHistory: async (startTime, endTime, recvWindow) => {
351
+ assertParamExists("getDownloadIdForCmFuturesOrderHistory", "startTime", startTime);
352
+ assertParamExists("getDownloadIdForCmFuturesOrderHistory", "endTime", endTime);
353
+ const localVarQueryParameter = {};
354
+ const localVarBodyParameter = {};
355
+ const localVarHeaderParameter = {};
356
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
357
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
358
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
359
+ let _timeUnit;
360
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
361
+ return {
362
+ endpoint: "/papi/v1/cm/order/asyn",
363
+ method: "GET",
364
+ queryParams: localVarQueryParameter,
365
+ bodyParams: localVarBodyParameter,
366
+ headerParams: localVarHeaderParameter,
367
+ timeUnit: _timeUnit
368
+ };
369
+ },
370
+ getDownloadIdForCmFuturesTradeHistory: async (startTime, endTime, recvWindow) => {
371
+ assertParamExists("getDownloadIdForCmFuturesTradeHistory", "startTime", startTime);
372
+ assertParamExists("getDownloadIdForCmFuturesTradeHistory", "endTime", endTime);
373
+ const localVarQueryParameter = {};
374
+ const localVarBodyParameter = {};
375
+ const localVarHeaderParameter = {};
376
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
377
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
378
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
379
+ let _timeUnit;
380
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
381
+ return {
382
+ endpoint: "/papi/v1/cm/trade/asyn",
383
+ method: "GET",
384
+ queryParams: localVarQueryParameter,
385
+ bodyParams: localVarBodyParameter,
386
+ headerParams: localVarHeaderParameter,
387
+ timeUnit: _timeUnit
388
+ };
389
+ },
390
+ getDownloadIdForCmFuturesTransactionHistory: async (startTime, endTime, recvWindow) => {
391
+ assertParamExists("getDownloadIdForCmFuturesTransactionHistory", "startTime", startTime);
392
+ assertParamExists("getDownloadIdForCmFuturesTransactionHistory", "endTime", endTime);
393
+ const localVarQueryParameter = {};
394
+ const localVarBodyParameter = {};
395
+ const localVarHeaderParameter = {};
396
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
397
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
398
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
399
+ let _timeUnit;
400
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
401
+ return {
402
+ endpoint: "/papi/v1/cm/income/asyn",
403
+ method: "GET",
404
+ queryParams: localVarQueryParameter,
405
+ bodyParams: localVarBodyParameter,
406
+ headerParams: localVarHeaderParameter,
407
+ timeUnit: _timeUnit
408
+ };
409
+ },
296
410
  getDownloadIdForUmFuturesOrderHistory: async (startTime, endTime, recvWindow) => {
297
411
  assertParamExists("getDownloadIdForUmFuturesOrderHistory", "startTime", startTime);
298
412
  assertParamExists("getDownloadIdForUmFuturesOrderHistory", "endTime", endTime);
@@ -1066,6 +1180,69 @@ var AccountApi = class {
1066
1180
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1067
1181
  }
1068
1182
  /**
1183
+ * Get CM futures order download link by Id
1184
+ *
1185
+ * Weight(IP): 10
1186
+ *
1187
+ * Security Type: USER_DATA
1188
+ *
1189
+ * Notes:
1190
+ * - Download link expiration: 7 days
1191
+ *
1192
+ * @summary Get CM Futures Order Download Link by Id (USER_DATA)
1193
+ * @param {GetCmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
1194
+ * @returns {Promise<RestApiResponse<GetCmFuturesOrderDownloadLinkByIdResponse>>}
1195
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1196
+ * @memberof AccountApi
1197
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-cm-futures-order-download-link-by-id Binance API Documentation}
1198
+ */
1199
+ async getCmFuturesOrderDownloadLinkById(requestParameters) {
1200
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmFuturesOrderDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
1201
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1202
+ }
1203
+ /**
1204
+ * Get CM futures trade download link by Id
1205
+ *
1206
+ * Weight(IP): 10
1207
+ *
1208
+ * Security Type: USER_DATA
1209
+ *
1210
+ * Notes:
1211
+ * - Download link expiration: 7 days
1212
+ *
1213
+ * @summary Get CM Futures Trade Download Link by Id (USER_DATA)
1214
+ * @param {GetCmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
1215
+ * @returns {Promise<RestApiResponse<GetCmFuturesTradeDownloadLinkByIdResponse>>}
1216
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1217
+ * @memberof AccountApi
1218
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-cm-futures-trade-download-link-by-id Binance API Documentation}
1219
+ */
1220
+ async getCmFuturesTradeDownloadLinkById(requestParameters) {
1221
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmFuturesTradeDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
1222
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1223
+ }
1224
+ /**
1225
+ * Get CM futures Transaction download link by Id
1226
+ *
1227
+ * Weight(IP): 10
1228
+ *
1229
+ * Security Type: USER_DATA
1230
+ *
1231
+ * Notes:
1232
+ * - Download link expiration: 7 days
1233
+ *
1234
+ * @summary Get CM Futures Transaction Download Link by Id (USER_DATA)
1235
+ * @param {GetCmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
1236
+ * @returns {Promise<RestApiResponse<GetCmFuturesTransactionDownloadLinkByIdResponse>>}
1237
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1238
+ * @memberof AccountApi
1239
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-cm-futures-transaction-download-link-by-id Binance API Documentation}
1240
+ */
1241
+ async getCmFuturesTransactionDownloadLinkById(requestParameters) {
1242
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmFuturesTransactionDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
1243
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1244
+ }
1245
+ /**
1069
1246
  * Get CM Income History.
1070
1247
  *
1071
1248
  * Weight(IP): 30
@@ -1090,6 +1267,72 @@ var AccountApi = class {
1090
1267
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1091
1268
  }
1092
1269
  /**
1270
+ * Get download id for CM futures order history
1271
+ *
1272
+ * Weight(IP): 1500
1273
+ *
1274
+ * Security Type: USER_DATA
1275
+ *
1276
+ * Notes:
1277
+ * - Request Limitation is 10 times per month, shared by front end download page and rest api
1278
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
1279
+ *
1280
+ * @summary Get Download Id For CM Futures Order History (USER_DATA)
1281
+ * @param {GetDownloadIdForCmFuturesOrderHistoryRequest} requestParameters Request parameters.
1282
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesOrderHistoryResponse>>}
1283
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1284
+ * @memberof AccountApi
1285
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-download-id-for-cm-futures-order-history Binance API Documentation}
1286
+ */
1287
+ async getDownloadIdForCmFuturesOrderHistory(requestParameters) {
1288
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForCmFuturesOrderHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1289
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1290
+ }
1291
+ /**
1292
+ * Get download id for CM futures trade history
1293
+ *
1294
+ * Weight(IP): 1500
1295
+ *
1296
+ * Security Type: USER_DATA
1297
+ *
1298
+ * Notes:
1299
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
1300
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
1301
+ *
1302
+ * @summary Get Download Id For CM Futures Trade History (USER_DATA)
1303
+ * @param {GetDownloadIdForCmFuturesTradeHistoryRequest} requestParameters Request parameters.
1304
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTradeHistoryResponse>>}
1305
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1306
+ * @memberof AccountApi
1307
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-download-id-for-cm-futures-trade-history Binance API Documentation}
1308
+ */
1309
+ async getDownloadIdForCmFuturesTradeHistory(requestParameters) {
1310
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForCmFuturesTradeHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1311
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1312
+ }
1313
+ /**
1314
+ * Get download id for CM futures transaction history
1315
+ *
1316
+ * Weight(IP): 1500
1317
+ *
1318
+ * Security Type: USER_DATA
1319
+ *
1320
+ * Notes:
1321
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
1322
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
1323
+ *
1324
+ * @summary Get Download Id For CM Futures Transaction History (USER_DATA)
1325
+ * @param {GetDownloadIdForCmFuturesTransactionHistoryRequest} requestParameters Request parameters.
1326
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTransactionHistoryResponse>>}
1327
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1328
+ * @memberof AccountApi
1329
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-download-id-for-cm-futures-transaction-history Binance API Documentation}
1330
+ */
1331
+ async getDownloadIdForCmFuturesTransactionHistory(requestParameters) {
1332
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForCmFuturesTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1333
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1334
+ }
1335
+ /**
1093
1336
  * Get download id for UM futures order history
1094
1337
  *
1095
1338
  * Weight(IP): 1500
@@ -1805,6 +2048,24 @@ var MarketDataApi = class {
1805
2048
  */
1806
2049
  const TradeApiAxiosParamCreator = function(configuration) {
1807
2050
  return {
2051
+ cancelAllCmAlgoOpenOrders: async (symbol, recvWindow) => {
2052
+ assertParamExists("cancelAllCmAlgoOpenOrders", "symbol", symbol);
2053
+ const localVarQueryParameter = {};
2054
+ const localVarBodyParameter = {};
2055
+ const localVarHeaderParameter = {};
2056
+ if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
2057
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
2058
+ let _timeUnit;
2059
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2060
+ return {
2061
+ endpoint: "/papi/v1/cm/algo/allOpenOrders",
2062
+ method: "DELETE",
2063
+ queryParams: localVarQueryParameter,
2064
+ bodyParams: localVarBodyParameter,
2065
+ headerParams: localVarHeaderParameter,
2066
+ timeUnit: _timeUnit
2067
+ };
2068
+ },
1808
2069
  cancelAllCmOpenConditionalOrders: async (symbol, recvWindow) => {
1809
2070
  assertParamExists("cancelAllCmOpenConditionalOrders", "symbol", symbol);
1810
2071
  const localVarQueryParameter = {};
@@ -1877,6 +2138,24 @@ const TradeApiAxiosParamCreator = function(configuration) {
1877
2138
  timeUnit: _timeUnit
1878
2139
  };
1879
2140
  },
2141
+ cancelCmAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
2142
+ const localVarQueryParameter = {};
2143
+ const localVarBodyParameter = {};
2144
+ const localVarHeaderParameter = {};
2145
+ if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
2146
+ if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
2147
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
2148
+ let _timeUnit;
2149
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2150
+ return {
2151
+ endpoint: "/papi/v1/cm/algo/order",
2152
+ method: "DELETE",
2153
+ queryParams: localVarQueryParameter,
2154
+ bodyParams: localVarBodyParameter,
2155
+ headerParams: localVarHeaderParameter,
2156
+ timeUnit: _timeUnit
2157
+ };
2158
+ },
1880
2159
  cancelCmConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
1881
2160
  assertParamExists("cancelCmConditionalOrder", "symbol", symbol);
1882
2161
  const localVarQueryParameter = {};
@@ -2260,6 +2539,45 @@ const TradeApiAxiosParamCreator = function(configuration) {
2260
2539
  timeUnit: _timeUnit
2261
2540
  };
2262
2541
  },
2542
+ newCmAlgoOrder: async (algoType, symbol, side, type, positionSide, timeInForce, quantity, price, triggerPrice, workingType, priceMatch, closePosition, priceProtect, reduceOnly, activatePrice, callbackRate, clientAlgoId, newOrderRespType, selfTradePreventionMode, recvWindow) => {
2543
+ assertParamExists("newCmAlgoOrder", "algoType", algoType);
2544
+ assertParamExists("newCmAlgoOrder", "symbol", symbol);
2545
+ assertParamExists("newCmAlgoOrder", "side", side);
2546
+ assertParamExists("newCmAlgoOrder", "type", type);
2547
+ const localVarQueryParameter = {};
2548
+ const localVarBodyParameter = {};
2549
+ const localVarHeaderParameter = {};
2550
+ if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
2551
+ if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
2552
+ if (side !== void 0 && side !== null) localVarQueryParameter["side"] = side;
2553
+ if (positionSide !== void 0 && positionSide !== null) localVarQueryParameter["positionSide"] = positionSide;
2554
+ if (type !== void 0 && type !== null) localVarQueryParameter["type"] = type;
2555
+ if (timeInForce !== void 0 && timeInForce !== null) localVarQueryParameter["timeInForce"] = timeInForce;
2556
+ if (quantity !== void 0 && quantity !== null) localVarQueryParameter["quantity"] = quantity;
2557
+ if (price !== void 0 && price !== null) localVarQueryParameter["price"] = price;
2558
+ if (triggerPrice !== void 0 && triggerPrice !== null) localVarQueryParameter["triggerPrice"] = triggerPrice;
2559
+ if (workingType !== void 0 && workingType !== null) localVarQueryParameter["workingType"] = workingType;
2560
+ if (priceMatch !== void 0 && priceMatch !== null) localVarQueryParameter["priceMatch"] = priceMatch;
2561
+ if (closePosition !== void 0 && closePosition !== null) localVarQueryParameter["closePosition"] = closePosition;
2562
+ if (priceProtect !== void 0 && priceProtect !== null) localVarQueryParameter["priceProtect"] = priceProtect;
2563
+ if (reduceOnly !== void 0 && reduceOnly !== null) localVarQueryParameter["reduceOnly"] = reduceOnly;
2564
+ if (activatePrice !== void 0 && activatePrice !== null) localVarQueryParameter["activatePrice"] = activatePrice;
2565
+ if (callbackRate !== void 0 && callbackRate !== null) localVarQueryParameter["callbackRate"] = callbackRate;
2566
+ if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
2567
+ if (newOrderRespType !== void 0 && newOrderRespType !== null) localVarQueryParameter["newOrderRespType"] = newOrderRespType;
2568
+ if (selfTradePreventionMode !== void 0 && selfTradePreventionMode !== null) localVarQueryParameter["selfTradePreventionMode"] = selfTradePreventionMode;
2569
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
2570
+ let _timeUnit;
2571
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2572
+ return {
2573
+ endpoint: "/papi/v1/cm/algo/order",
2574
+ method: "POST",
2575
+ queryParams: localVarQueryParameter,
2576
+ bodyParams: localVarBodyParameter,
2577
+ headerParams: localVarHeaderParameter,
2578
+ timeUnit: _timeUnit
2579
+ };
2580
+ },
2263
2581
  newCmConditionalOrder: async (symbol, side, strategyType, positionSide, timeInForce, quantity, reduceOnly, price, workingType, priceProtect, newClientStrategyId, stopPrice, activationPrice, callbackRate, recvWindow) => {
2264
2582
  assertParamExists("newCmConditionalOrder", "symbol", symbol);
2265
2583
  assertParamExists("newCmConditionalOrder", "side", side);
@@ -2471,6 +2789,25 @@ const TradeApiAxiosParamCreator = function(configuration) {
2471
2789
  timeUnit: _timeUnit
2472
2790
  };
2473
2791
  },
2792
+ queryAllCurrentCmOpenAlgoOrders: async (algoType, symbol, algoId, recvWindow) => {
2793
+ const localVarQueryParameter = {};
2794
+ const localVarBodyParameter = {};
2795
+ const localVarHeaderParameter = {};
2796
+ if (algoType !== void 0 && algoType !== null) localVarQueryParameter["algoType"] = algoType;
2797
+ if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
2798
+ if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
2799
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
2800
+ let _timeUnit;
2801
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2802
+ return {
2803
+ endpoint: "/papi/v1/cm/algo/openAlgoOrders",
2804
+ method: "GET",
2805
+ queryParams: localVarQueryParameter,
2806
+ bodyParams: localVarBodyParameter,
2807
+ headerParams: localVarHeaderParameter,
2808
+ timeUnit: _timeUnit
2809
+ };
2810
+ },
2474
2811
  queryAllCurrentCmOpenConditionalOrders: async (symbol, recvWindow) => {
2475
2812
  const localVarQueryParameter = {};
2476
2813
  const localVarBodyParameter = {};
@@ -2586,6 +2923,28 @@ const TradeApiAxiosParamCreator = function(configuration) {
2586
2923
  timeUnit: _timeUnit
2587
2924
  };
2588
2925
  },
2926
+ queryCmAlgoOrderHistory: async (symbol, algoId, startTime, endTime, limit, recvWindow) => {
2927
+ assertParamExists("queryCmAlgoOrderHistory", "symbol", symbol);
2928
+ const localVarQueryParameter = {};
2929
+ const localVarBodyParameter = {};
2930
+ const localVarHeaderParameter = {};
2931
+ if (symbol !== void 0 && symbol !== null) localVarQueryParameter["symbol"] = symbol;
2932
+ if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
2933
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
2934
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
2935
+ if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
2936
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
2937
+ let _timeUnit;
2938
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2939
+ return {
2940
+ endpoint: "/papi/v1/cm/algo/allAlgoOrders",
2941
+ method: "GET",
2942
+ queryParams: localVarQueryParameter,
2943
+ bodyParams: localVarBodyParameter,
2944
+ headerParams: localVarHeaderParameter,
2945
+ timeUnit: _timeUnit
2946
+ };
2947
+ },
2589
2948
  queryCmConditionalOrderHistory: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
2590
2949
  assertParamExists("queryCmConditionalOrderHistory", "symbol", symbol);
2591
2950
  const localVarQueryParameter = {};
@@ -2649,6 +3008,24 @@ const TradeApiAxiosParamCreator = function(configuration) {
2649
3008
  timeUnit: _timeUnit
2650
3009
  };
2651
3010
  },
3011
+ queryCurrentCmOpenAlgoOrder: async (algoId, clientAlgoId, recvWindow) => {
3012
+ const localVarQueryParameter = {};
3013
+ const localVarBodyParameter = {};
3014
+ const localVarHeaderParameter = {};
3015
+ if (algoId !== void 0 && algoId !== null) localVarQueryParameter["algoId"] = algoId;
3016
+ if (clientAlgoId !== void 0 && clientAlgoId !== null) localVarQueryParameter["clientAlgoId"] = clientAlgoId;
3017
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
3018
+ let _timeUnit;
3019
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
3020
+ return {
3021
+ endpoint: "/papi/v1/cm/algo/algoOrder",
3022
+ method: "GET",
3023
+ queryParams: localVarQueryParameter,
3024
+ bodyParams: localVarBodyParameter,
3025
+ headerParams: localVarHeaderParameter,
3026
+ timeUnit: _timeUnit
3027
+ };
3028
+ },
2652
3029
  queryCurrentCmOpenConditionalOrder: async (symbol, strategyId, newClientStrategyId, recvWindow) => {
2653
3030
  assertParamExists("queryCurrentCmOpenConditionalOrder", "symbol", symbol);
2654
3031
  const localVarQueryParameter = {};
@@ -3015,6 +3392,24 @@ var TradeApi = class {
3015
3392
  this.localVarAxiosParamCreator = TradeApiAxiosParamCreator(configuration);
3016
3393
  }
3017
3394
  /**
3395
+ * Cancel All CM Algo Open Orders
3396
+ *
3397
+ * Weight(IP): 1
3398
+ *
3399
+ * Security Type: TRADE
3400
+ *
3401
+ * @summary Cancel All CM Algo Open Orders (TRADE)
3402
+ * @param {CancelAllCmAlgoOpenOrdersRequest} requestParameters Request parameters.
3403
+ * @returns {Promise<RestApiResponse<CancelAllCmAlgoOpenOrdersResponse>>}
3404
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3405
+ * @memberof TradeApi
3406
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-all-cm-algo-open-orders Binance API Documentation}
3407
+ */
3408
+ async cancelAllCmAlgoOpenOrders(requestParameters) {
3409
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelAllCmAlgoOpenOrders(requestParameters?.symbol, requestParameters?.recvWindow);
3410
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3411
+ }
3412
+ /**
3018
3413
  * Cancel All CM Open Conditional Orders
3019
3414
  *
3020
3415
  * Weight(IP): 1
@@ -3087,6 +3482,27 @@ var TradeApi = class {
3087
3482
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3088
3483
  }
3089
3484
  /**
3485
+ * Cancel an active CM algo order
3486
+ *
3487
+ * Weight(IP): 1
3488
+ *
3489
+ * Security Type: TRADE
3490
+ *
3491
+ * Notes:
3492
+ * - Either `algoId` or `clientAlgoId` must be sent.
3493
+ *
3494
+ * @summary Cancel CM Algo Order (TRADE)
3495
+ * @param {CancelCmAlgoOrderRequest} requestParameters Request parameters.
3496
+ * @returns {Promise<RestApiResponse<CancelCmAlgoOrderResponse>>}
3497
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3498
+ * @memberof TradeApi
3499
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-cm-algo-order Binance API Documentation}
3500
+ */
3501
+ async cancelCmAlgoOrder(requestParameters = {}) {
3502
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.cancelCmAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
3503
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3504
+ }
3505
+ /**
3090
3506
  * Cancel CM Conditional Order
3091
3507
  *
3092
3508
  * Weight(IP): 1
@@ -3483,6 +3899,34 @@ var TradeApi = class {
3483
3899
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3484
3900
  }
3485
3901
  /**
3902
+ * Place new CM conditional order
3903
+ *
3904
+ * Weight(IP): 1
3905
+ *
3906
+ * Security Type: TRADE
3907
+ *
3908
+ * Notes:
3909
+ * - Algo order with type `STOP`, parameter `timeInForce` can be sent (default `GTC`).
3910
+ * - Algo order with type `TAKE_PROFIT`, parameter `timeInForce` can be sent (default `GTC`).
3911
+ * - Condition orders will be triggered when price reaches the `triggerPrice`.
3912
+ * - `STOP`, `STOP_MARKET`: BUY: latest price >= `triggerPrice`; SELL: latest price <= `triggerPrice`.
3913
+ * - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`: BUY: latest price <= `triggerPrice`; SELL: latest price >= `triggerPrice`.
3914
+ * - `TRAILING_STOP_MARKET`: BUY: lowest price after order placed <= `activatePrice`, and latest price >= lowest price * (1 + `callbackRate`); SELL: highest price after order placed >= `activatePrice`, and latest price <= highest price * (1 - `callbackRate`).
3915
+ * - `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`: follow the same rules for conditional orders; if triggered, close all current long position (if `SELL`) or current short position (if `BUY`); cannot be used with `quantity` parameter; cannot be used with `reduceOnly` parameter; in Hedge Mode, cannot be used with `BUY` orders in `LONG` position side, and cannot be used with `SELL` orders in `SHORT` position side.
3916
+ * - `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC`.
3917
+ *
3918
+ * @summary New CM Algo Order (TRADE)
3919
+ * @param {NewCmAlgoOrderRequest} requestParameters Request parameters.
3920
+ * @returns {Promise<RestApiResponse<NewCmAlgoOrderResponse>>}
3921
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3922
+ * @memberof TradeApi
3923
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#new-cm-algo-order Binance API Documentation}
3924
+ */
3925
+ async newCmAlgoOrder(requestParameters) {
3926
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.newCmAlgoOrder(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.side, requestParameters?.type, requestParameters?.positionSide, requestParameters?.timeInForce, requestParameters?.quantity, requestParameters?.price, requestParameters?.triggerPrice, requestParameters?.workingType, requestParameters?.priceMatch, requestParameters?.closePosition, requestParameters?.priceProtect, requestParameters?.reduceOnly, requestParameters?.activatePrice, requestParameters?.callbackRate, requestParameters?.clientAlgoId, requestParameters?.newOrderRespType, requestParameters?.selfTradePreventionMode, requestParameters?.recvWindow);
3927
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3928
+ }
3929
+ /**
3486
3930
  * New CM Conditional Order
3487
3931
  *
3488
3932
  * Weight(IP): 1
@@ -3666,6 +4110,27 @@ var TradeApi = class {
3666
4110
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3667
4111
  }
3668
4112
  /**
4113
+ * Get all CM open algo orders on a symbol. If the symbol is not sent, orders for all symbols will be returned.
4114
+ *
4115
+ * Weight(IP): 1
4116
+ *
4117
+ * Security Type: USER_DATA
4118
+ *
4119
+ * Notes:
4120
+ * - Weight: 1 for a single symbol; 40 when the symbol parameter is omitted.
4121
+ *
4122
+ * @summary Query All Current CM Open Algo Orders (USER_DATA)
4123
+ * @param {QueryAllCurrentCmOpenAlgoOrdersRequest} requestParameters Request parameters.
4124
+ * @returns {Promise<RestApiResponse<QueryAllCurrentCmOpenAlgoOrdersResponse>>}
4125
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4126
+ * @memberof TradeApi
4127
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-all-current-cm-open-algo-orders Binance API Documentation}
4128
+ */
4129
+ async queryAllCurrentCmOpenAlgoOrders(requestParameters = {}) {
4130
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryAllCurrentCmOpenAlgoOrders(requestParameters?.algoType, requestParameters?.symbol, requestParameters?.algoId, requestParameters?.recvWindow);
4131
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
4132
+ }
4133
+ /**
3669
4134
  * Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
3670
4135
  *
3671
4136
  * Weight: - 1 for a single `symbol`
@@ -3796,6 +4261,28 @@ var TradeApi = class {
3796
4261
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3797
4262
  }
3798
4263
  /**
4264
+ * Get all algo orders: ACTIVE, CANCELED, TRIGGERED or FINISHED.
4265
+ *
4266
+ * Weight(IP): 5
4267
+ *
4268
+ * Security Type: USER_DATA
4269
+ *
4270
+ * Notes:
4271
+ * - If `algoId` is set, it will get orders >= that `algoId`. Otherwise most recent orders are returned.
4272
+ * - The query time period must be less than 7 days (default as the recent 7 days).
4273
+ *
4274
+ * @summary Query CM Algo Order History (USER_DATA)
4275
+ * @param {QueryCmAlgoOrderHistoryRequest} requestParameters Request parameters.
4276
+ * @returns {Promise<RestApiResponse<QueryCmAlgoOrderHistoryResponse>>}
4277
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4278
+ * @memberof TradeApi
4279
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-cm-algo-order-history Binance API Documentation}
4280
+ */
4281
+ async queryCmAlgoOrderHistory(requestParameters) {
4282
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCmAlgoOrderHistory(requestParameters?.symbol, requestParameters?.algoId, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
4283
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
4284
+ }
4285
+ /**
3799
4286
  * Query CM Conditional Order History
3800
4287
  *
3801
4288
  * Weight(IP): 1
@@ -3868,6 +4355,27 @@ var TradeApi = class {
3868
4355
  return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
3869
4356
  }
3870
4357
  /**
4358
+ * Check a CM algo order's status. Orders will not be found if: status is CANCELED/EXPIRED with no fills and created 3+ days ago; or created 90+ days ago.
4359
+ *
4360
+ * Weight(IP): 1
4361
+ *
4362
+ * Security Type: USER_DATA
4363
+ *
4364
+ * Notes:
4365
+ * - Either `algoId` or `clientAlgoId` must be sent. `algoId` is self-increment for each specific `symbol`.
4366
+ *
4367
+ * @summary Query Current CM Open Algo Order (USER_DATA)
4368
+ * @param {QueryCurrentCmOpenAlgoOrderRequest} requestParameters Request parameters.
4369
+ * @returns {Promise<RestApiResponse<QueryCurrentCmOpenAlgoOrderResponse>>}
4370
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
4371
+ * @memberof TradeApi
4372
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-current-cm-open-algo-order Binance API Documentation}
4373
+ */
4374
+ async queryCurrentCmOpenAlgoOrder(requestParameters = {}) {
4375
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.queryCurrentCmOpenAlgoOrder(requestParameters?.algoId, requestParameters?.clientAlgoId, requestParameters?.recvWindow);
4376
+ return sendRequest(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
4377
+ }
4378
+ /**
3871
4379
  * Query Current CM Open Conditional Order
3872
4380
  *
3873
4381
  * Weight(IP): 1
@@ -4310,6 +4818,79 @@ let ModifyUmOrderPriceMatchEnum = /* @__PURE__ */ function(ModifyUmOrderPriceMat
4310
4818
  ModifyUmOrderPriceMatchEnum$1["QUEUE_20"] = "QUEUE_20";
4311
4819
  return ModifyUmOrderPriceMatchEnum$1;
4312
4820
  }({});
4821
+ let NewCmAlgoOrderAlgoTypeEnum = /* @__PURE__ */ function(NewCmAlgoOrderAlgoTypeEnum$1) {
4822
+ NewCmAlgoOrderAlgoTypeEnum$1["CONDITIONAL"] = "CONDITIONAL";
4823
+ return NewCmAlgoOrderAlgoTypeEnum$1;
4824
+ }({});
4825
+ let NewCmAlgoOrderSideEnum = /* @__PURE__ */ function(NewCmAlgoOrderSideEnum$1) {
4826
+ NewCmAlgoOrderSideEnum$1["BUY"] = "BUY";
4827
+ NewCmAlgoOrderSideEnum$1["SELL"] = "SELL";
4828
+ return NewCmAlgoOrderSideEnum$1;
4829
+ }({});
4830
+ let NewCmAlgoOrderTypeEnum = /* @__PURE__ */ function(NewCmAlgoOrderTypeEnum$1) {
4831
+ NewCmAlgoOrderTypeEnum$1["STOP"] = "STOP";
4832
+ NewCmAlgoOrderTypeEnum$1["TAKE_PROFIT"] = "TAKE_PROFIT";
4833
+ NewCmAlgoOrderTypeEnum$1["STOP_MARKET"] = "STOP_MARKET";
4834
+ NewCmAlgoOrderTypeEnum$1["TAKE_PROFIT_MARKET"] = "TAKE_PROFIT_MARKET";
4835
+ NewCmAlgoOrderTypeEnum$1["TRAILING_STOP_MARKET"] = "TRAILING_STOP_MARKET";
4836
+ return NewCmAlgoOrderTypeEnum$1;
4837
+ }({});
4838
+ let NewCmAlgoOrderPositionSideEnum = /* @__PURE__ */ function(NewCmAlgoOrderPositionSideEnum$1) {
4839
+ NewCmAlgoOrderPositionSideEnum$1["BOTH"] = "BOTH";
4840
+ NewCmAlgoOrderPositionSideEnum$1["LONG"] = "LONG";
4841
+ NewCmAlgoOrderPositionSideEnum$1["SHORT"] = "SHORT";
4842
+ return NewCmAlgoOrderPositionSideEnum$1;
4843
+ }({});
4844
+ let NewCmAlgoOrderTimeInForceEnum = /* @__PURE__ */ function(NewCmAlgoOrderTimeInForceEnum$1) {
4845
+ NewCmAlgoOrderTimeInForceEnum$1["IOC"] = "IOC";
4846
+ NewCmAlgoOrderTimeInForceEnum$1["GTC"] = "GTC";
4847
+ NewCmAlgoOrderTimeInForceEnum$1["FOK"] = "FOK";
4848
+ NewCmAlgoOrderTimeInForceEnum$1["GTX"] = "GTX";
4849
+ return NewCmAlgoOrderTimeInForceEnum$1;
4850
+ }({});
4851
+ let NewCmAlgoOrderWorkingTypeEnum = /* @__PURE__ */ function(NewCmAlgoOrderWorkingTypeEnum$1) {
4852
+ NewCmAlgoOrderWorkingTypeEnum$1["MARK_PRICE"] = "MARK_PRICE";
4853
+ NewCmAlgoOrderWorkingTypeEnum$1["CONTRACT_PRICE"] = "CONTRACT_PRICE";
4854
+ return NewCmAlgoOrderWorkingTypeEnum$1;
4855
+ }({});
4856
+ let NewCmAlgoOrderPriceMatchEnum = /* @__PURE__ */ function(NewCmAlgoOrderPriceMatchEnum$1) {
4857
+ NewCmAlgoOrderPriceMatchEnum$1["OPPONENT"] = "OPPONENT";
4858
+ NewCmAlgoOrderPriceMatchEnum$1["OPPONENT_5"] = "OPPONENT_5";
4859
+ NewCmAlgoOrderPriceMatchEnum$1["OPPONENT_10"] = "OPPONENT_10";
4860
+ NewCmAlgoOrderPriceMatchEnum$1["OPPONENT_20"] = "OPPONENT_20";
4861
+ NewCmAlgoOrderPriceMatchEnum$1["QUEUE"] = "QUEUE";
4862
+ NewCmAlgoOrderPriceMatchEnum$1["QUEUE_5"] = "QUEUE_5";
4863
+ NewCmAlgoOrderPriceMatchEnum$1["QUEUE_10"] = "QUEUE_10";
4864
+ NewCmAlgoOrderPriceMatchEnum$1["QUEUE_20"] = "QUEUE_20";
4865
+ return NewCmAlgoOrderPriceMatchEnum$1;
4866
+ }({});
4867
+ let NewCmAlgoOrderClosePositionEnum = /* @__PURE__ */ function(NewCmAlgoOrderClosePositionEnum$1) {
4868
+ NewCmAlgoOrderClosePositionEnum$1["TRUE"] = "true";
4869
+ NewCmAlgoOrderClosePositionEnum$1["FALSE"] = "false";
4870
+ return NewCmAlgoOrderClosePositionEnum$1;
4871
+ }({});
4872
+ let NewCmAlgoOrderPriceProtectEnum = /* @__PURE__ */ function(NewCmAlgoOrderPriceProtectEnum$1) {
4873
+ NewCmAlgoOrderPriceProtectEnum$1["TRUE"] = "true";
4874
+ NewCmAlgoOrderPriceProtectEnum$1["FALSE"] = "false";
4875
+ return NewCmAlgoOrderPriceProtectEnum$1;
4876
+ }({});
4877
+ let NewCmAlgoOrderReduceOnlyEnum = /* @__PURE__ */ function(NewCmAlgoOrderReduceOnlyEnum$1) {
4878
+ NewCmAlgoOrderReduceOnlyEnum$1["TRUE"] = "true";
4879
+ NewCmAlgoOrderReduceOnlyEnum$1["FALSE"] = "false";
4880
+ return NewCmAlgoOrderReduceOnlyEnum$1;
4881
+ }({});
4882
+ let NewCmAlgoOrderNewOrderRespTypeEnum = /* @__PURE__ */ function(NewCmAlgoOrderNewOrderRespTypeEnum$1) {
4883
+ NewCmAlgoOrderNewOrderRespTypeEnum$1["ACK"] = "ACK";
4884
+ NewCmAlgoOrderNewOrderRespTypeEnum$1["RESULT"] = "RESULT";
4885
+ return NewCmAlgoOrderNewOrderRespTypeEnum$1;
4886
+ }({});
4887
+ let NewCmAlgoOrderSelfTradePreventionModeEnum = /* @__PURE__ */ function(NewCmAlgoOrderSelfTradePreventionModeEnum$1) {
4888
+ NewCmAlgoOrderSelfTradePreventionModeEnum$1["NONE"] = "NONE";
4889
+ NewCmAlgoOrderSelfTradePreventionModeEnum$1["EXPIRE_TAKER"] = "EXPIRE_TAKER";
4890
+ NewCmAlgoOrderSelfTradePreventionModeEnum$1["EXPIRE_MAKER"] = "EXPIRE_MAKER";
4891
+ NewCmAlgoOrderSelfTradePreventionModeEnum$1["EXPIRE_BOTH"] = "EXPIRE_BOTH";
4892
+ return NewCmAlgoOrderSelfTradePreventionModeEnum$1;
4893
+ }({});
4313
4894
  let NewCmConditionalOrderSideEnum = /* @__PURE__ */ function(NewCmConditionalOrderSideEnum$1) {
4314
4895
  NewCmConditionalOrderSideEnum$1["BUY"] = "BUY";
4315
4896
  NewCmConditionalOrderSideEnum$1["SELL"] = "SELL";
@@ -4997,6 +5578,66 @@ var RestAPI = class {
4997
5578
  return this.accountApi.getCmCurrentPositionMode(requestParameters);
4998
5579
  }
4999
5580
  /**
5581
+ * Get CM futures order download link by Id
5582
+ *
5583
+ * Weight(IP): 10
5584
+ *
5585
+ * Security Type: USER_DATA
5586
+ *
5587
+ * Notes:
5588
+ * - Download link expiration: 7 days
5589
+ *
5590
+ * @summary Get CM Futures Order Download Link by Id (USER_DATA)
5591
+ * @param {GetCmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
5592
+ *
5593
+ * @returns {Promise<RestApiResponse<GetCmFuturesOrderDownloadLinkByIdResponse>>}
5594
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5595
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-cm-futures-order-download-link-by-id Binance API Documentation}
5596
+ */
5597
+ getCmFuturesOrderDownloadLinkById(requestParameters) {
5598
+ return this.accountApi.getCmFuturesOrderDownloadLinkById(requestParameters);
5599
+ }
5600
+ /**
5601
+ * Get CM futures trade download link by Id
5602
+ *
5603
+ * Weight(IP): 10
5604
+ *
5605
+ * Security Type: USER_DATA
5606
+ *
5607
+ * Notes:
5608
+ * - Download link expiration: 7 days
5609
+ *
5610
+ * @summary Get CM Futures Trade Download Link by Id (USER_DATA)
5611
+ * @param {GetCmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
5612
+ *
5613
+ * @returns {Promise<RestApiResponse<GetCmFuturesTradeDownloadLinkByIdResponse>>}
5614
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5615
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-cm-futures-trade-download-link-by-id Binance API Documentation}
5616
+ */
5617
+ getCmFuturesTradeDownloadLinkById(requestParameters) {
5618
+ return this.accountApi.getCmFuturesTradeDownloadLinkById(requestParameters);
5619
+ }
5620
+ /**
5621
+ * Get CM futures Transaction download link by Id
5622
+ *
5623
+ * Weight(IP): 10
5624
+ *
5625
+ * Security Type: USER_DATA
5626
+ *
5627
+ * Notes:
5628
+ * - Download link expiration: 7 days
5629
+ *
5630
+ * @summary Get CM Futures Transaction Download Link by Id (USER_DATA)
5631
+ * @param {GetCmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
5632
+ *
5633
+ * @returns {Promise<RestApiResponse<GetCmFuturesTransactionDownloadLinkByIdResponse>>}
5634
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5635
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-cm-futures-transaction-download-link-by-id Binance API Documentation}
5636
+ */
5637
+ getCmFuturesTransactionDownloadLinkById(requestParameters) {
5638
+ return this.accountApi.getCmFuturesTransactionDownloadLinkById(requestParameters);
5639
+ }
5640
+ /**
5000
5641
  * Get CM Income History.
5001
5642
  *
5002
5643
  * Weight(IP): 30
@@ -5020,6 +5661,69 @@ var RestAPI = class {
5020
5661
  return this.accountApi.getCmIncomeHistory(requestParameters);
5021
5662
  }
5022
5663
  /**
5664
+ * Get download id for CM futures order history
5665
+ *
5666
+ * Weight(IP): 1500
5667
+ *
5668
+ * Security Type: USER_DATA
5669
+ *
5670
+ * Notes:
5671
+ * - Request Limitation is 10 times per month, shared by front end download page and rest api
5672
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
5673
+ *
5674
+ * @summary Get Download Id For CM Futures Order History (USER_DATA)
5675
+ * @param {GetDownloadIdForCmFuturesOrderHistoryRequest} requestParameters Request parameters.
5676
+ *
5677
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesOrderHistoryResponse>>}
5678
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5679
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-download-id-for-cm-futures-order-history Binance API Documentation}
5680
+ */
5681
+ getDownloadIdForCmFuturesOrderHistory(requestParameters) {
5682
+ return this.accountApi.getDownloadIdForCmFuturesOrderHistory(requestParameters);
5683
+ }
5684
+ /**
5685
+ * Get download id for CM futures trade history
5686
+ *
5687
+ * Weight(IP): 1500
5688
+ *
5689
+ * Security Type: USER_DATA
5690
+ *
5691
+ * Notes:
5692
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
5693
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
5694
+ *
5695
+ * @summary Get Download Id For CM Futures Trade History (USER_DATA)
5696
+ * @param {GetDownloadIdForCmFuturesTradeHistoryRequest} requestParameters Request parameters.
5697
+ *
5698
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTradeHistoryResponse>>}
5699
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5700
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-download-id-for-cm-futures-trade-history Binance API Documentation}
5701
+ */
5702
+ getDownloadIdForCmFuturesTradeHistory(requestParameters) {
5703
+ return this.accountApi.getDownloadIdForCmFuturesTradeHistory(requestParameters);
5704
+ }
5705
+ /**
5706
+ * Get download id for CM futures transaction history
5707
+ *
5708
+ * Weight(IP): 1500
5709
+ *
5710
+ * Security Type: USER_DATA
5711
+ *
5712
+ * Notes:
5713
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
5714
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
5715
+ *
5716
+ * @summary Get Download Id For CM Futures Transaction History (USER_DATA)
5717
+ * @param {GetDownloadIdForCmFuturesTransactionHistoryRequest} requestParameters Request parameters.
5718
+ *
5719
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTransactionHistoryResponse>>}
5720
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5721
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-download-id-for-cm-futures-transaction-history Binance API Documentation}
5722
+ */
5723
+ getDownloadIdForCmFuturesTransactionHistory(requestParameters) {
5724
+ return this.accountApi.getDownloadIdForCmFuturesTransactionHistory(requestParameters);
5725
+ }
5726
+ /**
5023
5727
  * Get download id for UM futures order history
5024
5728
  *
5025
5729
  * Weight(IP): 1500
@@ -5570,6 +6274,23 @@ var RestAPI = class {
5570
6274
  return this.marketDataApi.testConnectivity();
5571
6275
  }
5572
6276
  /**
6277
+ * Cancel All CM Algo Open Orders
6278
+ *
6279
+ * Weight(IP): 1
6280
+ *
6281
+ * Security Type: TRADE
6282
+ *
6283
+ * @summary Cancel All CM Algo Open Orders (TRADE)
6284
+ * @param {CancelAllCmAlgoOpenOrdersRequest} requestParameters Request parameters.
6285
+ *
6286
+ * @returns {Promise<RestApiResponse<CancelAllCmAlgoOpenOrdersResponse>>}
6287
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
6288
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-all-cm-algo-open-orders Binance API Documentation}
6289
+ */
6290
+ cancelAllCmAlgoOpenOrders(requestParameters) {
6291
+ return this.tradeApi.cancelAllCmAlgoOpenOrders(requestParameters);
6292
+ }
6293
+ /**
5573
6294
  * Cancel All CM Open Conditional Orders
5574
6295
  *
5575
6296
  * Weight(IP): 1
@@ -5638,6 +6359,26 @@ var RestAPI = class {
5638
6359
  return this.tradeApi.cancelAllUmOpenOrders(requestParameters);
5639
6360
  }
5640
6361
  /**
6362
+ * Cancel an active CM algo order
6363
+ *
6364
+ * Weight(IP): 1
6365
+ *
6366
+ * Security Type: TRADE
6367
+ *
6368
+ * Notes:
6369
+ * - Either `algoId` or `clientAlgoId` must be sent.
6370
+ *
6371
+ * @summary Cancel CM Algo Order (TRADE)
6372
+ * @param {CancelCmAlgoOrderRequest} requestParameters Request parameters.
6373
+ *
6374
+ * @returns {Promise<RestApiResponse<CancelCmAlgoOrderResponse>>}
6375
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
6376
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#cancel-cm-algo-order Binance API Documentation}
6377
+ */
6378
+ cancelCmAlgoOrder(requestParameters = {}) {
6379
+ return this.tradeApi.cancelCmAlgoOrder(requestParameters);
6380
+ }
6381
+ /**
5641
6382
  * Cancel CM Conditional Order
5642
6383
  *
5643
6384
  * Weight(IP): 1
@@ -6016,6 +6757,33 @@ var RestAPI = class {
6016
6757
  return this.tradeApi.modifyUmOrder(requestParameters);
6017
6758
  }
6018
6759
  /**
6760
+ * Place new CM conditional order
6761
+ *
6762
+ * Weight(IP): 1
6763
+ *
6764
+ * Security Type: TRADE
6765
+ *
6766
+ * Notes:
6767
+ * - Algo order with type `STOP`, parameter `timeInForce` can be sent (default `GTC`).
6768
+ * - Algo order with type `TAKE_PROFIT`, parameter `timeInForce` can be sent (default `GTC`).
6769
+ * - Condition orders will be triggered when price reaches the `triggerPrice`.
6770
+ * - `STOP`, `STOP_MARKET`: BUY: latest price >= `triggerPrice`; SELL: latest price <= `triggerPrice`.
6771
+ * - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`: BUY: latest price <= `triggerPrice`; SELL: latest price >= `triggerPrice`.
6772
+ * - `TRAILING_STOP_MARKET`: BUY: lowest price after order placed <= `activatePrice`, and latest price >= lowest price * (1 + `callbackRate`); SELL: highest price after order placed >= `activatePrice`, and latest price <= highest price * (1 - `callbackRate`).
6773
+ * - `STOP_MARKET`, `TAKE_PROFIT_MARKET` with `closePosition`=`true`: follow the same rules for conditional orders; if triggered, close all current long position (if `SELL`) or current short position (if `BUY`); cannot be used with `quantity` parameter; cannot be used with `reduceOnly` parameter; in Hedge Mode, cannot be used with `BUY` orders in `LONG` position side, and cannot be used with `SELL` orders in `SHORT` position side.
6774
+ * - `selfTradePreventionMode` is only effective when `timeInForce` set to `IOC` or `GTC`.
6775
+ *
6776
+ * @summary New CM Algo Order (TRADE)
6777
+ * @param {NewCmAlgoOrderRequest} requestParameters Request parameters.
6778
+ *
6779
+ * @returns {Promise<RestApiResponse<NewCmAlgoOrderResponse>>}
6780
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
6781
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#new-cm-algo-order Binance API Documentation}
6782
+ */
6783
+ newCmAlgoOrder(requestParameters) {
6784
+ return this.tradeApi.newCmAlgoOrder(requestParameters);
6785
+ }
6786
+ /**
6019
6787
  * New CM Conditional Order
6020
6788
  *
6021
6789
  * Weight(IP): 1
@@ -6192,6 +6960,26 @@ var RestAPI = class {
6192
6960
  return this.tradeApi.queryAllCmOrders(requestParameters);
6193
6961
  }
6194
6962
  /**
6963
+ * Get all CM open algo orders on a symbol. If the symbol is not sent, orders for all symbols will be returned.
6964
+ *
6965
+ * Weight(IP): 1
6966
+ *
6967
+ * Security Type: USER_DATA
6968
+ *
6969
+ * Notes:
6970
+ * - Weight: 1 for a single symbol; 40 when the symbol parameter is omitted.
6971
+ *
6972
+ * @summary Query All Current CM Open Algo Orders (USER_DATA)
6973
+ * @param {QueryAllCurrentCmOpenAlgoOrdersRequest} requestParameters Request parameters.
6974
+ *
6975
+ * @returns {Promise<RestApiResponse<QueryAllCurrentCmOpenAlgoOrdersResponse>>}
6976
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
6977
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-all-current-cm-open-algo-orders Binance API Documentation}
6978
+ */
6979
+ queryAllCurrentCmOpenAlgoOrders(requestParameters = {}) {
6980
+ return this.tradeApi.queryAllCurrentCmOpenAlgoOrders(requestParameters);
6981
+ }
6982
+ /**
6195
6983
  * Get all open conditional orders on a symbol. **Careful** when accessing this with no symbol.
6196
6984
  *
6197
6985
  * Weight: - 1 for a single `symbol`
@@ -6316,6 +7104,27 @@ var RestAPI = class {
6316
7104
  return this.tradeApi.queryAllUmOrders(requestParameters);
6317
7105
  }
6318
7106
  /**
7107
+ * Get all algo orders: ACTIVE, CANCELED, TRIGGERED or FINISHED.
7108
+ *
7109
+ * Weight(IP): 5
7110
+ *
7111
+ * Security Type: USER_DATA
7112
+ *
7113
+ * Notes:
7114
+ * - If `algoId` is set, it will get orders >= that `algoId`. Otherwise most recent orders are returned.
7115
+ * - The query time period must be less than 7 days (default as the recent 7 days).
7116
+ *
7117
+ * @summary Query CM Algo Order History (USER_DATA)
7118
+ * @param {QueryCmAlgoOrderHistoryRequest} requestParameters Request parameters.
7119
+ *
7120
+ * @returns {Promise<RestApiResponse<QueryCmAlgoOrderHistoryResponse>>}
7121
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
7122
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-cm-algo-order-history Binance API Documentation}
7123
+ */
7124
+ queryCmAlgoOrderHistory(requestParameters) {
7125
+ return this.tradeApi.queryCmAlgoOrderHistory(requestParameters);
7126
+ }
7127
+ /**
6319
7128
  * Query CM Conditional Order History
6320
7129
  *
6321
7130
  * Weight(IP): 1
@@ -6385,6 +7194,26 @@ var RestAPI = class {
6385
7194
  return this.tradeApi.queryCmOrder(requestParameters);
6386
7195
  }
6387
7196
  /**
7197
+ * Check a CM algo order's status. Orders will not be found if: status is CANCELED/EXPIRED with no fills and created 3+ days ago; or created 90+ days ago.
7198
+ *
7199
+ * Weight(IP): 1
7200
+ *
7201
+ * Security Type: USER_DATA
7202
+ *
7203
+ * Notes:
7204
+ * - Either `algoId` or `clientAlgoId` must be sent. `algoId` is self-increment for each specific `symbol`.
7205
+ *
7206
+ * @summary Query Current CM Open Algo Order (USER_DATA)
7207
+ * @param {QueryCurrentCmOpenAlgoOrderRequest} requestParameters Request parameters.
7208
+ *
7209
+ * @returns {Promise<RestApiResponse<QueryCurrentCmOpenAlgoOrderResponse>>}
7210
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
7211
+ * @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#query-current-cm-open-algo-order Binance API Documentation}
7212
+ */
7213
+ queryCurrentCmOpenAlgoOrder(requestParameters = {}) {
7214
+ return this.tradeApi.queryCurrentCmOpenAlgoOrder(requestParameters);
7215
+ }
7216
+ /**
6388
7217
  * Query Current CM Open Conditional Order
6389
7218
  *
6390
7219
  * Weight(IP): 1
@@ -6827,6 +7656,18 @@ var rest_api_exports = /* @__PURE__ */ __export({
6827
7656
  ModifyCmOrderSideEnum: () => ModifyCmOrderSideEnum,
6828
7657
  ModifyUmOrderPriceMatchEnum: () => ModifyUmOrderPriceMatchEnum,
6829
7658
  ModifyUmOrderSideEnum: () => ModifyUmOrderSideEnum,
7659
+ NewCmAlgoOrderAlgoTypeEnum: () => NewCmAlgoOrderAlgoTypeEnum,
7660
+ NewCmAlgoOrderClosePositionEnum: () => NewCmAlgoOrderClosePositionEnum,
7661
+ NewCmAlgoOrderNewOrderRespTypeEnum: () => NewCmAlgoOrderNewOrderRespTypeEnum,
7662
+ NewCmAlgoOrderPositionSideEnum: () => NewCmAlgoOrderPositionSideEnum,
7663
+ NewCmAlgoOrderPriceMatchEnum: () => NewCmAlgoOrderPriceMatchEnum,
7664
+ NewCmAlgoOrderPriceProtectEnum: () => NewCmAlgoOrderPriceProtectEnum,
7665
+ NewCmAlgoOrderReduceOnlyEnum: () => NewCmAlgoOrderReduceOnlyEnum,
7666
+ NewCmAlgoOrderSelfTradePreventionModeEnum: () => NewCmAlgoOrderSelfTradePreventionModeEnum,
7667
+ NewCmAlgoOrderSideEnum: () => NewCmAlgoOrderSideEnum,
7668
+ NewCmAlgoOrderTimeInForceEnum: () => NewCmAlgoOrderTimeInForceEnum,
7669
+ NewCmAlgoOrderTypeEnum: () => NewCmAlgoOrderTypeEnum,
7670
+ NewCmAlgoOrderWorkingTypeEnum: () => NewCmAlgoOrderWorkingTypeEnum,
6830
7671
  NewCmConditionalOrderPositionSideEnum: () => NewCmConditionalOrderPositionSideEnum,
6831
7672
  NewCmConditionalOrderPriceProtectEnum: () => NewCmConditionalOrderPriceProtectEnum,
6832
7673
  NewCmConditionalOrderSideEnum: () => NewCmConditionalOrderSideEnum,