Trades of token on pancake v3

Returns one DEX trade on BNB Chain, where block date since 2024-07-01: smart contract, protocol name, protocol version, buy amount, buy amount in USD, buy buyer, buy currency name and 14 more fields.

By gaurav · saved 11 October 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    DEXTrades(
      orderBy: [{ascending: Block_Time}{ascending:Transaction_Index}]
      limit: {count: 1}
      where: {Block: {Date: {since: "2024-07-01"}},
        any: [{Trade: {Buy: {Currency: {SmartContract: {is: "0xcac007926755e2675e201223f7d4d68c74fd3439"}}}}}, {Trade: {Sell: {Currency: {SmartContract: {is: "0xcac007926755e2675e201223f7d4d68c74fd3439"}}}}}]}
    ) {
      Trade {
        Dex {
          SmartContract
          ProtocolName
          ProtocolVersion
        }
        Buy {
          Amount
          AmountInUSD
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
          PriceInUSD
        }
        Sell {
          Amount
          AmountInUSD
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
          PriceInUSD
        }
      }
    }
  }
}

Similar queries