@binance/derivatives-trading-portfolio-margin 16.0.0 → 17.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 +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -3835,6 +3835,12 @@ interface ModifyCmOrderResponse {
|
|
|
3835
3835
|
* @memberof ModifyCmOrderResponse
|
|
3836
3836
|
*/
|
|
3837
3837
|
clientOrderId?: string;
|
|
3838
|
+
/**
|
|
3839
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3840
|
+
* @type {number | bigint}
|
|
3841
|
+
* @memberof ModifyCmOrderResponse
|
|
3842
|
+
*/
|
|
3843
|
+
modifyId?: number | bigint;
|
|
3838
3844
|
/**
|
|
3839
3845
|
* Price.
|
|
3840
3846
|
* @type {string}
|
|
@@ -3958,6 +3964,12 @@ interface ModifyUmOrderResponse {
|
|
|
3958
3964
|
* @memberof ModifyUmOrderResponse
|
|
3959
3965
|
*/
|
|
3960
3966
|
clientOrderId?: string;
|
|
3967
|
+
/**
|
|
3968
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3969
|
+
* @type {number | bigint}
|
|
3970
|
+
* @memberof ModifyUmOrderResponse
|
|
3971
|
+
*/
|
|
3972
|
+
modifyId?: number | bigint;
|
|
3961
3973
|
/**
|
|
3962
3974
|
* Price.
|
|
3963
3975
|
* @type {string}
|
|
@@ -6465,6 +6477,12 @@ interface QueryCmModifyOrderHistoryResponseInnerAmendment {
|
|
|
6465
6477
|
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6466
6478
|
*/
|
|
6467
6479
|
count?: number | bigint;
|
|
6480
|
+
/**
|
|
6481
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
6482
|
+
* @type {number | bigint}
|
|
6483
|
+
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6484
|
+
*/
|
|
6485
|
+
modifyId?: number | bigint;
|
|
6468
6486
|
}
|
|
6469
6487
|
//#endregion
|
|
6470
6488
|
//#region src/rest-api/types/query-cm-modify-order-history-response-inner.d.ts
|
|
@@ -14056,6 +14074,12 @@ interface ModifyCmOrderRequest {
|
|
|
14056
14074
|
* @memberof TradeApiModifyCmOrder
|
|
14057
14075
|
*/
|
|
14058
14076
|
readonly priceMatch?: ModifyCmOrderPriceMatchEnum;
|
|
14077
|
+
/**
|
|
14078
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14079
|
+
* @type {number | bigint}
|
|
14080
|
+
* @memberof TradeApiModifyCmOrder
|
|
14081
|
+
*/
|
|
14082
|
+
readonly modifyId?: number | bigint;
|
|
14059
14083
|
/**
|
|
14060
14084
|
*
|
|
14061
14085
|
* @type {number | bigint}
|
|
@@ -14110,6 +14134,12 @@ interface ModifyUmOrderRequest {
|
|
|
14110
14134
|
* @memberof TradeApiModifyUmOrder
|
|
14111
14135
|
*/
|
|
14112
14136
|
readonly priceMatch?: ModifyUmOrderPriceMatchEnum;
|
|
14137
|
+
/**
|
|
14138
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14139
|
+
* @type {number | bigint}
|
|
14140
|
+
* @memberof TradeApiModifyUmOrder
|
|
14141
|
+
*/
|
|
14142
|
+
readonly modifyId?: number | bigint;
|
|
14113
14143
|
/**
|
|
14114
14144
|
*
|
|
14115
14145
|
* @type {number | bigint}
|
|
@@ -20623,6 +20653,12 @@ interface OrderTradeUpdateO {
|
|
|
20623
20653
|
* @memberof OrderTradeUpdateO
|
|
20624
20654
|
*/
|
|
20625
20655
|
i?: number | bigint;
|
|
20656
|
+
/**
|
|
20657
|
+
* modifyId, only pushed for AMENDMENT (order modification) events when a modifyId was provided in the request
|
|
20658
|
+
* @type {string}
|
|
20659
|
+
* @memberof OrderTradeUpdateO
|
|
20660
|
+
*/
|
|
20661
|
+
M?: string;
|
|
20626
20662
|
/**
|
|
20627
20663
|
* Order Last Filled Quantity
|
|
20628
20664
|
* @type {string}
|
package/dist/index.d.ts
CHANGED
|
@@ -3836,6 +3836,12 @@ interface ModifyCmOrderResponse {
|
|
|
3836
3836
|
* @memberof ModifyCmOrderResponse
|
|
3837
3837
|
*/
|
|
3838
3838
|
clientOrderId?: string;
|
|
3839
|
+
/**
|
|
3840
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3841
|
+
* @type {number | bigint}
|
|
3842
|
+
* @memberof ModifyCmOrderResponse
|
|
3843
|
+
*/
|
|
3844
|
+
modifyId?: number | bigint;
|
|
3839
3845
|
/**
|
|
3840
3846
|
* Price.
|
|
3841
3847
|
* @type {string}
|
|
@@ -3959,6 +3965,12 @@ interface ModifyUmOrderResponse {
|
|
|
3959
3965
|
* @memberof ModifyUmOrderResponse
|
|
3960
3966
|
*/
|
|
3961
3967
|
clientOrderId?: string;
|
|
3968
|
+
/**
|
|
3969
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3970
|
+
* @type {number | bigint}
|
|
3971
|
+
* @memberof ModifyUmOrderResponse
|
|
3972
|
+
*/
|
|
3973
|
+
modifyId?: number | bigint;
|
|
3962
3974
|
/**
|
|
3963
3975
|
* Price.
|
|
3964
3976
|
* @type {string}
|
|
@@ -6466,6 +6478,12 @@ interface QueryCmModifyOrderHistoryResponseInnerAmendment {
|
|
|
6466
6478
|
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6467
6479
|
*/
|
|
6468
6480
|
count?: number | bigint;
|
|
6481
|
+
/**
|
|
6482
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
6483
|
+
* @type {number | bigint}
|
|
6484
|
+
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6485
|
+
*/
|
|
6486
|
+
modifyId?: number | bigint;
|
|
6469
6487
|
}
|
|
6470
6488
|
//#endregion
|
|
6471
6489
|
//#region src/rest-api/types/query-cm-modify-order-history-response-inner.d.ts
|
|
@@ -14057,6 +14075,12 @@ interface ModifyCmOrderRequest {
|
|
|
14057
14075
|
* @memberof TradeApiModifyCmOrder
|
|
14058
14076
|
*/
|
|
14059
14077
|
readonly priceMatch?: ModifyCmOrderPriceMatchEnum;
|
|
14078
|
+
/**
|
|
14079
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14080
|
+
* @type {number | bigint}
|
|
14081
|
+
* @memberof TradeApiModifyCmOrder
|
|
14082
|
+
*/
|
|
14083
|
+
readonly modifyId?: number | bigint;
|
|
14060
14084
|
/**
|
|
14061
14085
|
*
|
|
14062
14086
|
* @type {number | bigint}
|
|
@@ -14111,6 +14135,12 @@ interface ModifyUmOrderRequest {
|
|
|
14111
14135
|
* @memberof TradeApiModifyUmOrder
|
|
14112
14136
|
*/
|
|
14113
14137
|
readonly priceMatch?: ModifyUmOrderPriceMatchEnum;
|
|
14138
|
+
/**
|
|
14139
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14140
|
+
* @type {number | bigint}
|
|
14141
|
+
* @memberof TradeApiModifyUmOrder
|
|
14142
|
+
*/
|
|
14143
|
+
readonly modifyId?: number | bigint;
|
|
14114
14144
|
/**
|
|
14115
14145
|
*
|
|
14116
14146
|
* @type {number | bigint}
|
|
@@ -20624,6 +20654,12 @@ interface OrderTradeUpdateO {
|
|
|
20624
20654
|
* @memberof OrderTradeUpdateO
|
|
20625
20655
|
*/
|
|
20626
20656
|
i?: number | bigint;
|
|
20657
|
+
/**
|
|
20658
|
+
* modifyId, only pushed for AMENDMENT (order modification) events when a modifyId was provided in the request
|
|
20659
|
+
* @type {string}
|
|
20660
|
+
* @memberof OrderTradeUpdateO
|
|
20661
|
+
*/
|
|
20662
|
+
M?: string;
|
|
20627
20663
|
/**
|
|
20628
20664
|
* Order Last Filled Quantity
|
|
20629
20665
|
* @type {string}
|
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 = "17.0.0";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -2248,7 +2248,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2248
2248
|
timeUnit: _timeUnit
|
|
2249
2249
|
};
|
|
2250
2250
|
},
|
|
2251
|
-
modifyCmOrder: async (symbol, side, quantity, price, orderId, origClientOrderId, priceMatch, recvWindow) => {
|
|
2251
|
+
modifyCmOrder: async (symbol, side, quantity, price, orderId, origClientOrderId, priceMatch, modifyId, recvWindow) => {
|
|
2252
2252
|
(0, __binance_common.assertParamExists)("modifyCmOrder", "symbol", symbol);
|
|
2253
2253
|
(0, __binance_common.assertParamExists)("modifyCmOrder", "side", side);
|
|
2254
2254
|
(0, __binance_common.assertParamExists)("modifyCmOrder", "quantity", quantity);
|
|
@@ -2263,6 +2263,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2263
2263
|
if (quantity !== void 0 && quantity !== null) localVarQueryParameter["quantity"] = quantity;
|
|
2264
2264
|
if (price !== void 0 && price !== null) localVarQueryParameter["price"] = price;
|
|
2265
2265
|
if (priceMatch !== void 0 && priceMatch !== null) localVarQueryParameter["priceMatch"] = priceMatch;
|
|
2266
|
+
if (modifyId !== void 0 && modifyId !== null) localVarQueryParameter["modifyId"] = modifyId;
|
|
2266
2267
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2267
2268
|
let _timeUnit;
|
|
2268
2269
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -2275,7 +2276,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2275
2276
|
timeUnit: _timeUnit
|
|
2276
2277
|
};
|
|
2277
2278
|
},
|
|
2278
|
-
modifyUmOrder: async (symbol, side, quantity, price, orderId, origClientOrderId, priceMatch, recvWindow) => {
|
|
2279
|
+
modifyUmOrder: async (symbol, side, quantity, price, orderId, origClientOrderId, priceMatch, modifyId, recvWindow) => {
|
|
2279
2280
|
(0, __binance_common.assertParamExists)("modifyUmOrder", "symbol", symbol);
|
|
2280
2281
|
(0, __binance_common.assertParamExists)("modifyUmOrder", "side", side);
|
|
2281
2282
|
(0, __binance_common.assertParamExists)("modifyUmOrder", "quantity", quantity);
|
|
@@ -2290,6 +2291,7 @@ const TradeApiAxiosParamCreator = function(configuration) {
|
|
|
2290
2291
|
if (quantity !== void 0 && quantity !== null) localVarQueryParameter["quantity"] = quantity;
|
|
2291
2292
|
if (price !== void 0 && price !== null) localVarQueryParameter["price"] = price;
|
|
2292
2293
|
if (priceMatch !== void 0 && priceMatch !== null) localVarQueryParameter["priceMatch"] = priceMatch;
|
|
2294
|
+
if (modifyId !== void 0 && modifyId !== null) localVarQueryParameter["modifyId"] = modifyId;
|
|
2293
2295
|
if (recvWindow !== void 0 && recvWindow !== null) localVarQueryParameter["recvWindow"] = recvWindow;
|
|
2294
2296
|
let _timeUnit;
|
|
2295
2297
|
if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
|
|
@@ -3646,7 +3648,7 @@ var TradeApi = class {
|
|
|
3646
3648
|
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#modify-cm-order Binance API Documentation}
|
|
3647
3649
|
*/
|
|
3648
3650
|
async modifyCmOrder(requestParameters) {
|
|
3649
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyCmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
3651
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyCmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.modifyId, requestParameters?.recvWindow);
|
|
3650
3652
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3651
3653
|
}
|
|
3652
3654
|
/**
|
|
@@ -3671,7 +3673,7 @@ var TradeApi = class {
|
|
|
3671
3673
|
* @see {@link https://developers.binance.com/en/docs/catalog/advanced-trading-derivatives-trading-portfolio-margin/api/rest-api/trade#modify-um-order Binance API Documentation}
|
|
3672
3674
|
*/
|
|
3673
3675
|
async modifyUmOrder(requestParameters) {
|
|
3674
|
-
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyUmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.recvWindow);
|
|
3676
|
+
const localVarAxiosArgs = await this.localVarAxiosParamCreator.modifyUmOrder(requestParameters?.symbol, requestParameters?.side, requestParameters?.quantity, requestParameters?.price, requestParameters?.orderId, requestParameters?.origClientOrderId, requestParameters?.priceMatch, requestParameters?.modifyId, requestParameters?.recvWindow);
|
|
3675
3677
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3676
3678
|
}
|
|
3677
3679
|
/**
|