CLI to download End of day Stock data from BSE and NSE
Project description
## bhav is a command line application to download EOD stock data from the BSE / NSE indexes based on our experience fetching this data over the last decade
## Installation:
pip3 install –user bhav
## Usage:
### Download BSE bhavcopy for a specific date (YYYYMMDD) bhav bse 20200101
### Download NSE bhavcopy for a specific date (YYYYMMDD) bhav nse 20200101
### if remote file is zipped bhav nse 20200101 -z
### Download for date range bhav nse –start-date 20200101 -z ( fetch from start date to today) bhav nse –start-date 20200101 –end-date 20200105 -z
## Most configuration options should help adjust to changes in the way these files are distributed by the exchanges as well as formats. bhav conf –help for configuration options
### Get current configuration bhav conf ls
### Configure output directory bhav conf update -o /path/to/output/dir
### Configure NSE URL format bhav conf update -n https://archive.nseindia.com/content/historical/EQUITIES/#-#year#-#/#n#month#n#/cm#-#day#-##n#month#n##-#year#-#bhav.csv.zip #### numeric values of day / month / year are represented by patterns like #-#year#-# #### month names are represented by patterns like #n#month#n#
### Configure BSE URL format bhav conf update -b http://www.bseindia.com/download/BhavCopy/Equity/EQ#-#day#-##-#month#-##-#YY#-#_CSV.zip
### Configure BSE CSV header format. If the date column is not provided in the file, it will be automatically added. bhav conf update -B ‘SYMBOL,NAME,SC_GROUP,SC_TYPE,OPEN,HIGH,LOW,CLOSE,LAST,PREVCLOSE,NO_TRADES,VOLUME,NET_TURNOV,TDCLOINDI’
### Configure NSE CSV header format. bhav conf update -B ‘SYMBOL,SERIES,OPEN,HIGH,LOW,CLOSE,LAST,PREVCLOSE,VOLUME,TOTTRDVAL,DATE,TOTALTRADES,ISIN’
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file bhav-1.0.13-py3-none-any.whl
.
File metadata
- Download URL: bhav-1.0.13-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a9f79d1e54005caf32eb09b3959623ea2107a3d8099aa190350ee479ec7c52b |
|
MD5 | 68c8fd9aeaf875069d806ee0d582ec21 |
|
BLAKE2b-256 | fe38759a09d4348605be0a49f0b95ca6f82cf1438003c1dfbc181363b3ff0325 |