YahooFinanceCandleData class

Representation of a single candle

Constructors

YahooFinanceCandleData({required DateTime date, double open = -1, double high = -1, double low = -1, double close = -1, double adjClose = -1, int volume = 0})
Constructor
YahooFinanceCandleData.fromJson(Map<String, dynamic> json, {bool adjust = false})
factory

Properties

adjClose double
Adjusted close price, by splits and dividends
final
close double
Close price
final
date DateTime
Date of the candle
final
hashCode int
The hash code for this object.
no setterinherited
high double
High price
final
indicators Map<String, double>
Map to receive indicators associated with this candle
getter/setter pair
low double
Low price
final
open double
Open price
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
volume int
Volume
final

Methods

copyWith({DateTime? date, double? open, double? close, double? adjClose, double? high, double? low, int? volume}) YahooFinanceCandleData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJsonList(List<Map<String, dynamic>> jsonList) List<YahooFinanceCandleData>
Create a list of YahooFinanceCandleData based in a json array