Contract

class Contract(http: IHttp)
coin_data_by_token_address(*, coin_id: str, contract_address: str) dict

Query all the coin data (name, price, market …. including exchange tickers) on CoinGecko coin page based on asset platform and particular token contract address.

Parameters:
  • coin_id – The coin id

  • contract_address – The contract address of a token

coin_historical_chart_by_token_address(*, coin_id: str, contract_address: str, vs_currency: str, days: str = '1', **kwargs: Any) dict

Get the historical chart data including time in UNIX, price, market cap and 24hrs volume based on asset platform and particular token contract address.

Parameters:
  • coin_id – The coin id

  • contract_address – The contract address of a token

  • vs_currency – The target currency of coins

  • days – Data up to number of days ago

  • interval – Data interval, leave empty for auto granularity Possible value

  • precision – Decimal place for currency price value

coin_historical_chart_range_by_token_address(*, coin_id: str, contract_address: str, vs_currency: str, from_timestamp: int, to_timestamp: int, precision: str | None = None) dict

Get the historical chart data within certain time range in UNIX along with price, market cap and 24hrs volume based on asset platform and particular token contract address.

Parameters:
  • coin_id – The coin id

  • contract_address – The contract address of a token

  • vs_currency – The target currency of coins

  • from_timestamp – Starting date in UNIX timestamp

  • to_timestamp – Ending date in UNIX timestamp

  • precision – Decimal place for currency price value