Creates a limit or market order. Change the “type” field to switch between order types. If postOnly is true and an order would match at placement, a 400 is returned with error post_only_has_match.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
buy or sell
buy, sell "buy"
Trading market pair
"AAPL-USD.P"
Limit price. Must be aligned with quoteIncrement from /v1/markets. Omit for market orders.
"1.55"
Order quantity in base currency. Used for both limit and market orders. Must be aligned with baseIncrement from /v1/markets.
"20.30"
Order quantity in quote currency. Can only be set for market order buys.
"13.0967"
Optional client-provided order ID. Must be alphanumeric including underscores and dashes, and at most 64 characters.
"order123"
Order type. Defaults to "limit".
limit, market "limit"
"GTC" (Good until cancelled) or "IOC" (Immediate or cancel). Cannot be set for market orders. Defaults to "GTC".
GTC, IOC "GTC"
If true, the order is rejected if it would match at placement. Returns 400 with error post_only_has_match if it would match.
false
If true, the order can only reduce an existing position.
false
Created order
Whether the request was successful
true
Error message, present only on failure
""
Semantic error code. See each endpoint's error responses for the specific codes it can return.
Deprecation notice, if applicable
""