Git Product home page Git Product logo

uniswap-price-feed's Introduction

uniswap-price-feed

Real time price feeds from Uniswap by leveraging Infura

Setup

Install the dependencies needed to run the project:

$ yarn

Getting a Token Feed

In the index.js file, add an entry for the token you want to use in a pair. The key should be the symbol you want displayed and the value should be the token address (not the pair address).

To get a live data feed for a given pair, run the following command:

$ yarn start <BASE> <QUOTE>

where <BASE> is the token you care about and <QUOTE> is the asset the token will be denominated in. For example, if you wanted to track ETH swaps in terms of USDC, you would do:

$ yarn start ETH USDC

Don't worry if the tokens aren't in the same order on the Uniswap pair, the pair information will be able to be retrieved regardless of if you're demoninating the swaps in the same or opposite asset as Uniswap.

Cool Future Improvements

  • Dynamic price chart using something like Matplotlib (?) to build a live price feed for visualization
  • Clean web page to show pending transaction volume (could be useful to know if incoming buying or selling)

uniswap-price-feed's People

Contributors

stefanmendoza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.