all buy and sell by an address
Returns DEX trades by token on Ethereum, where transaction from is 0x8146…fc17, side type is buy and block date since 2024-01-01: sender, currency name, currency symbol, smart contract, side currency name, side currency symbol, side smart contract and 2 more fields.
What it returns
- sender
- currency name
- currency symbol
- smart contract
- side currency name
- side currency symbol
- side smart contract
- sum of trade side amount
- sum of trade amount
Filters
- transaction from is 0x8146…fc17
- side type is buy
- block date since 2024-01-01
The query
query MyQuery {
EVM(network: eth, dataset: combined) {
DEXTradeByTokens(
where: {Block: {Date: {since: "2024-01-01"}}, Trade: {Side: {Type: {is: buy}}}, Transaction: {From: {is: "0x8146EBf3C214595BF6B41982ff7de13A2435fc17"}}}
) {
Trade {
Sender
Currency {
Name
Symbol
SmartContract
}
boughtCurrency: Side {
Currency {
Name
Symbol
SmartContract
}
}
}
bought: sum(of: Trade_Side_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
sold: sum(of: Trade_Amount)
}
}
}
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