@binance/derivatives-trading-portfolio-margin 17.0.0 → 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 +15 -30
- package/dist/index.d.ts +15 -30
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3847,12 +3847,6 @@ interface ModifyCmOrderResponse {
|
|
|
3847
3847
|
* @memberof ModifyCmOrderResponse
|
|
3848
3848
|
*/
|
|
3849
3849
|
price?: string;
|
|
3850
|
-
/**
|
|
3851
|
-
* Avg Price.
|
|
3852
|
-
* @type {string}
|
|
3853
|
-
* @memberof ModifyCmOrderResponse
|
|
3854
|
-
*/
|
|
3855
|
-
avgPrice?: string;
|
|
3856
3850
|
/**
|
|
3857
3851
|
* Orig Qty.
|
|
3858
3852
|
* @type {string}
|
|
@@ -3871,12 +3865,6 @@ interface ModifyCmOrderResponse {
|
|
|
3871
3865
|
* @memberof ModifyCmOrderResponse
|
|
3872
3866
|
*/
|
|
3873
3867
|
cumQty?: string;
|
|
3874
|
-
/**
|
|
3875
|
-
* Cum Base.
|
|
3876
|
-
* @type {string}
|
|
3877
|
-
* @memberof ModifyCmOrderResponse
|
|
3878
|
-
*/
|
|
3879
|
-
cumBase?: string;
|
|
3880
3868
|
/**
|
|
3881
3869
|
* Time In Force.
|
|
3882
3870
|
* @type {string}
|
|
@@ -3976,12 +3964,6 @@ interface ModifyUmOrderResponse {
|
|
|
3976
3964
|
* @memberof ModifyUmOrderResponse
|
|
3977
3965
|
*/
|
|
3978
3966
|
price?: string;
|
|
3979
|
-
/**
|
|
3980
|
-
* Avg Price.
|
|
3981
|
-
* @type {string}
|
|
3982
|
-
* @memberof ModifyUmOrderResponse
|
|
3983
|
-
*/
|
|
3984
|
-
avgPrice?: string;
|
|
3985
3967
|
/**
|
|
3986
3968
|
* Orig Qty.
|
|
3987
3969
|
* @type {string}
|
|
@@ -4000,12 +3982,6 @@ interface ModifyUmOrderResponse {
|
|
|
4000
3982
|
* @memberof ModifyUmOrderResponse
|
|
4001
3983
|
*/
|
|
4002
3984
|
cumQty?: string;
|
|
4003
|
-
/**
|
|
4004
|
-
* Cum Quote.
|
|
4005
|
-
* @type {string}
|
|
4006
|
-
* @memberof ModifyUmOrderResponse
|
|
4007
|
-
*/
|
|
4008
|
-
cumQuote?: string;
|
|
4009
3985
|
/**
|
|
4010
3986
|
* Time In Force.
|
|
4011
3987
|
* @type {string}
|
|
@@ -12622,7 +12598,8 @@ interface TradeApiInterface {
|
|
|
12622
12598
|
* - Both `quantity` and `price` must be sent
|
|
12623
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.
|
|
12624
12600
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12625
|
-
* - 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
|
|
12626
12603
|
*
|
|
12627
12604
|
* @summary Modify CM Order (TRADE)
|
|
12628
12605
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -12643,7 +12620,9 @@ interface TradeApiInterface {
|
|
|
12643
12620
|
* - Both quantity and price must be sent
|
|
12644
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.
|
|
12645
12622
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12646
|
-
* - 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.
|
|
12647
12626
|
*
|
|
12648
12627
|
* @summary Modify UM Order (TRADE)
|
|
12649
12628
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -16199,7 +16178,8 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16199
16178
|
* - Both `quantity` and `price` must be sent
|
|
16200
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.
|
|
16201
16180
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16202
|
-
* - 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
|
|
16203
16183
|
*
|
|
16204
16184
|
* @summary Modify CM Order (TRADE)
|
|
16205
16185
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -16221,7 +16201,9 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16221
16201
|
* - Both quantity and price must be sent
|
|
16222
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.
|
|
16223
16203
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16224
|
-
* - 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.
|
|
16225
16207
|
*
|
|
16226
16208
|
* @summary Modify UM Order (TRADE)
|
|
16227
16209
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -18588,7 +18570,8 @@ declare class RestAPI {
|
|
|
18588
18570
|
* - Both `quantity` and `price` must be sent
|
|
18589
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.
|
|
18590
18572
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18591
|
-
* - 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
|
|
18592
18575
|
*
|
|
18593
18576
|
* @summary Modify CM Order (TRADE)
|
|
18594
18577
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -18610,7 +18593,9 @@ declare class RestAPI {
|
|
|
18610
18593
|
* - Both quantity and price must be sent
|
|
18611
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.
|
|
18612
18595
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18613
|
-
* - 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.
|
|
18614
18599
|
*
|
|
18615
18600
|
* @summary Modify UM Order (TRADE)
|
|
18616
18601
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
package/dist/index.d.ts
CHANGED
|
@@ -3848,12 +3848,6 @@ interface ModifyCmOrderResponse {
|
|
|
3848
3848
|
* @memberof ModifyCmOrderResponse
|
|
3849
3849
|
*/
|
|
3850
3850
|
price?: string;
|
|
3851
|
-
/**
|
|
3852
|
-
* Avg Price.
|
|
3853
|
-
* @type {string}
|
|
3854
|
-
* @memberof ModifyCmOrderResponse
|
|
3855
|
-
*/
|
|
3856
|
-
avgPrice?: string;
|
|
3857
3851
|
/**
|
|
3858
3852
|
* Orig Qty.
|
|
3859
3853
|
* @type {string}
|
|
@@ -3872,12 +3866,6 @@ interface ModifyCmOrderResponse {
|
|
|
3872
3866
|
* @memberof ModifyCmOrderResponse
|
|
3873
3867
|
*/
|
|
3874
3868
|
cumQty?: string;
|
|
3875
|
-
/**
|
|
3876
|
-
* Cum Base.
|
|
3877
|
-
* @type {string}
|
|
3878
|
-
* @memberof ModifyCmOrderResponse
|
|
3879
|
-
*/
|
|
3880
|
-
cumBase?: string;
|
|
3881
3869
|
/**
|
|
3882
3870
|
* Time In Force.
|
|
3883
3871
|
* @type {string}
|
|
@@ -3977,12 +3965,6 @@ interface ModifyUmOrderResponse {
|
|
|
3977
3965
|
* @memberof ModifyUmOrderResponse
|
|
3978
3966
|
*/
|
|
3979
3967
|
price?: string;
|
|
3980
|
-
/**
|
|
3981
|
-
* Avg Price.
|
|
3982
|
-
* @type {string}
|
|
3983
|
-
* @memberof ModifyUmOrderResponse
|
|
3984
|
-
*/
|
|
3985
|
-
avgPrice?: string;
|
|
3986
3968
|
/**
|
|
3987
3969
|
* Orig Qty.
|
|
3988
3970
|
* @type {string}
|
|
@@ -4001,12 +3983,6 @@ interface ModifyUmOrderResponse {
|
|
|
4001
3983
|
* @memberof ModifyUmOrderResponse
|
|
4002
3984
|
*/
|
|
4003
3985
|
cumQty?: string;
|
|
4004
|
-
/**
|
|
4005
|
-
* Cum Quote.
|
|
4006
|
-
* @type {string}
|
|
4007
|
-
* @memberof ModifyUmOrderResponse
|
|
4008
|
-
*/
|
|
4009
|
-
cumQuote?: string;
|
|
4010
3986
|
/**
|
|
4011
3987
|
* Time In Force.
|
|
4012
3988
|
* @type {string}
|
|
@@ -12623,7 +12599,8 @@ interface TradeApiInterface {
|
|
|
12623
12599
|
* - Both `quantity` and `price` must be sent
|
|
12624
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.
|
|
12625
12601
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12626
|
-
* - 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
|
|
12627
12604
|
*
|
|
12628
12605
|
* @summary Modify CM Order (TRADE)
|
|
12629
12606
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -12644,7 +12621,9 @@ interface TradeApiInterface {
|
|
|
12644
12621
|
* - Both quantity and price must be sent
|
|
12645
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.
|
|
12646
12623
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
12647
|
-
* - 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.
|
|
12648
12627
|
*
|
|
12649
12628
|
* @summary Modify UM Order (TRADE)
|
|
12650
12629
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -16200,7 +16179,8 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16200
16179
|
* - Both `quantity` and `price` must be sent
|
|
16201
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.
|
|
16202
16181
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16203
|
-
* - 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
|
|
16204
16184
|
*
|
|
16205
16185
|
* @summary Modify CM Order (TRADE)
|
|
16206
16186
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -16222,7 +16202,9 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
16222
16202
|
* - Both quantity and price must be sent
|
|
16223
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.
|
|
16224
16204
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
16225
|
-
* - 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.
|
|
16226
16208
|
*
|
|
16227
16209
|
* @summary Modify UM Order (TRADE)
|
|
16228
16210
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -18589,7 +18571,8 @@ declare class RestAPI {
|
|
|
18589
18571
|
* - Both `quantity` and `price` must be sent
|
|
18590
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.
|
|
18591
18573
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18592
|
-
* - 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
|
|
18593
18576
|
*
|
|
18594
18577
|
* @summary Modify CM Order (TRADE)
|
|
18595
18578
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -18611,7 +18594,9 @@ declare class RestAPI {
|
|
|
18611
18594
|
* - Both quantity and price must be sent
|
|
18612
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.
|
|
18613
18596
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
18614
|
-
* - 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.
|
|
18615
18600
|
*
|
|
18616
18601
|
* @summary Modify UM Order (TRADE)
|
|
18617
18602
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
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
|
|
@@ -3638,7 +3638,8 @@ var TradeApi = class {
|
|
|
3638
3638
|
* - Both `quantity` and `price` must be sent
|
|
3639
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.
|
|
3640
3640
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
3641
|
-
* - 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
|
|
3642
3643
|
*
|
|
3643
3644
|
* @summary Modify CM Order (TRADE)
|
|
3644
3645
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -3663,7 +3664,9 @@ var TradeApi = class {
|
|
|
3663
3664
|
* - Both quantity and price must be sent
|
|
3664
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.
|
|
3665
3666
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
3666
|
-
* - 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.
|
|
3667
3670
|
*
|
|
3668
3671
|
* @summary Modify UM Order (TRADE)
|
|
3669
3672
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|
|
@@ -6384,7 +6387,8 @@ var RestAPI = class {
|
|
|
6384
6387
|
* - Both `quantity` and `price` must be sent
|
|
6385
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.
|
|
6386
6389
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
6387
|
-
* - 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
|
|
6388
6392
|
*
|
|
6389
6393
|
* @summary Modify CM Order (TRADE)
|
|
6390
6394
|
* @param {ModifyCmOrderRequest} requestParameters Request parameters.
|
|
@@ -6408,7 +6412,9 @@ var RestAPI = class {
|
|
|
6408
6412
|
* - Both quantity and price must be sent
|
|
6409
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.
|
|
6410
6414
|
* - However the order will be cancelled by the amendment in the following situations:
|
|
6411
|
-
* - 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.
|
|
6412
6418
|
*
|
|
6413
6419
|
* @summary Modify UM Order (TRADE)
|
|
6414
6420
|
* @param {ModifyUmOrderRequest} requestParameters Request parameters.
|