Versions in this module Expand all Collapse all v0 v0.1.4 Jun 14, 2026 Changes in this version type Client + func (c *Client) Coins(ctx context.Context, limit int) ([]CoinInfo, error) + type CoinInfo struct + ID string + Name string + Symbol string + type MarketCoin struct + CurrentPrice float64 + ID string + MarketCap float64 + MarketCapRank int + Name string + PriceChange24h float64 + Symbol string + TotalVolume float64 v0.1.3 Jun 14, 2026 Changes in this version type Client + func (c *Client) CoinDetail(ctx context.Context, id string) (Coin, error) type Coin + Description string + High24h string + Low24h string + MarketCap string + Price string + Volume24h string + type Market struct + Change24h string + High24h string + ID string + Low24h string + MarketCap string + Name string + Price string + Rank int + Symbol string + Volume24h string type Price + Currency string + ID string + Price float64 + type Trending struct + ID string + Name string + Rank int + Symbol string v0.1.2 Jun 14, 2026 Changes in this version type Client + func (c *Client) Coin(ctx context.Context, id string) (CoinDetail, error) type CoinDetail + ATH_USD float64 + Change24h float64 + CurrentUSD float64 + GenesisDate string + MarketCapUSD float64 + type CoinMarket struct + ATH float64 + CirculatingSupply float64 + CurrentPrice float64 + ID string + MarketCap float64 + MarketCapRank int + Name string + PriceChange24h float64 + Symbol string + TotalVolume float64 type Price + CoinID string + Prices map[string]float64 type TrendingCoin + PriceBTC float64 v0.1.1 Jun 14, 2026 Changes in this version type Client + func (c *Client) CoinInfo(ctx context.Context, id string) (CoinDetail, error) + func (c *Client) Markets(ctx context.Context, limit int) ([]Coin, error) + func (c *Client) MarketsInCurrency(ctx context.Context, currency string, limit int) ([]Coin, error) + func (c *Client) Price(ctx context.Context, ids []string, currencies []string) (Price, error) + func (c *Client) Search(ctx context.Context, query string) ([]SearchResult, error) + func (c *Client) Trending(ctx context.Context) ([]TrendingCoin, error) + type Coin struct + Change24h float64 + ID string + MarketCapRank int + MarketCapUSD float64 + Name string + PriceUSD float64 + Rank int + Symbol string + URL string + Volume24hUSD float64 + type CoinDetail struct + Categories []string + Description map[string]string + ID string + MarketCapRank int + MarketData CoinMarketData + Name string + Symbol string + type CoinMarketData struct + CurrentPrice map[string]float64 + MarketCap map[string]float64 + PriceChangePct24h float64 + type Config struct + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Price map[string]map[string]float64 + type SearchResult struct + ID string + MarketCapRank int + Name string + Symbol string + type TrendingCoin struct + ID string + MarketCapRank int + Name string + Rank int + Symbol string + URL string 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) GetPage(ctx context.Context, path string) (*Page, error) + func (c *Client) PageLinks(ctx context.Context, path string, limit int) ([]*Page, error) + 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 Page struct + Body string + ID string + Title string + URL string