IEX Stream
Stream free trade data from IEX API to InfluxDB and use Grafana to display charts.
Usage
Make sure recent versions of Docker and Docker Compose are installed. Clone the repo
git clone https://github.com/zhy0/iex_stream.git
cd iex_stream
and run
docker-compose up
This will start stream.js
, InfluxDB and Grafana in separate containers.
Once everything is running, you can visit localhost:3000
to view the
charts. Login to Grafana using the standard
- Username: admin
- Password: admin
and navigate to 'Dashboards > Manage > mydashboard'.
Notes
-
To persist the data, you should mount the InfluxDB container data, see
docker-compose.prod.yml
. -
stream.js
listens for all trade executions on IEX using the Last endpoint. -
It writes data to database in batches of 500 data points and once every 5 seconds.