The endpoint creates limit order using collateral balance.
For open long position use buy, for short sell. To close current position, place opposite order with current position amount.
37 when both rpi=true and ioc=true are used.Error Codes
30 - default validation error code31 - market validation failed32 - amount validation failed33 - price validation failed36 - clientOrderId validation failed37 - ioc=true cannot be used with postOnly=true or rpi=trueAPI Key authentication for private endpoints.
Required headers:
Order type. Variables: 'buy' / 'sell'. For open long position use buy, for short sell.
buy, sell Identifier should be unique and contain letters, dashes, numbers, dots or underscores.
An immediate or cancel order (IOC) is an order that attempts to execute all or part immediately and then cancels any unfilled portion.
Enables Retail Price Improvement (RPI) mode.
RPI orders are post-only by design and cannot be used with ioc=true. The API returns error code 37 when both rpi=true and ioc=true are used.
true
Defines the position direction when hedge mode is enabled. See positionSide
long, short, both Order created