Skip to content

docs(solana): DEXTradeByTokens side-currency grain, before vs till, pre-aggregated vs raw path - #344

Merged
buddies2705 merged 2 commits into
mainfrom
docs/solana-dextradebytokens-side-currency-grain
Sep 10, 2026
Merged

docs(solana): DEXTradeByTokens side-currency grain, before vs till, pre-aggregated vs raw path#344
buddies2705 merged 2 commits into
mainfrom
docs/solana-dextradebytokens-side-currency-grain

Conversation

@buddies2705

Copy link
Copy Markdown
Contributor

Summary

  • New section on the Solana DEX Trades page: Why does my per-minute OHLC query return hundreds of rows for one token?
  • Explains that PriceInUSD(min/max) groups by Trade.Side.Currency even when unselected, that till is inclusive (whole minute on the pre-aggregated path) so before is needed for [since, end), and that selecting Slot(minimum) or uniq switches dataset: realtime from the pre-aggregated table to raw trades with different extremes.
  • Adds a tested one-candle-per-token-minute query with variables.

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

  • Preview renders the new {#dextradebytokens-side-currency-grain} anchor
  • Query in the section runs in the IDE and returns one row for the sample variables

🤖 Generated with Claude Code

Gaurav Agarwal and others added 2 commits September 10, 2026 10:25
… 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>
@buddies2705
buddies2705 merged commit b68035d into main Sep 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant