Limit orders
Place, edit, and cancel resting limit orders.
A limit order rests until the market reaches your price. Up to 5 limit orders per market + side.
Place
Placing a limit order goes through open-position — set orderType: "LIMIT" and a limitPrice:
curl -X POST $FLASH_API_URL/transaction-builder/open-position -d '{
"inputTokenSymbol": "USDC", "outputTokenSymbol": "SOL",
"inputAmountUi": "100.0", "leverage": 5.0, "tradeType": "LONG",
"orderType": "LIMIT", "limitPrice": "150.00", "owner": "<WALLET>"
}'Attach exits with takeProfit / stopLoss in the same call.
Edit
Change price, size, or attached TP/SL. Per on-chain semantics: for limitPriceUi / sizeAmountUi, omit (or send "0") to keep existing. TP/SL do not persist across an edit — re-send a value to keep it, "0"/omit removes it.
curl -X POST $FLASH_API_URL/transaction-builder/edit-limit-order -d '{
"marketSymbol": "SOL", "side": "LONG", "orderId": 0,
"limitPriceUi": "148.00", "sizeAmountUi": "0.5", "owner": "<WALLET>"
}'Cancel
Cancelling returns reserved collateral and frees the slot. orderId is the slot index (0–4) from the order metrics in GET /orders/owner/{owner}.
→ Full fields: API reference › Trading › Limit orders
Last updated
Was this helpful?

