Ticker

@Serializable
data class Ticker(val base: String, val target: String, val market: Market, val last: Double = 0.0, val volume: Double = 0.0, val convertedLast: Map<String, String> = emptyMap(), val convertedVolume: Map<String, String> = emptyMap(), val trustScore: String?, val bidAskSpreadPercentage: Double?, val timestamp: String, val lastTradedAt: String, val lastFetchAt: String, val isAnomaly: Boolean = false, val isStale: Boolean = false, val tradeUrl: String? = null, val coinId: String, val tokenInfoUrl: String?, val targetCoinId: String? = null)

Constructors

Link copied to clipboard
constructor(base: String, target: String, market: Market, last: Double = 0.0, volume: Double = 0.0, convertedLast: Map<String, String> = emptyMap(), convertedVolume: Map<String, String> = emptyMap(), trustScore: String?, bidAskSpreadPercentage: Double?, timestamp: String, lastTradedAt: String, lastFetchAt: String, isAnomaly: Boolean = false, isStale: Boolean = false, tradeUrl: String? = null, coinId: String, tokenInfoUrl: String?, targetCoinId: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "bid_ask_spread_percentage")
val bidAskSpreadPercentage: Double?
Link copied to clipboard
@SerialName(value = "coin_id")
val coinId: String
Link copied to clipboard
@SerialName(value = "converted_last")
val convertedLast: Map<String, String>
Link copied to clipboard
@SerialName(value = "converted_volume")
val convertedVolume: Map<String, String>
Link copied to clipboard
@SerialName(value = "is_anomaly")
val isAnomaly: Boolean = false
Link copied to clipboard
@SerialName(value = "is_stale")
val isStale: Boolean = false
Link copied to clipboard
val last: Double = 0.0
Link copied to clipboard
@SerialName(value = "last_fetch_at")
val lastFetchAt: String
Link copied to clipboard
@SerialName(value = "last_traded_at")
val lastTradedAt: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "target_coin_id")
val targetCoinId: String? = null
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "token_info_url")
val tokenInfoUrl: String?
Link copied to clipboard
@SerialName(value = "trade_url")
val tradeUrl: String? = null
Link copied to clipboard
@SerialName(value = "trust_score")
val trustScore: String?
Link copied to clipboard
val volume: Double = 0.0