@binance/derivatives-trading-portfolio-margin 22.0.3 → 22.1.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.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 = "22.0.3";
17
+ var version = "22.1.0";
18
18
 
19
19
  //#endregion
20
20
  //#region src/rest-api/modules/account-api.ts
@@ -283,6 +283,60 @@ const AccountApiAxiosParamCreator = function(configuration) {
283
283
  timeUnit: _timeUnit
284
284
  };
285
285
  },
286
+ getCmFuturesOrderDownloadLinkById: async (downloadId, recvWindow) => {
287
+ (0, __binance_common.assertParamExists)("getCmFuturesOrderDownloadLinkById", "downloadId", downloadId);
288
+ const localVarQueryParameter = {};
289
+ const localVarBodyParameter = {};
290
+ const localVarHeaderParameter = {};
291
+ if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
292
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
293
+ let _timeUnit;
294
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
295
+ return {
296
+ endpoint: "/papi/v1/cm/order/asyn/id",
297
+ method: "GET",
298
+ queryParams: localVarQueryParameter,
299
+ bodyParams: localVarBodyParameter,
300
+ headerParams: localVarHeaderParameter,
301
+ timeUnit: _timeUnit
302
+ };
303
+ },
304
+ getCmFuturesTradeDownloadLinkById: async (downloadId, recvWindow) => {
305
+ (0, __binance_common.assertParamExists)("getCmFuturesTradeDownloadLinkById", "downloadId", downloadId);
306
+ const localVarQueryParameter = {};
307
+ const localVarBodyParameter = {};
308
+ const localVarHeaderParameter = {};
309
+ if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
310
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
311
+ let _timeUnit;
312
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
313
+ return {
314
+ endpoint: "/papi/v1/cm/trade/asyn/id",
315
+ method: "GET",
316
+ queryParams: localVarQueryParameter,
317
+ bodyParams: localVarBodyParameter,
318
+ headerParams: localVarHeaderParameter,
319
+ timeUnit: _timeUnit
320
+ };
321
+ },
322
+ getCmFuturesTransactionDownloadLinkById: async (downloadId, recvWindow) => {
323
+ (0, __binance_common.assertParamExists)("getCmFuturesTransactionDownloadLinkById", "downloadId", downloadId);
324
+ const localVarQueryParameter = {};
325
+ const localVarBodyParameter = {};
326
+ const localVarHeaderParameter = {};
327
+ if (downloadId !== void 0 && downloadId !== null) localVarQueryParameter["downloadId"] = downloadId;
328
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
329
+ let _timeUnit;
330
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
331
+ return {
332
+ endpoint: "/papi/v1/cm/income/asyn/id",
333
+ method: "GET",
334
+ queryParams: localVarQueryParameter,
335
+ bodyParams: localVarBodyParameter,
336
+ headerParams: localVarHeaderParameter,
337
+ timeUnit: _timeUnit
338
+ };
339
+ },
286
340
  getCmIncomeHistory: async (symbol, incomeType, startTime, endTime, limit, recvWindow) => {
287
341
  const localVarQueryParameter = {};
288
342
  const localVarBodyParameter = {};
@@ -304,6 +358,66 @@ const AccountApiAxiosParamCreator = function(configuration) {
304
358
  timeUnit: _timeUnit
305
359
  };
306
360
  },
