get_buys_and_sells_by_token_address
for QR
Returns the latest 101 DEX trades on Ethereum, where sell currency smart contract is 0xccdb…b002, buy currency smart contract is 0xccdb…b002 and block time since 2023-10-11: block time, from, sell smart contract and buy smart contract.
What it returns
- block time
- from
- sell smart contract
- buy smart contract
Filters
- sell currency smart contract is 0xccdb…b002
- buy currency smart contract is 0xccdb…b002
- block time since 2023-10-11
- block time till 2023-10-12
The query
query get_buys_and_sells_by_token_address {
EVM(dataset: combined, network: eth) {
buys: DEXTrades(
limit: {count: 101}
orderBy: {descending: Block_Time}
where: {Trade: {Sell: {Currency: {SmartContract: {is: "0xccdb064a41afcd432bcea6f6d0d1e7c371d0b002"}}}}, Block: {Time: {since: "2023-10-11T00:00:00Z", till: "2023-10-12T00:00:00Z"}}}
) {
Block {
Time
}
Transaction {
From
}
Trade {
Sell {
Currency {
SmartContract
}
}
}
}
sells: DEXTrades(
limit: {count: 101}
orderBy: {descending: Block_Time}
where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xccdb064a41afcd432bcea6f6d0d1e7c371d0b002"}}}}, Block: {Time: {since: "2023-10-11T00:00:00Z", till: "2023-10-12T00:00:00Z"}}}
) {
Block {
Time
}
Transaction {
From
}
Trade {
Buy {
Currency {
SmartContract
}
}
}
}
}}
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