@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.d.mts +752 -11
- package/dist/index.d.ts +752 -11
- package/dist/index.js +367 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +367 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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
|
|
6
|
+
var version = "22.1.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
|
|
@@ -4997,6 +5240,66 @@ var RestAPI = class {
|
|
|
4997
5240
|
return this.accountApi.getCmCurrentPositionMode(requestParameters);
|
|
4998
5241
|
}
|
|
4999
5242
|
/**
|
|
5243
|
+
* Get CM futures order download link by Id
|
|
5244
|
+
*
|
|
5245
|
+
* Weight(IP): 10
|
|
5246
|
+
*
|
|
5247
|
+
* Security Type: USER_DATA
|
|
5248
|
+
*
|
|
5249
|
+
* Notes:
|
|
5250
|
+
* - Download link expiration: 7 days
|
|
5251
|
+
*
|
|
5252
|
+
* @summary Get CM Futures Order Download Link by Id (USER_DATA)
|
|
5253
|
+
* @param {GetCmFuturesOrderDownloadLinkByIdRequest} requestParameters Request parameters.
|
|
5254
|
+
*
|
|
5255
|
+
* @returns {Promise<RestApiResponse<GetCmFuturesOrderDownloadLinkByIdResponse>>}
|
|
5256
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5257
|
+
* @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}
|
|
5258
|
+
*/
|
|
5259
|
+
getCmFuturesOrderDownloadLinkById(requestParameters) {
|
|
5260
|
+
return this.accountApi.getCmFuturesOrderDownloadLinkById(requestParameters);
|
|
5261
|
+
}
|
|
5262
|
+
/**
|
|
5263
|
+
* Get CM futures trade download link by Id
|
|
5264
|
+
*
|
|
5265
|
+
* Weight(IP): 10
|
|
5266
|
+
*
|
|
5267
|
+
* Security Type: USER_DATA
|
|
5268
|
+
*
|
|
5269
|
+
* Notes:
|
|
5270
|
+
* - Download link expiration: 7 days
|
|
5271
|
+
*
|
|
5272
|
+
* @summary Get CM Futures Trade Download Link by Id (USER_DATA)
|
|
5273
|
+
* @param {GetCmFuturesTradeDownloadLinkByIdRequest} requestParameters Request parameters.
|
|
5274
|
+
*
|
|
5275
|
+
* @returns {Promise<RestApiResponse<GetCmFuturesTradeDownloadLinkByIdResponse>>}
|
|
5276
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5277
|
+
* @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}
|
|
5278
|
+
*/
|
|
5279
|
+
getCmFuturesTradeDownloadLinkById(requestParameters) {
|
|
5280
|
+
return this.accountApi.getCmFuturesTradeDownloadLinkById(requestParameters);
|
|
5281
|
+
}
|
|
5282
|
+
/**
|
|
5283
|
+
* Get CM futures Transaction download link by Id
|
|
5284
|
+
*
|
|
5285
|
+
* Weight(IP): 10
|
|
5286
|
+
*
|
|
5287
|
+
* Security Type: USER_DATA
|
|
5288
|
+
*
|
|
5289
|
+
* Notes:
|
|
5290
|
+
* - Download link expiration: 7 days
|
|
5291
|
+
*
|
|
5292
|
+
* @summary Get CM Futures Transaction Download Link by Id (USER_DATA)
|
|
5293
|
+
* @param {GetCmFuturesTransactionDownloadLinkByIdRequest} requestParameters Request parameters.
|
|
5294
|
+
*
|
|
5295
|
+
* @returns {Promise<RestApiResponse<GetCmFuturesTransactionDownloadLinkByIdResponse>>}
|
|
5296
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5297
|
+
* @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}
|
|
5298
|
+
*/
|
|
5299
|
+
getCmFuturesTransactionDownloadLinkById(requestParameters) {
|
|
5300
|
+
return this.accountApi.getCmFuturesTransactionDownloadLinkById(requestParameters);
|
|
5301
|
+
}
|
|
5302
|
+
/**
|
|
5000
5303
|
* Get CM Income History.
|
|
5001
5304
|
*
|
|
5002
5305
|
* Weight(IP): 30
|
|
@@ -5020,6 +5323,69 @@ var RestAPI = class {
|
|
|
5020
5323
|
return this.accountApi.getCmIncomeHistory(requestParameters);
|
|
5021
5324
|
}
|
|
5022
5325
|
/**
|
|
5326
|
+
* Get download id for CM futures order history
|
|
5327
|
+
*
|
|
5328
|
+
* Weight(IP): 1500
|
|
5329
|
+
*
|
|
5330
|
+
* Security Type: USER_DATA
|
|
5331
|
+
*
|
|
5332
|
+
* Notes:
|
|
5333
|
+
* - Request Limitation is 10 times per month, shared by front end download page and rest api
|
|
5334
|
+
* - The time between `startTime` and `endTime` can not be longer than 1 year
|
|
5335
|
+
*
|
|
5336
|
+
* @summary Get Download Id For CM Futures Order History (USER_DATA)
|
|
5337
|
+
* @param {GetDownloadIdForCmFuturesOrderHistoryRequest} requestParameters Request parameters.
|
|
5338
|
+
*
|
|
5339
|
+
* @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesOrderHistoryResponse>>}
|
|
5340
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5341
|
+
* @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}
|
|
5342
|
+
*/
|
|
5343
|
+
getDownloadIdForCmFuturesOrderHistory(requestParameters) {
|
|
5344
|
+
return this.accountApi.getDownloadIdForCmFuturesOrderHistory(requestParameters);
|
|
5345
|
+
}
|
|
5346
|
+
/**
|
|
5347
|
+
* Get download id for CM futures trade history
|
|
5348
|
+
*
|
|
5349
|
+
* Weight(IP): 1500
|
|
5350
|
+
*
|
|
5351
|
+
* Security Type: USER_DATA
|
|
5352
|
+
*
|
|
5353
|
+
* Notes:
|
|
5354
|
+
* - Request Limitation is 5 times per month, shared by front end download page and rest api
|
|
5355
|
+
* - The time between `startTime` and `endTime` can not be longer than 1 year
|
|
5356
|
+
*
|
|
5357
|
+
* @summary Get Download Id For CM Futures Trade History (USER_DATA)
|
|
5358
|
+
* @param {GetDownloadIdForCmFuturesTradeHistoryRequest} requestParameters Request parameters.
|
|
5359
|
+
*
|
|
5360
|
+
* @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTradeHistoryResponse>>}
|
|
5361
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5362
|
+
* @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}
|
|
5363
|
+
*/
|
|
5364
|
+
getDownloadIdForCmFuturesTradeHistory(requestParameters) {
|
|
5365
|
+
return this.accountApi.getDownloadIdForCmFuturesTradeHistory(requestParameters);
|
|
5366
|
+
}
|
|
5367
|
+
/**
|
|
5368
|
+
* Get download id for CM futures transaction history
|
|
5369
|
+
*
|
|
5370
|
+
* Weight(IP): 1500
|
|
5371
|
+
*
|
|
5372
|
+
* Security Type: USER_DATA
|
|
5373
|
+
*
|
|
5374
|
+
* Notes:
|
|
5375
|
+
* - Request Limitation is 5 times per month, shared by front end download page and rest api
|
|
5376
|
+
* - The time between `startTime` and `endTime` can not be longer than 1 year
|
|
5377
|
+
*
|
|
5378
|
+
* @summary Get Download Id For CM Futures Transaction History (USER_DATA)
|
|
5379
|
+
* @param {GetDownloadIdForCmFuturesTransactionHistoryRequest} requestParameters Request parameters.
|
|
5380
|
+
*
|
|
5381
|
+
* @returns {Promise<RestApiResponse<GetDownloadIdForCmFuturesTransactionHistoryResponse>>}
|
|
5382
|
+
* @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
|
|
5383
|
+
* @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}
|
|
5384
|
+
*/
|
|
5385
|
+
getDownloadIdForCmFuturesTransactionHistory(requestParameters) {
|
|
5386
|
+
return this.accountApi.getDownloadIdForCmFuturesTransactionHistory(requestParameters);
|
|
5387
|
+
}
|
|
5388
|
+
/**
|
|
5023
5389
|
* Get download id for UM futures order history
|
|
5024
5390
|
*
|
|
5025
5391
|
* Weight(IP): 1500
|