pools

Backtest a ±rangePct% range (0 = full range) over the last N days

Rate limited separately (30 a minute per key or IP).

get/v1/pools/{chain}/{address}/backtest

Request

  • Base URL: https://api.lpsignal.app
  • URL: https://api.lpsignal.app/v1/pools/{chain}/{address}/backtest
  • Auth: none required

Path parameters

chain'ethereum' | 'bsc' | 'base' | 'arbitrum' | 'optimism' | 'polygon' | 'robinhood' required
addressstring required

pool address, or a Uniswap v4 pool id

Query parameters

rangePctnumber required

0 = full range, else ≥ 0.01

daysinteger

default 7

Response

OK

windowHoursinteger
rangeBpinteger

half-width of the range in basis points of price; 0 = full range

tickLowerinteger
tickUpperinteger
exactboolean

every hour has exact (feeGrowth) fees; only exact figures fire signals

feeAprnumber

fees earned, annualised (a fraction: 0.42 = 42%)

ilAprnumber

impermanent loss vs holding, annualised (≤ 0) (a fraction: 0.42 = 42%)

netAprnumber

feeApr + ilApr (a fraction: 0.42 = 42%)

inRangeRationumber

share of the window the price spent in the range (a fraction: 0.42 = 42%)

asOfstring date-time
chain'ethereum' | 'bsc' | 'base' | 'arbitrum' | 'optimism' | 'polygon' | 'robinhood'
addressstring
daysinteger
startTickinteger
endTickinteger
uncertainFeeAprnumber

fees of hours straddling a range edge (a fraction: 0.42 = 42%)

feesExactboolean

Changes

No recorded changes to this operation across all 1 revision of this API.