User intent → Velora surface
Use
mode=ALL when the user has not explicitly chosen Delta or Market. A mode=ALL response returns one execution path. Do not expect both.Quote response → next action
Wallet state → approval or signature
Execution mode → signing behavior
Order type → required details
Delta advanced orders → API path
Missing information → ask or proceed
Error or symptom → recovery action
Guardrails for agents
- Never invent token addresses, chain IDs, quotes, transaction hashes, or order IDs.
- Always set
partnerto the integrator’s app or project partner key. Treatmy-app-nameas a placeholder, not a literal value. - Branch on the response shape:
deltameans Delta order flow;marketmeans Market transaction flow. - Keep the
deltablock and itshmactogether. Treat them as an opaque pair. - Requote after expiration, HMAC errors, material balance changes, or route failures.
- Ask before changing execution mode, recipient, chain, or spend direction.
- Ask for user confirmation before submitting a signed order or sending an on-chain transaction.
Trading modes
Choose between
mode=DELTA, mode=MARKET, and mode=ALL.Delta quote
Quote Delta and Market paths from the same endpoint.
Market transaction
Build calldata from a Market response.
Chains and contracts
Check supported chains and canonical contract addresses.
Limit orders
Route target-price orders to Delta order flows.
TWAP
Preserve sell-vs-buy amount semantics when splitting trades over time.