Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + type Client struct + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func (c *Client) Get(ctx context.Context, url string) ([]byte, error) + func (c *Client) GetCoin(ctx context.Context, id string) (*Coin, error) + func (c *Client) GetGlobal(ctx context.Context) (*GlobalStats, error) + func (c *Client) GetMarkets(ctx context.Context, id string, limit int) ([]Market, error) + func (c *Client) ListCoins(ctx context.Context, limit, start int) ([]Coin, error) + type Coin struct + CirculatingSupply string + ID string + MarketCapUSD string + Name string + PercentChange1h string + PercentChange24h string + PercentChange7d string + PriceUSD string + Rank int + Symbol string + TotalSupply string + Volume24 float64 + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type GlobalStats struct + ActiveMarkets int + BTCDominance string + CoinsCount int + ETHDominance string + McapChange string + TotalMcap float64 + TotalVolume float64 + VolumeChange string + type Market struct + Base string + Name string + Price float64 + PriceUSD float64 + Quote string + Volume float64 + VolumeUSD float64