Documentation ¶
Index ¶
- type Coin
- type CoinsContainer
- type CryptoCompare
- func (c *CryptoCompare) DoQuery(url string) (*http.Response, error)
- func (c *CryptoCompare) FetchDailyMarketValues(symbol string, currency string, limit int, allData bool, aggregate int) ([]TokenHistoricalPairs, error)
- func (c *CryptoCompare) FetchHourlyMarketValues(symbol string, currency string, limit int, aggregate int) ([]TokenHistoricalPairs, error)
- func (c *CryptoCompare) FetchPrices(symbols []string, currencies []string) (map[string]map[string]float64, error)
- func (c *CryptoCompare) FetchTokenDetails(symbols []string) (map[string]Coin, error)
- func (c *CryptoCompare) FetchTokenMarketValues(symbols []string, currencies []string) (map[string]map[string]MarketCoinValues, error)
- type HistoricalValuesContainer
- type HistoricalValuesData
- type MarketCoinValues
- type MarketValuesContainer
- type TokenHistoricalPairs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coin ¶
type Coin struct { ID string `json:"Id"` Name string `json:"Name"` Symbol string `json:"Symbol"` Description string `json:"Description"` TotalCoinsMined float64 `json:"TotalCoinsMined"` AssetLaunchDate string `json:"AssetLaunchDate"` AssetWhitepaperURL string `json:"AssetWhitepaperUrl"` AssetWebsiteURL string `json:"AssetWebsiteUrl"` BuiltOn string `json:"BuiltOn"` SmartContractAddress string `json:"SmartContractAddress"` }
type CoinsContainer ¶
type CryptoCompare ¶
type CryptoCompare struct { IsConnected bool LastCheckedAt int64 IsConnectedLock sync.RWMutex // contains filtered or unexported fields }
func NewCryptoCompare ¶
func NewCryptoCompare() *CryptoCompare
func (*CryptoCompare) FetchDailyMarketValues ¶
func (c *CryptoCompare) FetchDailyMarketValues(symbol string, currency string, limit int, allData bool, aggregate int) ([]TokenHistoricalPairs, error)
func (*CryptoCompare) FetchHourlyMarketValues ¶
func (c *CryptoCompare) FetchHourlyMarketValues(symbol string, currency string, limit int, aggregate int) ([]TokenHistoricalPairs, error)
func (*CryptoCompare) FetchPrices ¶
func (*CryptoCompare) FetchTokenDetails ¶
func (c *CryptoCompare) FetchTokenDetails(symbols []string) (map[string]Coin, error)
func (*CryptoCompare) FetchTokenMarketValues ¶
func (c *CryptoCompare) FetchTokenMarketValues(symbols []string, currencies []string) (map[string]map[string]MarketCoinValues, error)
type HistoricalValuesContainer ¶
type HistoricalValuesContainer struct { Aggregated bool `json:"Aggregated"` TimeFrom int64 `json:"TimeFrom"` TimeTo int64 `json:"TimeTo"` HistoricalData []TokenHistoricalPairs `json:"Data"` }
type HistoricalValuesData ¶
type HistoricalValuesData struct {
Data HistoricalValuesContainer `json:"Data"`
}
type MarketCoinValues ¶
type MarketCoinValues struct { MKTCAP float64 `json:"MKTCAP"` HIGHDAY float64 `json:"HIGHDAY"` LOWDAY float64 `json:"LOWDAY"` CHANGEPCTHOUR float64 `json:"CHANGEPCTHOUR"` CHANGEPCTDAY float64 `json:"CHANGEPCTDAY"` CHANGEPCT24HOUR float64 `json:"CHANGEPCT24HOUR"` CHANGE24HOUR float64 `json:"CHANGE24HOUR"` }
type MarketValuesContainer ¶
type MarketValuesContainer struct {
Raw map[string]map[string]MarketCoinValues `json:"Raw"`
}
Click to show internal directories.
Click to hide internal directories.