Snapshot class

An object returned by the WebsocketClient when subscribed to the level2 channel.

It is a snapshot of the order book.

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

Inheritance

Constructors

Snapshot({String? type, String? productId, List<Tuple2<double, double>>? bids, List<Tuple2<double, double>>? asks})
Snapshot.fromJson(Map<String, dynamic> json)
factory

Properties

asks List<Tuple2<double, double>>?
final
bids List<Tuple2<double, double>>?
final
hashCode int
The hash code for this object.
no setterinherited
productId String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
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