Sub last price of many tokens on raydium

Streams the latest DEX trade by token on Solana as they happen, where DEX program address is 675kPX…1Mp8, side currency mint address is So1111…1112 and currency mint address is 3cgwCx…pump, 6p6xgH…GiPN or 1 more: trade price, price in USD, currency name and currency mint address.

By Huu Ha · saved 27 February 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {
        Trade: {
          Dex: { ProgramAddress: { is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8" } }
          Side: { Currency: { MintAddress: { is: "So11111111111111111111111111111111111111112" } } }
          Currency: { MintAddress: { in: [
            "3cgwCxvtHJfZ98CEbvD4HcSxKYLv3c8AxPWs7iS5pump",
            "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
            "8Fza2Fi3gqR44vTSjC3RYfTgbRndCEgrsU21FBjYpump"
          ]}}
        }
      }
      orderBy: { descending: Block_Time }
      limit: { count: 1 }
    ) {
      Trade {
        Price
        PriceInUSD
        Currency {
          Name
          MintAddress
        }
      }
    }
  }
}

Similar queries