Skip to main content
POST
/
api
/
v1
/
position
/
set-leverage
Set leverage
curl --request POST \
  --url https://api.ekiden.fi/api/v1/position/set-leverage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "leverage": "<string>",
  "sub_account_address": "<string>",
  "symbol": "BTCUSDC"
}
'
{
  "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

Request to set leverage.

leverage
string
required
sub_account_address
string
required
symbol
string
required
Example:

"BTCUSDC"

Response

200 - application/json

Leverage updated

Set leverage response.

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

"1672531200000"