Price feed for Vanilla oracle
- 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.
- Calculates a weighted average based on the 24h volume of each exchange.
- Fetches prices for the last 15 minutes from Redis, and calculates a moving average from them and the latest price.
- Saves the newest price to Redis.
- Removes all prices from Redis that are older than 12 hours.
Developing
make redis
make dev