coin_market_cap

package
v1.3.1-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinMarketCapResponse

type CoinMarketCapResponse struct {
	Status Status               `json:"Status"`
	Data   map[string]TokenInfo `json:"data"`
}

type Quote

type Quote struct {
	USD Usd `json:"Usd"`
}

type Status

type Status struct {
	Timestamp    time.Time   `json:"timestamp"`
	ErrorCode    int         `json:"error_code"`
	ErrorMessage interface{} `json:"error_message"`
	Elapsed      int         `json:"elapsed"`
	CreditCount  int         `json:"credit_count"`
	Notice       interface{} `json:"notice"`
}

type Tag

type Tag struct {
	Slug     string `json:"slug"`
	Name     string `json:"name"`
	Category string `json:"category"`
}

type TokenInfo

type TokenInfo struct {
	Id                            int             `json:"id"`
	Name                          string          `json:"name"`
	Symbol                        string          `json:"symbol"`
	Slug                          string          `json:"slug"`
	NumMarketPairs                int             `json:"num_market_pairs"`
	DateAdded                     time.Time       `json:"date_added"`
	Tags                          []Tag           `json:"tags"`
	MaxSupply                     int             `json:"max_supply"`
	CirculatingSupply             decimal.Decimal `json:"circulating_supply"`
	TotalSupply                   decimal.Decimal `json:"total_supply"`
	IsActive                      int             `json:"is_active"`
	Platform                      interface{}     `json:"platform"`
	CmcRank                       int             `json:"cmc_rank"`
	IsFiat                        int             `json:"is_fiat"`
	SelfReportedCirculatingSupply interface{}     `json:"self_reported_circulating_supply"`
	SelfReportedMarketCap         interface{}     `json:"self_reported_market_cap"`
	LastUpdated                   time.Time       `json:"last_updated"`
	Quote                         Quote           `json:"Quote"`
}

type Usd

type Usd struct {
	Price                 float64   `json:"price"`
	Volume24H             float64   `json:"volume_24h"`
	VolumeChange24H       float64   `json:"volume_change_24h"`
	PercentChange1H       float64   `json:"percent_change_1h"`
	PercentChange24H      float64   `json:"percent_change_24h"`
	PercentChange7D       float64   `json:"percent_change_7d"`
	PercentChange30D      float64   `json:"percent_change_30d"`
	PercentChange60D      float64   `json:"percent_change_60d"`
	PercentChange90D      float64   `json:"percent_change_90d"`
	MarketCap             float64   `json:"market_cap"`
	MarketCapDominance    float64   `json:"market_cap_dominance"`
	FullyDilutedMarketCap float64   `json:"fully_diluted_market_cap"`
	LastUpdated           time.Time `json:"last_updated"`
}

Jump to

Keyboard shortcuts

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