Michael subscription 2
Streams DEX trades on Solana as they happen, where DEX program address is pAMMBa…fXEA, CPMMoo…KP1C or 2 more: block time, slot, transaction signature, signer, buy amount, buy currency mint address, buy price and 6 more fields.
What it returns
- block time
- slot
- transaction signature
- signer
- buy amount
- buy currency mint address
- buy price
- buy price in USD
- sell amount
- sell currency mint address
- sell price
- sell price in USD
- accounts address
Filters
- DEX program address is pAMMBa…fXEA, CPMMoo…KP1C or 2 more
The subscription
subscription {
Solana(network: solana) {
DEXTrades(where: {Trade: {Dex: {ProgramAddress: {in: ["pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA", "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C", "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK", "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"]}}}}, limitBy: {by: Block_Slot, count: 100000}) {
Block {
Time
Slot
}
Transaction {
Signature
Signer
}
Trade {
Buy {
Amount
Currency {
MintAddress
}
Price
PriceInUSD
}
Sell {
Amount
Currency {
MintAddress
}
Price
PriceInUSD
}
}
Instruction {
Accounts {
Address
}
}
}
}
}
Similar queries
- SolanaDexTradesStreamAllSigners · Solana · DEXTrades
- SolanaDexTradesStreamOneSigner · Solana · DEXTrades
- subscription Solana · Solana · DEXTrades
- jupiter trades · Solana · DEXTrades
- solana subscription · Solana · DEXTrades