pnut ohlc subscription
Streams DEX trades by token on Solana as they happen, where currency mint address is 2qEHjD…pump, side currency mint address is So1111…1112, EPjFWd…Dt1v or 3 more and block time after 2024-11-25, sorted by block time: block time, price in USD, quantile of trade price in USD and sum of trade side amount in USD.
What it returns
- block time
- price in USD
- quantile of trade price in USD
- sum of trade side amount in USD
Filters
- currency mint address is 2qEHjD…pump
- side currency mint address is So1111…1112, EPjFWd…Dt1v or 3 more
- block time after 2024-11-25
The subscription
subscription ($token: String, $time_ago: DateTime) {
Solana {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {in: ["", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]}}}}, Block: {Time: {after: $time_ago}}}
) {
Block {
Time
}
Trade {
close: PriceInUSD(maximum: Transaction_Index)
}
min: quantile(of: Trade_PriceInUSD, level: 0.05)
max: quantile(of: Trade_PriceInUSD, level: 0.95)
volume: sum(of: Trade_Side_AmountInUSD)
}
}
}
Variables
{
"token": "2qEHjDLDLbuBgRYvsxhc5D6uDWAivNFZGan56P1tpump",
"time_ago": "2024-11-25T01:46:57Z"
}
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