Place TWAP order

⚠️

Requires Authentication.

TWAP order body:

{
  "market": "XRP-PERP",
  "side": "buy",
  "size": 1.003,
  "durationSeconds": 600,
  "maxSpread": 0.01,
  "maxIndividualOrderSize": 5.0,
  "maxDistanceThroughBook": 0.1,
  "randomizeSize": false,
  "clientId": "your_client_order_id"
}

Response format:

NameTypeSample ValueDescription
id50001
createdAt2019-03-05T09:56:55.728933+00:00
statusrunningIf an order was successfully placed, status will be running. Possible values: running, expired, cancelled.
marketXRP-PERPticker of the market
futureXRP-PERPticker of the future. null if spot
sidebuyOne of buy or sell
size1.003total order size
typemarketOne of market or limit. Determines the type of order that each TWAP execution sends. select limit corresponds to GUI hybrid
durationSeconds600In seconds, the duration this TWAP order will run for.
randomizeSizefalseIf true, each individual order for this TWAP will be sent with size bound by some [lower, upper] bound.
maxSpread0.01Optional; When specified, an individual order for this TWAP will not be sent if market spread is higher than maxSpread. For %1 spread, this value will be 0.01.
maxIndividualOrderSize5.0Optional; When specified, an individual order for this TWAP will be capped at maxIndividualOrderSize
maxDistanceThroughBook0.1Optional; Max allowed distance of order price from market price. For 1% distance, this field will be 0.01.
priceBound5500Optional; When specified, an individual order for this TWAP will not be sent if market price is above (for buys) or below (for sells) this price bound.
filledSize0.0Total filled size of this TWAP. This value is updated throughout the execution of the TWAP.
avgFillPrice0.0Average price paid for the filled size.
Language
Authentication
Basic
base64
: