eqlabs / vanilla-price-feed

Price feed for Vanilla oracle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vanilla Logo

Price feed for Vanilla oracle

  1. Fetches latest prices for following currency pairs:
  • ETH/USD
  • BTC/USD

...from the following exchanges' public APIs:

  • Binance
  • Gdax
  • Poloniex
  • Bitfinex
  • Kraken
  • Bittrex

...with their accompanying 24h trade volumes.

  1. Calculates a weighted average based on the 24h volume of each exchange.
  2. Fetches prices for the last 15 minutes from Redis, and calculates a moving average from them and the latest price.
  3. Saves the newest price to Redis.
  4. Removes all prices from Redis that are older than 12 hours.

Developing

make redis
make dev

About

Price feed for Vanilla oracle

License:MIT License


Languages

Language:JavaScript 94.5%Language:Makefile 3.7%Language:Dockerfile 1.8%