@binance/derivatives-trading-portfolio-margin 22.0.2 → 22.0.3
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 +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4382,13 +4382,13 @@ interface NewUmAlgoOrderResponse {
|
|
|
4382
4382
|
*/
|
|
4383
4383
|
reduceOnly?: boolean;
|
|
4384
4384
|
/**
|
|
4385
|
-
*
|
|
4385
|
+
* TRAILING_STOP_MARKET order
|
|
4386
4386
|
* @type {string}
|
|
4387
4387
|
* @memberof NewUmAlgoOrderResponse
|
|
4388
4388
|
*/
|
|
4389
4389
|
activatePrice?: string;
|
|
4390
4390
|
/**
|
|
4391
|
-
*
|
|
4391
|
+
* TRAILING_STOP_MARKET order
|
|
4392
4392
|
* @type {string}
|
|
4393
4393
|
* @memberof NewUmAlgoOrderResponse
|
|
4394
4394
|
*/
|
|
@@ -11686,12 +11686,16 @@ interface TradeApiInterface {
|
|
|
11686
11686
|
* - Condition orders will be triggered when:
|
|
11687
11687
|
* - `STOP`, `STOP_MARKET`:
|
|
11688
11688
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
11689
|
-
* - SELL: "MARK_PRICE"
|
|
11689
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
11690
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
11691
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
11692
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
11690
11693
|
* - `TRAILING_STOP_MARKET`:
|
|
11691
|
-
* - BUY: the lowest mark price after order placed
|
|
11692
|
-
* - (1
|
|
11693
|
-
* -
|
|
11694
|
-
* -
|
|
11694
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
11695
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
11696
|
+
* - 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:
|
|
11697
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
11698
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
11695
11699
|
*
|
|
11696
11700
|
* @summary New CM Conditional Order (TRADE)
|
|
11697
11701
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -13381,7 +13385,7 @@ interface NewUmAlgoOrderRequest {
|
|
|
13381
13385
|
*/
|
|
13382
13386
|
readonly activatePrice?: number;
|
|
13383
13387
|
/**
|
|
13384
|
-
* Used with `TRAILING_STOP_MARKET`, min 0.1, max
|
|
13388
|
+
* Used with `TRAILING_STOP_MARKET`, min 0.1, max 20 (1 = 1%)
|
|
13385
13389
|
* @type {number}
|
|
13386
13390
|
* @memberof TradeApiNewUmAlgoOrder
|
|
13387
13391
|
*/
|
|
@@ -14854,12 +14858,16 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
14854
14858
|
* - Condition orders will be triggered when:
|
|
14855
14859
|
* - `STOP`, `STOP_MARKET`:
|
|
14856
14860
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
14857
|
-
* - SELL: "MARK_PRICE"
|
|
14861
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
14862
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
14863
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
14864
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
14858
14865
|
* - `TRAILING_STOP_MARKET`:
|
|
14859
|
-
* - BUY: the lowest mark price after order placed
|
|
14860
|
-
* - (1
|
|
14861
|
-
* -
|
|
14862
|
-
* -
|
|
14866
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
14867
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
14868
|
+
* - 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:
|
|
14869
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
14870
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
14863
14871
|
*
|
|
14864
14872
|
* @summary New CM Conditional Order (TRADE)
|
|
14865
14873
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -17055,12 +17063,16 @@ declare class RestAPI {
|
|
|
17055
17063
|
* - Condition orders will be triggered when:
|
|
17056
17064
|
* - `STOP`, `STOP_MARKET`:
|
|
17057
17065
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
17058
|
-
* - SELL: "MARK_PRICE"
|
|
17066
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
17067
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
17068
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
17069
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
17059
17070
|
* - `TRAILING_STOP_MARKET`:
|
|
17060
|
-
* - BUY: the lowest mark price after order placed
|
|
17061
|
-
* - (1
|
|
17062
|
-
* -
|
|
17063
|
-
* -
|
|
17071
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
17072
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
17073
|
+
* - 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:
|
|
17074
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
17075
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
17064
17076
|
*
|
|
17065
17077
|
* @summary New CM Conditional Order (TRADE)
|
|
17066
17078
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -18832,7 +18844,7 @@ interface ListenKeyExpired {
|
|
|
18832
18844
|
E?: number | bigint;
|
|
18833
18845
|
}
|
|
18834
18846
|
//#endregion
|
|
18835
|
-
//#region src/websocket-streams/types/open-order-loss
|
|
18847
|
+
//#region src/websocket-streams/types/open-order-loss.d.ts
|
|
18836
18848
|
/**
|
|
18837
18849
|
* Portfolio Margin WebSocket Market Streams
|
|
18838
18850
|
*
|
|
@@ -18845,27 +18857,6 @@ interface ListenKeyExpired {
|
|
|
18845
18857
|
* https://openapi-generator.tech
|
|
18846
18858
|
* Do not edit the class manually.
|
|
18847
18859
|
*/
|
|
18848
|
-
/**
|
|
18849
|
-
*
|
|
18850
|
-
* @export
|
|
18851
|
-
* @interface OpenOrderLossOInner
|
|
18852
|
-
*/
|
|
18853
|
-
interface OpenOrderLossOInner {
|
|
18854
|
-
/**
|
|
18855
|
-
* Asset
|
|
18856
|
-
* @type {string}
|
|
18857
|
-
* @memberof OpenOrderLossOInner
|
|
18858
|
-
*/
|
|
18859
|
-
a?: string;
|
|
18860
|
-
/**
|
|
18861
|
-
* Amount
|
|
18862
|
-
* @type {string}
|
|
18863
|
-
* @memberof OpenOrderLossOInner
|
|
18864
|
-
*/
|
|
18865
|
-
o?: string;
|
|
18866
|
-
}
|
|
18867
|
-
//#endregion
|
|
18868
|
-
//#region src/websocket-streams/types/open-order-loss.d.ts
|
|
18869
18860
|
/**
|
|
18870
18861
|
*
|
|
18871
18862
|
* @export
|
|
@@ -18879,11 +18870,11 @@ interface OpenOrderLoss {
|
|
|
18879
18870
|
*/
|
|
18880
18871
|
E?: number | bigint;
|
|
18881
18872
|
/**
|
|
18882
|
-
*
|
|
18883
|
-
* @type {
|
|
18873
|
+
* Aggregated account-level open order loss, in USD
|
|
18874
|
+
* @type {string}
|
|
18884
18875
|
* @memberof OpenOrderLoss
|
|
18885
18876
|
*/
|
|
18886
|
-
|
|
18877
|
+
o?: string;
|
|
18887
18878
|
}
|
|
18888
18879
|
//#endregion
|
|
18889
18880
|
//#region src/websocket-streams/types/order-trade-update-o.d.ts
|
|
@@ -19377,7 +19368,7 @@ declare class WebsocketStreams {
|
|
|
19377
19368
|
}): Promise<WebsocketStreamsConnection>;
|
|
19378
19369
|
}
|
|
19379
19370
|
declare namespace index_d_exports$1 {
|
|
19380
|
-
export { AccountConfigUpdate, AccountConfigUpdateAc, AccountUpdate, AccountUpdateA, AccountUpdateABInner, AccountUpdateAPInner, AlgoOrderUpdate, AlgoOrderUpdateAo, BalanceUpdate, ConditionalOrderTradeUpdate, ConditionalOrderTradeUpdateSo, ExecutionReport, LiabilityChange, ListenKeyExpired, OpenOrderLoss,
|
|
19371
|
+
export { AccountConfigUpdate, AccountConfigUpdateAc, AccountUpdate, AccountUpdateA, AccountUpdateABInner, AccountUpdateAPInner, AlgoOrderUpdate, AlgoOrderUpdateAo, BalanceUpdate, ConditionalOrderTradeUpdate, ConditionalOrderTradeUpdateSo, ExecutionReport, LiabilityChange, ListenKeyExpired, OpenOrderLoss, OrderTradeUpdate, OrderTradeUpdateO, OutboundAccountPosition, OutboundAccountPositionBInner, RiskLevelChange, UserDataStreamEventsResponse, WebsocketStreams, WebsocketStreamsConnection };
|
|
19381
19372
|
}
|
|
19382
19373
|
//#endregion
|
|
19383
19374
|
//#region src/derivatives-trading-portfolio-margin.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -4383,13 +4383,13 @@ interface NewUmAlgoOrderResponse {
|
|
|
4383
4383
|
*/
|
|
4384
4384
|
reduceOnly?: boolean;
|
|
4385
4385
|
/**
|
|
4386
|
-
*
|
|
4386
|
+
* TRAILING_STOP_MARKET order
|
|
4387
4387
|
* @type {string}
|
|
4388
4388
|
* @memberof NewUmAlgoOrderResponse
|
|
4389
4389
|
*/
|
|
4390
4390
|
activatePrice?: string;
|
|
4391
4391
|
/**
|
|
4392
|
-
*
|
|
4392
|
+
* TRAILING_STOP_MARKET order
|
|
4393
4393
|
* @type {string}
|
|
4394
4394
|
* @memberof NewUmAlgoOrderResponse
|
|
4395
4395
|
*/
|
|
@@ -11687,12 +11687,16 @@ interface TradeApiInterface {
|
|
|
11687
11687
|
* - Condition orders will be triggered when:
|
|
11688
11688
|
* - `STOP`, `STOP_MARKET`:
|
|
11689
11689
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
11690
|
-
* - SELL: "MARK_PRICE"
|
|
11690
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
11691
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
11692
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
11693
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
11691
11694
|
* - `TRAILING_STOP_MARKET`:
|
|
11692
|
-
* - BUY: the lowest mark price after order placed
|
|
11693
|
-
* - (1
|
|
11694
|
-
* -
|
|
11695
|
-
* -
|
|
11695
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
11696
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
11697
|
+
* - 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:
|
|
11698
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
11699
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
11696
11700
|
*
|
|
11697
11701
|
* @summary New CM Conditional Order (TRADE)
|
|
11698
11702
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -13382,7 +13386,7 @@ interface NewUmAlgoOrderRequest {
|
|
|
13382
13386
|
*/
|
|
13383
13387
|
readonly activatePrice?: number;
|
|
13384
13388
|
/**
|
|
13385
|
-
* Used with `TRAILING_STOP_MARKET`, min 0.1, max
|
|
13389
|
+
* Used with `TRAILING_STOP_MARKET`, min 0.1, max 20 (1 = 1%)
|
|
13386
13390
|
* @type {number}
|
|
13387
13391
|
* @memberof TradeApiNewUmAlgoOrder
|
|
13388
13392
|
*/
|
|
@@ -14855,12 +14859,16 @@ declare class TradeApi implements TradeApiInterface {
|
|
|
14855
14859
|
* - Condition orders will be triggered when:
|
|
14856
14860
|
* - `STOP`, `STOP_MARKET`:
|
|
14857
14861
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
14858
|
-
* - SELL: "MARK_PRICE"
|
|
14862
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
14863
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
14864
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
14865
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
14859
14866
|
* - `TRAILING_STOP_MARKET`:
|
|
14860
|
-
* - BUY: the lowest mark price after order placed
|
|
14861
|
-
* - (1
|
|
14862
|
-
* -
|
|
14863
|
-
* -
|
|
14867
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
14868
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
14869
|
+
* - 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:
|
|
14870
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
14871
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
14864
14872
|
*
|
|
14865
14873
|
* @summary New CM Conditional Order (TRADE)
|
|
14866
14874
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -17056,12 +17064,16 @@ declare class RestAPI {
|
|
|
17056
17064
|
* - Condition orders will be triggered when:
|
|
17057
17065
|
* - `STOP`, `STOP_MARKET`:
|
|
17058
17066
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
17059
|
-
* - SELL: "MARK_PRICE"
|
|
17067
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
17068
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
17069
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
17070
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
17060
17071
|
* - `TRAILING_STOP_MARKET`:
|
|
17061
|
-
* - BUY: the lowest mark price after order placed
|
|
17062
|
-
* - (1
|
|
17063
|
-
* -
|
|
17064
|
-
* -
|
|
17072
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
17073
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
17074
|
+
* - 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:
|
|
17075
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
17076
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
17065
17077
|
*
|
|
17066
17078
|
* @summary New CM Conditional Order (TRADE)
|
|
17067
17079
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -18833,7 +18845,7 @@ interface ListenKeyExpired {
|
|
|
18833
18845
|
E?: number | bigint;
|
|
18834
18846
|
}
|
|
18835
18847
|
//#endregion
|
|
18836
|
-
//#region src/websocket-streams/types/open-order-loss
|
|
18848
|
+
//#region src/websocket-streams/types/open-order-loss.d.ts
|
|
18837
18849
|
/**
|
|
18838
18850
|
* Portfolio Margin WebSocket Market Streams
|
|
18839
18851
|
*
|
|
@@ -18846,27 +18858,6 @@ interface ListenKeyExpired {
|
|
|
18846
18858
|
* https://openapi-generator.tech
|
|
18847
18859
|
* Do not edit the class manually.
|
|
18848
18860
|
*/
|
|
18849
|
-
/**
|
|
18850
|
-
*
|
|
18851
|
-
* @export
|
|
18852
|
-
* @interface OpenOrderLossOInner
|
|
18853
|
-
*/
|
|
18854
|
-
interface OpenOrderLossOInner {
|
|
18855
|
-
/**
|
|
18856
|
-
* Asset
|
|
18857
|
-
* @type {string}
|
|
18858
|
-
* @memberof OpenOrderLossOInner
|
|
18859
|
-
*/
|
|
18860
|
-
a?: string;
|
|
18861
|
-
/**
|
|
18862
|
-
* Amount
|
|
18863
|
-
* @type {string}
|
|
18864
|
-
* @memberof OpenOrderLossOInner
|
|
18865
|
-
*/
|
|
18866
|
-
o?: string;
|
|
18867
|
-
}
|
|
18868
|
-
//#endregion
|
|
18869
|
-
//#region src/websocket-streams/types/open-order-loss.d.ts
|
|
18870
18861
|
/**
|
|
18871
18862
|
*
|
|
18872
18863
|
* @export
|
|
@@ -18880,11 +18871,11 @@ interface OpenOrderLoss {
|
|
|
18880
18871
|
*/
|
|
18881
18872
|
E?: number | bigint;
|
|
18882
18873
|
/**
|
|
18883
|
-
*
|
|
18884
|
-
* @type {
|
|
18874
|
+
* Aggregated account-level open order loss, in USD
|
|
18875
|
+
* @type {string}
|
|
18885
18876
|
* @memberof OpenOrderLoss
|
|
18886
18877
|
*/
|
|
18887
|
-
|
|
18878
|
+
o?: string;
|
|
18888
18879
|
}
|
|
18889
18880
|
//#endregion
|
|
18890
18881
|
//#region src/websocket-streams/types/order-trade-update-o.d.ts
|
|
@@ -19378,7 +19369,7 @@ declare class WebsocketStreams {
|
|
|
19378
19369
|
}): Promise<WebsocketStreamsConnection>;
|
|
19379
19370
|
}
|
|
19380
19371
|
declare namespace index_d_exports$1 {
|
|
19381
|
-
export { AccountConfigUpdate, AccountConfigUpdateAc, AccountUpdate, AccountUpdateA, AccountUpdateABInner, AccountUpdateAPInner, AlgoOrderUpdate, AlgoOrderUpdateAo, BalanceUpdate, ConditionalOrderTradeUpdate, ConditionalOrderTradeUpdateSo, ExecutionReport, LiabilityChange, ListenKeyExpired, OpenOrderLoss,
|
|
19372
|
+
export { AccountConfigUpdate, AccountConfigUpdateAc, AccountUpdate, AccountUpdateA, AccountUpdateABInner, AccountUpdateAPInner, AlgoOrderUpdate, AlgoOrderUpdateAo, BalanceUpdate, ConditionalOrderTradeUpdate, ConditionalOrderTradeUpdateSo, ExecutionReport, LiabilityChange, ListenKeyExpired, OpenOrderLoss, OrderTradeUpdate, OrderTradeUpdateO, OutboundAccountPosition, OutboundAccountPositionBInner, RiskLevelChange, UserDataStreamEventsResponse, WebsocketStreams, WebsocketStreamsConnection };
|
|
19382
19373
|
}
|
|
19383
19374
|
//#endregion
|
|
19384
19375
|
//#region src/derivatives-trading-portfolio-margin.d.ts
|
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 = "22.0.
|
|
17
|
+
var version = "22.0.3";
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/rest-api/modules/account-api.ts
|
|
@@ -3506,12 +3506,16 @@ var TradeApi = class {
|
|
|
3506
3506
|
* - Condition orders will be triggered when:
|
|
3507
3507
|
* - `STOP`, `STOP_MARKET`:
|
|
3508
3508
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
3509
|
-
* - SELL: "MARK_PRICE"
|
|
3509
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
3510
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
3511
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
3512
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
3510
3513
|
* - `TRAILING_STOP_MARKET`:
|
|
3511
|
-
* - BUY: the lowest mark price after order placed
|
|
3512
|
-
* - (1
|
|
3513
|
-
* -
|
|
3514
|
-
* -
|
|
3514
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
3515
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
3516
|
+
* - 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:
|
|
3517
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
3518
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
3515
3519
|
*
|
|
3516
3520
|
* @summary New CM Conditional Order (TRADE)
|
|
3517
3521
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|
|
@@ -6035,12 +6039,16 @@ var RestAPI = class {
|
|
|
6035
6039
|
* - Condition orders will be triggered when:
|
|
6036
6040
|
* - `STOP`, `STOP_MARKET`:
|
|
6037
6041
|
* - BUY: "MARK_PRICE" >= `stopPrice`
|
|
6038
|
-
* - SELL: "MARK_PRICE"
|
|
6042
|
+
* - SELL: "MARK_PRICE" <= `stopPrice`
|
|
6043
|
+
* - `TAKE_PROFIT`, `TAKE_PROFIT_MARKET`:
|
|
6044
|
+
* - BUY: "MARK_PRICE" <= `stopPrice`
|
|
6045
|
+
* - SELL: "MARK_PRICE" >= `stopPrice`
|
|
6039
6046
|
* - `TRAILING_STOP_MARKET`:
|
|
6040
|
-
* - BUY: the lowest mark price after order placed
|
|
6041
|
-
* - (1
|
|
6042
|
-
* -
|
|
6043
|
-
* -
|
|
6047
|
+
* - BUY: the lowest mark price after order placed <= `activationPrice`, and the latest mark price >= the lowest mark price * (1 + `callbackRate`)
|
|
6048
|
+
* - SELL: the highest mark price after order placed >= `activationPrice`, and the latest mark price <= the highest mark price * (1 - `callbackRate`)
|
|
6049
|
+
* - 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:
|
|
6050
|
+
* - BUY: `activationPrice` should be smaller than latest mark price.
|
|
6051
|
+
* - SELL: `activationPrice` should be larger than latest mark price.
|
|
6044
6052
|
*
|
|
6045
6053
|
* @summary New CM Conditional Order (TRADE)
|
|
6046
6054
|
* @param {NewCmConditionalOrderRequest} requestParameters Request parameters.
|