getLibraryTokenTradesByDates

Returns the latest DEX trades by token on Ethereum, where block time since 2025-02-16 and block time till 2025-02-17: block time, transaction hash, buyer, seller, trade amount, amount in USD, price in USD and 13 more fields.

By Jose · saved 19 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query getLibraryTokenTradesByDates(
  $dataset: dataset_arg_enum!
  $network: evm_network!
  $wallets: [String!]
  $since: DateTime!
  $till: DateTime!
) {
  EVM(dataset: $dataset, network: $network) {
    DEXTradeByTokens(
      orderBy: { descending: Block_Time }
      where: {
        Trade: { Success: true }
        Block: { Time: { since: $since, till: $till } }
        any: [
          { Trade: { Seller: { in: $wallets } } }
          { Trade: { Buyer: { in: $wallets } } }
        ]
      }
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Buyer
        Seller
        Amount
        AmountInUSD
        PriceInUSD
        Currency {
          Symbol
          SmartContract
          Name
          Decimals
        }
        Side {
          Type
          Currency {
            Symbol
            SmartContract
            Name
            Decimals
          }
          AmountInUSD
          Amount
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
      }
    }
  }
}

Variables

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

Similar queries