api

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 17 Imported by: 1

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

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

func NewDemoApiClient(apiKey string, c *http.Client) *Client

NewDemoApiClient creates a new Client configured for the Demo API with the provided API key and HTTP client

func NewProApiClient

func NewProApiClient(apiKey string, c *http.Client) *Client

NewProApiClient creates a new Client configured for the Pro API with the provided API key and HTTP client

Jump to

Keyboard shortcuts

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