Ticker class

A class representing the ticker data for a specific trading pair.

Constructors

Ticker.fromJson(Map<String, dynamic> json)
Constructs a Ticker instance from a JSON object.

Properties

base String
The base asset of the trading pair.
final
bidAskSpreadPercentage double
The bid/ask spread percentage of the ticker.
final
coinId String
The identifier of the coin.
final
convertedLast Map<String, double>
The last traded value of the ticker converted to different currencies.
final
convertedVolume Map<String, double>
The trading volume of the ticker converted to different currencies.
final
costToMoveDownUsd double?
The cost to move the ticker down in USD.
final
costToMoveUpUsd double?
The cost to move the ticker up in USD.
final
hashCode int
The hash code for this object.
no setterinherited
isAnomaly bool
Indicates whether the ticker data is considered an anomaly.
final
isStale bool
Indicates whether the ticker data is considered stale.
final
last double
The last traded value of the ticker.
final
lastFetchAt DateTime
The timestamp when the ticker data was last fetched.
final
lastTradedAt DateTime
The timestamp when the ticker was last traded.
final
market ExchangeMarket
The market data for the ticker.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target String
The target asset of the trading pair.
final
targetCoinId String?
The identifier of the target coin.
final
timestamp DateTime
The timestamp when the ticker data is relevant.
final
tokenInfoUrl String?
The URL for token information.
final
tradeUrl String
The URL for trading the asset.
final
trustScore String
The trust score of the ticker.
final
volume double
The trading volume of the ticker.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of the Ticker instance.
override

Operators

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