global

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithGlobalMarketCapChartVsCurrency added in v3.2.0

func WithGlobalMarketCapChartVsCurrency(vsCurrency string) marketCapChartOption

WithGlobalMarketCapChartVsCurrency sets the target currency for market cap and volume values.

Types

type GlobalClient

type GlobalClient struct {
	*internal.Client
}

func NewClient

func NewClient(c geckohttp.HttpClient, url string) *GlobalClient

func (*GlobalClient) DecentralizedFinanceDEFI

func (c *GlobalClient) DecentralizedFinanceDEFI(ctx context.Context) (*types.Defi, error)

DecentralizedFinanceDEFI allows you query top 100 cryptocurrency global decentralized finance (defi) data including defi market cap, trading volume.

📘Notes

    Cache / Update Frequency: every 60 minutes for all the API plans

func (*GlobalClient) Global

func (c *GlobalClient) Global(ctx context.Context) (*types.Global, error)

Global allows you query cryptocurrency global data including active cryptocurrencies, markets, total crypto market cap and etc.

📘Notes

    Cache / Update Frequency: every 10 minutes for all the API plans

func (*GlobalClient) GlobalMarketCapChart added in v3.2.0

func (c *GlobalClient) GlobalMarketCapChart(ctx context.Context, days string, options ...marketCapChartOption) (*types.MarketCapChart, error)

GlobalMarketCapChart allows you to query historical global market cap and volume data by number of days from now.

This is a Pro API endpoint.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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