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.
What it returns
- program address
- protocol family
- protocol name
- market address
- base currency mint address
- base currency name
- base currency symbol
- decimals
- quote currency mint address
- quote currency name
- quote currency symbol
- base price
- base change amount
- base change amount in USD
- base post amount
- quote price
- quote change amount
- quote change amount in USD
- quote post amount
- block time
- block hash
- slot
- method
- instruction index
- pool event index
- signer
- transaction signature
- transaction index
Filters
- DEX protocol family is Raydium
- DEX protocol name is raydium_amm
- program method is initialize2, deposit or 2 more
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
- Solana Pool Prices Of Token Stream · Solana · DexPools
- Solana DEXPools · Solana · DexPools
- subscription Solana pool price · Solana · DexPools
- subscription Solana · Solana · DexPools
- "PostAmount": null, · Solana · DexPools