Connect Your AI to Your Signals

TradeDM Client API v1  ·  signals, research & portfolios  ·  works with ChatGPT, Claude, Grok & agent frameworks

Your TradeDM subscription includes API access: a secure way for your own AI assistant, agent or script to fetch the daily signals you're subscribed to — your signal portfolios, today's board, scored history and model statistics — to research the scored past of every signal, subscribed or not, and to build and activate portfolios on your account. What your AI does with them, and where you trade, is entirely up to you. The API is broker-agnostic and never touches a brokerage account.

Quickstart

1. Create an API key: Account → API Access → Create Key. Copy it immediately — it's shown once. 2. Verify it works:

curl -H "Authorization: Bearer tdmk_YOUR_KEY_HERE" \
  https://tradedm.com/api/v1/client/me.php

A 200 with your key's label and subscription count means you're connected. Keys travel in the Authorization header only — requests with a key in the URL are rejected, because URLs end up in logs.

Endpoints
GET /me.php Key check + identity + the polling contract (signals_at_ts, settlement_complete)
GET /signals.php Your signal board — latest released by default, ?date=YYYY-MM-DD for history, ?portfolio_id=N to scope, screens to narrow it
GET /portfolios.php Your portfolios and the signals each one carries
GET /results.php Scored day-by-day history — ?model_id=N, ?days=1…3650 (default 30; 1 = the last settled session)
GET /performance.php Model statistics — 30-day snapshot for all your signals, or deep stats with ?model_id=N
GET /history.php Research · scored calls of every signal with their official open, close and P/L — symbol, model, portfolio, period, sort by pl or abs_pl; no row limit, JSON or format=csv
GET /models.php Research · every model, its type and the tickers it covers
GET /catalog.php Research · the signal catalog graded like the Marketplace — filter by sector, industry, etf_theme…, sort by alpha, win_rate, sharpe…
GET /portfolio_lookup.php Research · your portfolios (sandbox included), or one portfolio's stat tiles over a period
POST /portfolio_create.php Build · create a sandbox portfolio from SYMBOL:MODEL pairs
POST /portfolio_activate.php Build · activate one of your portfolios, subscribing its missing signals when that adds no cost
GET /openapi.php Machine-readable OpenAPI 3.1 spec (public — this is what you feed to agents)

Base URL: https://tradedm.com/api/v1/client. Every response is JSON in a {"success": true, "data": …} envelope; errors are {"success": false, "error": "code"}.

Research: Past Data for Every Signal

Four endpoints serve the scored past of every active signal — not only the ones you subscribe to. They need your key but no subscription, because history is the same for everyone. Today's actionable calls stay on /signals.php.

  • History ends on settled_through. A trading day becomes history once its 5:30 PM ET price write has run. Until then its calls appear in no research response, whatever dates you ask for — and every response says which day that is. Poll /me.php for settlement_complete rather than a clock.
  • Periods: 1d (the last settled session), 7d, 30d, 90d, mtd, ytd, 1yr, all — or start / end, or sessions=N for the last N trading sessions (a 3-session window is always 3 sessions).
  • Sorting by P/L: sort=pl works on /history.php, /catalog.php, /results.php and /signals.php (there, only once the board is scored; sort=prev_pl uses the previous session).
  • Results are correct, wrong or flat. A flat call (close equal to open) counts toward predictions but is neither a win nor a loss.
  • Lists: symbol and model take commas; sector, industry and etf_theme take |, because GICS names contain commas. An unknown value returns 422 listing every allowed value, and so does an unknown parameter — nothing is silently ignored.
  • Screens on /signals.php, /history.php and /catalog.php keep or drop whole signals, judged on the stock as it trades now: min_price (latest close), min_dollar_volume (average daily volume × VWAP over the latest 20 sessions), exchange and exclude_otc=1. Volume trails prices by one session; OTC listings have none, so a volume screen drops them. On your board, screens.excluded says how many signals a screen removed.
  • Portfolio stats are always $1,000 per signal, whatever allocation you set on the website. CAGR stays empty under 20 scored days.
# every Energy signal, ranked by 30-day alpha
curl -H "Authorization: Bearer tdmk_MY_KEY" \
  "https://tradedm.com/api/v1/client/catalog.php?sector=Energy&period=30d&sort=alpha"

# SPY's scored calls for the past 90 days, as CSV
curl -H "Authorization: Bearer tdmk_MY_KEY" \
  "https://tradedm.com/api/v1/client/history.php?symbol=SPY&period=90d&format=csv"

# the last settled session's biggest winners, on liquid listed stocks over $10
curl -H "Authorization: Bearer tdmk_MY_KEY" \
  "https://tradedm.com/api/v1/client/history.php?period=1d&sort=pl&min_price=10&min_dollar_volume=5000000&exclude_otc=1"
