Solana trades of several tokens in a time window (Trading API)

Returns the trades of a list of Solana tokens inside a two-day window, oldest first, with trader, transaction signature and USD price, from the Trading API.

By Divyasshree · saved 25 November 2026 · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    Trades(
      where: {
        Pair: {
          Market: { Network: { is: "Solana" } }
          Token: {
            Address: {
              in: [
                "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
                "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"
              ]
            }
          }
        }
        Block: {
          Date: {
            after_relative: { days_ago: 29 }
            before_relative: { days_ago: 27 }
          }
        }
      }
      orderBy: { ascending: Block_Time }
      limit: { count: 100 }
    ) {
      Block {
        Time
      }
      Side
      PriceInUsd
      Amounts {
        Base
      }
      AmountsInUsd {
        Base
      }
      Trader {
        Address
      }
      TransactionHeader {
        Hash
      }
      Pair {
        Token {
          Symbol
          Address
        }
        Market {
          Protocol
        }
      }
    }
  }
}

Similar queries