Create order
Changed onCreates a new order and sends to our internal systems for execution. Note that a successful call to this endpoint does not necessarily mean your order has been accepted, e.g. a downstream venue might reject your order. You should therefore utilize our WebSocket APIs to listen for changes in order lifecycle events.
Request
- Base URLhttps://api.clearstreet.io/studio/v2
- AuthHTTP bearer
Path parameters
Account ID for the account.
Request body
Example request
{
"reference_id": "my-order-id-123",
"quantity": "100",
"price": "123.99",
"stop_price": "123.99",
"symbol": "AAPL",
"strategy": {
"min_percent": 1,
"max_percent": 35
}
}Response
Order received. Indicates the the order was received and is pending further processing.
Example response
{
"order_id": "234usdfa3"
}Changes
- breaking
request property
was restricted to a list of enum values - breaking
the
request property type changed from no type tostring - info
added the new
closeenum value to the request property - info
added the new
openenum value to the request property
- breaking
- breaking
removed the enum value
closeof the request property - breaking
removed the enum value
openof the request property - breaking
the
request property type changed fromstringto no type
- breaking