actions array from GET /providers. Every trading action is signed by the venue API key (PerpsSigner.SDK) using the hmac signing method and relayed to the venue by the backend — see Signing Model. For setup actions, see Setup. For full parameter schemas, see the Actions API reference.
Order constraints
These apply acrossplaceOrder and placeTriggerOrder:
- Cross margin only.
marginMode: ISOLATEDis rejected. LIMITandMARKETorder types only.pricerequired for a limit order and validated on the market’s price grid;sizeis validated on the size grid.- Time-in-force:
GTC,IOC,POST_ONLY(post-only submits asGTCwith the post-only flag). - No order expiry —
expiresAtmust be omitted. - Trigger legs execute at market — a
limitPriceon atakeProfit/stopLossis rejected.
actions
placeOrder
Places a market or limit order. When leverage is supplied, the SDK first submits a leverage step for the market, then the order. Optional takeProfit / stopLoss legs attach trigger orders to the entry.
placeTriggerOrder
Attaches standalone take-profit and/or stop-loss triggers to an open position. Triggers execute at market (no limit price).
placeTwapOrder
Places a TWAP parent order over REST, relayed by the backend as an HMAC-signed venue request (POST /v1/perps/twap/order).
durationSeconds (the venue’s runningTime) must be between 300 and 86400 seconds and an exact multiple of frequencySeconds (the child-order interval, default 30s; allowed values 30/60/300/900/3600s) — the resulting child-order count must fall between 2 and 200. minPrice/maxPrice bound the acceptable child-order price when both are supplied (minPrice below maxPrice); either or both may be omitted for no bound. randomize must be omitted — Ondo’s REST TWAP endpoint takes no randomization parameter.
cancelOrder
Cancels one or more open orders by id. A single id cancels one order; multiple ids cancel as a batch.
cancelTwapOrder
Cancels a running TWAP parent by id (DELETE /v1/perps/twap/order/{twapId}).
twapId is Ondo’s globally-unique twap_-prefixed identifier returned from placeTwapOrder. market is required by the shared params shape but unused here — Ondo’s TWAP ids need no market to disambiguate.