yahoo_finance_data_reader
1.0.14, released 8 months ago by turingdeal.com
Fetches and caches historical daily stock and market data from Yahoo Finance.
What it does
Fetches historical daily market candle data (open, close, high, low) for symbols using the Yahoo Finance API. It parses response data in background isolates and supports local persistence via Sembast cache. Developers can also supply custom Dio instances for specialized interceptors or caching behavior.
AI-written summary of version 1.0.14, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need historical daily stock, index, or futures candle data for backtesting or charting in Flutter.
- You want an easy way to query Yahoo Finance without managing endpoints and JSON parsing manually.
- You want local caching of historical financial time-series data.
Skip it when
- You need real-time, tick-level, or intraday order book data.
- You require guaranteed SLA production market data, as Yahoo Finance endpoints are unofficial and subject to breaking changes.
Strengths
- Supports pulling full historical dataframes dating back many decades for certain symbols (e.g., ^GSPC).
- Provides built-in local persistence caching with Sembast.
- Allows injecting a customized Dio client to handle interceptors, proxies, or caching.
Weaknesses
- Relies on Yahoo Finance's unofficial API endpoints, which can change or fail without notice.
- Limited documentation on advanced query parameters and cache configuration options.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
Requires internet access permissions on mobile and desktop platforms.
YahooFinanceResponse response = await YahooFinanceDailyReader().getDailyDTOs('GOOG');
for (var candle in response.candlesData) {
print('${candle.date}: ${candle.close}');
}Works with
Packages commonly used together with yahoo_finance_data_reader: ones it builds on, ones built on it, and its own family.
- path_provideryahoo_finance_data_reader depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- dioyahoo_finance_data_reader depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- sembastyahoo_finance_data_reader depends on itA NoSQL persistent embedded document-based database for Dart and Flutter.
- sembast_webyahoo_finance_data_reader depends on itNoSQL persistent embedded database for the Web on top of IndexedDB.