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 "buy"
"{{request}}"
"{{nonce}}"
Identifier should be unique and contain letters, dashes, numbers, dots or underscores.
"order1987111"
An immediate or cancel order (IOC) is an order that attempts to execute all or part immediately and then cancels any unfilled portion.
false
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 "LONG"
Successful response - order created
Unique order identifier
4180284841
Custom client order identifier. Empty string if not specified
"order1987111"
Market name
"BTC_USDT"
Order side
buy, sell "buy"
Order type
"limit"
Timestamp of order creation in Unix format
1595792396.165973
Amount in money currency that is finished
"0"
Amount in stock currency that is finished
"0"
Order amount
"0.01"
Remaining amount that must be finished
"0.001"
Fee in money that is paid when order is finished
"0"
Order price
"40000"
Post-only flag
false
Immediate or cancel flag
false
Order status
NEW, FILLED, PARTIALLY_FILLED, CANCELLED "FILLED"
Self trade prevention mode
"no"
OTO order data when stopLoss or takeProfit is specified
Position side
LONG, SHORT, BOTH "LONG"
Retail Price Improvement flag
true