top trading pairs

Returns 10 DEX trades by token on Solana, where block time since 2025-07-03, sorted by trades count 1 h, highest first: currency symbol, currency name, currency mint address, price in USD, market address, side currency symbol, side currency name and 2 more fields.

By gaurav · saved 3 July 2025 · Bitquery API v2

What it returns

Filters

The query

query ($time_1h_ago: DateTime) {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Block: {Time: {since: $time_1h_ago}}, any: [{Trade: {Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}}}, {Trade: {Currency: {MintAddress: {not: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}}, {Trade: {Currency: {MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}, Side: {Currency: {MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}}}}}]}
      orderBy: {descendingByField: "trades_count_1h"}
      limit: {count: 10}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          MintAddress
        }
        LatestPrice: PriceInUSD(maximum: Block_Time)
        Market {
          MarketAddress
        }
        Side {
          Currency {
            Symbol
            Name
            MintAddress
          }
        }
      }
      trades_count_1h: count
      
    }
  }
}

Variables

{
  "time_1h_ago": "2025-07-03T06:10:00Z"
}

Similar queries