Quote class
The Quote class is used to represent the quote for a given stock symbol. It contains the current price, the daily change, the daily change percentage, the high price, the low price, the open price, the previous close price, the timestamp, the volume, the historical price, the metrics, the exchange and the earnings announcement.
Constructors
- Quote({required double c, required double d, required double? dp, required double h, required double l, required double o, required double pc, required int t, double? v, HistoricalPrice? historicalPrice, Metrics? metrics, String? exchange, String? earningsAnnouncement})
-
Quote.fromJson(Map<
String, dynamic> json) -
factory
Properties
- c ↔ double
-
The c property is used to get the current close price.
getter/setter pair
- d ↔ double
-
The d property is used to get the daily change.
getter/setter pair
- dp ↔ double?
-
The dp property is used to get the daily change percentage.
getter/setter pair
- earningsAnnouncement ↔ String?
-
The earningsAnnouncement property is used to get the earnings announcement.
getter/setter pair
- exchange ↔ String?
-
The exchange property is used to get the exchange.
getter/setter pair
- h ↔ double
-
The h property is used to get the high price.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- historicalPrice ↔ HistoricalPrice?
-
The historicalPrice property is used to get the historical price.
getter/setter pair
- l ↔ double
-
The l property is used to get the low price.
getter/setter pair
- metrics ↔ Metrics?
-
The metrics property is used to get the metrics.
getter/setter pair
- o ↔ double
-
The o property is used to get the open price.
getter/setter pair
- pc ↔ double
-
The pc property is used to get the previous close price.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- t ↔ int
-
The t property is used to get the timestamp.
getter/setter pair
- v ↔ double?
-
The v property is used to get the volume.
getter/setter pair
Methods
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited