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

Metric Docs | Retrieve Batch Bid & Ask

Learn when batch quote retrieval is useful for comparing multiple Metric pools, pairs or routes while keeping quote timestamps aligned.

Learn when batch quote retrieval is useful for comparing multiple Metric pools, pairs or routes while keeping quote timestamps aligned.

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 Retrieve Batch Bid & Ask and the practical checks that matter when using or integrating the protocol.

Why batch

Batch retrieval is useful when a router needs to compare many pools or pairs at approximately the same observation time.

Comparison rules

Normalize decimals and asset direction before ranking results. Missing or stale entries should be excluded rather than treated as zero-cost liquidity.

Latency vs completeness

A batch request can reduce round trips, but production code should still handle partial failures and per-pool validation.

Last updated