internal

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Functions

This section is empty.

Types

type Client

type Client struct {
	*geckohttp.Client

	URL string
}

func NewClient

func NewClient(httpClient *geckohttp.Client, 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