Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.41 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.41 KB

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