{"id":26924021,"url":"https://github.com/nandp1/nser","last_synced_at":"2025-10-07T17:28:01.361Z","repository":{"id":54650944,"uuid":"383885771","full_name":"nandp1/nser","owner":"nandp1","description":"R package to download historical bhavcopy of Equities and F\u0026O, get live market data, plot treemap of movement in securities","archived":false,"fork":false,"pushed_at":"2024-11-13T03:58:24.000Z","size":1699,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T18:03:43.463Z","etag":null,"topics":["bhav","bhavcopy","bhavcopy-downloader","cran","financial-data","market-data","national-stock-exchange","nse","nse-stock-data","option-pricing","optionchain","r","r-package","rselenium","stock-prices"],"latest_commit_sha":null,"homepage":"https://nandp1.github.io/nser/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nandp1.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.Rmd","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-07-07T18:06:20.000Z","updated_at":"2024-11-13T03:58:27.000Z","dependencies_parsed_at":"2024-03-10T17:27:10.186Z","dependency_job_id":"839999ee-1c75-41eb-b822-a2690df35c12","html_url":"https://github.com/nandp1/nser","commit_stats":{"total_commits":154,"total_committers":2,"mean_commits":77.0,"dds":"0.20779220779220775","last_synced_commit":"35d53f1f76c0477fc361884a35022fc618778bf4"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandp1%2Fnser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandp1%2Fnser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandp1%2Fnser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nandp1%2Fnser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nandp1","download_url":"https://codeload.github.com/nandp1/nser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246741161,"owners_count":20826063,"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":["bhav","bhavcopy","bhavcopy-downloader","cran","financial-data","market-data","national-stock-exchange","nse","nse-stock-data","option-pricing","optionchain","r","r-package","rselenium","stock-prices"],"created_at":"2025-04-02T01:53:02.191Z","updated_at":"2025-10-07T17:27:56.316Z","avatar_url":"https://github.com/nandp1.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\r\noutput: github_document\r\n---\r\n\r\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\r\n\r\n```{r, include = FALSE}\r\nknitr::opts_chunk$set(\r\n  collapse = TRUE,\r\n  comment = \"#\u003e\",\r\n  fig.path = \"man/figures/README-\",\r\n  out.width = \"100%\"\r\n)\r\n```\r\n\r\n\r\n\u003c!-- badges: start --\u003e\r\n[![CRAN\\_Status\\_Badge](https://www.r-pkg.org/badges/version/nser)](https://cran.r-project.org/package=nser)\r\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable-1)\r\n![Downloads](http://cranlogs.r-pkg.org/badges/nser)\r\n[![](https://cranlogs.r-pkg.org/badges/grand-total/nser)](https://cran.r-project.org/package=nser)\r\n\r\n\u003c!-- badges: end --\u003e\r\n\r\n# Latest Version `1.4.4`\r\n\r\n* `optnifty`, `optbanknifty` are deprecated.\r\n\r\n# New functions `nsetree`,  `bhavfos`, `daytoweek`, `daytomonth`\r\n\r\n* `daytomonth` Convert daily OHLC data to monthly data\r\n\r\n* `daytoweek` Convert daily OHLC data of a stock to weekly data.\r\n\r\n* `nsetree` Get a treeplot plot of NSE NIFTY 50 and FO securities. \r\n\r\n* `bhavfos` Download historical F\u0026O Bhavcopy zip file through RSelenium. \r\n\r\n\r\n# Introduction\r\n\r\n\"nser\" helps you to download historical bhavcopy of Equities and F\u0026O segment easily. \r\n\r\nPackage website [nser](https://nandp1.github.io/nser/)\r\n\r\n\r\n## Installation\r\n\r\nYou can install \"nser\" from [CRAN](https://cran.r-project.org/package=nser) with:\r\n\r\n``` r\r\ninstall.packages(\"nser\")\r\n```\r\nInstall it from github by:\r\n``` r\r\ninstall.packages(\"devtools\")\r\nlibrary(devtools)\r\ninstall_github(\"nandp1/nser\")\r\n```\r\n\r\n## Example 1. Downloading Historical Equity Bhavcopy \r\n\r\n``` r\r\nlibrary(nser)\r\n# Download Bhavcopy of 1st July 2021\r\nreport1 = bhav(\"01072021\")\r\n```\r\n\r\n## Example 2. Downloading Historical F\u0026O Bhavcopy \r\n\r\n``` r\r\nlibrary(nser)\r\n# Download Bhavcopy of 1st July 2021\r\nreport2 = fobhav(\"01072021\")\r\n```\r\n## Example 3. Downloading today's Equity and F\u0026O Bhavcopy \r\n```r\r\nlibrary(nser)\r\nreport3 = bhavtoday()\r\nreport4 = fobhavtoday()\r\n```\r\n\r\n## Example 4. Live F\u0026O data.\r\n``` r\r\nlibrary(nser)\r\nnselive()\r\n```\r\n\r\n## Example 5. Pre market open data of F\u0026O stocks\r\n``` r\r\nlibrary(nser)\r\nnseopen(\"fo\")\r\n```\r\n\r\n## Example 6. Current and Upcoming IPO's\r\n``` \r\nlibrary(nser)\r\nnseipo()\r\n```\r\n\r\n## Example 7. RSelenium to Download Equity Bhavcopy\r\n``` r\r\nlibrary(nser)\r\nlibrary(RSelenium)\r\n\r\n# Start a selenium server and browser\r\n# For Google Chrome (Update Chrome to latest version)\r\n\r\n driver \u003c- rsDriver(browser = c(\"chrome\"), port = 3163L, chromever = \"91.0.4472.101\")\r\n remDr \u003c- driver$client\r\n\r\n# or for Firefox\r\n driver \u003c- rsDriver(browser = c(\"firefox\"), port = 3799L)\r\n \r\n# Download Equity Bhavcopy zip file\r\nbhavs(\"03012000\", 2)\r\n\r\n# Close the Browser\r\nremDr$close()\r\n\r\n```\r\n\r\n## Example 8. RSelenium to Download F\u0026O Bhavcopy\r\n``` r\r\nlibrary(nser)\r\nlibrary(RSelenium)\r\n\r\n# Start a selenium server and browser\r\n# For Google Chrome (Update Chrome to latest version)\r\n\r\n driver \u003c- rsDriver(browser = c(\"chrome\"), port = 3163L, chromever = \"91.0.4472.101\")\r\n remDr \u003c- driver$client\r\n\r\n# or for Firefox\r\n driver \u003c- rsDriver(browser = c(\"firefox\"), port = 3799L)\r\n \r\n# Download Equity Bhavcopy zip file\r\nbhavfos(\"03012000\", 2)\r\n\r\n# Close the Browser\r\nremDr$close()\r\n\r\n```\r\n\r\n## Example 9. NSE Treemap \r\n``` r \r\nlibrary(nser)\r\n# NIFTY 50 stocks\r\nnsetree()\r\n\r\n# F\u0026O stocks\r\nnsetree(\"fo\")\r\n```\r\n\r\n## Example 10. Daily data to Weelkly data\r\n``` \r\nlibrary(nser)\r\ndata(dailydata)\r\ndaytoweek(dailydata)\r\n```\r\n\r\n## Example 11. Daily data to Monthly data\r\n``` \r\nlibrary(nser)\r\ndata(dailydata)\r\ndaytomonth(dailydata)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnandp1%2Fnser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnandp1%2Fnser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnandp1%2Fnser/lists"}