0%

thegraph | thegraph 平台

使用 thegraph 进行监控。

swap

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
swaps(orderBy: timestamp, orderDirection: desc, where:
{ pair: "0x045a15bd4999cf396220f587fc77b4d159e8e67b" }
) {
pair {
token0 {
symbol
}
token1 {
symbol
}
}
amount0In
amount0Out
amount1In
amount1Out
amountUSD
from
to
sender
timestamp
logIndex
}
}

liquidity

1
2
3
4
5
6
7
8
9
10
11
12
{
liquidityPositionSnapshots(orderBy:timestamp,orderDirection:desc,where:{
pair:"0x045a15bd4999cf396220f587fc77b4d159e8e67b"
}){
id,
block,
reserve0,
reserve1,
liquidityTokenTotalSupply,
liquidityTokenBalance,
}
}
请我喝杯咖啡吧~