sushiswap-watcher-ts/packages/v3-watcher/src/gql/queries/positions.gql
Nabarun f23e440197 Generate watcher for sushiswap v3 subgraph (#1)
Part of [Generate watchers for sushiswap subgraphs deployed in graph-node](https://www.notion.so/Generate-watchers-for-sushiswap-subgraphs-deployed-in-graph-node-b3f2e475373d4ab1887d9f8720bd5ae6)

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
Reviewed-on: cerc-io/sushiswap-watcher-ts#1
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-06-06 11:42:55 +00:00

149 lines
3.7 KiB
GraphQL

query positions($block: Block_height, $where: Position_filter, $orderBy: Position_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
positions(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id
owner
pool{
id
createdAtTimestamp
createdAtBlockNumber
feeTier
liquidity
sqrtPrice
feeGrowthGlobal0X128
feeGrowthGlobal1X128
token0Price
token1Price
tick
observationIndex
volumeToken0
volumeToken1
volumeUSD
untrackedVolumeUSD
feesUSD
txCount
collectedFeesToken0
collectedFeesToken1
collectedFeesUSD
totalValueLockedToken0
totalValueLockedToken1
totalValueLockedETH
totalValueLockedUSD
totalValueLockedUSDUntracked
isProtocolFeeEnabled
liquidityProviderCount
}
token0{
id
symbol
name
decimals
totalSupply
volume
volumeUSD
untrackedVolumeUSD
feesUSD
txCount
poolCount
totalValueLocked
totalValueLockedUSD
totalValueLockedUSDUntracked
derivedETH
}
token1{
id
symbol
name
decimals
totalSupply
volume
volumeUSD
untrackedVolumeUSD
feesUSD
txCount
poolCount
totalValueLocked
totalValueLockedUSD
totalValueLockedUSDUntracked
derivedETH
}
tickLower{
id
poolAddress
tickIdx
liquidityGross
liquidityNet
price0
price1
volumeToken0
volumeToken1
volumeUSD
untrackedVolumeUSD
feesUSD
collectedFeesToken0
collectedFeesToken1
collectedFeesUSD
createdAtTimestamp
createdAtBlockNumber
liquidityProviderCount
feeGrowthOutside0X128
feeGrowthOutside1X128
}
tickUpper{
id
poolAddress
tickIdx
liquidityGross
liquidityNet
price0
price1
volumeToken0
volumeToken1
volumeUSD
untrackedVolumeUSD
feesUSD
collectedFeesToken0
collectedFeesToken1
collectedFeesUSD
createdAtTimestamp
createdAtBlockNumber
liquidityProviderCount
feeGrowthOutside0X128
feeGrowthOutside1X128
}
liquidity
depositedToken0
depositedToken1
withdrawnToken0
withdrawnToken1
collectedToken0
collectedToken1
collectedFeesToken0
collectedFeesToken1
amountDepositedUSD
amountWithdrawnUSD
amountCollectedUSD
transaction{
id
blockNumber
timestamp
gasUsed
gasPrice
}
feeGrowthInside0LastX128
feeGrowthInside1LastX128
increaseEvents{
id
tokenID
amount0
amount1
timeStamp
}
decreaseEvents{
id
tokenID
amount0
amount1
timeStamp
}
}
}