Function getPoolPerformance

  • Parameters

    • __namedParameters: {
          chainId: CHAIN_IDS;
          poolKey: `0x${string}`;
          currencyA: Currency;
          currencyB: Currency;
          volumeFromTimestamp: number;
          volumeToTimestamp: number;
          snapshotFromTimestamp: number;
          snapshotToTimestamp: number;
          snapshotIntervalType: CHART_LOG_INTERVALS;
          spreadProfitFromTimestamp: number;
          spreadProfitToTimestamp: number;
      }
      • chainId: CHAIN_IDS
      • poolKey: `0x${string}`
      • currencyA: Currency
      • currencyB: Currency
      • volumeFromTimestamp: number
      • volumeToTimestamp: number
      • snapshotFromTimestamp: number
      • snapshotToTimestamp: number
      • snapshotIntervalType: CHART_LOG_INTERVALS
      • spreadProfitFromTimestamp: number
      • spreadProfitToTimestamp: number

    Returns Promise<PoolPerformanceData>