dexpool query inverted problem

Streams DEX pools on Solana as they happen, where DEX protocol family is Raydium, DEX protocol name is raydium_amm and program method is initialize2, deposit or 2 more: program address, protocol family, protocol name, market address, base currency mint address, base currency name, base currency symbol and 21 more fields.

By gaurav · saved 27 February 2025 · run 6 times · Bitquery API v2

What it returns

Filters

The subscription

subscription SolanaDexPools($triggerOn: blocks_update_arg_enum) {
  solana: Solana(trigger_on: $triggerOn) {
    pools: DEXPools(
      where: {Transaction: {Result: {Success: true}}, Pool: {Dex: {ProtocolFamily: {is: "Raydium"},
        ProtocolName: {is: "raydium_amm"}}, Market: {BaseCurrency: {Fungible: true, IsMutable: false}, 
          QuoteCurrency: {Fungible: true, IsMutable: true}}},
        Instruction: {Program: {Method: {in: ["initialize2", "deposit", "withdraw", "withdrawPnl"]}}}}
    ) {
      pool: Pool {
        dex: Dex {
          program: ProgramAddress
          family: ProtocolFamily
          protocolName: ProtocolName
        }
        market: Market {
          ammId: MarketAddress
          baseCurrency: BaseCurrency {
            mint: MintAddress
            name: Name
            symbol: Symbol
            decimals: Decimals
          }
          quoteCurrency: QuoteCurrency {
            mint: MintAddress
            name: Name
            symbol: Symbol
            decimals: Decimals
          }
        }
        base: Base {
          price: Price
          changeAmount: ChangeAmount
          changeAmountInUSD: ChangeAmountInUSD
          postAmount: PostAmount
        }
        quote: Quote {
          price: Price
          changeAmount: ChangeAmount
          changeAmountInUSD: ChangeAmountInUSD
          postAmount: PostAmount
        }
      }
      block: Block {
        time: Time
        hash: Hash
        slot: Slot
      }
      instruction: Instruction {
        program: Program {
          method: Method
        }
        index: Index
      }
      poolEvent: PoolEvent {
        index: Index
      }
      transaction: Transaction {
        signer: Signer
        signature: Signature
        index: Index
      }
    }
  }
}

Similar queries