Skip to content

Node JS app to aggregate and persist crypto currency market prices from 90+ exchanges

Notifications You must be signed in to change notification settings

markpol/crypto-market-quote-aggregator

Repository files navigation

crypto-market-quote-aggregator

Node JS app to aggregate and persist crypto currency market prices from 90+ exchanges. Quotes are persisted to a Postgresql database in a docker container or standalone.

see: https://github.com/ccxt/ccxt for supported exchanges

Setup configuration file:

Copy config/production.sample.json to config/production.json and modify as required. default.json values will be overridden by file with same name as NODE_ENV environment variable

Configuration parameters:

  • database : set database connection parameters below
    • driver
    • host
    • user
    • pass
    • schema
  • fetcher
    • includeExchanges : only include these exchanges for price fetching
    • excludeExchanges : blacklist exchanges for price fetching
    • includeSymbols : only include these market symbols for price fetching
    • excludeSymbols : blacklist market symbols for price fetching
  • concurrency : maximum number of conncurrent http requests to exchange api endpoints
  • maxExchangeFetchFailures : exchange will be purged from include list after this many failed requests
  • waitIntervalSeconds : wait this many seconds between each round of api requests

Build and run with docker-compose:

docker-compose up --build

Manual

  1. Setup the database and edit config json file

  2. Run install

npm install
  1. Run script
node main.js

About

Node JS app to aggregate and persist crypto currency market prices from 90+ exchanges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published