Metric Docs | Retrieve Pool Bid & Ask
Learn the purpose of retrieving a Metric pool’s current bid, ask and related quote context before pricing or routing a swap.
Learn the purpose of retrieving a Metric pool’s current bid, ask and related quote context before pricing or routing a swap.
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 Pool Bid & Ask and the practical checks that matter when using or integrating the protocol.
Why retrieve both sides
Bid and ask describe the executable direction around the pool’s reference. Keeping both sides prevents an integration from assuming a symmetric spread.
Quote context
Record the pool, pair, chain, timestamp and requested direction with the returned values. These fields matter when debugging route differences.
Freshness
Do not keep a quote longer than the application’s accepted freshness window. Refresh before preparing a time-sensitive swap.
Related Metric Docs
Last updated