Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoricalPrice ¶ added in v0.133.2
type MarketDataProvider ¶ added in v0.133.2
type MarketDataProvider interface { FetchPrices(symbols []string, currencies []string) (map[string]map[string]float64, error) FetchHistoricalDailyPrices(symbol string, currency string, limit int, allData bool, aggregate int) ([]HistoricalPrice, error) FetchHistoricalHourlyPrices(symbol string, currency string, limit int, aggregate int) ([]HistoricalPrice, error) FetchTokenMarketValues(symbols []string, currency string) (map[string]TokenMarketValues, error) FetchTokenDetails(symbols []string) (map[string]TokenDetails, error) }
type NFTMetadata ¶ added in v0.140.2
type NFTMetadataProvider ¶ added in v0.140.2
type NFTMetadataProvider interface { CanProvideNFTMetadata(chainID uint64, id NFTUniqueID, tokenURI string) (bool, error) FetchNFTMetadata(chainID uint64, id NFTUniqueID, tokenURI string) (*NFTMetadata, error) }
type NFTUniqueID ¶ added in v0.140.2
type TokenDetails ¶ added in v0.133.2
type TokenDetails 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 TokenMarketValues ¶ added in v0.133.2
type TokenMarketValues 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"` }
Click to show internal directories.
Click to hide internal directories.