check_rag_

Returns the latest 10 DEX trades on Ethereum, where buy buyer is 0x85a2…5f76, buy currency smart contract is 0x8eFe…F184 and sell buyer is 0x85a2…5f76: block number, block time, from, to, transaction hash, buy amount, buy buyer and 12 more fields.

By Omkar_BQ · saved 3 October 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query {
  EVM(dataset: combined, network: eth) {
    buyside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Buyer: {is: "0x85a26e60d7647c94e06c32f5dd6b0261cca85f76"}, Currency: {SmartContract: {is: "0x8eFe7Dd5984640537b6596FB28b762f6c000F184"}}}}}
    ) {
      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
        }
      }
    }
    sellside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Buyer: {is: "0x85a26e60d7647c94e06c32f5dd6b0261cca85f76"}, Currency: {SmartContract: {is: "0x8eFe7Dd5984640537b6596FB28b762f6c000F184"}}}}}
    ) {
      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