Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version represents the CoinGecko API version used by this client Version = internal.Version // BaseURL is the base URL for the CoinGecko public API BaseURL = internal.BaseURL // ProBaseURL is the base URL for the CoinGecko Pro API which requires authentication ProBaseURL = internal.ProBaseURL )
Functions ¶
func GeckoApiVersion ¶
func GeckoApiVersion() string
GeckoApiVersion returns the version of the CoinGecko API client library
Types ¶
type Client ¶
type Client struct {
*ping.PingClient
*simple.SimpleClient
*coins.CoinsClient
*contract.ContractClient
*assetPlatforms.AssetPlatformsClient
*categories.CategoriesClient
*exchanges.ExchangesClient
*derivatives.DerivativesClient
*nfts.NftsClient
*exchangeRates.ExchangeRatesClient
*search.SearchClient
*trending.TrendingClient
*global.GlobalClient
*companies.CompaniesClient
}
Client wraps the CoinGecko API client functionality
func NewDefaultClient ¶
func NewDefaultClient() *Client
NewDefaultClient creates a new Client using the default HTTP client and base URL
func NewDemoApiClient ¶
NewDemoApiClient creates a new Client configured for the Demo API with the provided API key and HTTP client
Click to show internal directories.
Click to hide internal directories.