set_auto_add_margin
Set auto add margin for Bybit positions by toggling on or off. Specify symbol, category, and position index to control automatic margin allocation.
Instructions
Set auto add margin for a position.
Args: symbol: Symbol, e.g., BTCUSDT. auto_add_margin: 0: off, 1: on. category: Product type: linear (default: linear). position_idx: 0: one-way, 1: hedge-Buy, 2: hedge-Sell (default: 0).
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": {
"symbol": "<symbol>",
"auto_add_margin": "<auto_add_margin>"
},
"name": "set_auto_add_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| auto_add_margin | Yes | ||
| category | No | linear | |
| position_idx | No |