Stocky Will help you generate a consolidated list of Instruments
- by mapping their ISIN codes to
- BSE Stock codes and symbols
- NSE symbols
- Zerodha symbols
- Yahoo symbols (Both .NS and .BO)
Clone the repository
git clone https://github.com/justgoodin/stocky.git
Install the dependencies
pip install --upgrade requirements.txt
- BSE Bhavcopy: Download from
https://www.bseindia.com/markets/MarketInfo/BhavCopy.aspx
. - NSE Bhavcopy: Download from
https://www1.nseindia.com/products/content/equities/equities/archieve_eq.htm
.
Note: Downloading BHAV Copy using programmatic methods is illegal. - Zerodha Instruments: Download from
https://api.kite.trade/instruments
- BSE Bhavcopy:
data/marketData/bhavCopies
- NSE Bhavcopy:
data/marketData/bhavcopies
You need to update the file name inlib/bin/bhavCopy.py
.
In future version, this will be more streamlined - Zerodha Instruments:
data/marketData/zerodha
. The filename should be instruments.csv
python app.py
python3 ./app.py
Or open it in your favourite code editor and run from there.
There are three options
1. Rebuild stocky.db from scratch: This will delete the existing copy of stocky.db and recreate it from scratch. Requires bhavcopies and zerodha instruments in their respective locations
2. Update all Yahoo data: Downloads Yahoo data using yahooquery library
3. Exit: Exit the program