# Functions
GetAssets serves data about top 100 coins for the main page.
GetCoinDetails fetches details for a coin specified by id and sends the data on dataChannel.
GetCoinHistory gets price history of a coin specified by id, for an interval received through the interval channel.
GetFavouritePrices gets coin prices for coins specified by favourites.
GetLivePrice uses a websocket to stream realtime prices of a coin specified by id.
GetPercentageChangeForDuration returns price change percentage given a CoinsMarketItem and a duration, If the specified duration does not exist, 24 Hour change percent is returned.
NewCoinIDMap returns an instance of CoinIDMap.
# Structs
AssetData is used to hold details of multiple coins and the price history of top ranked coins along with their names.
CoinCapAsset is used to marshal asset data from coinCap APIs.
CoinCapData is used to marshall multiple assets from CoinCap APIs.
CoinData Holds data pertaining to a single coin.
CoinDetails holds information about a coin.
CoinID holds the ID of a coin as stored in CoinGecko and CoinCap.
# Type aliases
CoinIDMap maps a symbol to it's respective ID.