set_account_position_mode_and_leverage
Set the position mode (HEDGE or ONE-WAY) and/or leverage for an account on a specified exchange. Adjust trading parameters independently—only one setting required per call.
Instructions
Set position mode and leverage for an account on a specific exchange. If position mode is not specified, will only set the leverage. If leverage is not specified, will only set the position mode.
Args:
account_name: Account name (default: master_account)
connector_name: Exchange connector name (e.g., 'binance_perpetual')
trading_pair: Trading pair (e.g., ETH-USD) only required for setting leverage
position_mode: Position mode ('HEDGE' or 'ONE-WAY')
leverage: Leverage to set (optional, required for HEDGE mode)
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": {
"account_name": "<account_name>",
"connector_name": "<connector_name>"
},
"name": "set_account_position_mode_and_leverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_name | Yes | ||
| connector_name | Yes | ||
| trading_pair | No | ||
| position_mode | No | ||
| leverage | No |