set_margin_mode
Set your Bybit account margin mode to isolated, regular, or portfolio margin to control risk allocation per position.
Instructions
Set account margin mode.
Args: margin_mode: ISOLATED_MARGIN, REGULAR_MARGIN, or PORTFOLIO_MARGIN.
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": {
"margin_mode": "<margin_mode>"
},
"name": "set_margin_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin_mode | Yes |