Swapr
GetPools
query GetPools(
$skip: Int = 0
$first: Int
$orderBy: Pool_orderBy
$orderDirection: OrderDirection
$where: Pool_filter
$block: Block_height
$subgraphError: _SubgraphErrorPolicy_! = deny
) {
pools(
skip: $skip
first: $first
orderBy: $orderBy
orderDirection: $orderDirection
where: $where
block: $block
subgraphError: $subgraphError
) {
id
fee
liquidity
sqrtPrice
tick
token0 {
id
symbol
name
decimals
__typename
}
token1 {
id
symbol
name
decimals
__typename
}
token0Price
token1Price
volumeUSD
txCount
totalValueLockedToken0
totalValueLockedToken1
totalValueLockedUSD
totalValueLockedUSDUntracked
untrackedVolumeUSD
feesUSD
__typename
}
}
GetEternalFarmings
query GetEternalFarmings(
$skip: Int = 0
$first: Int = 100
$orderBy: EternalFarming_orderBy
$orderDirection: OrderDirection
$where: EternalFarming_filter
$block: Block_height
$subgraphError: _SubgraphErrorPolicy_! = deny
) {
eternalFarmings(
skip: $skip
first: $first
orderBy: $orderBy
orderDirection: $orderDirection
where: $where
block: $block
subgraphError: $subgraphError
) {
id
pool
rewardToken
bonusRewardToken
reward
rewardRate
startTime
endTime
}
}
GetDeposits
query GetDeposits(
$skip: Int = 0
$first: Int = 100
$orderBy: Deposit_orderBy
$orderDirection: OrderDirection
$where: Deposit_filter
$block: Block_height
$subgraphError: _SubgraphErrorPolicy_! = deny
) {
deposits(
skip: $skip
first: $first
orderBy: $orderBy
orderDirection: $orderDirection
where: $where
block: $block
subgraphError: $subgraphError
) {
id
owner
pool
limitFarming
eternalFarming
onFarmingCenter
}
}
GetPoolHourDatas
query GetPoolHourDatas(
$skip: Int = 0
$first: Int
$where: PoolHourData_filter
$orderBy: PoolHourData_orderBy
$orderDirection: OrderDirection
$block: Block_height
$subgraphError: _SubgraphErrorPolicy_! = deny
) {
poolHourDatas(
skip: $skip
first: $first
orderBy: $orderBy
orderDirection: $orderDirection
where: $where
block: $block
subgraphError: $subgraphError
) {
token0Price
token1Price
pool {
id
token0 {
id
name
}
token1 {
id
name
}
}
}
}
Last updated