Ledger is a self-contained and scalable web service built for the MacD project, which is a Forex trading platform clone utilizing service-oriented architecture techniques.
- Polls real time price and volume updates, storing the data in a Postgres database.
- Computes the OHLC candlesticks data every 5 seconds and publishes to message bus (AWS SQS) in near real time.
- Polls and serves incoming requests for historical candlesticks data at various time intervals (1min, 5min, 1hour, 1day etc) in a given time period.
$ npm installRun tests:
$ npm testStart Express Server:
$ npm startStart Price Poll Worker:
$ npm run price-pollStart Histical Request Poll Worker:
$ npm run hist-pollStart 5 Sec Interval OHLC Worker:
$ npm run s5bars-workerStart Materialized Views Auto Refresh Worker:
$ npm run mviews-worker- Node 6.9.x
- Redis 3.2.x
- Postgresql 9.6.x
- Elasticsearch
- Kibana
- AWS SQS
- AWS S3
View the project roadmap here
See CONTRIBUTING.md for contribution guidelines.
MIT © Kenny Cao

