Collateral Trading
Update Collateral Account Hedge Mode
The endpoint enables or disables hedge mode for the collateral trading account. When hedge mode is enabled (true), the account supports simultaneous long and short positions on the same market. When disabled (false), the account operates in one-way mode.
<Warning> Rate limit: 1000 requests/10 sec. </Warning> <Warning> Switching between one-way mode and hedge mode requires **no open positions**. Close all futures positions before toggling the mode. If the switch does not take effect immediately after closing positions, wait approximately 15 seconds and retry. </Warning> <Accordion title="Error Codes"> - `30` - default validation error code (for example, a missing or non-boolean `hedgeMode` value) - `113` - hedge mode cannot be changed while open positions or orders exist </Accordion>post/api/v4/collateral-account/hedge-mode/update
Request
- Base URLhttps://whitebit.com
- AuthAPI key in header X-TXC-APIKEY and API key in header X-TXC-PAYLOAD and API key in header X-TXC-SIGNATURE
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"hedgeMode": true,
"request": "{{request}}",
"nonce": 1594297865000
}Response
Successful response - hedge mode updated
Changes
No recorded changes to this operation across all 1 revision of this API.