getLibraryTokenTradesByDates

Returns the latest DEX trades on Ethereum, where block time since 2025-02-16 and block time till 2025-02-17: block time, transaction hash, buy buyer, buy seller, buy currency symbol, buy smart contract, buy amount in USD and 5 more fields.

By Jose · saved 17 February 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query getLibraryTokenTradesByDates(
  $dataset: dataset_arg_enum!
  $network: evm_network!
  $wallet: String!
  $since: DateTime!
  $till: DateTime!
) {
  EVM(dataset: $dataset, network: $network) {
    DEXTrades(
      orderBy: { descending: Block_Time }
      where: {
        TransactionStatus: {Success: true}
        Block: {Time: {since: $since till: $till}}
        any: [
          { Trade: { Buy: { Seller: { is: $wallet } } } }
          { Trade: { Sell: { Buyer: { is: $wallet } } } }
        ]
      }
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Buy {
          Buyer
          Seller
          Currency {
            Symbol
            SmartContract
          }
          AmountInUSD
        }
        Sell {
          Buyer
          Seller
          Currency {
            Symbol
            SmartContract
          }
          AmountInUSD
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "dataset": "combined",
  "till": "2025-02-17T12:59:59.000Z",
  "since": "2025-02-16T12:59:59.000Z",
  "wallet": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}

Similar queries