setLeverage
Set the buy and sell leverage for contract positions, supporting linear and inverse contracts. Adjust leverage for one-way, cross, or isolated margin modes.
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 |
|---|---|---|---|
| symbol | Yes | ||
| category | Yes | ||
| buyLeverage | Yes | ||
| sellLeverage | Yes |