v3-sdk icon indicating copy to clipboard operation
v3-sdk copied to clipboard

Query Pool State at Block Number/Time

Open sandeepmukh opened this issue 2 years ago • 1 comments

Is there an easy way to query the liquidity state and price of a pool similar to the observe function from the SDK does?

sandeepmukh avatar Apr 06 '22 00:04 sandeepmukh

Hey @sandeepmukh - if you're looking for accurate live pricing your best bet may be to use the Quoter contract. Bindings in the SDK are here: https://github.com/Uniswap/v3-sdk/blob/fa4bcec4cf472781f00ac5701c4f58fde2c139ce/src/quoter.ts

marktoda avatar Jul 13 '22 18:07 marktoda