Create a collateral OCO (one-cancels-the-other) order combining limit and stop-limit via the V4 API.
reduceOnly parameter documented on this page is coming soon. The documentation is published in advance for integration planning. The parameter is not yet accepted by the API. See Reduce-only orders for details.The public WhiteBIT API key.
Base64-encoded JSON request body.
HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).
Order direction. Use buy to open or increase a long position and sell to open or increase a short position.
buy, sell "buy"
Amount of stock currency for both legs of the OCO order. Minimum and step values are market-dependent — query the market info endpoint for constraints.
"0.001"
"{{request}}"
"{{nonce}}"
Custom order identifier. Must be unique and contain only letters, numbers, dashes, dots, or underscores.
"order1987111"
When true, both legs of the OCO order can only reduce or close an existing position — neither leg can increase the position or open a new one. If the order amount exceeds the current position size, the system reduces the order to match. The API returns error code 116 if no open position exists or the order side matches the position direction. See reduce-only.
false