Skip to contents

yahoofinancer 0.6.1

Bug Fixes & Architectural Improvements

  • Financial Statements Restoration: Added working $get_income_statement(), $get_balance_sheet(), and $get_cash_flow() methods on Ticker backed by Yahoo’s fundamentals-timeseries endpoint with support for frequency = c("annual", "quarterly"). Updated yf_get_financials() to return tidy tibbles with line items. (#48, #2)
  • Unified HTTP Request Engine: Centralized all API communication into a unified internal api_request() helper with automatic retry, timeout, user agent header, and structured error reporting across all endpoints. (#49)
  • Standardized Failure Contracts: Multi-symbol routines (Tickers$aggregate_data(), yf_download_prices(), yf_get_financials(), yf_get_market_stats(), yf_get_index_quotes()) consistently warn on failed symbols and return empty tibbles matching documented schemas on full failure. currency_converter(), Ticker$recommendations, and Ticker$valuation_measures unified to standard failure returns. (#50, #61)
  • Batch Symbol Validation & Offline Construction: validate() vectorizes symbol queries into a single HTTP request. Added validate = TRUE option on Tickers$new(), Index$new(), and Index$set_index() to permit offline instantiation. (#51, #5, #61)
  • Date Hygiene & Lookback Limit Enforcement: get_history() validates dates client-side and enforces intraday lookback boundaries (1m <= 7d, 5m/15m/30m <= 60d, 1h <= 730d). Fixed period = NULL lookback crash. currency_converter() guards against NA date inputs. (#52, #60)
  • Robust Parsing & Transport Resilience: Handled transport-level network errors gracefully with informative warnings. Guarded against missing or mismatched adj_close series and invalid JSON payloads. (#60, #17)
  • Hermetic & Live Smoke Testing: Expanded offline mock coverage with recorded httptest2 fixtures for fundamentals-timeseries statements, migrated mock fixtures to short paths, and added an offline-guarded live smoke test suite. (#53, #62)
  • Package Hygiene & Code Style: Declared R (>= 4.1) floor, removed unused httptest Suggests, configured .lintr with zero remaining lints, added GitHub Actions lint workflow, updated User-Agent to yahoofinancer/<version>, and drafted the fundamental screening vignette. (#54, #57)

yahoofinancer 0.6.0

Enhancements

yahoofinancer 0.5.0

CRAN release: 2026-05-21

Bug Fixes

  • Error in currency converter adjusted closing (#21)
  • Error in extracting historical values for stock (#22)

Enhancements

  • Multiple Tickers: Get data for multiple tickers (#19, #20)
  • Unified Object Model: Re-engineered duplicated code patterns by crafting a foundational YahooFinanceBase R6 parent class, modernizing object inheritance for Ticker and Index instances. (#25)
  • API Lifecycle Layer: Integrated an explicit parameter deprecation infrastructure to output clean soft-deprecation warnings while preserving structural backward compatibility.
  • Hermetic Test Suite: Sealed the internal testing environment against ambient internet variables by enforcing local offline-only execution boundaries (R_CHECK_INTERNET_AVAILABILITY=FALSE).
  • Mock Path Optimization: Flattened extended mock JSON directory structures beneath the 100-character POSIX threshold to guarantee absolute compatibility with CRAN tarball filters.

Other Improvements

  • Environment Masking: Appended specialized rules to .Rbuildignore to prevent local agent logs (.gemini/), unit metrics (coverage.html), and build directories (lib/) from leaking into release targets.
  • Repository Sanitation: Cleaned out empty, legacy directory paths inside the testing footprint to preserve overall repository layout health.

yahoofinancer 0.4.0

CRAN release: 2024-11-14

This is a minor release for bug fixes and other improvements.

Bug Fixes

  • all columns in valuation measures have same values(#13)
  • incorrect api path used for quote(#14)
  • error in options api(#15)

yahoofinancer 0.3.0

CRAN release: 2024-02-03

This is a minor release for bug fixes:

  • row mismatch (#3)
  • cran error (#9)
  • incorrect package alias (#6)

yahoofinancer 0.2.0

CRAN release: 2023-08-09

This is a minor release to fix bugs resulting from changes in Yahoo Finance API.

yahoofinancer 0.1.0

CRAN release: 2022-09-13

  • Added a NEWS.md file to track changes to the package.