@binance/derivatives-trading-portfolio-margin 16.0.1 → 18.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 +49 -28
- package/dist/index.d.ts +49 -28
- package/dist/index.js +17 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3836,17 +3836,17 @@ interface ModifyCmOrderResponse {
|
|
|
3836
3836
|
*/
|
|
3837
3837
|
clientOrderId?: string;
|
|
3838
3838
|
/**
|
|
3839
|
-
*
|
|
3840
|
-
* @type {
|
|
3839
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3840
|
+
* @type {number | bigint}
|
|
3841
3841
|
* @memberof ModifyCmOrderResponse
|
|
3842
3842
|
*/
|
|
3843
|
-
|
|
3843
|
+
modifyId?: number | bigint;
|
|
3844
3844
|
/**
|
|
3845
|
-
*
|
|
3845
|
+
* Price.
|
|
3846
3846
|
* @type {string}
|
|
3847
3847
|
* @memberof ModifyCmOrderResponse
|
|
3848
3848
|
*/
|
|
3849
|
-
|
|
3849
|
+
price?: string;
|
|
3850
3850
|
/**
|
|
3851
3851
|
* Orig Qty.
|
|
3852
3852
|
* @type {string}
|
|
@@ -3865,12 +3865,6 @@ interface ModifyCmOrderResponse {
|
|
|
3865
3865
|
* @memberof ModifyCmOrderResponse
|
|
3866
3866
|
*/
|
|
3867
3867
|
cumQty?: string;
|
|
3868
|
-
/**
|
|
3869
|
-
* Cum Base.
|
|
3870
|
-
* @type {string}
|
|
3871
|
-
* @memberof ModifyCmOrderResponse
|
|
3872
|
-
*/
|
|
3873
|
-
cumBase?: string;
|
|
3874
3868
|
/**
|
|
3875
3869
|
* Time In Force.
|
|
3876
3870
|
* @type {string}
|
|
@@ -3959,17 +3953,17 @@ interface ModifyUmOrderResponse {
|
|
|
3959
3953
|
*/
|
|
3960
3954
|
clientOrderId?: string;
|
|
3961
3955
|
/**
|
|
3962
|
-
*
|
|
3963
|
-
* @type {
|
|
3956
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3957
|
+
* @type {number | bigint}
|
|
3964
3958
|
* @memberof ModifyUmOrderResponse
|
|
3965
3959
|
*/
|
|
3966
|
-
|
|
3960
|
+
modifyId?: number | bigint;
|
|
3967
3961
|
/**
|
|
3968
|
-
*
|
|
3962
|
+
* Price.
|
|
3969
3963
|
* @type {string}
|
|
3970
3964
|
* @memberof ModifyUmOrderResponse
|
|
3971
3965
|
*/
|
|
3972
|
-
|
|
3966
|
+
price?: string;
|
|
3973
3967
|
/**
|
|
3974
3968
|
* Orig Qty.
|
|
3975
3969
|
* @type {string}
|
|
@@ -3988,12 +3982,6 @@ interface ModifyUmOrderResponse {
|
|
|
3988
3982
|
* @memberof ModifyUmOrderResponse
|
|
3989
3983
|
*/
|
|
3990
3984
|
cumQty?: string;
|
|
3991
|
-
/**
|
|
3992
|
-
* Cum Quote.
|
|
3993
|
-
* @type {string}
|
|
3994
|
-
* @memberof ModifyUmOrderResponse
|
|
3995
|
-
*/
|
|
3996
|
-
cumQuote?: string;
|
|
3997
3985
|
/**
|
|
3998
3986
|
* Time In Force.
|
|
3999
3987
|
* @type {string}
|
|
@@ -6465,6 +6453,12 @@ interface QueryCmModifyOrderHistoryResponseInnerAmendment {
|
|
|
6465
6453
|
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6466
6454
|
*/
|
|
6467
6455
|
count?: number | bigint;
|
|
6456
|
+
/**
|
|
6457
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
6458
|
+
* @type {number | bigint}
|
|
6459
|
+
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6460
|
+
*/
|
|
6461
|
+
modifyId?: number | bigint;
|
|
6468
6462
|
}
|
|
6469
6463
|
//#endregion
|
|
6470
6464
|
//#region src/rest-api/types/query-cm-modify-order-history-response-inner.d.ts
|
|
@@ -12604,7 +12598,8 @@ interface TradeApiInterface {
|
|
|
12604
12598
|
* - Both `quantity` and `price` must be sent
|
|
12605
12599
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
12606
12600
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12607
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
12601
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
12602
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
12608
12603
|
*
|
|
12609
12604
|
* @summary Modify CM Order (TRADE)
|
|
12610
12605
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -12625,7 +12620,9 @@ interface TradeApiInterface {
|
|
|
12625
12620
|
* - Both quantity and price must be sent
|
|
12626
12621
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
12627
12622
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12628
|
-
* - when the order is in partially filled status and the new quantity
|
|
12623
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
12624
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
12625
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
12629
12626
|
*
|
|
12630
12627
|
* @summary Modify UM Order (TRADE)
|
|
12631
12628
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -14056,6 +14053,12 @@ interface ModifyCmOrderRequest {
|
|
|
14056
14053
|
* @memberof TradeApiModifyCmOrder
|
|
14057
14054
|
*/
|
|
14058
14055
|
readonly priceMatch?: ModifyCmOrderPriceMatchEnum;
|
|
14056
|
+
/**
|
|
14057
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14058
|
+
* @type {number | bigint}
|
|
14059
|
+
* @memberof TradeApiModifyCmOrder
|
|
14060
|
+
*/
|
|
14061
|
+
readonly modifyId?: number | bigint;
|
|
14059
14062
|
/**
|
|
14060
14063
|
*
|
|
14061
14064
|
* @type {number | bigint}
|
|
@@ -14110,6 +14113,12 @@ interface ModifyUmOrderRequest {
|
|
|
14110
14113
|
* @memberof TradeApiModifyUmOrder
|
|
14111
14114
|
*/
|
|
14112
14115
|
readonly priceMatch?: ModifyUmOrderPriceMatchEnum;
|
|
14116
|
+
/**
|
|
14117
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14118
|
+
* @type {number | bigint}
|
|
14119
|
+
* @memberof TradeApiModifyUmOrder
|
|
14120
|
+
*/
|
|
14121
|
+
readonly modifyId?: number | bigint;
|
|
14113
14122
|
/**
|
|
14114
14123
|
*
|
|
14115
14124
|
* @type {number | bigint}
|
|
@@ -16169,7 +16178,8 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16169
16178
|
* - Both `quantity` and `price` must be sent
|
|
16170
16179
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
16171
16180
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16172
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
16181
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
16182
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
16173
16183
|
*
|
|
16174
16184
|
* @summary Modify CM Order (TRADE)
|
|
16175
16185
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -16191,7 +16201,9 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16191
16201
|
* - Both quantity and price must be sent
|
|
16192
16202
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
16193
16203
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16194
|
-
* - when the order is in partially filled status and the new quantity
|
|
16204
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
16205
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
16206
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
16195
16207
|
*
|
|
16196
16208
|
* @summary Modify UM Order (TRADE)
|
|
16197
16209
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -18558,7 +18570,8 @@ declare class RestAPI {
|
|
|
18558
18570
|
* - Both `quantity` and `price` must be sent
|
|
18559
18571
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
18560
18572
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18561
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
18573
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
18574
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
18562
18575
|
*
|
|
18563
18576
|
* @summary Modify CM Order (TRADE)
|
|
18564
18577
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -18580,7 +18593,9 @@ declare class RestAPI {
|
|
|
18580
18593
|
* - Both quantity and price must be sent
|
|
18581
18594
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
18582
18595
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18583
|
-
* - when the order is in partially filled status and the new quantity
|
|
18596
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
18597
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
18598
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
18584
18599
|
*
|
|
18585
18600
|
* @summary Modify UM Order (TRADE)
|
|
18586
18601
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -20623,6 +20638,12 @@ interface OrderTradeUpdateO {
|
|
|
20623
20638
|
* @memberof OrderTradeUpdateO
|
|
20624
20639
|
*/
|
|
20625
20640
|
i?: number | bigint;
|
|
20641
|
+
/**
|
|
20642
|
+
* modifyId, only pushed for AMENDMENT (order modification) events when a modifyId was provided in the request
|
|
20643
|
+
* @type {string}
|
|
20644
|
+
* @memberof OrderTradeUpdateO
|
|
20645
|
+
*/
|
|
20646
|
+
M?: string;
|
|
20626
20647
|
/**
|
|
20627
20648
|
* Order Last Filled Quantity
|
|
20628
20649
|
* @type {string}
|
package/dist/index.d.ts
CHANGED
|
@@ -3837,17 +3837,17 @@ interface ModifyCmOrderResponse {
|
|
|
3837
3837
|
*/
|
|
3838
3838
|
clientOrderId?: string;
|
|
3839
3839
|
/**
|
|
3840
|
-
*
|
|
3841
|
-
* @type {
|
|
3840
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3841
|
+
* @type {number | bigint}
|
|
3842
3842
|
* @memberof ModifyCmOrderResponse
|
|
3843
3843
|
*/
|
|
3844
|
-
|
|
3844
|
+
modifyId?: number | bigint;
|
|
3845
3845
|
/**
|
|
3846
|
-
*
|
|
3846
|
+
* Price.
|
|
3847
3847
|
* @type {string}
|
|
3848
3848
|
* @memberof ModifyCmOrderResponse
|
|
3849
3849
|
*/
|
|
3850
|
-
|
|
3850
|
+
price?: string;
|
|
3851
3851
|
/**
|
|
3852
3852
|
* Orig Qty.
|
|
3853
3853
|
* @type {string}
|
|
@@ -3866,12 +3866,6 @@ interface ModifyCmOrderResponse {
|
|
|
3866
3866
|
* @memberof ModifyCmOrderResponse
|
|
3867
3867
|
*/
|
|
3868
3868
|
cumQty?: string;
|
|
3869
|
-
/**
|
|
3870
|
-
* Cum Base.
|
|
3871
|
-
* @type {string}
|
|
3872
|
-
* @memberof ModifyCmOrderResponse
|
|
3873
|
-
*/
|
|
3874
|
-
cumBase?: string;
|
|
3875
3869
|
/**
|
|
3876
3870
|
* Time In Force.
|
|
3877
3871
|
* @type {string}
|
|
@@ -3960,17 +3954,17 @@ interface ModifyUmOrderResponse {
|
|
|
3960
3954
|
*/
|
|
3961
3955
|
clientOrderId?: string;
|
|
3962
3956
|
/**
|
|
3963
|
-
*
|
|
3964
|
-
* @type {
|
|
3957
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
3958
|
+
* @type {number | bigint}
|
|
3965
3959
|
* @memberof ModifyUmOrderResponse
|
|
3966
3960
|
*/
|
|
3967
|
-
|
|
3961
|
+
modifyId?: number | bigint;
|
|
3968
3962
|
/**
|
|
3969
|
-
*
|
|
3963
|
+
* Price.
|
|
3970
3964
|
* @type {string}
|
|
3971
3965
|
* @memberof ModifyUmOrderResponse
|
|
3972
3966
|
*/
|
|
3973
|
-
|
|
3967
|
+
price?: string;
|
|
3974
3968
|
/**
|
|
3975
3969
|
* Orig Qty.
|
|
3976
3970
|
* @type {string}
|
|
@@ -3989,12 +3983,6 @@ interface ModifyUmOrderResponse {
|
|
|
3989
3983
|
* @memberof ModifyUmOrderResponse
|
|
3990
3984
|
*/
|
|
3991
3985
|
cumQty?: string;
|
|
3992
|
-
/**
|
|
3993
|
-
* Cum Quote.
|
|
3994
|
-
* @type {string}
|
|
3995
|
-
* @memberof ModifyUmOrderResponse
|
|
3996
|
-
*/
|
|
3997
|
-
cumQuote?: string;
|
|
3998
3986
|
/**
|
|
3999
3987
|
* Time In Force.
|
|
4000
3988
|
* @type {string}
|
|
@@ -6466,6 +6454,12 @@ interface QueryCmModifyOrderHistoryResponseInnerAmendment {
|
|
|
6466
6454
|
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6467
6455
|
*/
|
|
6468
6456
|
count?: number | bigint;
|
|
6457
|
+
/**
|
|
6458
|
+
* user-defined modification identifier, only returned if provided in the request
|
|
6459
|
+
* @type {number | bigint}
|
|
6460
|
+
* @memberof QueryCmModifyOrderHistoryResponseInnerAmendment
|
|
6461
|
+
*/
|
|
6462
|
+
modifyId?: number | bigint;
|
|
6469
6463
|
}
|
|
6470
6464
|
//#endregion
|
|
6471
6465
|
//#region src/rest-api/types/query-cm-modify-order-history-response-inner.d.ts
|
|
@@ -12605,7 +12599,8 @@ interface TradeApiInterface {
|
|
|
12605
12599
|
* - Both `quantity` and `price` must be sent
|
|
12606
12600
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
12607
12601
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12608
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
12602
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
12603
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
12609
12604
|
*
|
|
12610
12605
|
* @summary Modify CM Order (TRADE)
|
|
12611
12606
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -12626,7 +12621,9 @@ interface TradeApiInterface {
|
|
|
12626
12621
|
* - Both quantity and price must be sent
|
|
12627
12622
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
12628
12623
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12629
|
-
* - when the order is in partially filled status and the new quantity
|
|
12624
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
12625
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
12626
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
12630
12627
|
*
|
|
12631
12628
|
* @summary Modify UM Order (TRADE)
|
|
12632
12629
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -14057,6 +14054,12 @@ interface ModifyCmOrderRequest {
|
|
|
14057
14054
|
* @memberof TradeApiModifyCmOrder
|
|
14058
14055
|
*/
|
|
14059
14056
|
readonly priceMatch?: ModifyCmOrderPriceMatchEnum;
|
|
14057
|
+
/**
|
|
14058
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14059
|
+
* @type {number | bigint}
|
|
14060
|
+
* @memberof TradeApiModifyCmOrder
|
|
14061
|
+
*/
|
|
14062
|
+
readonly modifyId?: number | bigint;
|
|
14060
14063
|
/**
|
|
14061
14064
|
*
|
|
14062
14065
|
* @type {number | bigint}
|
|
@@ -14111,6 +14114,12 @@ interface ModifyUmOrderRequest {
|
|
|
14111
14114
|
* @memberof TradeApiModifyUmOrder
|
|
14112
14115
|
*/
|
|
14113
14116
|
readonly priceMatch?: ModifyUmOrderPriceMatchEnum;
|
|
14117
|
+
/**
|
|
14118
|
+
* User-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
|
|
14119
|
+
* @type {number | bigint}
|
|
14120
|
+
* @memberof TradeApiModifyUmOrder
|
|
14121
|
+
*/
|
|
14122
|
+
readonly modifyId?: number | bigint;
|
|
14114
14123
|
/**
|
|
14115
14124
|
*
|
|
14116
14125
|
* @type {number | bigint}
|
|
@@ -16170,7 +16179,8 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16170
16179
|
* - Both `quantity` and `price` must be sent
|
|
16171
16180
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
16172
16181
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16173
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
16182
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
16183
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
16174
16184
|
*
|
|
16175
16185
|
* @summary Modify CM Order (TRADE)
|
|
16176
16186
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -16192,7 +16202,9 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16192
16202
|
* - Both quantity and price must be sent
|
|
16193
16203
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
16194
16204
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16195
|
-
* - when the order is in partially filled status and the new quantity
|
|
16205
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
16206
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
16207
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
16196
16208
|
*
|
|
16197
16209
|
* @summary Modify UM Order (TRADE)
|
|
16198
16210
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -18559,7 +18571,8 @@ declare class RestAPI {
|
|
|
18559
18571
|
* - Both `quantity` and `price` must be sent
|
|
18560
18572
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
18561
18573
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18562
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
18574
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
18575
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
18563
18576
|
*
|
|
18564
18577
|
* @summary Modify CM Order (TRADE)
|
|
18565
18578
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -18581,7 +18594,9 @@ declare class RestAPI {
|
|
|
18581
18594
|
* - Both quantity and price must be sent
|
|
18582
18595
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
18583
18596
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18584
|
-
* - when the order is in partially filled status and the new quantity
|
|
18597
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
18598
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
18599
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
18585
18600
|
*
|
|
18586
18601
|
* @summary Modify UM Order (TRADE)
|
|
18587
18602
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -20624,6 +20639,12 @@ interface OrderTradeUpdateO {
|
|
|
20624
20639
|
* @memberof OrderTradeUpdateO
|
|
20625
20640
|
*/
|
|
20626
20641
|
i?: number | bigint;
|
|
20642
|
+
/**
|
|
20643
|
+
* modifyId, only pushed for AMENDMENT (order modification) events when a modifyId was provided in the request
|
|
20644
|
+
* @type {string}
|
|
20645
|
+
* @memberof OrderTradeUpdateO
|
|
20646
|
+
*/
|
|
20647
|
+
M?: string;
|
|
20627
20648
|
/**
|
|
20628
20649
|
* Order Last Filled Quantity
|
|
20629
20650
|
* @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 = "18.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;
|
|
@@ -3636,7 +3638,8 @@ var TradeApi = class {
|
|
|
3636
3638
|
* - Both `quantity` and `price` must be sent
|
|
3637
3639
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
3638
3640
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
3639
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
3641
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
3642
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
3640
3643
|
*
|
|
3641
3644
|
* @summary Modify CM Order (TRADE)
|
|
3642
3645
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -3646,7 +3649,7 @@ var TradeApi = class {
|
|
|
3646
3649
|
* @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
3650
|
*/
|
|
3648
3651
|
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);
|
|
3652
|
+
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
3653
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3651
3654
|
}
|
|
3652
3655
|
/**
|
|
@@ -3661,7 +3664,9 @@ var TradeApi = class {
|
|
|
3661
3664
|
* - Both quantity and price must be sent
|
|
3662
3665
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
3663
3666
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
3664
|
-
* - when the order is in partially filled status and the new quantity
|
|
3667
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
3668
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
3669
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
3665
3670
|
*
|
|
3666
3671
|
* @summary Modify UM Order (TRADE)
|
|
3667
3672
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -3671,7 +3676,7 @@ var TradeApi = class {
|
|
|
3671
3676
|
* @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
3677
|
*/
|
|
3673
3678
|
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);
|
|
3679
|
+
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
3680
|
return (0, __binance_common.sendRequest)(this.configuration, localVarAxiosArgs.endpoint, localVarAxiosArgs.method, localVarAxiosArgs.queryParams, localVarAxiosArgs.bodyParams, localVarAxiosArgs.headerParams, localVarAxiosArgs?.timeUnit, { isSigned: true });
|
|
3676
3681
|
}
|
|
3677
3682
|
/**
|
|
@@ -6382,7 +6387,8 @@ var RestAPI = class {
|
|
|
6382
6387
|
* - Both `quantity` and `price` must be sent
|
|
6383
6388
|
* - When the new `quantity` or `price` doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
6384
6389
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
6385
|
-
* - when the order is in partially filled status and the new `quantity`
|
|
6390
|
+
* - when the order is in partially filled status and the new `quantity` <= `executedQty`
|
|
6391
|
+
* - When the order is `GTX` and the new price will cause it to be executed immediately
|
|
6386
6392
|
*
|
|
6387
6393
|
* @summary Modify CM Order (TRADE)
|
|
6388
6394
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -6406,7 +6412,9 @@ var RestAPI = class {
|
|
|
6406
6412
|
* - Both quantity and price must be sent
|
|
6407
6413
|
* - When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
|
|
6408
6414
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
6409
|
-
* - when the order is in partially filled status and the new quantity
|
|
6415
|
+
* - when the order is in partially filled status and the new quantity <= executedQty
|
|
6416
|
+
* - When the order is GTX and the new price will cause it to be executed immediately
|
|
6417
|
+
* - The amendment keeps the order's original selfTradePreventionMode.
|
|
6410
6418
|
*
|
|
6411
6419
|
* @summary Modify UM Order (TRADE)
|
|
6412
6420
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|