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
leader
object
required

The position whose sale drives the rest.

quantity
string
required

Shares the leader sells. Each follower sells the same count as the leader fills, so every leg’s position must cover it beyond the account’s other resting sells, stop losses and conditional sells.

Pattern: ^\d+(?:\.\d+)?$
followers
object[]
required

From 1 to 5 positions to sell as the leader fills. Every leg, leader included, is a different position.

Required array length: 1 - 5 elements

Response

The conditional sell, selling, waiting or paused for a follower’s floor

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