Name | nsebhavcopy JSON |
Version |
6.0
JSON |
| download |
home_page | |
Summary | Download NSE Bhavcopy Data |
upload_time | 2023-03-23 17:13:47 |
maintainer | |
docs_url | None |
author | Ajay |
requires_python | |
license | MIT |
keywords |
bhavcopy
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
nsebhavopy Python Package
This package provides a Python interface to download National Stock Exchange (NSE) bhavcopy data for Equities, Indices and Derivatives. The package provides functions to download daily bhavcopy data in CSV format, store the data in local storage, and update the data for any missing dates.
Basically it creates csv file for equities, indices and derivatives,
If the file already exist on assigned directory, then the code attempts to figure out missing dates and update the same file.
all you have to do is update the start and end date.
and all this can be done by simply providing following arguements:
pip install nsebhavcopy
import nsebhavcopy
# Place data need to be stored.
data_storage = "D:\\bhav_data"
# Define working directory, where files would be saved
os.chdir(data_storage)
# Define start and end dates, and convert them into date format
start_date = datetime.date(2023, 3, 1)
end_date = datetime.date(2023, 3, 21)
# Define wait time in seconds to avoid getting blocked
wait_time = [1, 2]
# Instantiate bhavcopy class for equities, indices, and derivatives
nse = bhavcopy("indices", start_date, end_date, data_storage, wait_time)
nse.get_data()
nse = bhavcopy("equities", start_date, end_date, data_storage, wait_time)
nse.get_data()
nse = bhavcopy("derivatives", start_date, end_date, data_storage, wait_time)
nse.get_data()
Change Log
===========
6.0 (23-03-2023)
----------------
-New Release
Raw data
{
"_id": null,
"home_page": "",
"name": "nsebhavcopy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Bhavcopy",
"author": "Ajay",
"author_email": "ajaydpawar@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8f/ef/15954c181fe8bb5cbf8995a829ace131b9f9f0768421dda1fb1f8042cece/nsebhavcopy-6.0.tar.gz",
"platform": null,
"description": "nsebhavopy Python Package\r\n\r\nThis package provides a Python interface to download National Stock Exchange (NSE) bhavcopy data for Equities, Indices and Derivatives. The package provides functions to download daily bhavcopy data in CSV format, store the data in local storage, and update the data for any missing dates.\r\n\r\nBasically it creates csv file for equities, indices and derivatives,\r\nIf the file already exist on assigned directory, then the code attempts to figure out missing dates and update the same file.\r\nall you have to do is update the start and end date.\r\n\r\nand all this can be done by simply providing following arguements:\r\n\r\npip install nsebhavcopy\r\n\r\nimport nsebhavcopy\r\n\r\n# Place data need to be stored.\r\n\r\ndata_storage = \"D:\\\\bhav_data\"\r\n\r\n# Define working directory, where files would be saved\r\n\r\nos.chdir(data_storage)\r\n\r\n# Define start and end dates, and convert them into date format\r\n\r\nstart_date = datetime.date(2023, 3, 1)\r\n\r\nend_date = datetime.date(2023, 3, 21)\r\n\r\n# Define wait time in seconds to avoid getting blocked\r\n\r\nwait_time = [1, 2]\r\n\r\n# Instantiate bhavcopy class for equities, indices, and derivatives\r\n\r\nnse = bhavcopy(\"indices\", start_date, end_date, data_storage, wait_time)\r\n\r\nnse.get_data()\r\n\r\nnse = bhavcopy(\"equities\", start_date, end_date, data_storage, wait_time)\r\n\r\nnse.get_data()\r\n\r\nnse = bhavcopy(\"derivatives\", start_date, end_date, data_storage, wait_time)\r\n\r\nnse.get_data()\r\n\r\n\r\n\r\nChange Log\r\n===========\r\n6.0 (23-03-2023)\r\n----------------\r\n-New Release\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Download NSE Bhavcopy Data",
"version": "6.0",
"split_keywords": [
"bhavcopy"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8fef15954c181fe8bb5cbf8995a829ace131b9f9f0768421dda1fb1f8042cece",
"md5": "c563a3e27a75968fa01c56dec22404a1",
"sha256": "90b6e1c3b7fcd1bbb6b056de2a86648ee081d75fb2c26dccc569848db08182bd"
},
"downloads": -1,
"filename": "nsebhavcopy-6.0.tar.gz",
"has_sig": false,
"md5_digest": "c563a3e27a75968fa01c56dec22404a1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2592,
"upload_time": "2023-03-23T17:13:47",
"upload_time_iso_8601": "2023-03-23T17:13:47.058443Z",
"url": "https://files.pythonhosted.org/packages/8f/ef/15954c181fe8bb5cbf8995a829ace131b9f9f0768421dda1fb1f8042cece/nsebhavcopy-6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-23 17:13:47",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "nsebhavcopy"
}