docs(solana): DEXTradeByTokens side-currency grain, before vs till, pre-aggregated vs raw path - #344
Merged
buddies2705 merged 2 commits intoSep 10, 2026
Conversation
… till, pre-aggregated vs raw path Adds a section to the Solana DEX Trades page answering why a per-minute OHLC query returns one row per side currency, why till pulls a whole extra minute on the pre-aggregated path, and how selecting Slot(minimum) or uniq switches realtime queries to the raw trades. Includes a tested one-candle-per-token-minute query. Ref BIT-15455. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PriceInUSD(min/max)groups byTrade.Side.Currencyeven when unselected, thattillis inclusive (whole minute on the pre-aggregated path) sobeforeis needed for[since, end), and that selectingSlot(minimum)oruniqswitchesdataset: realtimefrom the pre-aggregated table to raw trades with different extremes.Source: customer support ticket (SOL minute OHLC returned 797 rows) and Jira BIT-15455. All numbers verified against streaming.bitquery.io on 2026-09-10.
Test plan
{#dextradebytokens-side-currency-grain}anchor🤖 Generated with Claude Code