361
+ getDownloadIdForCmFuturesOrderHistory: async (startTime, endTime, recvWindow) => {
362
+ (0, __binance_common.assertParamExists)("getDownloadIdForCmFuturesOrderHistory", "startTime", startTime);
363
+ (0, __binance_common.assertParamExists)("getDownloadIdForCmFuturesOrderHistory", "endTime", endTime);
364
+ const localVarQueryParameter = {};
365
+ const localVarBodyParameter = {};
366
+ const localVarHeaderParameter = {};
367
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
368
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
369
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
370
+ let _timeUnit;
371
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
372
+ return {
373
+ endpoint: "/papi/v1/cm/order/asyn",
374
+ method: "GET",
375
+ queryParams: localVarQueryParameter,
376
+ bodyParams: localVarBodyParameter,
377
+ headerParams: localVarHeaderParameter,
378
+ timeUnit: _timeUnit
379
+ };
380
+ },
381
+ getDownloadIdForCmFuturesTradeHistory: async (startTime, endTime, recvWindow) => {
382
+ (0, __binance_common.assertParamExists)("getDownloadIdForCmFuturesTradeHistory", "startTime", startTime);
383
+ (0, __binance_common.assertParamExists)("getDownloadIdForCmFuturesTradeHistory", "endTime", endTime);
384
+ const localVarQueryParameter = {};
385
+ const localVarBodyParameter = {};
386
+ const localVarHeaderParameter = {};
387
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
388
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
389
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
390
+ let _timeUnit;
391
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
392
+ return {
393
+ endpoint: "/papi/v1/cm/trade/asyn",
394
+ method: "GET",
395
+ queryParams: localVarQueryParameter,
396
+ bodyParams: localVarBodyParameter,
397
+ headerParams: localVarHeaderParameter,
398
+ timeUnit: _timeUnit
399
+ };
400
+ },
401
+ getDownloadIdForCmFuturesTransactionHistory: async (startTime, endTime, recvWindow) => {
402
+ (0, __binance_common.assertParamExists)("getDownloadIdForCmFuturesTransactionHistory", "startTime", startTime);
403
+ (0, __binance_common.assertParamExists)("getDownloadIdForCmFuturesTransactionHistory", "endTime", endTime);
404
+ const localVarQueryParameter = {};
405
+ const localVarBodyParameter = {};
406
+ const localVarHeaderParameter = {};
407
+ if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
408
+ if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
409
+ if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
410
+ let _timeUnit;
411
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
412
+ return {
413
+ endpoint: "/papi/v1/cm/income/asyn",
414
+ method: "GET",
415
+ queryParams: localVarQueryParameter,
416
+ bodyParams: localVarBodyParameter,
417
+ headerParams: localVarHeaderParameter,
418
+ timeUnit: _timeUnit
419
+ };
420
+ },
307
421
  getDownloadIdForUmFuturesOrderHistory: async (startTime, endTime, recvWindow) => {
308
422
  (0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesOrderHistory", "startTime", startTime);
309
423
  (0, __binance_common.assertParamExists)("getDownloadIdForUmFuturesOrderHistory", "endTime", endTime);
@@ -1077,6 +1191,69 @@ var AccountApi = class {
1077
1191
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1078
1192
  }
1079
1193
  /**
1194
+ * Get CM futures order download link by Id
1195
+ *
1196
+ * Weight(IP): 10
1197
+ *
1198
+ * Security Type: USER_DATA
1199
+ *
1200
+ * Notes:
1201
+ * - Download link expiration: 7 days
1202
+ *
1203
+ * @summary Get CM Futures Order Download Link by Id (USER_DATA)
1204
+ * @param {GetCmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
1205
+ * @returns {Promise<RestApiResponse<GetCmFuturesOrderDownloadLinkByIdResponse>>}
1206
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1207
+ * @memberof AccountApi
1208
+ * @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}
1209
+ */
1210
+ async getCmFuturesOrderDownloadLinkById(requestParameters) {
1211
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmFuturesOrderDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
1212
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1213
+ }
1214
+ /**
1215
+ * Get CM futures trade download link by Id
1216
+ *
1217
+ * Weight(IP): 10
1218
+ *
1219
+ * Security Type: USER_DATA
1220
+ *
1221
+ * Notes:
1222
+ * - Download link expiration: 7 days
1223
+ *
1224
+ * @summary Get CM Futures Trade Download Link by Id (USER_DATA)
1225
+ * @param {GetCmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
1226
+ * @returns {Promise<RestApiResponse<GetCmFuturesTradeDownloadLinkByIdResponse>>}
1227
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1228
+ * @memberof AccountApi
1229
+ * @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}
1230
+ */
1231
+ async getCmFuturesTradeDownloadLinkById(requestParameters) {
1232
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmFuturesTradeDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
1233
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1234
+ }
1235
+ /**
1236
+ * Get CM futures Transaction download link by Id
1237
+ *
1238
+ * Weight(IP): 10
1239
+ *
1240
+ * Security Type: USER_DATA
1241
+ *
1242
+ * Notes:
1243
+ * - Download link expiration: 7 days
1244
+ *
1245
+ * @summary Get CM Futures Transaction Download Link by Id (USER_DATA)
1246
+ * @param {GetCmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
1247
+ * @returns {Promise<RestApiResponse<GetCmFuturesTransactionDownloadLinkByIdResponse>>}
1248
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1249
+ * @memberof AccountApi
1250
+ * @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}
1251
+ */
1252
+ async getCmFuturesTransactionDownloadLinkById(requestParameters) {
1253
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmFuturesTransactionDownloadLinkById(requestParameters?.downloadId, requestParameters?.recvWindow);
1254
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1255
+ }
1256
+ /**
1080
1257
  * Get CM Income History.
1081
1258
  *
1082
1259
  * Weight(IP): 30
@@ -1101,6 +1278,72 @@ var AccountApi = class {
1101
1278
  return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1102
1279
  }
1103
1280
  /**
1281
+ * Get download id for CM futures order history
1282
+ *
1283
+ * Weight(IP): 1500
1284
+ *
1285
+ * Security Type: USER_DATA
1286
+ *
1287
+ * Notes:
1288
+ * - Request Limitation is 10 times per month, shared by front end download page and rest api
1289
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
1290
+ *
1291
+ * @summary Get Download Id For CM Futures Order History (USER_DATA)
1292
+ * @param {GetDownloadIdForCmFuturesOrderHistoryRequest} requestParameters Request parameters.
1293
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesOrderHistoryResponse>>}
1294
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1295
+ * @memberof AccountApi
1296
+ * @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}
1297
+ */
1298
+ async getDownloadIdForCmFuturesOrderHistory(requestParameters) {
1299
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForCmFuturesOrderHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1300
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1301
+ }
1302
+ /**
1303
+ * Get download id for CM futures trade history
1304
+ *
1305
+ * Weight(IP): 1500
1306
+ *
1307
+ * Security Type: USER_DATA
1308
+ *
1309
+ * Notes:
1310
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
1311
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
1312
+ *
1313
+ * @summary Get Download Id For CM Futures Trade History (USER_DATA)
1314
+ * @param {GetDownloadIdForCmFuturesTradeHistoryRequest} requestParameters Request parameters.
1315
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTradeHistoryResponse>>}
1316
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1317
+ * @memberof AccountApi
1318
+ * @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}
1319
+ */
1320
+ async getDownloadIdForCmFuturesTradeHistory(requestParameters) {
1321
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForCmFuturesTradeHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1322
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1323
+ }
1324
+ /**
1325
+ * Get download id for CM futures transaction history
1326
+ *
1327
+ * Weight(IP): 1500
1328
+ *
1329
+ * Security Type: USER_DATA
1330
+ *
1331
+ * Notes:
1332
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
1333
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
1334
+ *
1335
+ * @summary Get Download Id For CM Futures Transaction History (USER_DATA)
1336
+ * @param {GetDownloadIdForCmFuturesTransactionHistoryRequest} requestParameters Request parameters.
1337
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTransactionHistoryResponse>>}
1338
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1339
+ * @memberof AccountApi
1340
+ * @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}
1341
+ */
1342
+ async getDownloadIdForCmFuturesTransactionHistory(requestParameters) {
1343
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getDownloadIdForCmFuturesTransactionHistory(requestParameters?.startTime, requestParameters?.endTime, requestParameters?.recvWindow);
1344
+ return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
1345
+ }
1346
+ /**
1104
1347
  * Get download id for UM futures order history
1105
1348
  *
1106
1349
  * Weight(IP): 1500
@@ -5008,6 +5251,66 @@ var RestAPI = class {
5008
5251
  return this.accountApi.getCmCurrentPositionMode(requestParameters);
5009
5252
  }
5010
5253
  /**
5254
+ * Get CM futures order download link by Id
5255
+ *
5256
+ * Weight(IP): 10
5257
+ *
5258
+ * Security Type: USER_DATA
5259
+ *
5260
+ * Notes:
5261
+ * - Download link expiration: 7 days
5262
+ *
5263
+ * @summary Get CM Futures Order Download Link by Id (USER_DATA)
5264
+ * @param {GetCmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
5265
+ *
5266
+ * @returns {Promise<RestApiResponse<GetCmFuturesOrderDownloadLinkByIdResponse>>}
5267
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5268
+ * @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}
5269
+ */
5270
+ getCmFuturesOrderDownloadLinkById(requestParameters) {
5271
+ return this.accountApi.getCmFuturesOrderDownloadLinkById(requestParameters);
5272
+ }
5273
+ /**
5274
+ * Get CM futures trade download link by Id
5275
+ *
5276
+ * Weight(IP): 10
5277
+ *
5278
+ * Security Type: USER_DATA
5279
+ *
5280
+ * Notes:
5281
+ * - Download link expiration: 7 days
5282
+ *
5283
+ * @summary Get CM Futures Trade Download Link by Id (USER_DATA)
5284
+ * @param {GetCmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
5285
+ *
5286
+ * @returns {Promise<RestApiResponse<GetCmFuturesTradeDownloadLinkByIdResponse>>}
5287
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5288
+ * @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}
5289
+ */
5290
+ getCmFuturesTradeDownloadLinkById(requestParameters) {
5291
+ return this.accountApi.getCmFuturesTradeDownloadLinkById(requestParameters);
5292
+ }
5293
+ /**
5294
+ * Get CM futures Transaction download link by Id
5295
+ *
5296
+ * Weight(IP): 10
5297
+ *
5298
+ * Security Type: USER_DATA
5299
+ *
5300
+ * Notes:
5301
+ * - Download link expiration: 7 days
5302
+ *
5303
+ * @summary Get CM Futures Transaction Download Link by Id (USER_DATA)
5304
+ * @param {GetCmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
5305
+ *
5306
+ * @returns {Promise<RestApiResponse<GetCmFuturesTransactionDownloadLinkByIdResponse>>}
5307
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5308
+ * @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}
5309
+ */
5310
+ getCmFuturesTransactionDownloadLinkById(requestParameters) {
5311
+ return this.accountApi.getCmFuturesTransactionDownloadLinkById(requestParameters);
5312
+ }
5313
+ /**
5011
5314
  * Get CM Income History.
5012
5315
  *
5013
5316
  * Weight(IP): 30
@@ -5031,6 +5334,69 @@ var RestAPI = class {
5031
5334
  return this.accountApi.getCmIncomeHistory(requestParameters);
5032
5335
  }
5033
5336
  /**
5337
+ * Get download id for CM futures order history
5338
+ *
5339
+ * Weight(IP): 1500
5340
+ *
5341
+ * Security Type: USER_DATA
5342
+ *
5343
+ * Notes:
5344
+ * - Request Limitation is 10 times per month, shared by front end download page and rest api
5345
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
5346
+ *
5347
+ * @summary Get Download Id For CM Futures Order History (USER_DATA)
5348
+ * @param {GetDownloadIdForCmFuturesOrderHistoryRequest} requestParameters Request parameters.
5349
+ *
5350
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesOrderHistoryResponse>>}
5351
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5352
+ * @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}
5353
+ */
5354
+ getDownloadIdForCmFuturesOrderHistory(requestParameters) {
5355
+ return this.accountApi.getDownloadIdForCmFuturesOrderHistory(requestParameters);
5356
+ }
5357
+ /**
5358
+ * Get download id for CM futures trade history
5359
+ *
5360
+ * Weight(IP): 1500
5361
+ *
5362
+ * Security Type: USER_DATA
5363
+ *
5364
+ * Notes:
5365
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
5366
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
5367
+ *
5368
+ * @summary Get Download Id For CM Futures Trade History (USER_DATA)
5369
+ * @param {GetDownloadIdForCmFuturesTradeHistoryRequest} requestParameters Request parameters.
5370
+ *
5371
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTradeHistoryResponse>>}
5372
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5373
+ * @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}
5374
+ */
5375
+ getDownloadIdForCmFuturesTradeHistory(requestParameters) {
5376
+ return this.accountApi.getDownloadIdForCmFuturesTradeHistory(requestParameters);
5377
+ }
5378
+ /**
5379
+ * Get download id for CM futures transaction history
5380
+ *
5381
+ * Weight(IP): 1500
5382
+ *
5383
+ * Security Type: USER_DATA
5384
+ *
5385
+ * Notes:
5386
+ * - Request Limitation is 5 times per month, shared by front end download page and rest api
5387
+ * - The time between `startTime` and `endTime` can not be longer than 1 year
5388
+ *
5389
+ * @summary Get Download Id For CM Futures Transaction History (USER_DATA)
5390
+ * @param {GetDownloadIdForCmFuturesTransactionHistoryRequest} requestParameters Request parameters.
5391
+ *
5392
+ * @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTransactionHistoryResponse>>}
5393
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
5394
+ * @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}
5395
+ */
5396
+ getDownloadIdForCmFuturesTransactionHistory(requestParameters) {
5397
+ return this.accountApi.getDownloadIdForCmFuturesTransactionHistory(requestParameters);
5398
+ }
5399
+ /**
5034
5400
  * Get download id for UM futures order history
5035
5401
  *
5036
5402
  * Weight(IP): 1500