@binance/derivatives-trading-portfolio-margin 22.0.2 → 22.0.4
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 +35 -44
- package/dist/index.d.ts +35 -44
- package/dist/index.js +19 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -11
- 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.0.4";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -3495,12 +3495,16 @@ var TradeApi = class {
|
|
|
3495
3495
|
* - Condition orders will be triggered when:
|
|
3496
3496
|
* - `STOP`, `STOP_MARKET`:
|
|
3497
3497
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
3498
|
-
* - SELL: "MARK_PRICE"
|
|
3498
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
3499
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
3500
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
3501
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
3499
3502
|
* - `TRAILING_STOP_MARKET`:
|
|
3500
|
-
* - BUY: the lowest mark price after order placed
|
|
3501
|
-
* - (1
|
|
3502
|
-
* -
|
|
3503
|
-
* -
|
|
3503
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
3504
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
3505
|
+
* - For `TRAILING_STOP_MARKET`, if you got such error code. `{"code": -2021, "msg": "Order would immediately trigger."}` means that the parameters you send do not meet the following requirements:
|
|
3506
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
3507
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
3504
3508
|
*
|
|
3505
3509
|
* @summary New CM Conditional Order (TRADE)
|
|
3506
3510
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -6024,12 +6028,16 @@ var RestAPI = class {
|
|
|
6024
6028
|
* - Condition orders will be triggered when:
|
|
6025
6029
|
* - `STOP`, `STOP_MARKET`:
|
|
6026
6030
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
6027
|
-
* - SELL: "MARK_PRICE"
|
|
6031
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
6032
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
6033
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
6034
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
6028
6035
|
* - `TRAILING_STOP_MARKET`:
|
|
6029
|
-
* - BUY: the lowest mark price after order placed
|
|
6030
|
-
* - (1
|
|
6031
|
-
* -
|
|
6032
|
-
* -
|
|
6036
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
6037
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
6038
|
+
* - For `TRAILING_STOP_MARKET`, if you got such error code. `{"code": -2021, "msg": "Order would immediately trigger."}` means that the parameters you send do not meet the following requirements:
|
|
6039
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
6040
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
6033
6041
|
*
|
|
6034
6042
|
* @summary New CM Conditional Order (TRADE)
|
|
6035
6043
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|