Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version represents the CoinGecko API version used by this client Version = "v3" // BaseURL is the base URL for the CoinGecko public API BaseURL = fmt.Sprintf("https://api.coingecko.com/api/%s", Version) // ProBaseURL is the base URL for the CoinGecko Pro API which requires authentication ProBaseURL = fmt.Sprintf("https://pro-api.coingecko.com/api/%s", Version) // CoinGeckoAPIVersion represents the version of the CoinGecko API implementation in this client CoinGeckoAPIVersion = "3.1.1" )
View Source
var CommonTestClient = geckohttp.NewRateLimitedClient( geckohttp.WithHttpClient[*geckohttp.RateLimitedClient](http.DefaultClient), geckohttp.WithRateLimit[*geckohttp.RateLimitedClient](15), geckohttp.WithRetryPolicy[*geckohttp.RateLimitedClient](5, 2), )
CommonTestClient is a test client for use in tests so rate limiting is not an issue
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
geckohttp.HttpClient
URL string
}
Click to show internal directories.
Click to hide internal directories.