Function getPoolPerformance

  • Parameters

    • __namedParameters: {
          chainId: CHAIN_IDS;
          token0: `0x${string}`;
          token1: `0x${string}`;
          salt: `0x${string}`;
          volumeFromTimestamp: number;
          volumeToTimestamp: number;
          snapshotFromTimestamp: number;
          snapshotToTimestamp: number;
          snapshotIntervalType: CHART_LOG_INTERVALS;
          spreadProfitFromTimestamp: number;
          spreadProfitToTimestamp: number;
          options?: {
              pool?: Pool;
              useSubgraph?: boolean;
          } & DefaultOptions;
      }
      • chainId: CHAIN_IDS
      • token0: `0x${string}`
      • token1: `0x${string}`
      • salt: `0x${string}`
      • volumeFromTimestamp: number
      • volumeToTimestamp: number
      • snapshotFromTimestamp: number
      • snapshotToTimestamp: number
      • snapshotIntervalType: CHART_LOG_INTERVALS
      • spreadProfitFromTimestamp: number
      • spreadProfitToTimestamp: number
      • Optional options?: {
            pool?: Pool;
            useSubgraph?: boolean;
        } & DefaultOptions

    Returns Promise<PoolPerformanceData>