coingecko#

API documentation for tradingstrategy.alternative_data.coingecko Python module in Trading Strategy.

Module description#

Coingecko data fetching and caching.

  • Get Coingecko ids, smart contract addresses and categories so we can cross reference Trading Strategy data across different vendors

  • See CoingeckoUniverse for how to manipulate Coingeck data

  • See categorise_pairs() how to label Trading Strategy assets and trading pairs with CoinGecko data

Classes#

CoingeckoClient

Minimal implementation of Coingecko API client.

CoingeckoEntry

CoinGecko data wrapper

CoingeckoUniverse

Coingecko data universe.

LoggingRetry

In the case we need to throttle Coingecko, be verbose about it.

Functions#

categorise_pairs(coingecko_universe, pairs_df)

Categorise trading pairs by their Coingecko category.

fetch_top_coins(client[, pages, per_page])

Get the list of top coins from CoinGecko, with metadata.