Simple and efficient access to Yahoo Finance's historical data API <https://finance.yahoo.com/> for querying and retrieval of financial data. The core functionality of the 'yfhist' package abstracts the complexities of interacting with Yahoo Finance APIs, such as session management, crumb and cookie handling, query construction, date validation, and interval management. This abstraction allows users to focus on retrieving data rather than managing API details. Use cases include historical data across a range of security types including equities & ETFs, indices, and other tickers. The package supports flexible query capabilities, including customizable date ranges, multiple time intervals, and automatic data validation. It automatically manages interval-specific limitations, such as lookback periods for intraday data and maximum date ranges for minute-level intervals. The implementation leverages standard HTTP libraries to handle API interactions efficiently and provides support for both R and 'Python' to ensure accessibility for a broad audience.
| Version: | 0.1.3 |
| Depends: | R (≥ 3.5.0) |
| Imports: | curl, jsonlite |
| Suggests: | covr, testthat |
| Published: | 2026-01-23 |
| DOI: | 10.32614/CRAN.package.yfhist |
| Author: | Jason Foster [aut, cre] |
| Maintainer: | Jason Foster <jason.j.foster at gmail.com> |
| BugReports: | https://github.com/jasonjfoster/hist/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | https://github.com/jasonjfoster/hist |
| NeedsCompilation: | no |
| Materials: | README |
| CRAN checks: | yfhist results |
| Reference manual: | yfhist.html , yfhist.pdf |
| Package source: | yfhist_0.1.3.tar.gz |
| Windows binaries: | r-devel: yfhist_0.1.3.zip, r-release: yfhist_0.1.3.zip, r-oldrel: yfhist_0.1.3.zip |
| macOS binaries: | r-release (arm64): yfhist_0.1.3.tgz, r-oldrel (arm64): yfhist_0.1.3.tgz, r-release (x86_64): yfhist_0.1.3.tgz, r-oldrel (x86_64): yfhist_0.1.3.tgz |
Please use the canonical form https://CRAN.R-project.org/package=yfhist to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.