Skip to main content
POST
/
api
/
v1
/
update-leverage
Update Leverage
curl --request POST \
  --url https://order.trade.rails.xyz/api/v1/update-leverage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "market": "ETH-USD",
  "leverage": "5"
}
'
{
  "message": "leverage updated successfully"
}

Documentation Index

Fetch the complete documentation index at: https://docs.rails.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

application/json
market
string
required

Market name. Example value: ETH-USD. To get all supported markets, call /api/v1/markets endpoint.

leverage
string
required

Leverage to set for the market. Supported values: 1, 2, 3, 4, 5.

Response

message
string
required

A message describing the result of the update leverage operation.