Versions in this module Expand all Collapse all v2 v2.0.0 Dec 30, 2024 Changes in this version + var BaseURL = fmt.Sprintf("https://api.coingecko.com/api/%s", version) + var ProBaseURL = fmt.Sprintf("https://pro-api.coingecko.com/api/%s", version) + type Client struct + func NewClient(httpClient *http.Client, apiKey string, isPro ...bool) *Client + func (c *Client) AssetPlatforms(ctx context.Context, filter string) (*assetPlatforms.AssetPlatforms, error) + func (c *Client) Categories(ctx context.Context, order string) (*categories.CategoriesWithMarketDataList, error) + func (c *Client) CategoriesList(ctx context.Context) (*categories.CategoriesList, error) + func (c *Client) Close() + func (c *Client) CoinsId(ctx context.Context, id string, ...) (*coins.CoinID, error) + func (c *Client) CoinsIdHistory(ctx context.Context, id, date string, localization bool) (*coins.History, error) + func (c *Client) CoinsIdMarketChart(ctx context.Context, id, currency, days, interval string) (*types.MarketChart, error) + func (c *Client) CoinsIdMarketChartRange(ctx context.Context, id, currency, from, to string) (*types.MarketChart, error) + func (c *Client) CoinsIdTickers(ctx context.Context, ...) (*coins.Tickers, error) + func (c *Client) CoinsList(ctx context.Context) ([]*coins.CoinInfo, error) + func (c *Client) CoinsMarket(ctx context.Context, currency string, ids []string, category string, ...) ([]*coins.Market, error) + func (c *Client) CoinsOhlc(ctx context.Context, id, currency, days string) (*coins.Ohlc, error) + func (c *Client) ContractInfo(ctx context.Context, id, contractAddress string) (*contract.ContractAddressInfo, error) + func (c *Client) ContractMarketChart(ctx context.Context, id, contractAddress, vsCurrency, days string) (*types.MarketChart, error) + func (c *Client) ContractMarketChartRange(ctx context.Context, id, contractAddress, vsCurrency, from, to string) (*types.MarketChart, error) + func (c *Client) DecentralizedFinanceDEFI(ctx context.Context) (*global.Defi, error) + func (c *Client) Derivatives(ctx context.Context) ([]derivatives.Derivative, error) + func (c *Client) DerivativesExchanges(ctx context.Context, order string, perPage, page int32) ([]derivatives.Exchange, error) + func (c *Client) DerivativesExchangesId(ctx context.Context, id, includeTickers string) (*derivatives.ExchangeId, error) + func (c *Client) DerivativesExchangesList(ctx context.Context) ([]derivatives.DerivativesListItem, error) + func (c *Client) ExchangeRates(ctx context.Context) (*exchangeRates.Rates, error) + func (c *Client) Exchanges(ctx context.Context, perPage, page string) (*exchanges.ExchangesList, error) + func (c *Client) ExchangesId(ctx context.Context, id string) (*exchanges.ExchangeWithTicker, error) + func (c *Client) ExchangesIdTickers(ctx context.Context, id, coinIds, includeExchangeLogo string, page int32, ...) (*exchanges.Tickers, error) + func (c *Client) ExchangesIdVolumeChart(ctx context.Context, id, days string) ([]exchanges.Volume, error) + func (c *Client) ExchangesList(ctx context.Context) ([]exchanges.ExchangeId, error) + func (c *Client) Global(ctx context.Context) (*global.Global, error) + func (c *Client) MakeReq(ctx context.Context, url string) ([]byte, error) + func (c *Client) NftsContract(ctx context.Context, assetPlatform, contract string) (*nfts.NftId, error) + func (c *Client) NftsId(ctx context.Context, id string) (*nfts.NftId, error) + func (c *Client) NftsList(ctx context.Context, order, assetPlatformId string, perPage, page int32) ([]nfts.Nft, error) + func (c *Client) Ping(ctx context.Context) (*ping.Ping, error) + func (c *Client) PublicTreasuryCoinId(ctx context.Context, id string) (*companies.Treasury, error) + func (c *Client) Search(ctx context.Context, query string) (*search.Search, error) + func (c *Client) SimplePrice(ctx context.Context, ids, vsCurrencies string, ...) (simple.Price, error) + func (c *Client) SimpleSupportedVsCurrency(ctx context.Context) (*simple.SupportedVsCurrency, error) + func (c *Client) SimpleTokenPrice(ctx context.Context, id, contractAddresses, vsCurrencies string, ...) (simple.TokenPrice, error) + func (c *Client) Trending(ctx context.Context) (*trending.Trending, error) Other modules containing this package github.com/JulianToledano/goingecko github.com/JulianToledano/goingecko/v3