Top trades for a specific currency for specific time
Returns 5 DEX trades on Ethereum, where buy currency smart contract is 0x43D7…FB59, buy buyer is not 0xae2F…aE13 or 0xaEC2…cb03 and sell currency smart contract is 0xc02a…6cc2, sorted by trade sell amount, highest first: buy buyer, buy currency symbol, buy amount, sell amount, sell currency symbol, block time, transaction hash and 2 more fields.
What it returns
- buy buyer
- buy currency symbol
- buy amount
- sell amount
- sell currency symbol
- block time
- transaction hash
- transaction value
- cost
Filters
- buy currency smart contract is 0x43D7…FB59
- buy buyer is not 0xae2F…aE13 or 0xaEC2…cb03
- sell currency smart contract is 0xc02a…6cc2
- block time since 2023-08-24
- block time till 2023-08-25
- sell amount is above 0.05
The query
query MyBuyerCompV2($limitCount: Int = 5, $excludeWallets: [String], $smartContractAddress: String, $sellSmartContract: String, $amountSell: String, $netzwerk: evm_network, $blockTimeSince: DateTime, $blockTimeTill: DateTime) {
EVM(dataset: combined, network: $netzwerk) {
DEXTrades(
limit: {count: $limitCount}
orderBy: {descending: Trade_Sell_Amount}
where: {Trade: {Buy: {Currency: {SmartContract: {is: $smartContractAddress}},
Buyer: {notIn: $excludeWallets}},
Sell: {Currency: {SmartContract: {is: $sellSmartContract}}, Amount: {gt: $amountSell}}}, Block: {Time: {since: $blockTimeSince, till: $blockTimeTill}}}
) {
Trade {
Buy {
Buyer
Currency {
Symbol
}
Amount
}
Sell {
Amount
Currency {
Symbol
}
}
}
Block {
Time
}
Transaction {
Hash
Value
Cost
}
}
}
}
Variables
{
"limitCount": 5,
"netzwerk": "eth",
"smartContractAddress": "0x43D7E65B8fF49698D9550a7F315c87E67344FB59",
"sellSmartContract": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"amountSell": "0.05",
"blockTimeSince": "2023-08-24T11:53:11Z",
"blockTimeTill": "2023-08-25T11:59:11Z",
"excludeWallets": [
"0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13",
"0xaEC2605a04bB7709a61eF43d660712Ece030cb03"
]
}
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