Symbol lists downloaded from:
ftp://ftp.nasdaqtrader.com/SymbolDirectory/otherlisted.txt
ftp://ftp.nasdaqtrader.com/SymbolDirectory/nasdaqlisted.txt
Each line is of the format:
ACT Symbol|Security Name|Exchange|CQS Symbol|ETF|Round Lot Size|Test Issue|NASDAQ Symbol
To run for the first time (this includes generation of the mongodb collections for the NYSE and NASDAQ Stock symbols):
- You will need the following environment variables set a) ALPHA_APIKEY -> get an apikey from https://www.alphavantage.co/support/#api-key b) ALPHA_QUERY_URL -> set to https://www.alphavantage.co/query
- Make sure you have a running instance of mongodb at port 27017 (the default)
- Create a DB 'stock' (The command 'use stock' from a mongodb shell will do this)
- 'npm install'
- 'node index.js --generate'
For any future times running the script, use:
- node index.js