Take Profit / Stop Loss
Create take-profit and stop-loss orders for a position
Last updated
Was this helpful?
Create take-profit and stop-loss orders for a position
POST
Creates take-profit and stop-loss orders for an open position.
When a trigger price is reached, the position is closed automatically.
Provide at least one of t or l.
Use SELL to close the position.
HMAC-SHA256 authentication required.
OUTPOLL-API-KEY
Your API key
OUTPOLL-API-SIGNATURE
Base64URL-encoded HMAC-SHA256 signature
OUTPOLL-API-TIMESTAMP
Current Unix timestamp in seconds
Generate the signature from timestamp + method + path + body.
Timestamps must be within 30 seconds of server time.
200
OK — Request succeeded
201
Created — Resource created successfully
202
Accepted — Request accepted for async processing
204
No Content — Success with no response body
400
Bad Request — Invalid parameters
401
Unauthorized — Missing or invalid API key / signature
403
Forbidden — API key permanently blocked
404
Not Found — Resource does not exist
429
Too Many Requests — Rate limit exceeded
500
Internal Server Error
Method: POST
Path: /orders/tpsl
e
string
Yes
Event ID
o
string
Yes
Outcome ID
ba
string
Yes
Betting asset ID
qa
string
Yes
Quote asset ID
i
string
Yes
Intent: YES or NO
s
string
Yes
Side: SELL
q
number
Yes
Quantity in shares to close
t
number
No
Take-profit price from 0.01 to 0.99
l
number
No
Stop-loss price from 0.01 to 0.99
At least one of t or l must be provided.
Response 200 OK or 202 Accepted
The TP/SL order is created if the request is accepted.
Last updated
Was this helpful?
Was this helpful?

