StreamTicker class

A ticker returned by the WebsocketClient which provides real-time price updates every time a match happens.

https://docs.cloud.coinbase.com/exchange/docs/channels#the-level2-channel

Inheritance
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

StreamTicker({int? tradeId, int? sequence, double? price, DateTime? time, String? productId, String? side, double? lastSize, double? bestAsk, double? bestBid})
StreamTicker.fromJson(Map<String, dynamic> json)
factory

Properties

bestAsk double?
final
bestBid double?
final
hashCode int
The hash code for this object.
no setterinherited
lastSize double?
final
price double?
final
productId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequence int?
final
side String?
final
time DateTime?
final
tradeId int?
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