A ranking is a record, not a forecast. Sorting the catalog by alpha or win rate shows how signals did over a window you chose. Past performance does not guarantee future results, and nothing here recommends a signal.
Building a Portfolio From Research

Your agent can turn research into a TradeDM portfolio in two calls, on your own account only.

  • Create — POST /portfolio_create.php with a name and signals as SYMBOL:MODEL pairs. The portfolio starts as a sandbox with notifications off. An unknown or retired signal fails the whole request and is named; nothing is silently dropped.
  • Activate — POST /portfolio_activate.php with its portfolio_id or name. An active portfolio needs a subscription to every signal in it. Any it lacks are subscribed in the same step when that adds no cost to your plan (during the beta, every signal is free), and granted lists them. Otherwise you get 402 checkout_required with the list, and nothing changes.
  • Notifications stay off until you turn them on for that portfolio on your Portfolio page. The API never turns on notifications and never connects a broker.
# create
curl -X POST -H "Authorization: Bearer tdmk_MY_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Energy leaders", "signals": ["XOM:MA0.10", "CVX:MCA0.01BB"]}' \
  https://tradedm.com/api/v1/client/portfolio_create.php

# activate
curl -X POST -H "Authorization: Bearer tdmk_MY_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Energy leaders"}' \
  https://tradedm.com/api/v1/client/portfolio_activate.php

You can also paste the same list, comma-separated, into the signal search on your Portfolio page.

What a Signal Is — and Who Decides Timing

A signal is one model's direction call for one ticker on one trading day: LONG or SHORT. Some models also publish an ai_price_target and intraday stop_loss / stop_gain prices.

Every performance figure TradeDM publishes is measured from that day's official opening price to its official closing price, on a hypothetical $1,000 notional per signal. That is the measurement basis for the track record — it is how the numbers you see were computed.

The measurement basis is not a schedule, and TradeDM does not set yours. When you enter and exit, what order types you use, whether you use the published stop prices, how close to the opening or closing bell you work — all of that belongs to you, your agent, and your broker. Fills at any other moment will differ from the open-to-close basis, and that difference is yours. TradeDM publishes the call; it never places, sizes, or times an order.
When to Poll

9:25 AM US/Eastern is the earliest, not a guarantee. It is the platform default, and most signals publish then — but a model may publish deliberately later to take in more pre-market or at-open data. Every signal carries its own release_time (ET), so read the schedule instead of assuming one hour.

  • /me.php gives signals_at_ts (earliest signal you hold) and signals_complete_ts (the last one expected) for board_date.
  • /signals.php adds next_release_ts — the next signal still outstanding — and lists each one in pending with its own expected_at_ts. Wait for that one signal instead of re-polling the board.
  • Poll after the moment you're waiting on plus 0–60 seconds of random jitter (be a good neighbor). Compare against server_ts, not your own clock.
  • Results are scored after the 4:00 PM ET close; scored: true tells you today_pl is final.
  • Rate limits: 60 requests/minute, 5,000/day per key. Every response carries X-RateLimit-Remaining and X-RateLimit-Reset (plus -Day variants) — slow down as Remaining approaches zero rather than waiting to be throttled. A 429 carries Retry-After; honor it.
Check the date before you act on a board. With no ?date=, /signals.php returns the most recent released board — which before the morning release is yesterday's. Signals are single-day calls, so an agent that trades whatever it receives can trade a stale board. Verify data.date is the trading day you intend before acting, and treat window: "pre_signal" as "today's board isn't out yet — wait for signals_at_ts." Asking for today is not evidence; only the returned date is.
Set Up: ChatGPT (Custom GPT Actions)

In ChatGPT: Explore GPTs → Create → Configure → Create new action.

  • Import from URL: https://tradedm.com/api/v1/client/openapi.php
  • Authentication: API Key → Auth Type Bearer → paste your tdmk_… key. ChatGPT stores it server-side; the model itself never sees it.
  • Instructions: paste the agent block below (or the full skill ↗) into the GPT's Instructions box, so it gets the vocabulary and the guardrails as well as the endpoints.
  • Ask it: "Get my TradeDM signals for today and summarize the board."
Leave the GPT shared with “Only me.” It carries your API key, so anyone you share it with would be reading your signals on your key and against your rate limit. Sharing a Custom GPT does not prompt them for a key of their own.
Set Up: Claude

Works today with Claude Code (terminal, desktop app, or claude.ai/code) and with any Claude deployment that can run its own HTTP requests — the Agent SDK, API tool-use, or an agent framework. Put this block in your project's CLAUDE.md or paste it into the conversation, with your key, and Claude will call the API itself:

