Anthias Aggregator API DocsGuideReference

Discounted Spot Trading API Documentation

Overview

Anthias is a token swap quoting and routing layer built on Hyperliquid. It aggregates pricing across supported liquidity sources and routing paths to return the best available quote for a given input amount, including expected output, price impact, and fee breakdowns. This documentation is intended for integrators who want to embed Anthias quoting and swapping into their own product or execution flow. The primary integration endpoint is /quote and /swap which returns a structured quote payload and used for perform swap with the best quotes available.

Anthias supports discounted trading for eligible partners. When enabled for your account/API key, quotes will reflect discounted fee rates (e.g., maker/taker fees) and improved effective execution costs where applicable.

Algorithm for fetching best quotes

Anthias Quoter generates depth-aware quotes using live Hyperliquid orderbook liquidity, not just mid-prices.

  • Live pricing + depth: consumes real-time AllMids and L2 orderbook (L2Book) data.

  • Execution simulation: walks the book level-by-level to estimate the true fill and expected output for the requested size.

  • Best-available estimate: fetches multiple book precisions in parallel and fills any remainder using a waterfall approach for more reliable quoting under changing depth.