Ticker class

A snapshot information about the last trade (tick), best bid/ask and 24h volume.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Ticker({String? type, int? tradeId, double? price, double? size, double? bid, double? ask, double? volume, DateTime? time})
Ticker.fromJson(Map<String, dynamic> json)
factory

Properties

ask double?
final
bid double?
final
hashCode int
The hash code for this object.
no setterinherited
price double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double?
final
time DateTime?
final
tradeId int?
final
type String?
final
volume double?
final

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