Price, supply , volume and liquidity data for solana token v2

Returns DEX trades by token and DEX pools on Solana, where currency mint address is 5UUH9R…hgH2 or DYbJHT…pump, base currency mint address is DYbJHT…pump or 5UUH9R…hgH2 and block time since 2025-05-27, sorted by pool quote post amount in USD, highest first: sum of trade side amount in USD, count, trade price, currency mint address, currency symbol, URI, currency name and 14 more fields.

By gaurav · saved 27 May 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana(network: solana, dataset: realtime) {
    tradeStats: DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {in: ["5UUH9RTDiSpq6HKS6bp4NdU9PNJpXRXuiw6ShBTBhgH2", "DYbJHTr4jyvJvFR8a2WUkV8DwjBCFu6NmPmPaTJUpump"]}}}, Block: {Time: {since: "2025-05-27T07:00:00Z"}}}
    ) {
      VolumeInUSD: sum(of: Trade_Side_AmountInUSD)
      trades: count
      buyers: count(
        distinct: Transaction_Signer
        if: {Trade: {Side: {Type: {is: buy}}}}
      )
      sellers: count(
        distinct: Transaction_Signer
        if: {Trade: {Side: {Type: {is: sell}}}}
      )
      makers: count(distinct: Transaction_Signer)
      Trade {
        Price(maximum: Block_Time)
        Currency {
          MintAddress
          Symbol
          Uri
          Name
        }
      }
    }
    DEXPools(
      where: {Block: {Time: {since: "2025-05-27T07:00:00Z"}}, Pool: {Market: {BaseCurrency: {MintAddress: {in: ["DYbJHTr4jyvJvFR8a2WUkV8DwjBCFu6NmPmPaTJUpump", "5UUH9RTDiSpq6HKS6bp4NdU9PNJpXRXuiw6ShBTBhgH2"]}}}}}
      orderBy: {descending: Pool_Quote_PostAmountInUSD}
      limitBy: {count: 1, by: Pool_Market_MarketAddress}
    ) {
      Pool {
        Market {
          MarketAddress
          BaseCurrency {
            MintAddress
            Symbol
          }
          QuoteCurrency {
            MintAddress
            Symbol
          }
        }
        Dex{
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Base {
          PostAmount(maximum: Block_Time)
          PostAmountInUSD
        }
        Quote {
          PostAmount
          PostAmountInUSD
        }
      }
    }
    TokenSupplyUpdates(
      where: {TokenSupplyUpdate: {Currency: {MintAddress: {in: ["5UUH9RTDiSpq6HKS6bp4NdU9PNJpXRXuiw6ShBTBhgH2", "DYbJHTr4jyvJvFR8a2WUkV8DwjBCFu6NmPmPaTJUpump"]}}}}
      limitBy: {by: TokenSupplyUpdate_Currency_MintAddress, count: 1}
    ) {
      TokenSupplyUpdate {
        Currency {
          Name
          Symbol
          Uri
        }
        PostBalance(maximum: Block_Time)
        PostBalanceInUSD
      }
    }
  }
}

Similar queries