internal

package
v3.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 4 Imported by: 0

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"
)

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
}

func NewClient

func NewClient(httpClient geckohttp.HttpClient, url string) *Client

type Option

type Option interface {
	Apply(*url.Values)
}

Option is a generic option type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL