Copy of NFT token information majidrazaee1358

Returns the latest 50 DEX trades by token on BNB Chain, where side currency smart contract is 0x8ac7…580d, 0x55d3…7955 or 2 more and currency smart contract is 0x49e9…0ca3: block time, transaction hash, smart contract, protocol family, protocol name, amount in USD, buyer and 11 more fields.

By Majid · saved 14 January 2025 · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($network: evm_network, $token: String, $usdc: String!, $usdt: String!, $wbnb: String!, $bnb: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Side: {Currency: {SmartContract: {in: [$usdc, $usdt, $wbnb, $bnb]}}}, Currency: {SmartContract: {is: $token}}}}
    ) {
      Block {
        allTime: Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          SmartContract
          ProtocolFamily
          ProtocolName
        }
        AmountInUSD
        Buyer
        Seller
        Side {
          Type
          Buyer
          Seller
        }
        PriceInUSD
        Amount
        Side {
          Currency {
            Symbol
            SmartContract
            Name
          }
          AmountInUSD
          Amount
        }
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x49e9bf93f56a773187fbab999a7f6e1825670ca3",
  "usdt": "0x55d398326f99059ff775485246999027b3197955",
  "usdc": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
  "wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
  "bnb": "0x",
  "time_ago": "2025-01-11T16:45:34Z",
  "dataset": "realtime"
}

Similar queries