Top 10 volume pairs on Raydium in last 1 hour

Returns 10 DEX trades on Solana, where DEX program address is 675kPX…1Mp8, sell currency mint address is So1111…1112 and block time since 2025-02-25, sorted by total trades, highest first: program address, protocol family, protocol name, market address, buy currency mint address, buy currency name, buy currency symbol and 2 more fields.

By ian · saved 27 February 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($time_since: DateTime, $time_till: DateTime) {
  Solana(dataset: realtime) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descendingByField: "total_trades"}
      where: {Trade: {Dex: {ProgramAddress: {is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"}}, Sell: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}}, Transaction: {Result: {Success: true}}, Block: {Time: {since: $time_since, till: $time_till}}}
    ) {
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Market {
          MarketAddress
        }
        Buy {
          Currency {
            MintAddress
            Name
            Symbol
          }
        }
      }
      total_trades: count
      total_buys: count(if: {Trade: {Buy: {Type: {is: buy}}}})
      volume: sum(of: Trade_Buy_AmountInUSD)
    }
  }
}

Variables

{
  "time_since": "2025-02-25T07:18:00Z",
  "time_till": "2025-02-25T08:29:00Z"
}

Similar queries