{"id":44068469,"url":"https://github.com/jugaad-py/jugaad-data","last_synced_at":"2026-04-03T20:36:31.808Z","repository":{"id":45723671,"uuid":"284908954","full_name":"jugaad-py/jugaad-data","owner":"jugaad-py","description":"Download live and historical data for Indian stock market","archived":false,"fork":false,"pushed_at":"2026-03-13T18:53:05.000Z","size":108,"stargazers_count":494,"open_issues_count":36,"forks_count":185,"subscribers_count":14,"default_branch":"master","last_synced_at":"2026-03-14T06:59:04.974Z","etag":null,"topics":["bhavcopy-downloader","jugaad-data","nse-stock-data","nse-website","nsepy","nsepython","nsetools","pynse","python3","stock","stock-data","stock-market"],"latest_commit_sha":null,"homepage":"https://marketsetup.in/documentation/jugaad-data/","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/jugaad-py.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.YOLO.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-04T07:29:30.000Z","updated_at":"2026-03-13T18:53:11.000Z","dependencies_parsed_at":"2023-11-19T19:27:02.141Z","dependency_job_id":"d67a43ab-2d40-42ec-b89c-9dedffd2d94a","html_url":"https://github.com/jugaad-py/jugaad-data","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jugaad-py/jugaad-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugaad-py%2Fjugaad-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugaad-py%2Fjugaad-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugaad-py%2Fjugaad-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugaad-py%2Fjugaad-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jugaad-py","download_url":"https://codeload.github.com/jugaad-py/jugaad-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jugaad-py%2Fjugaad-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31375772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bhavcopy-downloader","jugaad-data","nse-stock-data","nse-website","nsepy","nsepython","nsetools","pynse","python3","stock","stock-data","stock-market"],"created_at":"2026-02-08T04:00:24.685Z","updated_at":"2026-04-03T20:36:31.792Z","avatar_url":"https://github.com/jugaad-py.png","language":"Python","funding_links":["https://www.buymeacoffee.com/Jugaader"],"categories":["Market Data \u0026 Data Sources","Python"],"sub_categories":[],"readme":"# Documentation\n\nhttps://marketsetup.in/documentation/jugaad-data/\n\n# Introduction\n\n`jugaad-data` is a python library to download historical/live stock, index as well as economic data from NSE and RBI website using.\n\n![Build Badge](https://github.com/jugaad-py/jugaad-data/actions/workflows/run-tests.yml/badge.svg)\n\n\n# Features\n\n* Supports [new NSE website](https://www.nseindia.com/), (All libraries based on old NSE website might stop working)\n* Powerful CLI (Command line interface), Even non-coders can use it easily\n* Built-in caching mechanism to play nice with NSE. Avoid making un-necessary requests to NSE's website and getting blocked\n* Optional `pandas` support \n\n**Road map**\n\n| Website  | Segment    | Supported? |\n|----------|------------|------------|\n| NSE      | Stocks     | Yes        |\n| NSE      | Stocks F\u0026O | Yes        |\n| NSE      | Index      | Yes    |\n| NSE      | Index F\u0026O  | Yes        |\n| RBI\t   | Current Rates| Yes |\n\n# Installation\n\n`pip install jugaad-data` \n\n# Getting started\n\n## Python inteface\n\n### Historical data\n\n```python\nfrom datetime import date\nfrom jugaad_data.nse import bhavcopy_save, bhavcopy_fo_save\n\n# Download bhavcopy\nbhavcopy_save(date(2020,1,1), \"/path/to/directory\")\n\n# Download bhavcopy for futures and options\nbhavcopy_fo_save(date(2020,1,1), \"/path/to/directory\")\n\n# Download stock data to pandas dataframe\nfrom jugaad_data.nse import stock_df\ndf = stock_df(symbol=\"SBIN\", from_date=date(2020,1,1),\n            to_date=date(2020,1,30), series=\"EQ\")\n```\n### Live data\n\n```python\nfrom jugaad_data.nse import NSELive\nn = NSELive()\nq = n.stock_quote(\"HDFC\")\nprint(q['priceInfo'])\n```\n\n```\n{'lastPrice': 2635,\n 'change': -49.05000000000018,\n 'pChange': -1.8274622305843848,\n 'previousClose': 2684.05,\n 'open': 2661,\n 'close': 2632.75,\n 'vwap': 2645.57,\n 'lowerCP': '2415.65',\n 'upperCP': '2952.45',\n 'pPriceBand': 'No Band',\n 'basePrice': 2684.05,\n 'intraDayHighLow': {'min': 2615.6, 'max': 2688.45, 'value': 2635},\n 'weekHighLow': {'min': 1473.45,\n  'minDate': '24-Mar-2020',\n  'max': 2777.15,\n  'maxDate': '13-Jan-2021',\n  'value': 2635}}\n```\n\n## Command line interface\n\n```\n$ jdata stock --help\n\nUsage: jdata stock [OPTIONS]\n\n  Download historical stock data\n\n  $jdata stock --symbol STOCK1 -f yyyy-mm-dd -t yyyy-mm-dd --o file_name.csv\n\nOptions:\n  -s, --symbol TEXT  [required]\n  -f, --from TEXT    [required]\n  -t, --to TEXT      [required]\n  -S, --series TEXT  [default: EQ]\n  -o, --output TEXT\n  --help             Show this message and exit.\n```\n\n```\n$ jdata stock -s SBIN -f 2020-01-01 -t 2020-01-31 -o SBIN-Jan.csv\nSBIN  [####################################]  100%\n\nSaved file to : SBIN-Jan.csv\n```\n\n## Download historical derivatives (F\u0026O) data\n\n```\n$ jdata deriviatives --help\nUsage: cli.py derivatives [OPTIONS]\n\n  Sample usage-\n\n  Download stock futures-\n\n  jdata derivatives -s SBIN -f 2020-01-01 -t 2020-01-30 -e 2020-01-30 -i FUTSTK -o file_name.csv\n\n  Download index futures-\n\n  jdata derivatives -s NIFTY -f 2020-01-01 -t 2020-01-30 -e 2020-01-30 -i FUTIDX -o file_name.csv\n\n  Download stock options-\n\n  jdata derivatives -s SBIN -f 2020-01-01 -t 2020-01-30 -e 2020-01-30 -i OPTSTK -p 330 --ce -o file_name.csv\n\n  Download index options-\n\n  jdata derivatives -s NIFTY -f 2020-01-01 -t 2020-01-30 -e 2020-01-23 -i OPTIDX -p 11000 --pe -o file_name.csv\n\nOptions:\n  -s, --symbol TEXT  Stock/Index symbol  [required]\n  -f, --from TEXT    From date - yyyy-mm-dd  [required]\n  -t, --to TEXT      To date - yyyy-mm-dd  [required]\n  -e, --expiry TEXT  Expiry date - yyyy-mm-dd  [required]\n  -i, --instru TEXT  FUTSTK - Stock futures, FUTIDX - Index Futures, OPTSTK -\n                     Stock Options, OPTIDX - Index Options  [required]\n\n  -p, --price TEXT   Strike price (Only for OPTSTK and OPTIDX)\n  --ce / --pe        --ce for call and --pe for put (Only for OPTSTK and\n                     OPTIDX)\n\n  -o, --output TEXT  Full path of output file\n  --help             Show this message and exit.\n```\n\n## Buy me a coffee\n\nIf my work has helped you in anyway, you can buy me a coffee \n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/Jugaader)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjugaad-py%2Fjugaad-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjugaad-py%2Fjugaad-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjugaad-py%2Fjugaad-data/lists"}