• Retrieves the USD price for the specified Coingecko ID.

    Async

    Function

    getPriceFromCoingecko

    Returns

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

    Parameters

    • coingeckoId: string

      The Coingecko ID.

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

Generated using TypeDoc