Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get price or OHCLV information using uniswap V2 #232

Open
rragundez opened this issue Nov 3, 2024 · 3 comments
Open

how to get price or OHCLV information using uniswap V2 #232

rragundez opened this issue Nov 3, 2024 · 3 comments

Comments

@rragundez
Copy link

rragundez commented Nov 3, 2024

how to get price or OHCLV information using uniswap V2

@miohtama
Copy link
Contributor

miohtama commented Nov 4, 2024

We have examples only for Uniswap v2 in this repo.

The process is

  • Get raw price data (examples available)
  • Construct OHLCV candles out of it

However you can use this API with this library if you want to get access to the price information quickly.

@rragundez
Copy link
Author

rragundez commented Nov 4, 2024

Hi @miohtama , thanks for helping out. Unfortunately I did not find any examples for getting price data for uniswap V2. Perhaps you could help me point out to the examples available for calculating price for Uniswap V2?

@normalnormie
Copy link

Hi @miohtama , thanks for helping out. Unfortunately I did not find any examples for getting price data for uniswap V2. Perhaps you could help me point out to the examples available for calculating price for Uniswap V2?

Inside docs you can find the code for price: Uniswap v2 DEX API>uniswap_v2.pair>PairDetails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants