query dex
Returns one DEX trade on Ethereum, where buy currency is 0x0901…e5f6, sell currency is 0xc02a…6cc2 and exchange name is Uniswap, sorted by block height: price and block height.
What it returns
- price
- block height
Filters
- buy currency is 0x0901…e5f6
- sell currency is 0xc02a…6cc2
- exchange name is Uniswap
- height is below 13852566
- height is above 13852665
The query
{
ethereum(network: ethereum) {
during: dexTrades(
exchangeName: {is: "Uniswap"}
options: {asc: "block.height"}
buyCurrency: {is: "0x090185f2135308bad17527004364ebcc2d37e5f6"}
sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
height: {between: [13852566, 13852665]}
) {
price
block {
height
}
}
before: dexTrades(
exchangeName: {is: "Uniswap"}
options: {limit: 1, desc: "block.height"}
buyCurrency: {is: "0x090185f2135308bad17527004364ebcc2d37e5f6"}
sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
height: {lt: 13852566}
) {
price
block {
height
}
}
after: dexTrades(
exchangeName: {is: "Uniswap"}
options: {limit: 1, asc: "block.height"}
buyCurrency: {is: "0x090185f2135308bad17527004364ebcc2d37e5f6"}
sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
height: {gt: 13852665}
) {
price
block {
height
}
}
}
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades