okx_set_leverage
Set leverage for a trading position on OKX. Specify instrument ID, leverage multiple, and margin mode to adjust risk.
Instructions
[L:WRITE] CAT:[账户] | → 请先调用 agent_catalog
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lever | Yes | 杠杆倍数,如 10。必须在仓位档位允许范围内 | |
| instId | Yes | 产品ID,如 BTC-USDT-SWAP。必填 | |
| mgnMode | Yes | 保证金模式。cross=全仓, isolated=逐仓 | |
| posSide | No | 持仓方向。不填则双向生效 |