cURL
curl --request GET \ --url https://api.lpagent.io/open-api/v1/pools/{poolId}/onchain-stats \ --header 'x-api-key: <api-key>'
{ "status": "success", "data": { "poolStats": [ { "pool": "7d51qGEeAKiPakkxLoHda9egShXQLJcjFYpHEcX4d3EM", "total_open_positions": 42, "unique_owners": 15, "total_input_value": 0, "total_input_native": 0 } ] } }
Retrieve aggregated statistics including total open positions, input values, and unique users for a pool
API key for authentication
The pool address
Successfully retrieved pool onchain stats
"success"
Show child attributes