TradingPal Account API
The calling key, its plan and its limits.
The calling key, its plan and its limits.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tradingpal-io:tradingpal-io-account-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TradingPal pattern Account API
version: v1
summary: Breakout patterns on stocks & crypto, with the historical win rate and a suggested entry, stop and target.
description: 'TradingPal helps you find better breakout patterns on stocks & crypto, faster. It looks at the entire market for wedges, pennants and triangles that form right before a large run. Based on research and backtesting, we sift out poorly formed patterns and ones with poor historical results. Each pattern comes with its historical win rate and a suggested entry, stop and target. This API serves what the nightly scan found across the whole market, ranked as the screener ranks it, and the current setups on the tickers an account tracks, with the two lines to draw as dated endpoints (straight on a log-scale price axis), the trigger, stop and target, the track record behind each setup, the last occurrences with outcomes, and a chart image. Nothing is computed per request: every answer is the stored artifact of the last nightly run, and every response says which session it describes in as_of_session, so say that session when presenting the data and do not cache setups across days. Rules for agents: never present a win rate alone. Every track record carries a summary sentence with the sample size, the win rate, the average win and the average loss; quote it whole. This is educational chart analysis, not investment advice; repeat the disclaimer when the user may act on it. Keyed routes send Authorization: Bearer tp_live_… and work only on the tickers the account tracks; the families, universe, demo and docs routes need no key. Reference: https://api.tradingpal.io/api/v1/llms.txt. MCP server: https://api.tradingpal.io/mcp.'
termsOfService: https://tradingpal.io/terms
contact:
url: https://tradingpal.io/developers
servers:
- url: https://api.tradingpal.io/api/v1
security:
- ApiKey: []
- OAuth2:
- patterns
tags:
- name: Account
description: The calling key, its plan and its limits.
paths:
/me:
get:
operationId: me
summary: The key, plan, limits and tracked-ticker count
description: Returns the calling key (prefix, name, creation time), the plan, the account's limits (the tracked-ticker cap, requests per minute and per day) and how many tickers the account tracks. Call it to confirm a key works and to size a tracking list before PUT /tickers. Needs a key on an account with Premium+.
tags:
- Account
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Me'
'401':
description: 'missing_api_key (no Authorization: Bearer tp_live_… header) or invalid_api_key (unknown, revoked, or the account is inactive)'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: forbidden (the account is not on Premium+, the plan with API access)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: rate_limited; wait details.retry_after_seconds
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: X-TradingPal-Client
in: header
required: false
schema:
type: string
description: Optional name of the agent or script making the call. It is recorded in the account's usage log so the user can see which client made which calls; the User-Agent is recorded when it is absent.
security:
- ApiKey: []
- OAuth2:
- patterns
components:
schemas:
Me:
type: object
title: Me
description: The calling key, the plan, the account's limits and how many tickers it tracks.
properties:
api_version:
type: string
const: v1
description: The contract version, always v1. Field names in v1 do not change, and v1 stays available at least 12 months after a v2 ships.
as_of_session:
type:
- string
- 'null'
description: The last trading session the data describes, as an ISO date. Setups change nightly, so say it when presenting data and do not cache setups across days. Null on routes that do not read a dated artifact (account, tickers, history, families, universe and the demo index).
format: date
data_version:
type:
- string
- 'null'
description: 'Identifier of the stored artifact the answer came from: the candidate-book generation for patterns, the sealed manifest for family records. Null when the route reads no versioned artifact.'
source:
type: object
description: Who produced the data. Constant on every response.
properties:
name:
type: string
description: Always "TradingPal".
url:
type: string
description: Always https://tradingpal.io.
format: uri
disclaimer:
type: string
const: Educational breakout-pattern analysis from TradingPal, not investment advice. Past results do not guarantee future outcomes.
description: The educational-use disclaimer, constant on every response. Repeat it when presenting a setup as something the user might act on.
key:
type: object
description: The key that made the call, without its secret.
properties:
prefix:
type: string
description: The first 16 characters of the key (tp_live_ plus eight).
name:
type: string
description: The label given when the key was created.
created_at:
type: string
description: When the key was created, ISO 8601 date-time.
format: date-time
plan:
type: string
description: 'The account''s plan: api (Premium+, which includes Premium) or staff. No other account passes the gate.'
enum:
- api
- staff
limits:
type: object
description: The account's limits. Every value is an integer.
properties:
tracked_tickers:
type: integer
description: 'How many tickers the account may track: the cap PUT /tickers enforces.'
requests_per_minute:
type: integer
description: Per-key burst limit, requests per minute (60).
requests_per_day:
type: integer
description: Per-key daily limit, requests per day (10,000).
additionalProperties:
type: integer
description: Any further limit, as an integer.
tracked_ticker_count:
type: integer
description: How many tickers the account tracks now.
docs_url:
type: string
description: The developer docs, where keys are managed.
format: uri
mcp_url:
type: string
description: The MCP server endpoint (Streamable HTTP), which takes the same key.
format: uri
required:
- api_version
- as_of_session
- source
- disclaimer
examples:
- api_version: v1
plan: api
tracked_ticker_count: 3
Error:
type: object
title: Error
description: Every non-2xx answer. The code is stable; message and fix are written so an agent can act on them.
properties:
error:
type: string
description: Machine-readable code, for example setup_not_found. The llms.txt reference lists every code with its HTTP status.
message:
type: string
description: What went wrong, in one sentence.
fix:
type: string
description: 'What to do next: the route or tool to call, or the input to change. Absent when there is nothing to do.'
docs_url:
type: string
description: The developer docs, where keys are created.
format: uri
details:
type: object
description: 'Code-specific extras: retry_after_seconds on rate_limited, symbols on invalid_symbol and unknown_symbol, cap and sent on ticker_cap_exceeded, demo_symbols on not_a_demo_symbol. Absent otherwise.'
properties: {}
additionalProperties: true
required:
- error
- message
- docs_url
examples:
- error: setup_not_found
message: no current setup NVDA:D:falling_wedge:500 on NVDA
fix: Setups change nightly; re-read the current patterns for the symbol.
docs_url: https://tradingpal.io/developers
securitySchemes:
ApiKey:
type: http
scheme: bearer
bearerFormat: tp_live_…
description: 'An API key in the Authorization header: "Authorization: Bearer tp_live_…". Create one at https://tradingpal.io/developers. Limits are 60 requests a minute and 10,000 a day per account (all its keys together), and 1,000 different current setups a day from the scan and per-ticker patterns. Keyed routes answer only for accounts on Premium+ (which includes Premium); the fix on a 403 says where to get it (https://tradingpal.io/developers/quickstart).'
OAuth2:
type: oauth2
description: 'The sign-in flow MCP hosts run (OAuth 2.1 with PKCE and dynamic client registration): the host opens the browser, the user approves, and the grant is a key named after the host on the keys page. The access token goes in the same Authorization header. Metadata at https://api.tradingpal.io/.well-known/oauth-authorization-server.'
flows:
authorizationCode:
authorizationUrl: https://api.tradingpal.io/oauth/authorize
tokenUrl: https://api.tradingpal.io/oauth/token
refreshUrl: https://api.tradingpal.io/oauth/token
scopes:
patterns: 'Everything the account''s key can do: read setups, history, records and charts, and change tracked tickers.'
SessionCookie:
type: apiKey
in: cookie
name: tp_sessionid
description: The TradingPal site session cookie, for the key-management routes only; they are used by the developers page, not by API clients.
externalDocs:
url: https://api.tradingpal.io/api/v1/llms.txt
description: The reference for agents