How to et stats for Aave onchain liquidations?
- undefined
- undefined Aave
Hi, I'm trying to get stats for Aave onchain liquidations, but I've filtered through a lot of transactions now and can't seem to find anyone calling `liquidateCall `- could someone please point me in the right direction?
Answers 1
You can query historical liquidation events from the protocol subgraphs. There's an example [here](https://github.com/aave/protocol-subgraphs#transaction-history) for an individual user or you query for all liquidation calls with: ``` { liquidationCalls{ id user{ id } collateralUserReserve{ reserve{ symbol reserveLiquidationThreshold } } collateralAmount principalReserve{ symbol reserveFactor } principalAmount liquidator timestamp } } ```