orders
Place orders on the exchange.
Description
This route only works for Smarkets API users, other users will receive a 403 status code response.<br><br> For immediate_or_cancel orders type, the route will return when the order is matched (or cancelled).<br> For all other order types, the route will return when the order is accepted by the exchange.<br> In the latter case, GET v3/orders should be used to check the status of the order, using the order id returned by this response.
Rate limits
Maximum 10 requests per second<br>
post/v3/orders/
Request body
Example request
{
"contract_id": "123456",
"label": "strategy_1",
"market_id": "128939",
"minimum_accepted_quantity": 10000,
"price": 5000,
"quantity": 10000,
"side": "buy",
"type": "good_til_halted"
}Response
Order placement success
Example response
{
"available_balance": "100.00",
"available_quantity": 15000,
"contract_id": "123456",
"executed_avg_price": 5000,
"exposure": "-50.00",
"market_id": "128939",
"order_id": "1518455672861",
"orig_price": 5000,
"price": 5000,
"quantity": 10000,
"side": "buy",
"total_executed_quantity": 15000
}Changes
No recorded changes to this endpoint across all 1 revision of this API.