Skip to main content
POST
/
v1
/
client
/
leverages
Update Leverage Setting
curl --request POST \
  --url https://api.orderly.org/v1/client/leverages \
  --header 'Content-Type: application/json' \
  --header 'orderly-account-id: <orderly-account-id>' \
  --header 'orderly-key: <orderly-key>' \
  --header 'orderly-signature: <orderly-signature>' \
  --header 'orderly-timestamp: <orderly-timestamp>' \
  --data '
{
  "leverage": 123,
  "symbol": "PERP_BTC_USDC",
  "margin_mode": "CROSS"
}
'
{
  "success": true,
  "timestamp": 1702989203989,
  "data": {
    "symbol": "PERP_BTC_USDC",
    "margin_mode": "ISOLATED",
    "leverage": 19
  }
}

Headers

orderly-timestamp
string
required
orderly-account-id
string
required
orderly-key
string
required
orderly-signature
string
required

Body

application/json
leverage
integer
required

Integer between 1 to 100

symbol
string
Example:

"PERP_BTC_USDC"

margin_mode
enum<string>

Default: CROSS. Margin mode for the leverage update.

Available options:
CROSS,
ISOLATED

Response

200 - application/json

OK

success
boolean
required
Example:

true

timestamp
integer
Example:

1702989203989

data
object