Place scaled order

Place a scaled order: num_orders limit orders (legs) spread evenly from start_price to end_price, splitting size across them. The legs are ordinary limit orders — they show in open orders, fill and cancel like any other.

Time in force: GTC (default) rests every leg on the book. IOC sends every leg as an immediate-or-cancel limit order: each fills what it can at its price or better and the rest is cancelled, so the ladder is over as soon as it is placed. Every IOC leg is still a transaction, including legs priced away from the market that fill nothing. IOC cannot be combined with post_only.

Pricing: the first leg sits at start_price, the last at end_price (either may be the higher one), the rest spaced linearly between and rounded down to the market's tick. The range must fit num_orders distinct ticks.

Sizing: size is in the base asset. size_skew is the last leg's size ÷ the first leg's, linear in between (0.1–10): 1 splits evenly, 3 makes the end leg three times the start leg, 0.5 halves it. With the start near the market and the end away from it, a skew above 1 puts more size at better prices on either side. variance_pct (0–10) jitters each leg by up to that percentage. Leg sizes are rounded down to the step size and the remainder goes to the largest leg, so the legs sum to exactly size (rounded down to a step). The smallest leg must clear the market minimum order size.

Placement is not atomic: every leg is its own on-chain transaction. A leg that is refused (margin, post-only crossing, open interest) does not stop the others; the response lists each leg's outcome, and the order is FAILED only when no leg was placed.

Margin and limits: the whole ladder must fit in free cross margin and in the open-order limit (50 per market) up front. A reduce-only ladder may not exceed the open position.

Requires JWT authentication: legs are placed through the OperatorHub allowance.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
enum
Defaults to BUY
Allowed:
string

Total size in base asset (decimal string). Rounded down to the market's step size.

string

First and last leg's price (decimal strings). Either may be the higher one.

string
int64

Number of legs, 2–50.

string

Last leg's size ÷ first leg's size (decimal string, 0.1–10). Empty means 1, an even split.

int64

Random per-leg size jitter, in percent (0–10). 0 means none.

boolean

Every leg is maker-only: a leg that would cross the book is rejected instead of filling.

boolean

Every leg can only reduce the open position.

string
enum
Defaults to GTC
  • GTC: Good til canceled
  • GTT: Good til time
  • FOK: Fill or kill
  • IOC: Immediate or cancel
Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json