Skip to main content
POST
/
trading
/
{account_name}
/
{connector_name}
/
leverage
Set Leverage
curl --request POST \
  --url http://localhost:8000/trading/{account_name}/{connector_name}/leverage \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "trading_pair": "<string>",
  "leverage": 63
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

account_name
string
required
connector_name
string
required

Body

application/json

Request model for setting leverage on perpetual connectors

trading_pair
string
required

Trading pair (e.g., BTC-USDT)

leverage
integer
required

Leverage value (typically 1-125)

Required range: 1 <= x <= 125

Response

Successful Response