get-weth-usdt-price-error

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

By Vanessa Ribeiro · saved 18 May 2023 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query($pairAddress: String !, $network: evm_network!) {
  EVM(network: $network, dataset: combined) {
    DEXTrades(
      where: {Trade: {Dex: {SmartContract: {is: $pairAddress}}}, Block: {Time: {since: "2023-05-17T13:49:47Z", till: "2023-05-17T13:50:47Z"}}}
      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
        }
      }
    }
  }
}

Variables

{
    "pairAddress":"0x11b815efb8f581194ae79006d24e0d814b7697f6",
  	"network": "eth"
}

Similar queries