Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Metric Docs | Integrate via API

Use Metric API data to discover pools, inspect quotes and integrate liquidity into routing, analytics or execution workflows.

Use Metric API data to discover pools, inspect quotes and integrate liquidity into routing, analytics or execution workflows.

Metric is built around Active Pools: liquidity pools that use a Price Provider to supply bid, ask and reference prices instead of relying only on reserve ratios. This page focuses on Integrate via API and the practical checks that matter when using or integrating the protocol.

API integration flow

Use metadata to identify pools and assets, retrieve current quote information, compare candidate routes and pass only validated results into transaction preparation.

Client responsibilities

Handle timeouts, schema changes, numeric precision, token decimals, chain identifiers and quote freshness explicitly. Cache metadata more aggressively than prices.

Production pattern

Separate discovery from execution: API data can inform routing, but the final transaction still needs onchain limits and receipt validation.

Last updated