Overview
Ekiden supports leverage settings per market, allowing users to control leverage independently for each trading pair. Adjusting leverage changes how much margin is allocated to an open position in a given market. Increasing leverage reduces the required margin but increases liquidation risk, while lowering leverage increases the required margin and reduces liquidation risk.Endpoint
POST /api/v1/position/set-leverage
Sets leverage for a specific symbol and sub-account.
The request body includes:
leverage: Leverage value to set.sub_account_address: Sub-account address.symbol: Market symbol.
Headers
Request Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
leverage | string | Leverage value to set (e.g. "10" for 10x) | Yes |
sub_account_address | string | Sub-account address | Yes |
symbol | string | Market symbol (e.g. "CC-USDCx") | Yes |
Example Request
Response
Notes
- Leverage is configured per symbol.
- Minimum and maximum leverage limits may vary by market.
- Changing leverage may affect margin requirements and liquidation price.