types

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 CoinInfo

type CoinInfo struct {
	ID     string `json:"id"`
	Symbol string `json:"symbol"`
	Name   string `json:"name"`
}

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 NonCirculatingSupplyWallet struct {
	Address                 string  `json:"address"`
	Label                   string  `json:"label"`
	Balance                 float64 `json:"balance"`
	PercentageOfTotalSupply float64 `json:"percentage_of_total_supply"`
	Anomaly                 bool    `json:"anomaly"`
	LastUpdated             string  `json:"last_updated"`
}

type Ohlc

type Ohlc [][]float64

type Project

type Project struct {
	Type   string      `json:"type"`
	ID     string      `json:"id"`
	Name   string      `json:"name"`
	Symbol string      `json:"symbol"`
	Image  types.Image `json:"image"`
}

type RecentlyAddedCoin added in v3.2.0

type RecentlyAddedCoin struct {
	ID          string `json:"id"`
	Symbol      string `json:"symbol"`
	Name        string `json:"name"`
	ActivatedAt int64  `json:"activated_at"`
}

type ReposUrl

type ReposUrl struct {
	Github    []string `json:"github"`
	Bitbucket []string `json:"bitbucket"`
}

type Status

type Status struct {
	Description string  `json:"description"`
	Category    string  `json:"category"`
	CreatedAt   string  `json:"created_at"`
	User        string  `json:"user"`
	UserTitle   string  `json:"user_title"`
	Pin         bool    `json:"pin"`
	Project     Project `json:"project"`
}

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 SupplyData struct {
	TotalSupply          float64 `json:"total_supply"`
	CirculatingSupply    float64 `json:"circulating_supply"`
	OutstandingSupply    float64 `json:"outstanding_supply"`
	NonCirculatingSupply float64 `json:"non_circulating_supply"`
	LastUpdated          string  `json:"last_updated"`
}

type Tickers

type Tickers struct {
	Name    string         `json:"name"`
	Tickers []types.Ticker `json:"tickers"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL