categories

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

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