set_leverage
Set buy and sell leverage for a position on Bybit. Adjust leverage up to risk limits for linear or inverse symbols.
Instructions
Set leverage for a position (HIGH risk - requires confirmation).
Args:
category: Product type - linear, inverse
symbol: Symbol name
buyLeverage: Buy leverage (0 to max for risk limit)
sellLeverage: Sell leverage (0 to max for risk limit)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>",
"symbol": "<symbol>",
"buyLeverage": "<buyLeverage>",
"sellLeverage": "<sellLeverage>"
},
"name": "set_leverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| category | Yes | ||
| buyLeverage | Yes | ||
| sellLeverage | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |