getWalletAvgBuyPrices
Returns DEX trades by token on Ethereum, where trade buyer is 0x4C7D…60CB, currency smart contract is 0xdac1…1ec7, 0xeeee…eeee or 1 more and trade price in USD is above 0: smart contract and average of trade price in USD.
What it returns
- smart contract
- average of trade price in USD
Filters
- trade buyer is 0x4C7D…60CB
- currency smart contract is 0xdac1…1ec7, 0xeeee…eeee or 1 more
- trade price in USD is above 0
The query
query getWalletAvgBuyPrices($dataset: dataset_arg_enum!, $network: evm_network!, $tokenAddresses: [String!], $wallet: String!) {
EVM(network: $network, dataset: $dataset) {
DEXTradeByTokens(
where: {
Trade: {
Buyer: { is: $wallet }
PriceInUSD: { gt: 0 }
Currency: {SmartContract: {in: $tokenAddresses}}
}
}
) {
Trade {
Currency {
SmartContract
}
}
AvgBuyPriceUsd: average(of: Trade_PriceInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
}
}
}
Variables
{
"dataset": "archive",
"network": "eth",
"tokenAddresses": [
"0xdac17f958d2ee523a2206206994597c13d831ec7",
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"0x8207c1ffc5b6804f6024322ccf34f29c3541ae26"
],
"wallet": "0x4C7D7B58B0DA6a7dc7D49F48869318942a0F60CB"
}
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