global

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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