Place TWAP order

Place a TWAP (time-weighted average price) order. The parent order never reaches the chain: the backend sends one market IOC child order per interval until the size is filled or the duration runs out.

Sizing: size is in the base asset and is rounded down to the market's step size. Slices are that size divided by duration / frequency + 1 (one at the start, one every interval, one at the end: 30 minutes at 30s is 61); a slice smaller than the market minimum order size is rejected here rather than on-chain, so raise the size or shorten the duration. With randomize the check uses the low end of the range, 20% under the base slice.

Slippage: each child order is a market IOC and is capped by the market's own price band. A slice that cannot fill inside the band fills partially, and the remainder is picked up by later slices, up to 3x the base slice size.

Conditional start: with trigger_price the order waits until the mark price reaches that level, then runs for its full duration from that moment. It waits indefinitely, like a TP/SL order; cancel it to stop waiting.

Price guards: max_price / min_price terminate the order when the mark price reaches them. Whatever has filled stays filled; the remainder is not sent.

Leverage and margin mode are account-level settings per market and are not part of this request — the TWAP uses whatever the account already has, exactly like a normal market order.

Requires JWT authentication: the backend places the child orders through the OperatorHub allowance, so the account's allowance must cover the whole size and outlast the run.

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 to work, in base asset (decimal string, e.g. "1.5"), the same unit as
PlaceTpslOrder.size. Rounded down to the market's step size; the response carries the
resolved amount.

int64

Total runtime in minutes. Between 5 minutes and 24 hours.

int64

Seconds between child orders. Defaults to 30, which is also the minimum.

boolean

Vary each child order's size and timing by up to 20%, so the run is harder to identify on-chain.

boolean

Only reduce an existing position. A reduce-only TWAP keeps running when the account is out of
free collateral, since it lowers risk rather than adding it.

string

Wait until the mark price reaches this level before starting (decimal string, e.g. "97000").
Empty means start immediately. The order waits indefinitely; cancel it to stop waiting.

string

Terminate the order if the mark price reaches this level (decimal string). Empty means no bound.

string
Responses

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