Filter time and price range

Returns 100000 DEX trades by token on Solana: block time, currency name, currency mint address and price in USD.

By Sajid · saved 30 April 2025 · Bitquery API v2

What it returns

The query

query MyQuery($time_limit: DateTime!) {
  Solana(network: solana, dataset: realtime) {
    DEXTradeByTokens(
      where: {
        Trade: { Currency: { MintAddress: { endsWith: "pump" } } }
        Block: { Time: { before: $time_limit } }
      }
      limit: { count: 100000}
    ) {
      Block {
        Time
      }
      Trade {
        Currency {
          Name
          MintAddress
        }
        PriceInUSD(maximum: Block_Slot, selectWhere: { lt: 0.0003, gt: 0.000012 })
      }
    }
  }
}

Similar queries