Documentation ¶
Index ¶
- func GetCurrencyHistoryByCurrencyID(id string) (map[int64]*CryptocurrencyHistory, error)
- type CryptocurrencyHistory
- type Cyptocurrency
- type ValueResponse
- func GetAvailableSupplyByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetMarketCapUSDByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetMaxSupplyByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetPercentChange1HByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetPercentChange24HByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetPercentChange7DHByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetPriceBTCByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetPriceUSDByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetTotalSupplyByCurrencyIDs(ids []string) ([]*ValueResponse, error)
- func GetVolumeUSD24HByCurrencyIDs(ids []string) ([]*ValueResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrencyHistoryByCurrencyID ¶
func GetCurrencyHistoryByCurrencyID(id string) (map[int64]*CryptocurrencyHistory, error)
GetCurrencyHistoryByCurrencyID get historic data for a currency by ID
Types ¶
type CryptocurrencyHistory ¶
type CryptocurrencyHistory struct { Timestamp int64 TimeUTC time.Time MarketSupply int64 PriceBTC float64 PriceUSD float64 VolUSD int64 }
CryptocurrencyHistory is the type of a historic currency
type Cyptocurrency ¶
type Cyptocurrency struct { ID string Name string Symbol string Rank int64 PriceUSD float64 PriceBTC float64 VolumeUSD24H float64 MarketCapUSD float64 AvailableSupply float64 TotalSupply float64 MaxSupply float64 PercentChange1H float64 PercentChange24H float64 PercentChange7D float64 LastUpdated time.Time }
Cyptocurrency is the type of a current currency
func GetCurrencyDataByCurrencyIDs ¶
func GetCurrencyDataByCurrencyIDs(ids []string) ([]*Cyptocurrency, error)
GetCurrencyDataByCurrencyIDs get all current details about a given crypto currency
type ValueResponse ¶
ValueResponse is the single value response type
func GetAvailableSupplyByCurrencyIDs ¶
func GetAvailableSupplyByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetAvailableSupplyByCurrencyIDs get current available supply for given IDs
func GetMarketCapUSDByCurrencyIDs ¶
func GetMarketCapUSDByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetMarketCapUSDByCurrencyIDs get current market cap in USD for given IDs
func GetMaxSupplyByCurrencyIDs ¶
func GetMaxSupplyByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetMaxSupplyByCurrencyIDs get current max supply for given IDs
func GetPercentChange1HByCurrencyIDs ¶
func GetPercentChange1HByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetPercentChange1HByCurrencyIDs get change in percentage over last 1 hour for given IDs
func GetPercentChange24HByCurrencyIDs ¶
func GetPercentChange24HByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetPercentChange24HByCurrencyIDs get change in percentage over last 24 hours for given IDs
func GetPercentChange7DHByCurrencyIDs ¶
func GetPercentChange7DHByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetPercentChange7DHByCurrencyIDs get change in percentage over last 7 days for given IDs
func GetPriceBTCByCurrencyIDs ¶
func GetPriceBTCByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetPriceBTCByCurrencyIDs get current price in BTC for given IDs
func GetPriceUSDByCurrencyIDs ¶
func GetPriceUSDByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetPriceUSDByCurrencyIDs get current price in USD for given IDs
func GetTotalSupplyByCurrencyIDs ¶
func GetTotalSupplyByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetTotalSupplyByCurrencyIDs get current toal supply for given IDs
func GetVolumeUSD24HByCurrencyIDs ¶
func GetVolumeUSD24HByCurrencyIDs(ids []string) ([]*ValueResponse, error)
GetVolumeUSD24HByCurrencyIDs get current volume over last 24 hours in USD for given IDs