Standing orders
1
Prepare
GET /solana/orders/prepare?owner=&input=&output=&amount=&kind=limit|stop|dca|twap (plus minOut, slice, intervalS,
expiryS). The owner signs and sends tx.2
Register
POST /solana/orders with {"policy": "<policy>"}. Stop orders add triggerOut.3
Track or cancel
GET /solana/orders?owner= lists orders and fills. GET /solana/orders/revoke?policy= returns the cancel transaction.Agent trades
Let a bot or AI agent trade from a wallet within limits the owner signs once.- Create the policy with
GET /solana/orders/prepare?...&kind=agent&agent=<agent public key>; the owner signs and sendstx. - For each trade,
GET /solana/delegate/trade?policy=&input=&output=&amount=. The agent signstxand sends it withPOST /solana/gasless/submit. - Cancel with
/solana/orders/revoke.