Place Order
/accounts/{accountId}/ordersPlace a new order for the specified account. Call Preview Order first to pre-validate and show the results to the user, and then use confirmId in this request.
Path Parameters
The account identifier.
Body Parameters
Security symbol. Example: AAPL.
Order direction.
Order type.
Whether the order size is specified by quantity or notional amount.
Asset class.
Order time-in-force.
Trading session.
Order quantity. Required when quantityType is qty.
Order notional amount. Required when quantityType is amount.
Limit price. Required for limit and stopLimit order types.
Stop trigger price. Required for stop and stopLimit order types.
Position direction.
Take-profit leg.
Stop-loss leg.
The confirmId returned from a prior preview request.
Request Example
{
"instrument": "BAC",
"side": "buy",
"type": "limit",
"quantityType": "qty",
"qty": "100",
"limitPrice": "30.0",
"category": "stock",
"durationType": "day",
"extendHours": "reg",
"confirmId": "0000001"
}Response
Order accepted.
Status indicator. ok on success.
The identifier of the newly created order.
Response
Error response.
Error code string, e.g. invalid_grant.
Human-readable error message.
Response Example
{
"s": "ok",
"d": {
"orderId": "112358"
}
}