Skip to main content

Fields and Fetch Reference

The StratAlerts market bundle is a structured snapshot of every tracked symbol delivered as an NDJSON file — one JSON object per line, one line per symbol. It refreshes every 300 seconds (5 minutes), so the data your LLM receives always reflects current market conditions. This page covers the exact bundle format, every available field, how to fetch the bundle, and how to parse it in code.

File format

The bundle is NDJSON (Newline-Delimited JSON). Each line is a valid, self-contained JSON object representing one symbol. This format is intentional: it streams efficiently, parses line by line without loading the entire file into memory, and works cleanly as LLM context input.
bundle-0001.ndjson
Refresh cadence: Every 300 seconds. The bundle URL does not change — the same URL always returns the latest snapshot.

Fields

Identity and price

TFC state

Timeframe continuity (TFC) state is provided for five higher timeframes. Each value is one of green, red, or na.

Candles (OHLCV)

OHLCV bars are included for nine timeframes. Each timeframe block contains: Time, Open, High, Low, Close, Volume. Each candle object looks like:
candle object

Setup fields

Setup fields reflect the current Strat setup state on the daily timeframe by default.

Sample bundle row

This shows a complete single-symbol row from the bundle:
sample row (SPY)

Fetching the bundle

Send an HTTP GET to your bundle URL with your API key in the X-API-Key header:
Your bundle URL and API key are available in Account → AI Tools after subscribing.

Parsing the bundle in Python

This example fetches the bundle, parses every row, and filters for symbols that are in-force on the daily:
parse and filter bundle
Parse the bundle line by line rather than loading the entire file into memory at once. For large universes, streaming line-by-line reduces memory overhead significantly.

AI Tools overview

How AI Tools works, compatible models, and pricing.

AI Search

Run natural language queries directly inside the StratAlerts setups table — no API key or code required.