Create Order
Places an order for a member. member_id, market, side and ord_type are required; price, volume and amount are supplied according to the order type.
POST
/api/ordersAuth: RequiredRequest Body
member_idnumberRequiredThe member the operation is for.
marketstringRequiredMarket code.
sidestringRequiredEither buy or sell.
ord_typestringRequiredEither limit or market.
client_order_idstringYour own id for this order.
pricestring | numberLimit price. Accepted as a string or a number.
volumestring | numberBase-asset quantity. Accepted as a string or a number.
amountstring | numberQuote-asset amount. Accepted as a string or a number.
In progress
The response fields for this endpoint are still being written up. Until then, the Swagger UI lets you run the call and see the actual response.
Errors
Beyond the shared errors:
| Code | Meaning |
|---|---|
1001 | member_id is invalid or not yours, or client_order_id has already been used |
2024 | The market does not exist or is inactive |
2002 | The core refused the order — not enough money, an invalid volume, amount or price, or a trading limit. The reason is in the message |