WETH-price-against-USDT-at-a-specific-time

Returns one DEX trade on Ethereum, where buy currency smart contract is 0xc02a…6cc2, sell currency smart contract is 0xdac1…1ec7 and block time since 2023-02-01: block number, block time, from, to, transaction hash, buy amount, buy buyer and 12 more fields.

By gaurav · saved 1 March 2023 · run 37 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    buyside: DEXTrades(
      limit: {count: 1}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}, Sell: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}}, Block: {Time: {since: "2023-02-01T01:00:00Z", till: "2023-02-01T01:15:23Z"}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
  }
}

Similar queries