YahooFin class

Constructors

YahooFin()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkSymbol(String symbol) Future<bool>
Checks if symbol exists or not.
getChartQuotes({required StockHistory stockHistory, StockInterval interval = StockInterval.oneDay, StockRange period = StockRange.oneMonth}) Future<StockChart>
Returns stockChart initialized with both chartQuotes and adjustedClose prices.
getMetaData(String symbol) Future<StockMeta>
getPrice({required StockInfo stockInfo}) Future<StockQuote>
Returns StockQuote instance after getting currentPrice, dayHigh and dayLow from the given tickers. If invalid ticker is found, returns a StockQuote instance with parameters initialized to null.
getPriceChange({required StockInfo stockInfo}) Future<StockQuote>
Returns StockQuote instance after getting price change parameters including regularMarketChange,fiftyDayAverageChange, fiftyTwoWeekHighChange, fiftyTwoWeekLowChange, twoHundredDayAverageChange, fiftyTwoWeekLowChangePercent, fiftyTwoWeekHighChangePercent, fiftyDayAverageChangePercent, twoHundredDayAverageChangePercent, regularMarketChangePercent, from the given tickers. If invalid ticker is found, returns a StockQuote instance with parameters initialized to null.
getStockInfo({required dynamic ticker}) StockInfo
returns a StockInfo instance for given ticker. it is required by functions handling basic single day queries.
getVolume({required StockInfo stockInfo}) Future<StockQuote>
Returns StockQuote instance after getting currentPrice, dayHigh and dayLow from the given tickers. If invalid ticker is found, returns a StockQuote instance with parameters initialized to null.
initStockHistory({required dynamic ticker}) StockHistory
returns a StockHistory instance for given ticker. it is required by functions handling basic multiple day queries.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited