Skip to main content
POST
/
api
/
v1
/
position
/
trading-stop
Set Trading Stop
curl --request POST \
  --url https://api.ekiden.fi/api/v1/position/trading-stop \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sub_account_address": "<string>",
  "symbol": "BTCUSDC",
  "active_price": "<string>",
  "sl_size": "<string>",
  "tp_size": "<string>",
  "tpsl": "<unknown>",
  "trailing_stop": "<string>"
}
'
{
  "success": true,
  "time": "1672531200000"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Set the take profit, stop loss or trailing stop for the position.

sub_account_address
string
required
symbol
string
required
Example:

"BTCUSDC"

active_price
string | null
sl_size
string | null

Stop loss size valid for TP/SL partial mode, note: the value of tpSize and slSize must equal

tp_size
string | null

Take profit size valid for TP/SL partial mode, note: the value of tpSize and slSize must equal

tpsl
object
trailing_stop
string | null

Response

200 - application/json

Trading stop set

Response for setting trading stop.

success
boolean
required
time
string<date-time>
required
Example:

"1672531200000"