The states endpoint returns a single-symbol snapshot that aggregates everything StratAlerts tracks for a ticker: its instrument metadata, the most recent trade price, the Timeframe Continuity (TFC) color for each timeframe, and all active setup rows. This is the same data that powers the per-symbol overview page in the StratAlerts UI and is the most efficient way to get a complete picture of a symbol in one request.Documentation Index
Fetch the complete documentation index at: https://docs.stratalerts.com/llms.txt
Use this file to discover all available pages before exploring further.
GET https://app.stratalerts.com/api/market/v1/states/{symbol}
Requires scope:
states:readPath parameters
The ticker symbol to look up (e.g.,
AAPL). Normalized to uppercase. Returns 404 if the symbol is unknown or not tracked.Response fields
The requested ticker symbol, uppercased.
Full instrument metadata object. Contains the same fields as the instruments endpoint:
symbol, name, market, exchange, type, sector, and active.Latest trade price object from the prices feed. Contains at minimum
price and volume. May be an empty object ({}) if no recent trade is on record.Timeframe Continuity state for the symbol. Keys are timeframe labels; values are color strings indicating directional bias.Only timeframes with a recorded TFC state appear in this object. Intraday timeframes may appear when available.
Array of active setup rows for the symbol. Each object includes the setup shape (e.g.,
1-2U), in-force status, P3 and PMG flags, continuation status, and sector. The exact shape mirrors the setups endpoint response items.The recommended default chart timeframe for this symbol (e.g.,
D).Ordered list of timeframe labels available for this symbol’s chart display (e.g.,
["15", "30", "60", "4H", "D", "W", "M", "Q", "Y"]).Code examples
Example response
Error codes
| HTTP status | Error code | Meaning |
|---|---|---|
| 401 | missing_api_key | No API key was provided or the key format is invalid. |
| 403 | inactive_entitlement | Your account does not have an active API entitlement. |
| 403 | missing_scope | Your API key does not have the states:read scope. |
| 404 | unknown_symbol | The symbol was not found or is not tracked by StratAlerts. |