problem with dex trade by token query - amount in usd broken
Returns DEX trades by token on Ethereum, where transaction hash is 0x4507…c760: block time, smart contract, trade amount, amount in USD, currency name, side amount in USD, side amount and 9 more fields.
What it returns
- block time
- smart contract
- trade amount
- amount in USD
- currency name
- side amount in USD
- side amount
- side currency name
- side smart contract
- price in USD
- trade price
- quantile of trade price in USD
- median of trade price in USD
- count
- transaction hash
- sum of trade side amount in USD
Filters
- transaction hash is 0x4507…c760
The query
{
EVM(network: eth, dataset: combined) {
DEXTradeByTokens(
where: {Transaction: {Hash: {in: ["0x45078873c83e265a9850fccd4f839f7c2d9d04c565f974c8f732b673f62ac760"]}}}
) {
Block {
Time
}
Trade {
Dex {
SmartContract
}
Amount
AmountInUSD
Currency {
Name
SmartContract
}
Side {
AmountInUSD
Amount
Currency {
Name
SmartContract
}
}
open: PriceInUSD(minimum: Block_Number)
close: PriceInUSD(maximum: Block_Number)
low: PriceInUSD(minimum: Trade_PriceInUSD)
minEth: Price(minimum: Trade_Price)
high: PriceInUSD(maximum: Trade_PriceInUSD)
}
minQ: quantile(of: Trade_PriceInUSD, level: 0.1)
maxQ: quantile(of: Trade_PriceInUSD, level: 0.9)
average: median(of: Trade_PriceInUSD)
count
Transaction {
Hash
}
volume: sum(of: Trade_Side_AmountInUSD)
}
}
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens