• Retrieves the USD price for the specified cryptocurrency symbol from CoinMarketCap.

    Async

    Function

    fromCoinMarketCap

    Returns

    • A Promise that resolves to an object containing the USD price and a boolean indicating if the price is fresh.

    Parameters

    • cryptoSymbol: string

      The cryptocurrency symbol.

    • api_key: string

      The API key for CoinMarketCap.

    Returns Promise<{
        isFresh: boolean;
        usdPrice: number;
    }>

Generated using TypeDoc