You can read my TradeDM trade signals via a REST API.
Base URL: https://tradedm.com/api/v1/client
Auth: send header  Authorization: Bearer tdmk_MY_KEY
Endpoints (GET unless marked POST; JSON):
  /me.php           — verify key; signals_at_ts / signals_complete_ts;
                      settled_through / settlement_complete
  /signals.php      — my signal board (?date=YYYY-MM-DD, ?portfolio_id=N; screens)
  /portfolios.php   — my signal groupings
  /results.php      — scored history (?model_id=N&days=30)
  /performance.php  — model stats (?model_id=N for detail)
Research — past data for every signal, ending on settled_through:
  /history.php          — scored calls with open/close/P&L (?symbol=SPY&period=90d, sort=pl)
  /models.php           — every model and the tickers it covers
  /catalog.php          — graded catalog (?sector=Energy&period=30d&sort=alpha)
  Screens on signals, history and catalog: min_price, min_dollar_volume,
  exchange, exclude_otc=1 — only when I ask for them
  /portfolio_lookup.php — my portfolios, or one's stats (?portfolio=Name)
Build — writes to my account, only when I ask:
  POST /portfolio_create.php   — {"name": "...", "signals": ["SYMBOL:MODEL", ...]}
                                 creates a SANDBOX portfolio, notifications off
  POST /portfolio_activate.php — {"name": "..."} or {"portfolio_id": N}; subscribes
                                 missing signals when that adds no cost, else
                                 402 checkout_required with the list

Signals are LONG/SHORT direction calls for ONE trading day, and every P/L
figure is a hypothetical $1,000 notional measured official open to
official close. That is the measurement basis, not a schedule: when I
enter and exit is my decision, not TradeDM's.

9:25 AM ET is the earliest release, not a guarantee — each signal has its
own release_time and late ones appear in `pending` with expected_at_ts.
Before acting on a board, check that data.date is the day I mean; with no
?date= you get the latest RELEASED board, which pre-release is yesterday's.
Compare times against server_ts. Respect 429 + Retry-After. Never put the
key in a URL.
Heads-up — regular claude.ai chat can't use this yet. The web and mobile Claude apps can browse pages but cannot attach the Authorization header an API key requires, so pasting this block into a claude.ai Project won't authenticate — that's a limitation of the chat apps, not a problem with your key or the API. Use Claude Code or any of the other routes above in the meantime.
Set Up: Any Other Agent or Script

Any framework that can fetch a URL works — the spec at /openapi.php is standard OpenAPI 3.1, and the snippet above adapts to Grok, LangChain tools, cron scripts or a spreadsheet. Minimal Python:

import requests
H = {"Authorization": "Bearer tdmk_MY_KEY"}
board = requests.get("https://tradedm.com/api/v1/client/signals.php", headers=H).json()
for s in board["data"]["signals"]:
    print(s["ticker"], s["version"], s["direction"], s.get("stop_loss"))
Guiding Your AI — Tips
  • Start with /me.php in the agent's routine, so a revoked or mistyped key fails loudly instead of silently returning nothing.
  • Anchor the vocabulary: a signal is one model's LONG/SHORT call on one ticker for one day, open to close. A model (e.g. A0.08) is the engine behind it; a portfolio is just a grouping you chose.
  • Give it the track record: agents reason better with /results.php?days=90 in context than from the day's board alone — accuracy, streaks and drawdowns are all there.
  • Keep decisions on your side: the API tells your agent what the models said and how they've scored. Whether and how to act on a signal — position size, instrument, broker, risk rules — is your configuration of your agent, not something TradeDM provides.
  • Pair it with a broker skill. This API is the signal half. Execution lives in whatever your agent uses to reach your broker — for example Alpaca publishes open agent skills for its own trading API. Your agent composes the two: read here, act there. TradeDM is never in that second half.
  • Rotate keys if an agent platform changes hands or a key may have leaked — revoke in Account, create a fresh one, update the agent. You can hold up to 3 active keys (e.g. one per assistant).
Keep your key private. Anyone holding it can read your subscribed signals. Paste it only into tools you control; never commit it to a repo or share it in a prompt you might publish. Revoking a key cuts access immediately.
Important — What This Is (and Isn't)
TradeDM is a financial publication. The signals, statistics and history served by this API are standardized, impersonal model output — the same publication content delivered to every subscriber — and are provided for informational purposes only. Nothing served by the API is investment advice or a recommendation tailored to you, and TradeDM has no knowledge of, or involvement in, any trades you or your tools may place. All profit/loss figures are hypothetical results of a uniform $1,000 notional per signal, excluding commissions, fees, slippage and taxes. Past performance does not guarantee future results. See our Terms of Service.