Latest buys and sells for a four meme coin

Returns the latest DEX trades on BNB Chain, where buy currency smart contract is 0x9b48…0d40, sell currency smart contract is 0x9b48…0d40 and DEX protocol name is fourmeme_v1: block time, buy amount, buy buyer, buy price, buy price in USD, buy seller, sell currency name and 10 more fields.

By Kshitij Mahajan · saved 24 March 2025 · run 29 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($currency: String) {
  EVM(network: bsc, dataset: combined) {
    buys: DEXTrades(
      where: {
        Trade: {
          Buy: {Currency: {SmartContract: {is: $currency}}},
          Success: true,
          Dex: {ProtocolName: {is: "fourmeme_v1"}}
        }
      }
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Amount
          Buyer
          Price
          PriceInUSD
          Seller
        }
        Sell {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
    sells: DEXTrades(
      where: {
        Trade: {
          Sell: {Currency: {SmartContract: {is: $currency}}},
          Success: true,
          Dex: {ProtocolName: {is: "fourmeme_v1"}}
        }
      }
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Sell {
          Amount
          Buyer
          Price
          PriceInUSD
          Seller
        }
      }
    }
  }
}

Variables

{
  "currency": "0x9b48a54bcce09e59b0479060e9328ab7dbdb0d40"
}

Similar queries