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

Get Token spot price #13

Open
heeropunjabi opened this issue Dec 29, 2021 · 0 comments
Open

Get Token spot price #13

heeropunjabi opened this issue Dec 29, 2021 · 0 comments

Comments

@heeropunjabi
Copy link

Hi @sameepsi ,

thanks for the great work done on quickswap.

I was going through the docs at https://docs.uniswap.org/protocol/V2/reference/smart-contracts.
since these contracts are used by https://quickswap.exchange/

I am looking for a better solution where I can get a spot price for a pair.
I came across this https://docs.uniswap.org/protocol/V2/reference/smart-contracts/pair#swap

Event will be triggered as soon as swap will happen at uniswap.

Our code will continuously listen for events on that pair and as swap happens we will calculate the spot price.

As there any better approach for the given problem?
TIA

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

1 participant