API reference

All routes

Every route on one page.

Base URL https://api.tradingpal.io/api/v1. Trailing slashes are optional. Every response is JSON except chart.png. Keyed routes take Authorization: Bearer tp_live_…; the rest answer without a key.

Account

RouteKeyReturns
GET /meyesThe key, plan, limits and tracked-ticker count

Tracked tickers

RouteKeyReturns
GET /tickersyesTracked tickers
PUT /tickersyesReplace the tracked tickers (all-or-nothing)

Patterns

RouteKeyReturns
GET /tickers/{symbol}/patternsyesCurrent setups on a tracked ticker
GET /tickers/{symbol}/historyyesPast occurrences on a tracked ticker, newest first
GET /tickers/{symbol}/chart.pngyesPNG of one current setup

Families

RouteKeyReturns
GET /familiesnoThe pattern families with their track record
GET /families/{family}/statsnoOne family's track record
GET /universenoSymbols the nightly covers

Demo, no key

RouteKeyReturns
GET /demonoThe keyless demo symbols
GET /demo/{symbol}noCurrent setups on a demo symbol, no key needed
GET /demo/{symbol}/chart.pngnoPNG of one demo setup

Objects

  • Setup: One current pattern on a ticker: the lines to draw, the trigger, stop and target, and the track record behind them
  • Track record: A track record: how one pattern family resolved over the last 20 years of the served universe, or how it resolved on one ticker
  • History row: One past occurrence of a pattern on a ticker and what happened next, from the stored backtest: entry, stop, target, exit and result.
  • Error: Every non-2xx answer
  • Envelope: the fields on every response