categories

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: ? 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

This section is empty.

Functions

func WithOrderOption

func WithOrderOption(order string) categoriesOption

WithOrderOption returns a categoriesOption that sets the order parameter for category requests. The order parameter can be used to sort categories by market cap, volume, etc.

Types

type CategoriesClient

type CategoriesClient struct {
	*internal.Client
}

func NewClient

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

func (*CategoriesClient) Categories

func (c *CategoriesClient) Categories(ctx context.Context, options ...categoriesOption) (*types.CategoriesWithMarketDataList, error)

Categories allows you to query all the coins categories with market data (market cap, volume, etc.) on CoinGecko.

📘Notes

    CoinGecko Equivalent Page: https://www.coingecko.com/en/categories
    Cache / Update Frequency: every 5 minutes for all the API plans
    CoinGecko categories are different from GeckoTerminal categories

func (*CategoriesClient) CategoriesList

func (c *CategoriesClient) CategoriesList(ctx context.Context) (*types.CategoriesList, error)

CategoriesList allows you to query all the coins categories on CoinGecko.

👍 Tips

    You may use this endpoint to query the list of categories for other endpoints that contain params like category

📘 Notes

    CoinGecko Equivalent Page: https://www.coingecko.com/en/categories
    Cache / Update Frequency: every 5 minutes for all the API plans
    CoinGecko categories are different from GeckoTerminal categories

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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