BSC Buy and sell trades for a given address

Buy and sell trades for a given address

Returns the latest 10 DEX trades on BNB Chain, where buy buyer is 0xc593…2eae and buy seller is 0x13f4…8dd4: block number, block time, from, to, transaction hash, buy amount, buy buyer and 12 more fields.

By Aparna Sridhar · saved 1 March 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    buyside: DEXTrades(
      limit: {count:5}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Buyer: {is: "0xc593ab89001d0fe581314fc10fabc0e8859f2eae"}}}}
    ) {
      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: {Seller: {is: "0x13f4ea83d0bd40e75c8222255bc855a974568dd4"}}}}
    ) {
      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