top liquidity pools of atoken on ethereum
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: eth, dataset: combined) archive full history combined archive + realtime in one result Ar
What it returns
- amount currency a
- amount currency b
- pool ID
- smart contract
- currency a name
- currency a symbol
- currency b name
- currency b symbol
Filters
- currency a smart contract is 0x95aD…C4cE
- pool smart contract is not 0x0000…8A90
- currency b smart contract is 0x95aD…C4cE
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: eth, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/ethereum-
# liquidity-api/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/
query MyQuery {
EVM(network: eth) {
TokenIsCurrencyA: DEXPoolEvents(
limit: {count: 10}
orderBy: {descendingByField: "PoolEvent_Liquidity_AmountCurrencyA_maximum"}
where: {PoolEvent: {Pool: {CurrencyA: {SmartContract: {is: "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE"}}, SmartContract: {notIn: ["0x000000000004444c5dc75cB358380D2e3dE08A90"]}}}}
) {
PoolEvent {
Liquidity {
AmountCurrencyA(maximum: Block_Time)
AmountCurrencyB(maximum: Block_Time)
}
Pool {
PoolId
SmartContract
CurrencyA {
Name
Symbol
SmartContract
}
CurrencyB {
Name
Symbol
SmartContract
}
}
}
}
TokenIsCurrencyB: DEXPoolEvents(
limit: {count: 10}
orderBy: {descendingByField: "PoolEvent_Liquidity_AmountCurrencyB_maximum"}
where: {PoolEvent: {Pool: {CurrencyB: {SmartContract: {is: "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE"}}, SmartContract: {notIn: ["0x000000000004444c5dc75cB358380D2e3dE08A90"]}}}}
) {
PoolEvent {
Liquidity {
AmountCurrencyA(maximum: Block_Time)
AmountCurrencyB(maximum: Block_Time)
}
Pool {
PoolId
SmartContract
CurrencyA {
Name
Symbol
SmartContract
}
CurrencyB {
Name
Symbol
SmartContract
}
}
}
}
}
}
Similar queries
- 0x99dfb1685a84679bcee2d4d26ea8700a19871f817fa6796b4e4222c903eecd37 · Ethereum · DEXPoolEvents
- top liquidity pools on Ethereum · Ethereum · DEXPoolEvents
- liquidiy of all token pools · Ethereum · DEXPoolEvents
- topPoolsEVM · Ethereum · DEXPoolEvents
- liquidity of a pool - EVM - query · Ethereum · DEXPoolEvents