Top trades for a specific currency for specific time

Returns 5 DEX trades on Ethereum, where buy currency smart contract is 0x586a…7bab, block time since 2023-08-10 and block time till 2023-08-10, 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.

By gaurav · saved 10 August 2023 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 5}
      orderBy: {descending: Trade_Sell_Amount}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x586a7cFE21E55ec0E24f0bfB118F77fE4cA87bab"}}}}, Block: {Time: {since: "2023-08-10T12:44:11Z", till: "2023-08-10T16:44:11Z"}}}
    ) {
      Trade {
        Buy {
          Buyer
          Currency {
            Symbol
          }
          Amount
        }
        Sell {
          Amount
          Currency {
            Symbol
          }
        }
      }
      Block {
        Time
      }
      Transaction {
        Hash
        Value
        Cost
      }
    }
  }
}

Similar queries