LastTrades Trading

Returns the latest 50 trades, where transaction header hash is 0x503c…9955 and token ID is bid:bsc:0x1b9cf733c04c7bc3b81f1dc3e580755597f59ce4: side, base, quote, block time, trader address, market cap, protocol family and 8 more fields.

By gaurav · saved 8 June 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query LastTrades($tokenID: String!, $minutesAgo: Int!) {
  Trading {
    Trades(
      limit: {count: 50}
      orderBy: {descending: Block_Time}
      where: {
        TransactionHeader:{
          Hash:{
            is:"0x503c181ad7b581172b4d015cec166e2def2546c2d3abe65fdaa3a08946d59955"
          }
        }
        Block: {Time: {since_relative: {minutes_ago: $minutesAgo}}},
        Pair: {Token: {Id: {is: $tokenID}}}}
    ) {
      Side
      Amounts {
        Base
        Quote
      }
      AmountsInUsd {
        Base
        Quote
      }
      Block {
        Time
      }
      Trader {
        Address
      }
      Supply {
        MarketCap
      }
      Pair {
        Market {
          ProtocolFamily
          Protocol
        }
        Token {
          Address
          Symbol
        }
        QuoteToken {
          Address
          Symbol
        }
        Pool {
          Id
          Address
        }
      }
      TransactionHeader{
        Hash
      }
    }
  }
}

Variables

{
  "tokenID": "bid:bsc:0x1b9cf733c04c7bc3b81f1dc3e580755597f59ce4",
  "minutesAgo": 1000
}

Similar queries