setLeverage
Adjust leverage for both buy and sell sides of a contract position. Supports linear and inverse contracts with margin mode constraints.
Instructions
Set the leverage for a contract position. Supports linear and inverse contracts. In one-way mode or cross margin mode, buyLeverage and sellLeverage must be equal. In isolated margin hedge mode, they can differ.
Agent hint: Use this to change leverage on an existing or new position. Always set both buyLeverage and sellLeverage. For one-way mode and cross margin, they must be identical. Do not set leverage to the current value or it will error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | ||
| symbol | Yes | ||
| buyLeverage | Yes | ||
| sellLeverage | Yes |