Backtest a price range
backtest_rangeBacktest a symmetric range of ±rangePct% around the price at the window's start (0 = full range) on a pool over the last days days: fee APR, impermanent loss, net APR, time in range, the ticks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"address": "<address>",
"rangePct": "<rangePct>"
},
"name": "backtest_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | default 7 | |
| chain | Yes | ||
| address | Yes | pool contract address (0x + 40 hex), or a Uniswap v4 pool id (0x + 64 hex) | |
| rangePct | Yes | half-width in percent; 0 = full range |