Class CoinGeckoProviderAdapter

Hierarchy

  • CoinGeckoProviderAdapter

Implements

Constructors

Properties

coinGecko: CoinGeckoClient
coinGeckoOptions: CoinGeckoOptions
network: Network

Methods

  • Get the price of the contract tokens in the current chain.

    Returns

    An array of maps of the contract token prices keyed by the given currencies.

    Parameters

    • contractAddresses: string[]

      Contract address of tokens in the current chain.

    • currencies: string[]

      Currencies of the returned prices, represented as a ISO 4217 currency code in lowercase. Unsupported currencies will be ignored.

    Returns Promise<ContractTokenPrice[]>

Generated using TypeDoc