{"id":15008931,"url":"https://github.com/nsedownload/nsedownload","last_synced_at":"2025-05-08T21:21:51.228Z","repository":{"id":42209165,"uuid":"218698693","full_name":"NSEDownload/NSEDownload","owner":"NSEDownload","description":"Python Library to get historical stocks data on NSE ","archived":false,"fork":false,"pushed_at":"2023-12-21T05:30:33.000Z","size":1609,"stargazers_count":156,"open_issues_count":1,"forks_count":55,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-02-10T02:08:14.461Z","etag":null,"topics":["adjusted-returns","historical-data","indices","nse","nse-index-data","nse-stock-data","nse-website","pandas","python","python-2","python-3","python-library","stock-market","stocks","trailing-returns"],"latest_commit_sha":null,"homepage":"https://nsedownload.github.io/NSEDownload/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NSEDownload.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-10-31T06:25:59.000Z","updated_at":"2025-01-22T02:49:27.000Z","dependencies_parsed_at":"2023-12-21T08:01:37.069Z","dependency_job_id":"db7b7aaf-2200-4cda-bd41-eb2a991887bd","html_url":"https://github.com/NSEDownload/NSEDownload","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEDownload%2FNSEDownload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEDownload%2FNSEDownload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEDownload%2FNSEDownload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSEDownload%2FNSEDownload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSEDownload","download_url":"https://codeload.github.com/NSEDownload/NSEDownload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238044093,"owners_count":19407128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adjusted-returns","historical-data","indices","nse","nse-index-data","nse-stock-data","nse-website","pandas","python","python-2","python-3","python-library","stock-market","stocks","trailing-returns"],"created_at":"2024-09-24T19:21:45.467Z","updated_at":"2025-02-10T02:08:33.832Z","avatar_url":"https://github.com/NSEDownload.png","language":"Python","funding_links":["https://www.buymeacoffee.com/jinit"],"categories":[],"sub_categories":[],"readme":"# **NSEDownload** #\n\n[![Bump Up version](https://github.com/NSEDownload/NSEDownload/actions/workflows/Bump.yaml/badge.svg)](https://github.com/NSEDownload/NSEDownload/actions/workflows/Bump.yaml)\n\nA Python Library to download publicly available data on the NSE website for stocks as pandas dataframe.\nFor a detailed usage : \u003ca href=\"https://nsedownload.github.io/NSEDownload/\"\u003eDocumentation\u003c/a\u003e\n\n## **Installation** ##\n\n```bash\ngit clone https://github.com/NSEDownload/NSEDownload\npip3 install NSEDownload/dist/*\n```\n\n## **Usage** ##\n\n```python\nfrom NSEDownload import stocks\n\n# Gets data without adjustment for events\ndf = stocks.get_data(stock_symbol=\"RELIANCE\", start_date='15-9-2021', end_date='1-10-2021')\n```\n\nSample Output as a pandas dataframe :\n\n\u003ctable border=\"1\" class=\"dataframe\"\u003e\n  \u003cthead\u003e\n    \u003ctr style=\"text-align: right;\"\u003e\n      \u003cth\u003eDate\u003c/th\u003e\n      \u003cth\u003eSymbol\u003c/th\u003e\n      \u003cth\u003eSeries\u003c/th\u003e\n      \u003cth\u003eHigh Prices\u003c/th\u003e\n      \u003cth\u003eLow Prices\u003c/th\u003e\n      \u003cth\u003eOpen Prices\u003c/th\u003e\n      \u003cth\u003eClose Prices\u003c/th\u003e\n      \u003cth\u003eLast Prices\u003c/th\u003e\n      \u003cth\u003ePrec Close Price\u003c/th\u003e\n      \u003cth\u003eTotal Traded Quantity\u003c/th\u003e\n      \u003cth\u003eTotal Traded Value\u003c/th\u003e\n      \u003cth\u003e52 Week High Price\u003c/th\u003e\n      \u003cth\u003e52 Week Low Price\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003cth\u003e2021-08-11T18:30:00.000Z\u003c/th\u003e\n      \u003ctd\u003eHDFC\u003c/td\u003e\n      \u003ctd\u003eEQ\u003c/td\u003e\n      \u003ctd\u003e2675.25\u003c/td\u003e\n      \u003ctd\u003e2646.6\u003c/td\u003e\n      \u003ctd\u003e2656.6\u003c/td\u003e\n      \u003ctd\u003e2668.75\u003c/td\u003e\n      \u003ctd\u003e2666.0\u003c/td\u003e\n      \u003ctd\u003e2658.5\u003c/td\u003e\n      \u003ctd\u003e1702479\u003c/td\u003e\n      \u003ctd\u003e4532596291.9\u003c/td\u003e\n      \u003ctd\u003e2896\u003c/td\u003e\n      \u003ctd\u003e1623\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003e2021-08-12T18:30:00.000Z\u003c/th\u003e\n      \u003ctd\u003eHDFC\u003c/td\u003e\n      \u003ctd\u003eEQ\u003c/td\u003e\n      \u003ctd\u003e2715.0\u003c/td\u003e\n      \u003ctd\u003e2662.0\u003c/td\u003e\n      \u003ctd\u003e2662.0\u003c/td\u003e\n      \u003ctd\u003e2704.15\u003c/td\u003e\n      \u003ctd\u003e2702.1\u003c/td\u003e\n      \u003ctd\u003e2668.75\u003c/td\u003e\n      \u003ctd\u003e3248615\u003c/td\u003e\n      \u003ctd\u003e8774705017.55\u003c/td\u003e\n      \u003ctd\u003e2896\u003c/td\u003e\n      \u003ctd\u003e1623\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003e2021-08-15T18:30:00.000Z\u003c/th\u003e\n      \u003ctd\u003eHDFC\u003c/td\u003e\n      \u003ctd\u003eEQ\u003c/td\u003e\n      \u003ctd\u003e2734.45\u003c/td\u003e\n      \u003ctd\u003e2693.8\u003c/td\u003e\n      \u003ctd\u003e2696.8\u003c/td\u003e\n      \u003ctd\u003e2731.15\u003c/td\u003e\n      \u003ctd\u003e2732.7\u003c/td\u003e\n      \u003ctd\u003e2704.15\u003c/td\u003e\n      \u003ctd\u003e2465887\u003c/td\u003e\n      \u003ctd\u003e6709996706.95\u003c/td\u003e\n      \u003ctd\u003e2896\u003c/td\u003e\n      \u003ctd\u003e1623\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003e2021-08-16T18:30:00.000Z\u003c/th\u003e\n      \u003ctd\u003eHDFC\u003c/td\u003e\n      \u003ctd\u003eEQ\u003c/td\u003e\n      \u003ctd\u003e2750.0\u003c/td\u003e\n      \u003ctd\u003e2707.15\u003c/td\u003e\n      \u003ctd\u003e2729.95\u003c/td\u003e\n      \u003ctd\u003e2738.4\u003c/td\u003e\n      \u003ctd\u003e2745.6\u003c/td\u003e\n      \u003ctd\u003e2731.15\u003c/td\u003e\n      \u003ctd\u003e2795510\u003c/td\u003e\n      \u003ctd\u003e7620988084.3\u003c/td\u003e\n      \u003ctd\u003e2896\u003c/td\u003e\n      \u003ctd\u003e1623\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003e2021-08-17T18:30:00.000Z\u003c/th\u003e\n      \u003ctd\u003eHDFC\u003c/td\u003e\n      \u003ctd\u003eEQ\u003c/td\u003e\n      \u003ctd\u003e2770.3\u003c/td\u003e\n      \u003ctd\u003e2698.0\u003c/td\u003e\n      \u003ctd\u003e2750.0\u003c/td\u003e\n      \u003ctd\u003e2710.75\u003c/td\u003e\n      \u003ctd\u003e2710.0\u003c/td\u003e\n      \u003ctd\u003e2738.4\u003c/td\u003e\n      \u003ctd\u003e2501410\u003c/td\u003e\n      \u003ctd\u003e6828940469.75\u003c/td\u003e\n      \u003ctd\u003e2896\u003c/td\u003e\n      \u003ctd\u003e1623\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n## **Tips \u0026 Tricks** ##\n1. You might run into access issues due to requests per second exceeding the permissible threshold. Add a delay of 5-10 seconds between multiple symbols to resolve the issue. ([Discussion](https://github.com/NSEDownload/NSEDownload/issues#issuecomment-1699721241))\n\n## **Change Log** ##\n\n1. Removed indices, returns, and adjusted stocks.\n2. Made changes to use the new NSE site and cookies.\n\n## **Contributing** ##\n\nYour feedback matters! If you come across any bugs or issues, don't hesitate to raise them. Feel free to share your ideas for exciting new features\n\n## **Buy me a coffee** ##\n\nIf you've found my work helpful and appreciate the effort, consider supporting me with a coffee! Your contribution goes a long way!\n\u003cbr\u003e\n\u003ca href=\"https://www.buymeacoffee.com/jinit\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsedownload%2Fnsedownload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsedownload%2Fnsedownload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsedownload%2Fnsedownload/lists"}