The endpoint creates stop-limit trading order.
Error Codes
30 - default validation error code31 - market validation failed32 - amount validation failed33 - price 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."],
"price": ["Price field is required."],
"side": ["Side field is required."]
}
}
{
"code": 30,
"message": "Validation failed",
"errors": {
"side": ["Side field should contain only 'buy' or 'sell' values."]
}
}
{
"code": 32,
"message": "Validation failed",
"errors": {
"amount": ["Amount field should be numeric string or number."]
}
}
{
"code": 33,
"message": "Validation failed",
"errors": {
"price": ["Price field should be numeric string or number."]
}
}
{
"code": 31,
"message": "Validation failed",
"errors": {
"market": ["Market is not available."]
}
}
{
"code": 31,
"message": "Validation failed",
"errors": {
"market": ["Market field should not be empty string."]
}
}
{
"code": 32,
"message": "Validation failed",
"errors": {
"amount": ["Not enough balance."]
}
}
{
"code": 32,
"message": "Validation failed",
"errors": {
"amount": [
"Given amount is less than min amount 0.001",
"Min amount step = 0.000001"
]
}
}
{
"code": 30,
"message": "Validation failed",
"errors": {
"total": ["Total (amount * price) is less than 5.05"]
}
}
{
"code": 36,
"message": "Validation failed",
"errors": {
"clientOrderId": ["ClientOrderId field should be a string."]
}
}
{
"code": 36,
"message": "Validation failed",
"errors": {
"clientOrderId": [
"ClientOrderId field should contain only latin letters, numbers and dashes."
]
}
}
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 currency when order is filled
Price
PostOnly flag
IOC flag
Order status
Self trade prevention mode
Position side (for collateral orders)
Indicates Retail Price Improvement (RPI) mode for the order.
true