trades

Returns the latest 10 DEX trades on BNB Chain, where buy currency smart contract is 0x55d3…7955: block number, block time, from, to, transaction hash, buy amount, buy buyer and 12 more fields.

By Eric Otto · saved 14 September 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: realtime, network: bsc) {
    buyside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x55d398326f99059ff775485246999027b3197955"}}}}}
    ) {
      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: {Buy: {Currency: {SmartContract: {is: "0x55d398326f99059ff775485246999027b3197955"}}}}}
    ) {
      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
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "address": "0x05b55F8e4F530091A3325F6b2569d7EFD0ec3Cfe",
  "token": "0xd6fDDe76B8C1C45B33790cc8751D5b88984c44ec",
  "limit": 10,
  "offset": 0
}

Similar queries