Get Solana pair trades data just like dexcsreener

Streams DEX trades by token on Solana as they happen, where currency mint address is 8nzCP3…pump, side currency mint address is So1111…1112 and DEX program address is 675kPX…1Mp8: block time, currency name, currency symbol, trade amount, trade price, price in USD, side currency name and 5 more fields.

By William · saved 21 December 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "8nzCP3xmkpKAq2un87d6Jgg4r3JnvgUSkFemfLbFpump"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, Dex: {ProgramAddress: {is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time
      }
      Trade {
        Currency {
          Name
          Symbol
        }
        Amount
        PriceAgainstSideCurrency: Price
        PriceInUSD
        Side {
          Currency {
            Name
            Symbol
          }
          Amount
          Type
        }
      }
      Transaction {
        Maker: Signer
        Signature
      }
    }
  }
}

Similar queries