Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarketTicker ¶
type MarketTicker struct { ID string `json:"id"` CurrentPrice float64 `json:"current_price"` MarketCap int64 `json:"market_cap"` }
MarketTicker contains the current market data for a single token
func NewMarketTicker ¶
func NewMarketTicker(id string, currentPrice float64, marketCap int64) MarketTicker
NewMarketTicker creates a new instance of MarketTicker
Click to show internal directories.
Click to hide internal directories.