Example
Usage Guidelines
- Prices returns are aggregate values weighted across all valid pools. Provide a pool address if you want prices only from a specific pool.
- We recommend
getDetailedPairStatsfor the most accurate historical price and volume data
Troubleshooting Tips
My query is not returning a pool address, is this expected?
My query is not returning a pool address, is this expected?
Yes. We added a deprecated value to that field (along with deprecating
confidence). It returns null if no pool is specified in the input as the expected behavior is an aggregated price across all pools, not one specific pool. The previous default would be to use the top-pair if no pool was specified.I'm not able to get all the information I need from this endpoint, can we add additional fields in the results?
I'm not able to get all the information I need from this endpoint, can we add additional fields in the results?
Unfortunately not.
getTokenPrices was built to be as fast as possible, so we donβt want to slow it down by adding additional data points to it. Our team is happy to discuss options of how to obtain all the data you need in as few queries as possible.