TradingPal Docs API
Agent onboarding: the index, the reference (llms.txt), the installable skill and this document. Keyless.
Agent onboarding: the index, the reference (llms.txt), the installable skill and this document. Keyless.
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-docs-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 Docs 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: Docs
description: 'Agent onboarding: the index, the reference (llms.txt), the installable skill and this document. Keyless.'
paths:
/:
get:
operationId: index
summary: Where everything is
description: 'Returns a JSON map of where everything is: the human docs, llms.txt, skill.md, this OpenAPI document, the MCP server with install commands, the demo symbols, the auth header and the rate limits. Call it first when landing on the base URL with nothing else to go on. No key is needed.'
tags:
- Docs
responses:
'200':
description: Links to the docs, the OpenAPI document, llms.txt, the skill, the MCP server and the demo.
content:
application/json:
schema:
$ref: '#/components/schemas/Index'
'429':
description: rate_limited; wait details.retry_after_seconds
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- {}
- ApiKey: []
- OAuth2:
- patterns
/llms.txt:
get:
operationId: llmsTxt
summary: The reference, as markdown for agents
description: 'Returns the agent reference as text/markdown with the production URLs filled in. It is the prose contract: the rules for agents, the routes, the envelope, the Setup and StatBlock shapes and the error codes. The same file is served at /llms.txt on the API host. No key is needed; cached for an hour.'
tags:
- Docs
responses:
'200':
description: text/markdown
content:
text/markdown:
schema:
type: string
'429':
description: rate_limited; wait details.retry_after_seconds
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- {}
- ApiKey: []
- OAuth2:
- patterns
/skill.md:
get:
operationId: skillMd
summary: The reference as an installable SKILL.md
description: Returns the same reference wrapped in SKILL.md frontmatter (name and description), so it can be installed as a skill in Claude Code or Codex. The body after the frontmatter is identical to llms.txt. No key is needed; cached for an hour.
tags:
- Docs
responses:
'200':
description: text/markdown with skill frontmatter
content:
text/markdown:
schema:
type: string
'429':
description: rate_limited; wait details.retry_after_seconds
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- {}
- ApiKey: []
- OAuth2:
- patterns
/openapi.json:
get:
operationId: openapi
summary: This document
description: Returns this document as JSON (OpenAPI 3.1) with the production base URL in servers. Use it to generate a client or a docs page. No key is needed; cached for an hour.
tags:
- Docs
responses:
'200':
description: OpenAPI 3.1
content:
application/json:
schema:
type: object
'429':
description: rate_limited; wait details.retry_after_seconds
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- {}
- ApiKey: []
- OAuth2:
- patterns
components:
schemas:
Index:
type: object
title: Index
description: Where everything is, for an agent that lands on the base URL.
properties:
name:
type: string
description: The API's name.
api_version:
type: string
description: The contract version, v1.
description:
type: string
description: One sentence on what the API serves.
docs_url:
type: string
description: The developer docs, where keys are created.
format: uri
llms_txt:
type: string
description: URL of the agent reference (llms.txt).
format: uri
openapi:
type: string
description: URL of this OpenAPI document.
format: uri
skill:
type: string
description: URL of the installable SKILL.md.
format: uri
auth:
type: object
description: How to authenticate.
properties:
header:
type: string
description: The Authorization header to send with a key.
keys_url:
type: string
description: Where to create a key.
format: uri
client_header:
type: string
description: The optional X-TradingPal-Client header, which names the calling agent or script in the usage log.
mcp:
type: object
description: The MCP server and how to connect to it.
properties:
url:
type: string
description: The MCP endpoint.
format: uri
transport:
type: string
description: The MCP transport; streamable-http.
auth:
type: string
description: 'How the MCP server authenticates: the same Authorization header, optional for the demo tools.'
install:
type: object
description: Copy-and-paste install commands per client.
properties:
claude_code:
type: string
description: The claude mcp add command.
codex:
type: string
description: The codex mcp add command.
demo:
type: object
description: The keyless demo.
properties:
symbols:
type: array
description: The demo symbols.
items:
type: string
description: Exchange symbol, upper case.
patterns_url:
type: string
description: The demo patterns route for the first demo symbol.
format: uri
families_url:
type: string
description: The keyless families route.
format: uri
limits:
type: object
description: Rate limits.
properties:
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).
keyless_per_minute_per_ip:
type: integer
description: Limit for calls without a key, requests per minute per IP address (30).
disclaimer:
type: string
description: The educational-use disclaimer.
examples:
- name: TradingPal pattern API
api_version: v1
description: Breakout patterns TradingPal found on stocks & crypto in the last nightly scan, with the historical win rate, the lines to draw and a suggested entry, stop and target for each one.
docs_url: https://tradingpal.io/developers
llms_txt: https://api.tradingpal.io/api/v1/llms.txt
openapi: https://api.tradingpal.io/api/v1/openapi.json
skill: https://api.tradingpal.io/api/v1/skill.md
auth:
header: 'Authorization: Bearer tp_live_…'
keys_url: https://tradingpal.io/developers
client_header: 'X-TradingPal-Client: <agent or script name> (optional)'
mcp:
url: https://api.tradingpal.io/mcp
transport: streamable-http
auth: same Authorization header; connects without one for the demo tools
install:
claude_code: 'claude mcp add --transport http tradingpal https://api.tradingpal.io/mcp --header "Authorization: Bearer tp_live_…"'
codex: codex mcp add tradingpal --url https://api.tradingpal.io/mcp
demo:
symbols:
- AAPL
- NVDA
patterns_url: https://api.tradingpal.io/api/v1/demo/AAPL
families_url: https://api.tradingpal.io/api/v1/families
limits:
requests_per_minute: 60
requests_per_day: 10000
keyless_per_minute_per_ip: 30
disclaimer: Educational breakout-pattern analysis from TradingPal, not investment advice. Past results do not guarantee future outcomes.
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