Skip to navigation

Place leading stop order

Set TP/SL for the current lead position that are not closed.

Authentication

OK-ACCESS-KEYstring
Your API key.
OK-ACCESS-SIGNstring

Base64-encoded HMAC-SHA256 signature of the prehash string.

OK-ACCESS-TIMESTAMPstring

ISO 8601 UTC timestamp, e.g. 2020-12-08T09:08:57.715Z.

OK-ACCESS-PASSPHRASEstring
The passphrase you set when creating the API key.

Request

This endpoint expects an object.
subPosIdstringRequired
Lead position ID
instTypeenumOptional

Instrument type SPOT SWAP, the default value

Allowed values:
subPosTypeenumOptional

Sub position type. lead: lead trade; copy: copy trade. Default is lead.

Allowed values:
tpTriggerPxstringOptional

Take-profit trigger price. Take-profit order price will be the market price after triggering. At least one of tpTriggerPx and slTriggerPx must be filled The take profit order will be deleted if it is 0

tpOrdPxstringOptional

Take-profit order price If the price is -1, take-profit will be executed at the market price, the default is -1 Only applicable to SPOT lead trader

slTriggerPxstringOptional

Stop-loss trigger price. Stop-loss order price will be the market price after triggering. The stop loss order will be deleted if it is 0

slOrdPxstringOptional

Stop-loss order price If the price is -1, stop-loss will be executed at the market price, the default is -1 Only applicable to SPOT lead trader

tpTriggerPxTypeenumOptional

Take-profit trigger price type last: last price index: index price mark: mark price Default is last

Allowed values:
slTriggerPxTypeenumOptional

Stop-loss trigger price type last: last price index: index price mark: mark price Default is last

Allowed values:
tagstringOptional

Order tag A combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters.

Response

Successful response
codestringOptional

Result code. 0 means success; any other value is an error code.

msgstringOptional
Error message. Empty on success.
datalist of objectsOptional