Place a single order
https://trading-gateway-api.prod.thinkalpha.io/orders- Authentication
- Bearer token or Client credentials (HTTP Basic)
Query parameters
- session string
Request body application/json required
Request body for creating a new order. This is the base type accepted by the REST `POST /orders` endpoint and the `order.create` Socket.IO event. Executor-specific validation is applied on top via a dynamic JSON Schema.
- AccountDescriptor required
Polymorphic account identifier — can be a raw UUID or a qualified name lookup. This is the client-facing version with all 5 lookup variants.
- attributes object
- duration OrderDuration
Time-in-force / duration of an order.
one of "gtc", "day", "gtx", "gtd", "opg", "ioc", "atc", "fok" - exDestination string
Execution destination name.
- expireTime string<date-time>
Expiry timestamp. Required when duration is `gtd`.
- instructions ExecutionInstructions
Execution instructions (DNR, DNI, AON, NotHeld, Held, BIN).
- Instrument required
A discriminated union of instrument types.
- isManualReviewEnabled boolean
Whether manual review rules are applied to this order.
- NewOrderLeg[]
Legs for multi-leg orders (required when side is `multi-leg`).
min items 1max items 100 - maxFloor number<double>
Max floor for reserve/iceberg orders.
>= 0 - nonce string
Optional nonce for idempotency (client-generated unique string).
- openClose OpenClose
Open/close indicator. Required for option orders.
- price number<double>
Limit price. Required when type is `limit`, `stop_limit`, or `box_limit`.
- quantity integer<int64>
Quantity in shares. Required for all sides except `closeout`. Must be >= 1.
>= 1 - route string
Route name within an execution destination.
- side OrderInitialSide required
The initial side of an order (excludes sell-split).
one of "buy", "sell", "sell-short", "closeout", "multi-leg" - statusWebhook string
Webhook URL to receive order status updates.
- stopPrice number<double>
Stop price. Required when type is `stop` or `stop_limit`.
- tags object
- type OrderType required
Type of an order.
one of "market", "limit", "stop", "stop_limit", "pegged", "box_limit", "box_market"
Responses
The full order representation returned by the REST API when querying an order.
- account string
The order's account, as its UUID rendered to a string. Named `account` rather than `accountId` for continuity with the TypeScript API, which emitted `account: order.accountId?.toString()` and so omits it for a legacy order stored without an account.
- attributes object
- batchId string<uuid>
- createdAt string<date-time> required
- creatorId string<uuid>
- duration OrderDuration required
Always present: the domain order carries a non-optional duration and both this API and the TypeScript one it replaced emit it unconditionally.
one of "gtc", "day", "gtx", "gtd", "opg", "ioc", "atc", "fok" - exDestination string
- ExecutorInfo required
FIX session identifiers attached to a routed order, as exposed to API clients.
- expireTime string<date-time>
- id string required
- instructions ExecutionInstructions
The execution instruction flags on an order.
- Instrument required
A discriminated union of instrument types.
- isManualReviewEnabled boolean
- lastError string
- OrderLeg[]min items 1max items 100
- maxFloor number<double>>= 0
- nonce string
- openClose OpenClose
Open or close indicator for an order or leg.
- price number<double>
- quantity integer<int64>
An order quantity in shares: a whole number of at least one.
>= 1 - route string
- side OrderSide required
Side of an order.
one of "buy", "sell", "sell-short", "sell-split", "closeout", "multi-leg" - status OrderStatus required
Status of an order through its lifecycle.
one of "pending", "created", "updated", "submitted", "rejected", "accepted", "filled", "partially-filled", "canceled", "expired", "cancel-pending", "kill-pending", "update-pending", "suspended" - statusWebhook string
- stopPrice number<double>
- tags object
- type OrderType required
Type of an order.
one of "market", "limit", "stop", "stop_limit", "pegged", "box_limit", "box_market" - OrderUpdate[] required