Skip to content

Get Token spot price #13

@heeropunjabi

Description

@heeropunjabi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions