Documentation
¶
Index ¶
Constants ¶
View Source
const CmcAuthVal = "e7f31052-0284-4ad6-8115-e35f2ecc8028"
View Source
const CmcPriceUrl = "https://pro-api.coinmarketcap.com/v2/cryptocurrency/quotes/latest?"
View Source
const CmcUrl = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/map?sort=cmc_rank"
Variables ¶
This section is empty.
Functions ¶
func GetTokenPrice ¶
Types ¶
type PriceData ¶
type PriceData struct {
Key1 *PriceDataDetail `json:"1"`
}
type PriceDataDetail ¶
type PriceStatus ¶
type TokenInfo ¶
type TokenInfo struct {
Id int64 `json:"id"`
Rank int64 `json:"rank"`
Name string `json:"name"`
Symbol string `json:"symbol"`
Slug string `json:"slug"`
IsActive int64 `json:"is_active"`
FirstHistoricalData string `json:"first_historical_data"`
LastHistoricalData string `json:"last_historical_data"`
Platform *Platform `json:"platform"`
}
func GetTopToken ¶
type TokenPriceResp ¶
type TokenPriceResp struct {
Data map[string][]PriceDataDetail `json:"data"`
Status *PriceStatus `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.