Skip to main content

Data flow

Client                    Argyros API                 Fogo
  │                           │                          │
  GET /quote                  │                          │
  ──────────────────────────>│                          │
                              │  find best route         │
  QuoteResponse               │  across all pools        │
  <──────────────────────────│                          │
                              │                          │
  POST /swap                  │                          │
  ──────────────────────────>│                          │
                              │  build transaction       │
  unsigned transaction        │                          │
  <──────────────────────────│                          │
                              │                          │
  sign + submit ─────────────────────────────────────────>│
                              │                          │
  confirmation <─────────────────────────────────────────│

Components

API Server. Gin-based HTTP service that handles quote requests, builds swap transactions, and returns raw instructions. Stateless and horizontally scalable. Routing Engine. Off-chain pathfinding that evaluates routes across all supported DEXs on Fogo. Finds direct swaps, multi-hop paths (e.g., Token A → SOL → USDC → Token B), and split routes across multiple pools. Supported DEXs. Vortex (concentrated liquidity), Fluxbeam (AMM), Fogo.fun (bonding curves), and Moonit (bonding curves). On-chain Program. Verifies and executes the swap instructions atomically. If any hop fails or slippage is exceeded, the entire transaction reverts.
Solana support coming soon with additional DEXs including Raydium, Orca, and Meteora. See Supported Chains.

Two integration paths

PathEndpointUse case
TransactionPOST /api/v1/swapGet a ready-to-sign transaction. Sign it and submit. Simplest integration.
InstructionsPOST /api/v1/instructionsGet raw instructions to compose with your own transaction logic (e.g., adding custom instructions before/after the swap).
Both paths start with GET /api/v1/quote to find the best route.