Package: yfhist
Type: Package
Title: Yahoo Finance 'history' API
Version: 0.1.3
Date: 2026-01-19
Authors@R: person("Jason", "Foster", , "jason.j.foster@gmail.com", c("aut", "cre"))
Description: 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.
License: GPL (>= 2)
Encoding: UTF-8
URL: https://github.com/jasonjfoster/hist
BugReports: https://github.com/jasonjfoster/hist/issues
Depends: R (>= 3.5.0)
Imports: curl, jsonlite
Suggests: covr, testthat
LazyData: true
RoxygenNote: 7.3.3
NeedsCompilation: no
Packaged: 2026-01-19 21:02:59 UTC; jason
Author: Jason Foster [aut, cre]
Maintainer: Jason Foster <jason.j.foster@gmail.com>
Repository: CRAN
Date/Publication: 2026-01-23 14:30:02 UTC
Built: R 4.6.0; ; 2026-04-25 23:12:10 UTC; unix
