This endpoint creates stop-market trading order.
Error Codes
30 - default validation error code31 - market validation failed32 - amount validation failed36 - clientOrderId validation failedErrors
{
"code": 30,
"message": "Validation failed",
"errors": {
"activation_price": ["Activation price field is required."],
"amount": ["Amount field is required."],
"market": ["Market field is required."],
"side": ["Side field is required."]
}
}
{
"code": 31,
"message": "Validation failed",
"errors": {
"market": ["Market is not available."]
}
}
{
"code": 32,
"message": "Validation failed",
"errors": {
"amount": ["Not enough balance."]
}
}
API Key authentication for private endpoints.
Required headers:
Order type. Variables: 'buy' / 'sell' Example: 'buy'
buy, sell Identifier should be unique and contain letters, dashes, numbers, dots or underscores. The identifier must be unique.
Self trade prevention mode. Variables: 'no' / 'cancel_both' / 'cancel_new' / 'cancel_old'. Example: 'no'.
no, cancel_both, cancel_new, cancel_old "no"
Order created successfully
Order ID
Custom client order ID; empty string if not specified
Deal market
Order side
Order type
Timestamp of order creation
If order finished - amount in money currency that is finished
If order finished - amount in stock currency that is finished
Amount
If order not finished - rest of the amount that must be finished
Fee in money that you pay if order is finished
Price
PostOnly flag
IOC flag
Order status
Self trade prevention mode
Position side (for collateral orders)
RPI order flag - indicates whether Retail Price Improvement was enabled for this order
true