Skip to main content

Submit signed quote legs atomically

POST 

/trade/submit

Idempotent on (quote_id, quote_index). The per-leg signed payload IS the authorization proof; no ownership_proof is required here. Re-quote (410 quote_stale) if the cached snapshot expired between issue and submit.

A quote that carries your integrator fee (integrator_fee_bps > 0 on any leg) can only be submitted with the same X-API-Key that quoted it; anything else is 403 quote_integrator_mismatch and nothing is broadcast. Zero-fee quotes are unaffected.

Request​

Responses​

Partial-broadcast tolerated: legs that landed appear under results, legs that hit an invariant break appear under failed_legs with a generic internal_error code so the agent can reconcile on-chain.