Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

A Lean API key, sent as Authorization: Bearer <key>. A test key (lean_sk_test_...) simulates orders and fills with no money; a live key (lean_sk_live_...) trades for real within the key's limits. Every successful response says which mode answered in data.livemode.

Body

application/json
orders
object[]
required

Between 1 and 25 bodies of POST /v1/orders, each previewed as POST /v1/orders/preview previews it. A body that fails validation refuses the whole batch with 400.

Required array length: 1 - 25 elements

Response

One result per body, in the order sent; places and reserves nothing

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required