open_hedged_position
Open a NEUTRAL hedged position: LONG on exchangeA + SHORT on exchangeB (or vice versa via longExchange param). Entry is executed by the hedge engine strictly from orderbooks (max neutral size, slices, basis control). REAL mode only. Params: exchangeA, exchangeB, symbol, sizeUsd (≤5000), leverage (1-10), strategy ("funding"|"basis"|"hybrid"), longExchange (optional, default exchangeA), protection: slPct/tpPct/maxBasisDeviationPct/marginAlertPct/maxSlippagePct/maxSlices/autoTopUpUsd.
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": {
"exchangeA": "<exchangeA>",
"exchangeB": "<exchangeB>",
"symbol": "<symbol>",
"sizeUsd": "<sizeUsd>",
"leverage": "<leverage>",
"agent": "<agent>"
},
"name": "open_hedged_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Your REAL hedge agent (id or name) whose bound API keys will open the position | |
| slPct | No | ||
| tpPct | No | ||
| symbol | Yes | ||
| sizeUsd | Yes | ||
| leverage | Yes | ||
| strategy | No | ||
| exchangeA | Yes | ||
| exchangeB | Yes | ||
| maxSlices | No | ||
| autoTopUpUsd | No | ||
| longExchange | No | which exchange is the LONG leg (default = exchangeA) | |
| marginAlertPct | No | ||
| maxSlippagePct | No | ||
| maxBasisDeviationPct | No |