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.
Quickstart1. 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.
signals_at_ts, settlement_complete)
?date=YYYY-MM-DD for history, ?portfolio_id=N to scope, screens to narrow it
?model_id=N, ?days=1…3650 (default 30; 1 = the last settled session)
?model_id=N
symbol, model, portfolio, period, sort by pl or abs_pl; no row limit, JSON or format=csv
sector, industry, etf_theme…, sort by alpha, win_rate, sharpe…
period
SYMBOL:MODEL pairs
Base URL: https://tradedm.com/api/v1/client. Every response is JSON in a
{"success": true, "data": …} envelope; errors are
{"success": false, "error": "code"}.
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.
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.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).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).correct, wrong or flat. A
flat call (close equal to open) counts toward predictions but is neither a win nor a loss.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./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.# 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"
Your agent can turn research into a TradeDM portfolio in two calls, on your own account only.
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.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.# 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 TimingA 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.
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.server_ts, not your own clock.scored: true tells you
today_pl is final.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.?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.
In ChatGPT: Explore GPTs → Create → Configure → Create new action.
https://tradedm.com/api/v1/client/openapi.phptdmk_… key.
ChatGPT stores it server-side; the model itself never sees it.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.
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.
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
/me.php in the agent's routine, so a revoked or
mistyped key fails loudly instead of silently returning nothing.A0.08) is the engine
behind it; a portfolio is just a grouping you chose./results.php?days=90 in context than from the day's board alone —
accuracy, streaks and drawdowns are all there.