WETH/ USDT price for a given time

Returns one DEX trade on Ethereum, where DEX smart contract is 0x11b8…97f6, block time since 2023-04-30 and block time till 2023-04-30: protocol family, protocol name, sender, buy amount, buy buyer, buy currency name, buy smart contract and 10 more fields.

By gaurav · saved 1 May 2023 · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
      where: {Trade: {Dex: {SmartContract: {is: "0x11b815efb8f581194ae79006d24e0d814b7697f6"}}}, Block: {Time: {since: "2023-04-30T23:10:00Z", till: "2023-04-30T23:20:00Z"}}}
      limit: {count: 1}
    ) {
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Sender
        Buy {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Price
          Seller
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Price
          Seller
        }
      }
    }
  }
}

Similar queries