Coins
- class CoinsPro(http: IHttp)
- circulating_supply(*, coin_id: str, days: str, interval: str | None = None) dict
Query historical circulating supply of a coin by number of days away from now based on provided coin id.
- Parameters:
coin_id – The id of the coin
days – Data up to number of days ago
interval – Data interval, possible values: daily
- circulating_supply_within_time_range(*, coin_id: str, from_timestamp: int, to_timestamp: int) dict
Query historical circulating supply of a coin within a range of timestamp based on provided coin id.
- Parameters:
coin_id – The id of the coin
from_timestamp – Starting date in UNIX timestamp
to_timestamp – Ending date in UNIX timestamp
- ohlc_chart_within_time_range(*, coin_id: str, vs_currency: str, from_timestamp: int, to_timestamp: int, interval: str) list
Get the OHLC chart (Open, High, Low, Close) of a coin within a range of timestamp based on particular coin id.
- Parameters:
coin_id – The id of the coin
vs_currency – The target currency of coins
from_timestamp – Starting date in UNIX timestamp
to_timestamp – Ending date in UNIX timestamp
interval – Data interval, possible values: hourly, daily
- recently_added() list
Query the latest 200 coins that recently listed on CoinGecko
- top_gainers_and_losers(*, vs_currency: str, duration: str | None = None, top_coins: str | None = None) list
Query the top 30 coins with largest price gain and loss by a specific time duration.
- Parameters:
vs_currency – The target currency of coins
duration – Filter result by time range
top_coins – Filter result by market cap ranking (top 300 to 1000) or all coins (including coins that do not have market cap)
- total_supply(*, coin_id: str, days: str, interval: str | None = None) dict
Query historical total supply of a coin by number of days away from now based on provided coin id.
- Parameters:
coin_id – The id of the coin
days – Data up to number of days ago
interval – Data interval, possible values: daily
- total_supply_within_time_range(*, coin_id: str, from_timestamp: int, to_timestamp: int) dict
Query historical total supply of a coin, within a range of timestamp based on the provided coin id
- Parameters:
coin_id – The id of the coin
from_timestamp – Starting date in UNIX timestamp
to_timestamp – Ending date in UNIX timestamp