solana token pairs

Returns 200 DEX trades by token on Solana, where currency mint address is DUR6St…4MyN and block time after 2025-10-05, sorted by USD, highest first: block time, currency symbol, currency name, currency mint address, fungible, side currency symbol, side currency name and 5 more fields.

By gaurav · saved 8 October 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($token: String, $time_10min_ago: DateTime, $time_1h_ago: DateTime, $time_3h_ago: DateTime, $time_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "usd"}
      where: {Trade: {Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}, Block: {Time: {after: $time_ago}}}
      limit: {count: 200}
    ) {
      Block {
        Time(maximum: Block_Time, selectWhere: {after: $time_1h_ago})
      }
      Trade {
        Currency {
          Symbol
          Name
          MintAddress
          Fungible
        }
        Side {
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
        price_usd: PriceInUSD(maximum: Block_Slot)
        price_last: Price(maximum: Block_Slot)
        price_10min_ago: Price(
          minimum: Block_Slot
          if: {Block: {Time: {after: $time_10min_ago}}}
        )
        price_1h_ago: Price(
          minimum: Block_Slot
          if: {Block: {Time: {after: $time_1h_ago}}}
        )
        price_3h_ago: Price(
          minimum: Block_Slot
          if: {Block: {Time: {after: $time_3h_ago}}}
        )
      }
      usd: sum(of: Trade_AmountInUSD)
      count
    }
  }
}

Variables

{
  "network": "solana",
  "token": "DUR6Sttc3tvawUmF9aXhzLqZP6DmMHvkkJPX2VnA4MyN",
  "time_10min_ago": "2025-10-08T15:00:49Z",
  "time_1h_ago": "2025-10-08T14:10:49Z",
  "time_3h_ago": "2025-10-08T12:10:49Z",
  "time_ago": "2025-10-05T15:10:49Z"
}

Similar queries