Documentation
¶
Index ¶
- func WithGlobalMarketCapChartVsCurrency(vsCurrency string) marketCapChartOption
- type GlobalClient
- func (c *GlobalClient) DecentralizedFinanceDEFI(ctx context.Context) (*types.Defi, error)
- func (c *GlobalClient) Global(ctx context.Context) (*types.Global, error)
- func (c *GlobalClient) GlobalMarketCapChart(ctx context.Context, days string, options ...marketCapChartOption) (*types.MarketCapChart, error)
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 ¶
func NewClient ¶
func NewClient(c geckohttp.HttpClient, url string) *GlobalClient
func (*GlobalClient) DecentralizedFinanceDEFI ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.