Skip to main content
POST
TypeScript

Authorizations

Authorization
string
header
required

The Venue key (trdrs_vk_sandbox_… or trdrs_vk_production_…), in preview. It belongs to one venue in one environment and carries the scopes it was created with. The venue's verified owner creates it while signed in. It works on the /api/venues/{venueId} routes and, with trader:read or trader:trade, on the account, market, trading and Connect routes, reading the venue's own traders' accounts and Connect, routing their orders and connecting their own accounts, each request naming its trader in x-trdrs-trader. A trdrs_sk_… key can't be used in its place. It reaches its venue's routes and its venue's own traders, and the owner manages keys from a signed-in session. Keep it on your server.

Headers

Idempotency-Key
string
required

A key you choose, 1 to 128 characters, that identifies this write. Send the same key when you retry it, so the write is never applied twice.

Required string length: 1 - 128

Path Parameters

venueId
string<uuid>
required
accountId
string
required

Body

application/json
instrumentId
string
required
side
enum<string>
required
Available options:
buy,
sell
quantity
string
required

The whole quantity, in the market's own units.

algo
enum<string>
required

How it is worked: twap, a time-weighted average, its quantity in slices spread evenly over the window.

Available options:
twap
seconds
integer
required

The window, from 60 seconds to 7 days, at least 10 seconds a slice.

Required range: 60 <= x <= 604800
slices
integer

How many slices, from 2 to 1,000.

Required range: 2 <= x <= 1000
limitPrice
string | null

The worst price a slice trades at: each slice is then a limit order at it, immediate-or-cancel. Null or absent for market slices.

reduceOnly
boolean

Where the provider states reduce-only orders: each slice may only reduce the position.

randomize
boolean

Vary each slice: each slot after the first moves by up to a fifth of the time between slots, and each slice's size by up to a fifth of its share, from a seed of the parent's own, so its schedule never changes. Its last slice still sends all that is left, inside the window.

dryRun
boolean

Check the parent and place nothing.

Response

Success. The response is sent with Cache-Control: no-store, so don't cache it.

parentOrder
object
required
checks
null | object
required
replayed
boolean
required