Set TP/SL
curl --request POST \
--url https://api.roxom.com/v1/positions/set-tp-sl \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Signature: <api-key>' \
--data '
{
"symbol": "<string>",
"quantity": "<string>",
"stopLossLimitPrice": "<string>",
"stopLossTriggerPrice": "<string>",
"takeProfitLimitPrice": "<string>",
"takeProfitTriggerPrice": "<string>"
}
'{
"data": {
"slOrder": {
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amountFilled": "<string>",
"createdAt": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"px": "<string>",
"qty": "<string>",
"size": "<string>",
"symbol": "<string>",
"cancelAt": 123,
"clientOrderId": "<string>",
"triggerPx": "<string>",
"triggeredAt": 123
},
"tpOrder": {
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amountFilled": "<string>",
"createdAt": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"px": "<string>",
"qty": "<string>",
"size": "<string>",
"symbol": "<string>",
"cancelAt": 123,
"clientOrderId": "<string>",
"triggerPx": "<string>",
"triggeredAt": 123
}
},
"error": true
}Positions
Set TP/SL
Adjust take profit and stop loss levels for a specific position.
POST
/
v1
/
positions
/
set-tp-sl
Set TP/SL
curl --request POST \
--url https://api.roxom.com/v1/positions/set-tp-sl \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Signature: <api-key>' \
--data '
{
"symbol": "<string>",
"quantity": "<string>",
"stopLossLimitPrice": "<string>",
"stopLossTriggerPrice": "<string>",
"takeProfitLimitPrice": "<string>",
"takeProfitTriggerPrice": "<string>"
}
'{
"data": {
"slOrder": {
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amountFilled": "<string>",
"createdAt": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"px": "<string>",
"qty": "<string>",
"size": "<string>",
"symbol": "<string>",
"cancelAt": 123,
"clientOrderId": "<string>",
"triggerPx": "<string>",
"triggeredAt": 123
},
"tpOrder": {
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amountFilled": "<string>",
"createdAt": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"px": "<string>",
"qty": "<string>",
"size": "<string>",
"symbol": "<string>",
"cancelAt": 123,
"clientOrderId": "<string>",
"triggerPx": "<string>",
"triggeredAt": 123
}
},
"error": true
}Documentation Index
Fetch the complete documentation index at: https://docs.roxom.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Your API key
The signature of the request
Body
application/json
Available options:
perpetual, spot, btc, digital, stock, index Available options:
partial, full Available options:
sats, btc Last modified on May 14, 2026
Was this page helpful?
⌘I