post
https://api.testnet.rise.trade/v1/orders/tpsl
Create a Take Profit or Stop Loss order. Orders are stored off-chain and executed on-chain when the stop price condition is met.
Order Types:
TAKE_PROFIT: Triggers when price moves favorably (long: price >= stop_price, short: price <= stop_price)STOP_LOSS: Triggers when price moves unfavorably (long: price <= stop_price, short: price >= stop_price)
Stop Price Options:
MARK_PRICE: Use oracle mark price for triggerLAST_TRADED_PRICE: Use last traded price for trigger
Signature (required):
Sign EIP-712 typed data (same domain as regular orders) with primaryType PlaceTpslOrder:
fields: account(address), marketId(uint64), side(uint8), size(string), stopType(uint8), stopPrice(string), limitPrice(string), orderType(uint8), stopPriceOption(uint8), tif(uint8), deadline(uint32), sizePercentBps(uint32).
Use exact same string values in signature and request body.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…