Function getLatestChartLog

  • Retrieves the latest chart log for a specific market.

    Parameters

    • __namedParameters: {
          chainId: CHAIN_IDS;
          quote: `0x${string}`;
          base: `0x${string}`;
      }
      • chainId: CHAIN_IDS
      • quote: `0x${string}`
      • base: `0x${string}`

    Returns Promise<ChartLog>

    A promise that resolves with the latest chart log.

    Example

    import { getLatestChartLog } from '@clober/v2-sdk'

    const logs = await getLatestChartLog({
    chainId: 421614,
    quote: '0x00bfd44e79fb7f6dd5887a9426c8ef85a0cd23e0',
    base: '0x0000000000000000000000000000000000000000',
    })