API documentation

Price Action API Docs

Start with the current API contract. The API returns objective bar state by symbol and timeframe, then adds open direction, continuity fields, and cross-index break context for agents, dashboards, and research notebooks.

By 345 Strategies. Last updated October 23, 2026

Access status

Free API keys, issued instantly.

Symbols

SPY, QQQ, DIA, IWM

Primary route

GET /v1/snapshot

These examples show the request and response shape. Use the API key issued to your account at sign-up.

Quickstart

Set your base URL and API key, then call metadata first and a snapshot second. Metadata tells you current symbol coverage, timeframe aliases, limits, and included fields.

curl
export PRICE_ACTION_API_BASE_URL="https://priceactionapi.com"
export PRICE_ACTION_API_KEY="pa_live_xxx"

curl "$PRICE_ACTION_API_BASE_URL/v1/meta" \
  -H "Authorization: Bearer $PRICE_ACTION_API_KEY"

curl "$PRICE_ACTION_API_BASE_URL/v1/snapshot?symbols=SPY,QQQ,DIA,IWM&tf=15m" \
  -H "Authorization: Bearer $PRICE_ACTION_API_KEY"
Your API key and the active base URL are available in your dashboard after sign-up. Keep API keys server-side and out of client-side code.

Authentication

API calls use a bearer token in the Authorization header. Keys are issued instantly at sign-up. Keep one key per integration so a compromised key can be revoked without interrupting every workflow.

JavaScript fetch
const response = await fetch(
  `${process.env.PRICE_ACTION_API_BASE_URL}/v1/snapshot?symbols=SPY,QQQ,DIA,IWM&tf=15m`,
  {
    headers: {
      Authorization: `Bearer ${process.env.PRICE_ACTION_API_KEY}`,
    },
  }
);

const snapshot = await response.json();

Endpoints

GET /v1/meta

Returns API status, supported symbols, timeframe aliases, rate limits, and included fields.

GET /v1/snapshot

Returns current bar-state snapshots as a batch keyed by symbol, then by timeframe, even when you request a single symbol and timeframe.

ParameterTypeStatusNotes
symbolsstringOptionalComma-separated symbols. Use symbol for a single symbol. Defaults to SPY.
tfstringOptionalComma-separated timeframes. timeframes and timeframe are also accepted. Defaults to 15m.

Supported live timeframes are M, W, D, H1, 30m, 15m, and 5m. Aliases such as monthly, weekly, daily, 60, 30, 15, and 5 are normalized before the response is built.

Machine-readable spec: /openapi.json (OpenAPI 3.1).

Response Fields

Batch snapshot response
{
  "type": "bar_state.snapshot_batch",
  "status": "ok",
  "symbols": ["SPY"],
  "timeframes": ["30m", "15m"],
  "timestamp": "2026-10-23T14:15:04.000Z",
  "source": "supabase_latest_bar_states",
  "source_timestamp": "2026-10-23T14:15:00.000Z",
  "live_during_market_hours": true,
  "market_hours_note": "Snapshot data is live during regular US market hours when the approved upstream feed is running.",
  "provisional": false,
  "events": {
    "SPY": {
      "type": "bar_state.update",
      "symbol": "SPY",
      "timeframes": {
        "30m": {
          "cc": "2u",
          "c1": "1",
          "open_sign": ">",
          "display": "2u",
          "combo_2bar": "1-2u",
          "combo_3bar": "2d-1-2u",
          "took_c1h": true,
          "took_c1l": false,
          "above_prior_high": true,
          "below_prior_low": false,
          "trend": "up",
          "updated_at": "2026-10-23T14:15:00.000Z"
        },
        "15m": {
          "cc": "1",
          "c1": "2u",
          "open_sign": "<",
          "display": "1<",
          "combo_2bar": "2u-1",
          "combo_3bar": "1-2u-1",
          "took_c1h": false,
          "took_c1l": false,
          "above_prior_high": false,
          "below_prior_low": false,
          "trend": "inside",
          "updated_at": "2026-10-23T14:15:00.000Z"
        }
      },
      "continuity": {
        "display": "30m:2u 15m:1<",
        "full_continuity": "none"
      },
      "interpretation": ["30 minute and 15 minute trend is mixed."]
    }
  }
}
FieldMeaning
ccCurrent bar state: 1 (inside), 2u or 2d (directional), 3 (outside). An F prefix marks a failed break, as in F2u or F2d.
c1Prior bar state, in the same notation. Null when unavailable.
open_sign> when price is above the bar's open, < when it is not.
displayCompact state string. Same as cc, except inside bars include the open marker: 1> or 1<.
combo_2bar, combo_3barRecent state sequences for pattern analysis.
took_c1h, took_c1lWhether the current bar has traded above the prior bar's high or below its low.
above_prior_high, below_prior_lowWhether price is currently above the prior bar's high or below its low.
trendup, down, inside, or mixed.
updated_atWhen this timeframe's state was last refreshed.
statusAppears as missing, in place of the fields above, when a timeframe has no data yet.
continuityPer symbol. display lists each requested timeframe's state in order. full_continuity is bull when every requested timeframe is above its open, bear when every one is below, and none otherwise.
interpretationPer symbol. Plain-English notes about the states, such as an inside week or the day trading above the prior day's high.

For display notation, read the base state first. The u and d suffixes give the direction of a 2. An F prefix marks a failed break: the bar broke the prior high or low and is now back inside it. Inside bars add the open marker, as in 1> or 1<. For every state, open_sign carries the same > or < reading on its own.

Simultaneous Breaks

A simultaneous break, also called a cross-index break, means all supported index symbols are a 2 on the same timeframe in the same direction. For example, a 15m simultaneous break requires SPY, QQQ, DIA, and IWM to all be 2u on the 15m timeframe, or all be 2d on the 15m timeframe.

Same timeframe

Compare one timeframe at a time, such as 15m, 30m, or D.

Same direction

All symbols must break up as 2u or all must break down as 2d. Mixed directions do not qualify.

No failed 2s

Failed 2s do not count. A symbol can fail after the break and later qualify again if it re-breaks as a valid 2.

Example

A 15m simultaneous break up means SPY, QQQ, DIA, and IWM all read 2u on the 15m timeframe. A 15m simultaneous break down means all four read 2d on the 15m timeframe.

Errors And Limits

CodeNameMeaning
400Bad requestUnsupported symbol, empty symbols, empty timeframes, or malformed parameters.
401UnauthorizedMissing, expired, or invalid API key.
404Not foundThe requested route does not exist.
503UnavailableThe snapshot store is temporarily unreachable. Retry after a short wait.
429Rate limitedThe request exceeded the access limit for the key.

API limits

The current free key limit is 10 requests per minute and 1,000 requests per day. Higher limits, expanded history, and broader symbol coverage may require a paid plan later.

FAQ

What is Price Action API?
Price Action API is a machine-readable HTTP API that classifies every live bar into objective market-structure and trend context for trading bots, agents, and dashboards.
What is TheStrat?
TheStrat is Rob Smith's bar-state framework for reading how each bar relates to the prior bar.
What does Timeframe Continuity mean?
Timeframe Continuity, or TFC, compares whether the requested timeframes are above or below each bar's open. The continuity.full_continuity field reports bull when all are above, bear when all are below, and none otherwise.
Which symbols are supported first?
The first supported symbols are SPY, QQQ, DIA, and IWM.
Is Price Action API free?
Yes. Free API keys are issued instantly at sign-up and include 10 requests per minute and 1,000 per day. Premium feeds, expanded history, and higher-volume access may require a paid plan later.