Data flows

Quote flow, agent chat flow, and price flow.

Swap quote flow

  1. User enters amount + tokens.

  2. UI calls backend quote endpoint.

  3. Backend queries X1/X2/X3 in parallel.

  4. Scoring ranks candidates.

  5. UI renders ordered routes.

AI agent chat flow

  1. User sends a message.

  2. Backend agent parses intent.

  3. Agent calls tools (quotes, compare, prices, balances).

  4. Agent returns a plan + best route.

Price flow

  1. Browser calls a server-side proxy route.

  2. Server fetches market data.

  3. Browser receives normalized JSON.

circle-info

Keep market-data routes separate from execution routes. It simplifies security reviews.

Last updated