Skip to main content
The StratAlerts Partner API gives you direct, programmatic access to the same market data that powers the scanner — instrument metadata, OHLCV candles, TFC states, setup detection, and live alerts. You can pull current snapshots over REST or subscribe to live streams over WebSocket, depending on whether you need point-in-time data or continuous updates.
API access requires a separate API Access subscription plan. Your standard StratAlerts subscription does not include API access. Subscribe at app.stratalerts.com to get started.

Delivery modes

REST

Request historical data, current snapshots, and batch lookups over HTTPS. Best for periodic polling, backtesting, and on-demand queries.

WebSocket

Maintain a persistent connection and receive pushed updates as they happen. Best for live dashboards, execution systems, and alert ingestion.

Base URLs

REST endpoints

Every endpoint requires a valid API key with the appropriate scope. See Authentication for how to pass your key.

WebSocket channels

After connecting to wss://app.stratalerts.com/ws/market/v1, you subscribe to channels by sending a JSON message with "op": "subscribe". Your key must have ws:connect scope plus the scope corresponding to each channel.

Quick example

The following request fetches the current market status using curl. Replace YOUR_API_KEY with your actual key.
A successful response looks like this:

Error format

All error responses use a consistent JSON envelope regardless of the endpoint or HTTP status code.
See Authentication for the specific error codes returned for missing or invalid keys, and Rate Limits for throughput-related errors.

Next steps

Authentication

Learn how to obtain an API key, pass it in requests, and understand scope requirements.

Rate limits

Understand per-key throughput limits, burst behavior, and WebSocket connection rules.