Updated to pumpfun query
pump
Streams DEX trades by token on Solana as they happen, where currency mint address is not So1111…1112 or 111111…1111, DEX protocol name is pump and block time after 2024-11-10: currency name, currency mint address, currency symbol, is mutable, decimals, URI, token creator address and 11 more fields.
What it returns
- currency name
- currency mint address
- currency symbol
- is mutable
- decimals
- URI
- token creator address
- price in USD
- protocol family
- program address
- protocol name
- market address
- side currency symbol
- side currency name
- side currency mint address
- trade price
- count
- sum of trade side amount in USD
Filters
- currency mint address is not So1111…1112 or 111111…1111
- DEX protocol name is pump
- block time after 2024-11-10
- trade price is above 0.0000001
The subscription
subscription MyQuery {
Solana {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {notIn: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111"]}, IsMutable: false}, Dex: {ProtocolName: {is: "pump"}}, Price: {gt: 0.0000001}}, Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
) {
Trade {
Currency {
Name
MintAddress
Symbol
IsMutable
Decimals
Uri
TokenCreator {
Address
}
}
start: PriceInUSD(minimum: Block_Time)
min5: PriceInUSD(
minimum: Block_Time
if: {Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
end: PriceInUSD(maximum: Block_Time)
Dex {
ProtocolFamily
ProgramAddress
ProtocolName
}
Market {
MarketAddress
}
Side {
Currency {
Symbol
Name
MintAddress
}
}
Price
}
makers: count(distinct: Transaction_Signer)
makers_5min: count(
distinct: Transaction_Signer
if: {Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
buyers: count(
distinct: Transaction_Signer
if: {Trade: {Side: {Type: {is: buy}}}}
)
buyers_5min: count(
distinct: Transaction_Signer
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
sellers: count(
distinct: Transaction_Signer
if: {Trade: {Side: {Type: {is: sell}}}}
)
sellers_5min: count(
distinct: Transaction_Signer
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
trades: count
trades_5min: count(if: {Block: {Time: {after: "2024-11-10T23:15:00Z"}}})
traded_volume: sum(of: Trade_Side_AmountInUSD)
traded_volume_5min: sum(
of: Trade_Side_AmountInUSD
if: {Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
buy_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}}
)
buy_volume_5min: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
sell_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}}
)
sell_volume_5min: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
buys_5min: count(
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
sells_5min: count(
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {after: "2024-11-10T23:15:00Z"}}}
)
}
}
}
Similar queries
- token trades subscription · Solana · DEXTradeByTokens
- realtime trades solana · Solana · DEXTradeByTokens
- adsa · Solana · DEXTradeByTokens
- tkk raydium price · Solana · DEXTradeByTokens
- Live price of a token · Solana · DEXTradeByTokens