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.
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 |