Trading
Place market order
Changed onCreates a new market order.
Sell orders - send quantity (base asset amount to sell). Do not send amount.
Buy orders - send amount (maximum quote asset to spend). The base quantity is derived automatically from the live orderbook, using the same logic as the easy buy feature. Do not send quantity. Minimum spend is 5 quote units.
post/orders/market
Request
- Base URLhttps://api.altcointrader.co.za
- AuthAPI key in header X-API-KEY and API key in header X-TIMESTAMP and API key in header X-SIGNATURE
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"market": "BTCZAR",
"side": "buy",
"quantity": "0.01",
"amount": "10000",
"client_order_id": "my-order-2"
}Response
Order created successfully.
Example response
{
"order_id": "order-001",
"client_order_id": "my-order-1",
"market": "BTCZAR",
"side": "buy",
"type": "limit",
"price": "1020000",
"quantity": "10000000",
"filled": "0",
"remaining": "10000000",
"status": "open",
"time_in_force": "GTC",
"post_only": true,
"created_at": 1710000000,
"updated_at": 1710000001,
"cancelled_at": 1710000100
}Changes
- info
added the optional property
to the response with the status
- info