Exchanges
- class Exchanges(http: IHttp)
- by_id(*, exchange_id: str) dict
Query all the coin data of a coin (name, price, market …. including exchange tickers) on CoinGecko coin page based on a particular coin id.
- Parameters:
exchange_id – The exchange id
- exchanges_list(*, per_page: int = 100, page: int = 1) list
Query all the supported exchanges with exchanges’ data (id, name, country, …. etc) that have active trading volumes on CoinGecko.
- Parameters:
per_page – Total results per page
page – Page through results
- list_id_map() list
Query all the supported coins with price, market cap, volume and market related data.
- tickers_by_id(*, exchange_id: str, **kwargs: Any) dict
Query exchange’s tickers based on exchange’s id.
- Parameters:
exchange_id – The exchange id
coin_ids – Filter tickers by coin_ids
include_exchange_logo – Include exchange logo
page – Page through results
depth – Order book depth
order – Use this to sort the order of responses, default: trust_score_desc
- volume_chart_by_id(*, exchange_id: str, days: int = 1) dict
Query the historical volume chart data with time in UNIX and trading volume data in BTC based on exchange’s id.
- Parameters:
exchange_id – The exchange id
days – Data up to number of days ago