Get Solana pair trades data just like dexcsreener

Streams DEX trades by token on Solana as they happen, where currency mint address is 6p6xgH…GiPN, 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 jojochemist · saved 18 January 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {is: "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"}}, Side: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}, Account: {Token: {Owner: {}}}, Amount: {}, AmountInUSD: {gt: "100"}}, 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