Create bulk orders
Changed onCreates multiple orders in a single request, up to 1000. Note that a successful call to this endpoint does not necessarily mean your orders have 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.
The response will contain an array of objects, indicating whether your order was submitted. If the order was submitted, the order_id field will be populated with the order ID assigned to this order. If the order was rejected, the reason field will be populated with the reason for rejection. The data array returned in the response object is guaranteed to be ordered in the same order as the orders you provided in the request. Again, note that even if your order was submitted, that doesn't mean it was accepted, and may still be rejected by downstream venues.
Request
- Base URLhttps://api.clearstreet.io/studio/v2
- AuthHTTP bearer
Path parameters
Account ID for the account.
Request body
Example request
{
"orders": [
{
"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
Orders received. Indicates the orders were received and are pending further processing.
Example response
{
"data": [
{
"order_id": "12390213"
}
]
}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