Order Placement

Place order

Place a new order

Submits a new order asynchronously for the specified account. Note: Order placement is asynchronous. The returned result confirms submission, not execution or visibility. To retrieve the order status or execution details, query the GET /{orderId} endpoint after submission.

You are using your live production account. These commands will execute real orders in your real account, proceed with caution.

POST/userapigateway/trading/{accountId}/order

Parameters

Path Parameters

string

Request body

Required*

Parameters

NameTypeRequiredDescription
accountIdstringYes-

Body

application/json

Request Body

application/json
orderIdstringrequired

The OrderId, a UUID conforming to RFC 4122 (standard 8-4-4-4-12 format, e.g., 0d2abd8d-3625-4c83-a806-98abf35567cc), must be globally unique over time. This value serves as the deduplication key; if reused on the same account, the operation is idempotent. If the order is re-submitted due to a read timeout, do not modify any properties. If the original request succeeded, altering fields will have no effect.

instrumentrequired
orderSideenum<string>required

The Order Side BUY/SELL. For Options also include the openCloseIndicator

Available options: BUY,SELL
orderTypeenum<string>required

The Type of order

Available options: MARKET,LIMIT,STOP,STOP_LIMIT
expirationrequired
quantitystring

The order quantity. Used when buying/selling whole shares and when selling fractional. Mutually exclusive with `amount`

amountstring

The order amount. Used when buying/selling shares for a specific notional value

limitPricestring

The limit price. Used when orderType = LIMIT or orderType = STOP_LIMIT

stopPricestring

The stop price. Used when orderType = STOP or orderType = STOP_LIMIT

openCloseIndicatorenum<string>

Used for options only. Indicates if this is BUY to OPEN/CLOSE

Available options: OPEN,CLOSE

Responses

Response

200
application/json
orderIdstring

Response

400application/json

Order validation failed.

No response body defined

{
  "orderId": "c68a2352-e821-47fe-9894-4a54a83a1dd7"
}
The Public Individual API is for your own personal, non-commercial use. Unauthorized access is prohibited. You are responsible for all trades made via the API. Learn more