Specific trade query
Returns DEX trades on Solana, where program method is buy or sell and program name is pump, sorted by block height: method, program name, buy amount, buy account address, buy currency name, buy currency symbol, buy currency mint address and 20 more fields.
What it returns
- method
- program name
- buy amount
- buy account address
- buy currency name
- buy currency symbol
- buy currency mint address
- buy decimals
- buy fungible
- buy URI
- buy price in USD
- sell amount
- sell account address
- sell currency name
- sell currency symbol
- sell currency mint address
- sell decimals
- sell fungible
- sell URI
- sell price in USD
- signer
- transaction signature
- success
- transaction index
- slot
- block height
- block time
Filters
- program method is buy or sell
- program name is pump
The query
query SolanaStreamQuery($token: String!) {
Solana {
DEXTrades(
where: {
any: [
{
Trade: {Buy: { Currency: {MintAddress: {is: $token}}}}
},
{
Trade: {Sell: { Currency: {MintAddress: {is: $token}}}}
}
]
Instruction: {Program: {Method: {in: ["buy", "sell"]}, Name: {is: "pump"}}}, Transaction: {Result: {Success: true}}
}
orderBy: {ascending: Block_Height}
) {
Instruction {
Program {
Method
Name
}
}
Trade {
Buy {
Amount
Account {
Address
}
Currency {
Name
Symbol
MintAddress
Decimals
Fungible
Uri
}
PriceInUSD
}
Sell {
Amount
Account {
Address
}
Currency {
Name
Symbol
MintAddress
Decimals
Fungible
Uri
}
PriceInUSD
}
}
Transaction {
Signer
Signature
Result {
Success
}
Index
}
Block {
Slot
Height
Time
}
}
}
}
Variables
{
"token": "HoJ15ykTrDBoVWXbgqBCkBfNgJFLkjtwsCb3cJnwpump"
}
Similar queries
- PumpSwap boost buy-and-burn trades · Solana · DEXTrades
- PumpSwap trades count by instruction method · Solana · DEXTrades
- FOMO App: One Wallet's Trades (Solana) · Solana · DEXTrades
- FOMO App: Latest Trades (Solana) · Solana · DEXTrades
- Solana dextrades for a token · Solana · DEXTrades