Average-Price-for-24-hours-of-a-token-on-OpenBook-DEX-on-Solana
Returns the latest DEX trade on Solana, where DEX protocol family is OpenBook, sell currency symbol is USDC and buy currency symbol is WSOL: average of trade buy price.
What it returns
- average of trade buy price
Filters
- DEX protocol family is OpenBook
- sell currency symbol is USDC
- buy currency symbol is WSOL
- block time after 2024-06-03
- block time before 2024-06-04
The query
query PriceAverage {
Solana {
DEXTrades(
limit: {count: 1}
orderBy: {descending: Block_Time}
where: {Trade: {Dex: {ProtocolFamily: {is: "OpenBook"}}, Sell: {Currency: {Symbol: {is: "USDC"}}}, Buy: {Currency: {Symbol: {is: "WSOL"}}}}, Block: {Time: {after: "2024-06-03T00:00:00Z", before: "2024-06-04T00:00:00Z"}}}
) {
tokenPrice: average(of: Trade_Buy_Price)
}
}
}
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