@binance/derivatives-trading-portfolio-margin 21.1.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +0 -12
- package/dist/index.d.ts +0 -12
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -9815,12 +9815,6 @@ interface GetCmIncomeHistoryRequest {
|
|
|
9815
9815
|
* @memberof AccountApiGetCmIncomeHistory
|
|
9816
9816
|
*/
|
|
9817
9817
|
readonly endTime?: number | bigint;
|
|
9818
|
-
/**
|
|
9819
|
-
*
|
|
9820
|
-
* @type {number | bigint}
|
|
9821
|
-
* @memberof AccountApiGetCmIncomeHistory
|
|
9822
|
-
*/
|
|
9823
|
-
readonly page?: number | bigint;
|
|
9824
9818
|
/**
|
|
9825
9819
|
* Number of results returned.
|
|
9826
9820
|
* @type {number | bigint}
|
|
@@ -10073,12 +10067,6 @@ interface GetUmIncomeHistoryRequest {
|
|
|
10073
10067
|
* @memberof AccountApiGetUmIncomeHistory
|
|
10074
10068
|
*/
|
|
10075
10069
|
readonly endTime?: number | bigint;
|
|
10076
|
-
/**
|
|
10077
|
-
* Page number.
|
|
10078
|
-
* @type {number | bigint}
|
|
10079
|
-
* @memberof AccountApiGetUmIncomeHistory
|
|
10080
|
-
*/
|
|
10081
|
-
readonly page?: number | bigint;
|
|
10082
10070
|
/**
|
|
10083
10071
|
* Number of results returned.
|
|
10084
10072
|
* @type {number | bigint}
|
package/dist/index.d.ts
CHANGED
|
@@ -9816,12 +9816,6 @@ interface GetCmIncomeHistoryRequest {
|
|
|
9816
9816
|
* @memberof AccountApiGetCmIncomeHistory
|
|
9817
9817
|
*/
|
|
9818
9818
|
readonly endTime?: number | bigint;
|
|
9819
|
-
/**
|
|
9820
|
-
*
|
|
9821
|
-
* @type {number | bigint}
|
|
9822
|
-
* @memberof AccountApiGetCmIncomeHistory
|
|
9823
|
-
*/
|
|
9824
|
-
readonly page?: number | bigint;
|
|
9825
9819
|
/**
|
|
9826
9820
|
* Number of results returned.
|
|
9827
9821
|
* @type {number | bigint}
|
|
@@ -10074,12 +10068,6 @@ interface GetUmIncomeHistoryRequest {
|
|
|
10074
10068
|
* @memberof AccountApiGetUmIncomeHistory
|
|
10075
10069
|
*/
|
|
10076
10070
|
readonly endTime?: number | bigint;
|
|
10077
|
-
/**
|
|
10078
|
-
* Page number.
|
|
10079
|
-
* @type {number | bigint}
|
|
10080
|
-
* @memberof AccountApiGetUmIncomeHistory
|
|
10081
|
-
*/
|
|
10082
|
-
readonly page?: number | bigint;
|
|
10083
10071
|
/**
|
|
10084
10072
|
* Number of results returned.
|
|
10085
10073
|
* @type {number | bigint}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ let __binance_common = require("@binance/common");
|
|
|
14
14
|
|
|
15
15
|
//#region package.json
|
|
16
16
|
var name = "@binance/derivatives-trading-portfolio-margin";
|
|
17
|
-
var version = "
|
|
17
|
+
var version = "22.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -283,7 +283,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
283
283
|
timeUnit: _timeUnit
|
|
284
284
|
};
|
|
285
285
|
},
|
|
286
|
-
getCmIncomeHistory: async (symbol, incomeType, startTime, endTime,
|
|
286
|
+
getCmIncomeHistory: async (symbol, incomeType, startTime, endTime, limit, recvWindow) => {
|
|
287
287
|
const localVarQueryParameter = {};
|
|
288
288
|
const localVarBodyParameter = {};
|
|
289
289
|
const localVarHeaderParameter = {};
|
|
@@ -291,7 +291,6 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
291
291
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
292
292
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
293
293
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
294
|
-
if (page !== void 0 && page !== null) localVarQueryParameter["page"] = page;
|
|
295
294
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
296
295
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
297
296
|
let _timeUnit;
|
|
@@ -489,7 +488,7 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
489
488
|
timeUnit: _timeUnit
|
|
490
489
|
};
|
|
491
490
|
},
|
|
492
|
-
getUmIncomeHistory: async (symbol, incomeType, startTime, endTime,
|
|
491
|
+
getUmIncomeHistory: async (symbol, incomeType, startTime, endTime, limit, recvWindow) => {
|
|
493
492
|
const localVarQueryParameter = {};
|
|
494
493
|
const localVarBodyParameter = {};
|
|
495
494
|
const localVarHeaderParameter = {};
|
|
@@ -497,7 +496,6 @@ const AccountApiAxiosParamCreator = function(configuration) {
|
|
|
497
496
|
if (incomeType !== void 0 && incomeType !== null) localVarQueryParameter["incomeType"] = incomeType;
|
|
498
497
|
if (startTime !== void 0 && startTime !== null) localVarQueryParameter["startTime"] = startTime;
|
|
499
498
|
if (endTime !== void 0 && endTime !== null) localVarQueryParameter["endTime"] = endTime;
|
|
500
|
-
if (page !== void 0 && page !== null) localVarQueryParameter["page"] = page;
|
|
501
499
|
if (limit !== void 0 && limit !== null) localVarQueryParameter["limit"] = limit;
|
|
502
500
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
503
501
|
let _timeUnit;
|
|
@@ -1099,7 +1097,7 @@ var AccountApi = class {
|
|
|
1099
1097
|
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-cm-income-history Binance API Documentation}
|
|
1100
1098
|
*/
|
|
1101
1099
|
async getCmIncomeHistory(requestParameters = {}) {
|
|
1102
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.
|
|
1100
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getCmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1103
1101
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1104
1102
|
}
|
|
1105
1103
|
/**
|
|
@@ -1337,7 +1335,7 @@ var AccountApi = class {
|
|
|
1337
1335
|
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/account#get-um-income-history Binance API Documentation}
|
|
1338
1336
|
*/
|
|
1339
1337
|
async getUmIncomeHistory(requestParameters = {}) {
|
|
1340
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.
|
|
1338
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.getUmIncomeHistory(requestParameters?.symbol, requestParameters?.incomeType, requestParameters?.startTime, requestParameters?.endTime, requestParameters?.limit, requestParameters?.recvWindow);
|
|
1341
1339
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
1342
1340
|
}
|
|
1343
1341
|
/**
|