{"id":23260848,"url":"https://github.com/rsquaredacademy/yahoofinancer","last_synced_at":"2026-01-21T17:02:06.350Z","repository":{"id":84664361,"uuid":"331226793","full_name":"rsquaredacademy/yahoofinancer","owner":"rsquaredacademy","description":"Obtain historical and near real time data from Yahoo Finance","archived":false,"fork":false,"pushed_at":"2025-01-27T05:45:09.000Z","size":31444,"stargazers_count":17,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-09T08:55:07.181Z","etag":null,"topics":["api","api-wrapper","finance","market-data","rstats","stock-market","yahoo-finance","yahoo-finance-api"],"latest_commit_sha":null,"homepage":"https://yahoofinancer.rsquaredacademy.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsquaredacademy.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-01-20T07:28:08.000Z","updated_at":"2025-10-11T11:33:58.000Z","dependencies_parsed_at":"2023-12-19T08:56:31.148Z","dependency_job_id":"cceabe34-30b1-4ea0-809e-6f1b187cf68a","html_url":"https://github.com/rsquaredacademy/yahoofinancer","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rsquaredacademy/yahoofinancer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsquaredacademy%2Fyahoofinancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsquaredacademy%2Fyahoofinancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsquaredacademy%2Fyahoofinancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsquaredacademy%2Fyahoofinancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsquaredacademy","download_url":"https://codeload.github.com/rsquaredacademy/yahoofinancer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsquaredacademy%2Fyahoofinancer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28636642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["api","api-wrapper","finance","market-data","rstats","stock-market","yahoo-finance","yahoo-finance-api"],"created_at":"2024-12-19T13:19:16.623Z","updated_at":"2026-01-21T17:02:06.329Z","avatar_url":"https://github.com/rsquaredacademy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# yahoofinancer\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/yahoofinancer)](https://CRAN.R-project.org/package=yahoofinancer)\n[![R-CMD-check](https://github.com/rsquaredacademy/yahoofinancer/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rsquaredacademy/yahoofinancer/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/rsquaredacademy/yahoofinancer/branch/master/graph/badge.svg)](https://app.codecov.io/gh/rsquaredacademy/yahoofinancer?branch=master)\n\u003c!-- badges: end --\u003e\n\nObtain historical and near real time data related to stocks, index and currencies from the Yahoo Finance API.\n\n## Installation\n\n```{r gh-installation, eval = FALSE}\n# Install rfm from CRAN\ninstall.packages(\"yahoofinancer\")\n\n# Or the development version from GitHub\n# install.packages(\"pak\")\npak::pak(\"rsquaredacademy/yahoofinancer\")\n```\n\n## Quick Start\n\n```{r load_yfr, echo=FALSE, message=FALSE, warning=FALSE}\nlibrary(yahoofinancer)\n```\n\n\n### Ticker\n\nTo retrieve data from Yahoo Finance for a single stock, create an instance of the `Ticker` class by passing the company's ticker symbol as an argument:\n\n```{r ticker}\naapl \u003c- Ticker$new('aapl')\n\n# get historical market data\nhead(aapl$get_history(start = '2024-10-20', interval = '1d'))\n\n# meta info\n# regular market price\naapl$regular_market_price\n\n# 52 week high\naapl$fifty_two_week_high\n\n# previous close\naapl$previous_close\n```\n\n### Index \n\nTo retrieve data from Yahoo Finance for an index, create an instance of the `Index` class by passing the index symbol as an argument:\n\n```{r index}\nnifty_50 \u003c- Index$new('^NSEI')\n\n# get historical data\nhead(nifty_50$get_history(start = '2024-01-20', interval = '1d'))\n```\n\n### Currency\n\n```{r currency}\nhead(currency_converter('GBP', 'USD', '2024-01-20', '2024-01-30'))\n```\n\n## IMPORTANT LEGAL DISCLAIMER \n\n**Yahoo!, Y!Finance, and Yahoo! finance are registered trademarks of\nYahoo, Inc.**\n\nyahoofinancer is **not** affiliated, endorsed, or vetted by Yahoo, Inc. It's\nan open-source tool that uses Yahoo's publicly available APIs, and is\nintended for research and educational purposes.\n\n**You should refer to Yahoo!'s terms of use**\n([here](https://policies.yahoo.com/us/en/yahoo/terms/product-atos/apiforydn/index.htm),\n[here](https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html), and\n[here](https://policies.yahoo.com/us/en/yahoo/terms/index.htm)) **for\ndetails on your rights to use the actual data downloaded. Remember - the\nYahoo! finance API is intended for personal use only.**\n\n## Code of Conduct\n\nPlease note that the yahoofinancer project is released with a [Contributor Code of Conduct](https://yahoofinancer.rsquaredacademy.com/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsquaredacademy%2Fyahoofinancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsquaredacademy%2Fyahoofinancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsquaredacademy%2Fyahoofinancer/lists"}