slippages for pools
Returns the latest DEX pool slippages on Ethereum: block time, max amount in, min amount out, ato b price, bto a price, protocol family, protocol name and 7 more fields.
What it returns
- block time
- max amount in
- min amount out
- ato b price
- bto a price
- protocol family
- protocol name
- smart contract
- slippage basis points
- currency a name
- currency a symbol
- currency b name
- currency b symbol
- pool ID
The query
query ($network: evm_network!, $poolsID: [String!]!, $smartContracts: [String!]!) {
EVM(network: $network) {
DEXPoolSlippages(
where: {any: [{Price: {Pool: {PoolId: {in: $poolsID}}}}, {Price: {Pool: {SmartContract: {in: $smartContracts}}}}]}
orderBy: {descending: Block_Time}
limitBy: {by: [Price_Pool_PoolId, Price_Pool_SmartContract], count: 1}
) {
Block {
Time
}
Price {
AtoB {
MaxAmountIn
MinAmountOut
Price
}
BtoA {
MaxAmountIn
MinAmountOut
Price
}
Dex {
ProtocolFamily
ProtocolName
SmartContract
}
SlippageBasisPoints
Pool {
CurrencyA {
Name
Symbol
SmartContract
}
CurrencyB {
Name
Symbol
SmartContract
}
PoolId
SmartContract
}
}
}
}
}
Variables
{
"network": "eth",
"smartContracts": [
"0x3fe3045c692badea6d2c4ac88d537a5efa6c5081",
"0xf07a660776be8cea92f8bf91fc2b482213d03f02",
"0x000000000004444c5dc75cb358380d2e3de08a90"
],
"poolsID": [
"0x8aa4e11cbdf30eedc92100f4c8a31ff748e201d44712cc8c90d189edaa8e4e47",
"0x72daf39b278fab80f18ad2adf73cc8b1ae63de1e508d36aa033285fff506f169",
"0x89c10991af36a29d4a14b346a272baa7205d2b41c72013f61cfca41ef2666412"
]
}
Similar queries
- EVM DEXPoolSlippages · Ethereum · DEXPoolSlippages
- evm_slippage · Ethereum · DEXPoolSlippages
- pair slippage on ethereum uniswap v4 · Ethereum · DEXPoolSlippages
- Latest-slippage-of-a-pool-on-Uniswap-v3-Ethereum · Ethereum · DEXPoolSlippages
- LatestSlippageForOneV4Pool · Ethereum · DEXPoolSlippages