Simple

class Simple(http: IHttp)

CionGecko Simple API.

price_by_id(*, ids: str, vs_currencies: str, **kwargs: Any) dict

Query the prices of one or more coins by using their unique Coin API IDs

Parameters:
  • ids – Coins’ ids, comma-separated if querying more than 1 coin.

  • vs_currencies – Target currency of coins, comma-separated if querying more than 1 currency.

price_by_token_addresses(*, asset_id: str, contract_addresses: str, vs_currencies: str, **kwargs: Any) dict

Query a token price by using token contract address.

Parameters:
  • asset_id – Asset platform’s id

  • contract_addresses – The contract address of a token

  • vs_currencies – Target currency of coins, comma-separated if querying more than 1 currency.

supported_currencies() list

Query all the supported currencies on CoinGecko.