yahoofin 0.0.8 copy "yahoofin: ^0.0.8" to clipboard
yahoofin: ^0.0.8 copied to clipboard

A flutter package that allows people to fetch stock data from yahoo finance api.

example/main.dart

import 'package:yahoofin/src/models/stock_chart.dart';
import 'package:yahoofin/yahoofin.dart';

main() async {
  var yfin = YahooFin();
  StockHistory hist = yfin.initStockHistory(ticker: "GOOG");
  StockChart chart = await yfin.getChartQuotes(
      stockHistory: hist,
      interval: StockInterval.oneDay,
      period: StockRange.fiveYear);
  print(chart.chartQuotes!.timestamp);
}
18
likes
120
pub points
68%
popularity

Publisher

verified publishersarveshbhatnagar.com

A flutter package that allows people to fetch stock data from yahoo finance api.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, flutter, http

More

Packages that depend on yahoofin