Skip to main content

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: Required

Request Body

member_idnumberRequired

The member the operation is for.

marketstringRequired

Market code.

sidestringRequired

Either buy or sell.

ord_typestringRequired

Either limit or market.

client_order_idstring

Your own id for this order.

pricestring | number

Limit price. Accepted as a string or a number.

volumestring | number

Base-asset quantity. Accepted as a string or a number.

amountstring | number

Quote-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:

CodeMeaning
1001member_id is invalid or not yours, or client_order_id has already been used
2024The market does not exist or is inactive
2002The core refused the order — not enough money, an invalid volume, amount or price, or a trading limit. The reason is in the message