clmm_range_stats
4 credits · 0.02 USDCGET /clmm_range_stats
For Raydium CLMM, Orca Whirlpool and Meteora DLMM: liquidity by price, share of time a range of the given width would have stayed in range over 7 and 30 days, fee yield inside the range, impermanent loss and how many rebalances it would have needed.
| Parameter | Type | Description |
|---|---|---|
poolrequired | string | Concentrated liquidity pool |
width_pct | number | Full range width in percent of the current price Default 10. |
curl "https://api.dexra.dev/clmm_range_stats?pool=Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE&width_pct=10" \
-H "Authorization: Bearer dxr_…"import { Dexra } from '@dexra/client'
const dexra = new Dexra({ apiKey: process.env.DEXRA_API_KEY })
const result = await dexra.clmmRangeStats({ pool: "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE", width_pct: 10 })
console.log(result.summary)import os
from dexra import Dexra
dexra = Dexra(api_key=os.environ["DEXRA_API_KEY"])
result = dexra.clmm_range_stats(pool="Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE", width_pct=10)
print(result["summary"]){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "clmm_range_stats",
"arguments": {
"pool": "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
"width_pct": 10
}
}
}