v1
latestOpenAPI 3.0.12026-07-26171200932.8 KBCreate an order
Rate limit: 20 requests per 60 seconds. This is a shared quota — the same budget is consumed by a group of related endpoints, so calling any of them reduces what is left for the others (you cannot call each at the full rate independently). Endpoints sharing this quota:
- DELETE /api/v1/trading/execution/demo/limit-orders/{orderId}
- DELETE /api/v1/trading/execution/demo/market-close-orders/{orderId}
- DELETE /api/v1/trading/execution/demo/market-open-orders/{orderId}
- DELETE /api/v2/trading/execution/demo/orders/{orderId}
- POST /api/v1/trading/execution/demo/limit-orders
- POST /api/v1/trading/execution/demo/market-close-orders/positions/{positionId}
- POST /api/v1/trading/execution/demo/market-open-orders/by-amount
- POST /api/v1/trading/execution/demo/market-open-orders/by-units
This endpoint allows traders to place an order. Leverage, stop-loss, and take-profit settings can be applied. Order size must use exactly one of amount, units, or contracts. For open orders the instrument must be identified by exactly one of symbol or instrumentId - providing both is rejected. A unique X-Request-Id header (GUID) is required for idempotency. Currently only orders to open a position are supported.
Headers
A unique request identifier.
API key for authentication.
User-specific authentication key.
Request body
Example request
{
"action": "open",
"transaction": "buy",
"symbol": "AAPL",
"instrumentId": 101,
"settlementType": "cfd",
"orderType": "mkt",
"leverage": 2,
"amount": 1000,
"orderCurrency": "usd",
"stopLossRate": 1.2,
"takeProfitRate": 1.5,
"stopLossType": "fixed"
}Response
Order submitted successfully. Returns the created order details.
Example response
{
"token": "066faaee-e1e9-49d2-a568-c6e1cc336ad8",
"orderId": 13902598,
"referenceId": "1c94300c-90aa-4303-9d00-dec376d74efb"
}