Documentation
¶
Index ¶
- type CoinID
- type CoinInfo
- type History
- type HistoryMarketData
- type Market
- type NonCirculatingSupplyWallet
- type Ohlc
- type Project
- type RecentlyAddedCoin
- type ReposUrl
- type Status
- type StatusUpdates
- type SupplyBreakdown
- type SupplyChart
- type SupplyChartPoint
- type SupplyData
- type Tickers
- type TopGainersLosers
- type TopGainersLosersCoin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinID ¶
type CoinID struct {
ID string `json:"id"`
Symbol string `json:"symbol"`
Name string `json:"name"`
AssetPlatformID string `json:"asset_platform_id"`
BlockTimeInMinutes int64 `json:"block_time_in_minutes"`
HashingAlgorithm string `json:"hashing_algorithm"`
Categories []string `json:"categories"`
// PublicNotice ¿? `json:"public_notice"`
// AdditionalNotices ¿? `json:"public_notices"`
Localization types.Localization `json:"localization"`
Description types.Description `json:"description"`
Links types.Links `json:"links"`
Image types.Image `json:"image"`
CountryOrigin string `json:"country_origin"`
GenesisData string `json:"genesis_date"`
SentimentVotesUpPercent float64 `json:"sentiment_votes_up_percentage"`
SentimentVotesDownPercent float64 `json:"sentiment_votes_down_percentage"`
MarketCapRank int64 `json:"market_cap_rank"`
CoingeckoRank int64 `json:"coingecko_rank"`
CoingeckoScore float64 `json:"coingecko_score"`
DeveloperScore float64 `json:"developer_score"`
CommunityScore float64 `json:"community_score"`
LiquidityScore float64 `json:"liquidity_score"`
PublicInterestScore float64 `json:"public_interest_score"`
MarketData types.MarketData `json:"market_data"`
CommunityData types.CommunityData `json:"community_data"`
DeveloperData types.DeveloperData `json:"developer_data"`
PublicInterestStats types.PublicInterestStats `json:"public_interest_stats"`
Tickers []types.Ticker `json:"tickers"`
}
type History ¶
type History struct {
ID string `json:"id"`
Symbol string `json:"symbol"`
Name string `json:"name"`
Localization types.Localization `json:"localization"`
Image types.Image `json:"image"`
MarketData HistoryMarketData `json:"market_data"`
CommunityData types.CommunityData `json:"community_data"`
DeveloperData types.DeveloperData `json:"developer_data"`
PublicInterestStats types.PublicInterestStats `json:"public_interest_stats"`
}
type HistoryMarketData ¶
type HistoryMarketData struct {
CurrentPrice types.PriceRates `json:"current_price"`
MarketCap types.PriceRates `json:"market_cap"`
TotalVolume types.PriceRates `json:"total_volume"`
}
type Market ¶
type Market struct {
ID string `json:"ID"`
Symbol string `json:"symbol"`
Name string `json:"name"`
Image string `json:"image"`
CurrentPrice float64 `json:"current_price"`
MarketCap float64 `json:"market_cap"`
MarketCapRank int64 `json:"market_cap_rank"`
FullyDilutedValuation float64 `json:"fully_diluted_valuation"`
TotalVolume float64 `json:"total_volume"`
HighDay float64 `json:"high_24h"`
LowDay float64 `json:"low_24h"`
PriceChangeDay float64 `json:"price_change_24h"`
PriceChangePercentageDay float64 `json:"price_change_percentage_24h"`
MarketCapChangeDay float64 `json:"market_cap_change_24h"`
MarketCapChangePercentageDay float64 `json:"market_cap_change_percentage_24h"`
CirculatingSupply float64 `json:"circulating_supply"`
TotalSupply float64 `json:"total_supply"`
MaxSupply float64 `json:"max_supply"`
Ath float64 `json:"ath"`
AthChangePercentage float64 `json:"ath_change_percentage"`
AthDate string `json:"ath_date"`
Atl float64 `json:"atl"`
AtlChangePercentage float64 `json:"atl_change_percentage"`
AtlDate string `json:"atl_date"`
Roi types.Roi `json:"roi"`
LastUpdated string `json:"last_updated"`
SparklineInWeek types.Sparkline `json:"sparkline_in_7d"`
PriceChangePercentageTwoWeeksInCurrency float64 `json:"price_change_percentage_14d_in_currency"`
PriceChangePercentageHourInCurrency float64 `json:"price_change_percentage_1h_in_currency"`
PriceChangePercentageThreeMonthsInCurrency float64 `json:"price_change_percentage_200d_in_currency"`
PriceChangePercentageDayInCurrency float64 `json:"price_change_percentage_24h_in_currency"`
PriceChangePercentageMonthInCurrency float64 `json:"price_change_percentage_30d_in_currency"`
PriceChangePercentageWeekInCurrency float64 `json:"price_change_percentage_7d_in_currency"`
}
type NonCirculatingSupplyWallet ¶ added in v3.2.0
type RecentlyAddedCoin ¶ added in v3.2.0
type StatusUpdates ¶
type StatusUpdates struct {
StatusUpdates []Status `json:"status_updates"`
}
type SupplyBreakdown ¶ added in v3.2.0
type SupplyBreakdown struct {
ID string `json:"id"`
Symbol string `json:"symbol"`
Name string `json:"name"`
SupplyData SupplyData `json:"supply_data"`
NonCirculatingWallets []*NonCirculatingSupplyWallet `json:"non_circulating_wallets"`
}
type SupplyChart ¶ added in v3.2.0
type SupplyChart struct {
CirculatingSupply []SupplyChartPoint `json:"circulating_supply,omitempty"`
TotalSupply []SupplyChartPoint `json:"total_supply,omitempty"`
}
type SupplyChartPoint ¶ added in v3.2.0
type SupplyChartPoint []interface{}
type SupplyData ¶ added in v3.2.0
type TopGainersLosers ¶ added in v3.2.0
type TopGainersLosers struct {
TopGainers []*TopGainersLosersCoin `json:"top_gainers"`
TopLosers []*TopGainersLosersCoin `json:"top_losers"`
}
type TopGainersLosersCoin ¶ added in v3.2.0
type TopGainersLosersCoin struct {
ID string `json:"id"`
Symbol string `json:"symbol"`
Name string `json:"name"`
Image string `json:"image"`
MarketCapRank int64 `json:"market_cap_rank"`
CurrencyData map[string]*float64 `json:"-"`
Usd float64 `json:"usd"`
Usd24hVol float64 `json:"usd_24h_vol"`
Usd24hChange float64 `json:"usd_24h_change"`
Usd1hChange *float64 `json:"usd_1h_change"`
Usd7dChange *float64 `json:"usd_7d_change"`
Usd14dChange *float64 `json:"usd_14d_change"`
Usd30dChange *float64 `json:"usd_30d_change"`
Usd60dChange *float64 `json:"usd_60d_change"`
Usd200dChange *float64 `json:"usd_200d_change"`
Usd1yChange *float64 `json:"usd_1y_change"`
}
func (*TopGainersLosersCoin) UnmarshalJSON ¶ added in v3.2.0
func (c *TopGainersLosersCoin) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.