extreme-trade-price

Returns the latest 100 DEX trades by token on Solana, where currency mint address is 4k3Dyj…kX6R, side currency mint address is So1111…1112 and block time before 2025-05-23: block time, sum of trade side amount in USD, quantile of trade price in USD, price in USD and trade price.

By Sebastian · saved 23 May 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query SolanaTokenHistoricalData {
    Solana(dataset: combined) {
        DEXTradeByTokens(
            orderBy: { descendingByField: "Block_Time" }
            where: {
                Block: {
                   
                    Time: { before: "2025-05-23T11:33:00Z", after: "2025-05-23T11:29:00Z" }
                }
                Trade: {
                    Currency: { MintAddress: { is: "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R" } }
                    Side: {
                        Currency: { MintAddress: { in: ["So11111111111111111111111111111111111111112"] } }
                        AmountInUSD: { ge: "0.5" }
                    }
                    PriceAsymmetry: { le: 0.1 }
                }
                Transaction: { Result: { Success: true } }
            }
            limit: { count: 100 }
        ) {
            Block {
                Time(interval: { count: 1, in: minutes })
            }
            volume: sum(of: Trade_Side_AmountInUSD)
            high: quantile(of: Trade_PriceInUSD, level: 0.90)
            low: quantile(of: Trade_PriceInUSD, level: 0.10)
            Trade {
                open: PriceInUSD(minimum: Block_Slot)
                openNative: Price(minimum: Block_Slot)
                close: PriceInUSD(maximum: Block_Slot)
                closeNative: Price(maximum: Block_Slot)
            }
        }
    }
}

Similar queries