Set Stop Order
Stop Orders
Set Stop Order
Set a stop order for a particular position defined by market and direction. For how stop orders work, see Take profit and stop loss.
POST
Set Stop Order
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Perps market
Example:
"AAPL-USD.P"
Position direction this stop order watches
Available options:
long, short Example:
"long"
The type of stop order to set
Available options:
stopLoss, takeProfit Example:
"stopLoss"
The trigger price
Example:
"9.00"
Response
Updated stop orders for the market
Whether the request was successful
Example:
true
Error message, present only on failure
Example:
""
Semantic error code. See each endpoint's error responses for the specific codes it can return.
Deprecation notice, if applicable
Example:
""