Solana Query

Streams DEX trades on Solana as they happen, where sell currency mint address is EPjFWd…Dt1v or So1111…1112, buy currency mint address is not EPjFWd…Dt1v or So1111…1112 and DEX program address is whirLb…tyCc, CAMMCz…rWqK or 2 more: program address, market address, buy currency name, buy currency symbol, buy currency mint address, buy amount, sell amount and 5 more fields.

By Emre A · saved 27 June 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    DEXTrades(
      where: {
        Trade: {
          Sell: {
            Currency: {
              MintAddress: {
                in: ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "So11111111111111111111111111111111111111112"]
              }
            }
          },
          Buy: {
            Currency: {
              MintAddress: {
                notIn: ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "So11111111111111111111111111111111111111112"]
              }
            }
          },
          Dex: {
            ProgramAddress: {
              in: ["whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc", "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK", "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8", "FLUXubRmkEi2q6K3Y9kBPg9248ggaZVsoSFhtJHSrm1X"]
            }
          }
        },
        Transaction: {
          Result: {
            Success: true
          }
        }
      }
    ) {
      Trade {
        Dex {
          ProgramAddress
        }
        Market {
          MarketAddress
        }
        Buy {
          Currency {
            Name
            Symbol
            MintAddress
          }
          Amount
        }
        Sell {
          Amount
          Currency {
            Name
            Symbol
            MintAddress
          }
        }
      }
      Transaction {
        Signature
        Signer
      }
    }
  }
}

Similar queries