TradingPal Families API

The five pattern families with their 20-year track record, and the symbols the nightly covers. Keyless.

GitHub OpenAPI

Operations 3

GET /families The pattern families with their track record #
GET /families/{family}/stats One family's track record #
GET /universe Symbols the nightly covers #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tradingpal-io:tradingpal-io-families-api"
All apis
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.

Get an API 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 Specification

tradingpal-io-families-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TradingPal pattern Families 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: families
  description: The five pattern families with their 20-year track record, and the symbols the nightly covers. Keyless.
paths:
  /families:
    get:
      operationId: listFamilies
      summary: The pattern families with their track record
      description: Returns the five pattern families with their 20-year backtest record. Quote each summary sentence whole; never present win_rate_pct without sample_size and avg_loss_pct. data_version is the manifest the records were sealed in. No key is needed; keyless calls are limited per IP.
      tags:
      - families
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Families'
        '429':
          description: rate_limited; wait details.retry_after_seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-mcp-tool: get_family_track_record
      security:
      - {}
      - ApiKey: []
      - OAuth2:
        - patterns
  /families/{family}/stats:
    get:
      operationId: getFamilyStats
      summary: One family's track record
      description: Returns one family's 20-year backtest record, the same block GET /families lists for it. An unknown family answers 404 unknown_family with the valid names in fix. No key is needed; keyless calls are limited per IP.
      tags:
      - families
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Family'
        '404':
          description: unknown_family
          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: family
        in: path
        required: true
        schema:
          type: string
          enum:
          - rising_wedge
          - falling_wedge
          - bullish_pennant
          - bearish_pennant
          - triangle
        description: 'One of the five family identifiers: rising_wedge, falling_wedge, bullish_pennant, bearish_pennant, triangle. Anything else answers 404 unknown_family.'
      x-mcp-tool: get_family_track_record
      security:
      - {}
      - ApiKey: []
      - OAuth2:
        - patterns
  /universe:
    get:
      operationId: listUniverse
      summary: Symbols the nightly covers
      description: Returns every symbol the active nightly manifest covers, sorted. Use it to check a symbol before tracking it; the unknown_symbol error from PUT /tickers points here. The list is empty when no manifest is active. No key is needed; the answer is cached for an hour and keyless calls are limited per IP.
      tags:
      - families
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Universe'
        '429':
          description: rate_limited; wait details.retry_after_seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - {}
      - ApiKey: []
      - OAuth2:
        - patterns
components:
  schemas:
    Family:
      type: object
      title: Family
      description: One pattern family with its 20-year record.
      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.
        family:
          type: string
          description: Family identifier.
          enum:
          - rising_wedge
          - falling_wedge
          - bullish_pennant
          - bearish_pennant
          - triangle
        label:
          type: string
          description: Human-readable family name.
        track_record:
          $ref: '#/components/schemas/StatBlock'
          description: The family's 20-year record. Null when no record is sealed in the active manifest.
      required:
      - api_version
      - as_of_session
      - source
      - disclaimer
      examples:
      - api_version: v1
        family: falling_wedge
        label: Falling wedge
        track_record:
          scope: family
          family: falling_wedge
          symbol: null
          win_rate_pct: 54.0
          sample_size: 1287
          wins: 695
          losses: 592
          avg_win_pct: 8.1
          avg_loss_pct: -4.2
          median_win_pct: 6.3
          avg_trade_pct: 2.4
          avg_r: 0.41
          expected_r: 0.41
          profit_factor: 1.61
          avg_hold_bars: 11.2
          backtest_range:
          - '2006-09-25'
          - '2026-09-25'
          measured: Every detector-confirmed breakout … open trades are excluded.
          summary: 'Falling wedge: 1,287 resolved trades from 2006-09-25 to 2026-09-25; 54% reached the target, average win +8.1%, average loss -4.2%, median win +6.3%.'
    StatBlock:
      type:
      - object
      - 'null'
      title: StatBlock
      description: 'A track record: how one pattern family resolved over the last 20 years of the served universe, or how it resolved on one ticker. Null where a record would go when none is stored; never a partial block. Never present win_rate_pct without sample_size and avg_loss_pct; quote summary whole.'
      properties:
        scope:
          type: string
          description: family when the record covers every ticker in the served universe, ticker when it covers one symbol; on /track-record, filtered for the trades a filter set kept and unfiltered for the same family's record without the filters.
          enum:
          - family
          - ticker
          - filtered
          - unfiltered
        family:
          type: string
          description: The pattern family the record is for (rising_wedge, falling_wedge, bullish_pennant, bearish_pennant, triangle; patterns for all five on /track-record).
        symbol:
          type:
          - string
          - 'null'
          description: The ticker at ticker scope; null at family scope.
        win_rate_pct:
          type:
          - number
          - 'null'
          description: Share of resolved trades that reached the target, as a percent (54.0 means 54%), one decimal. At ticker scope the stored rate is shrunk toward the family rate so a handful of trades cannot read as 0% or 100%; wins and losses stay raw. Never quote it without sample_size and avg_loss_pct.
        sample_size:
          type: integer
          description: 'Number of trades in the record: the stored trade count, or wins plus losses when no count is stored. The summary sentence quotes it as resolved trades.'
        wins:
          type: integer
          description: Resolved trades that reached the target.
        losses:
          type: integer
          description: Resolved trades that hit the stop. A bar that reaches both target and stop counts as a loss.
        avg_win_pct:
          type:
          - number
          - 'null'
          description: Mean price move of the winning trades from entry to exit, as a percent of the entry price (positive), two decimals.
        avg_loss_pct:
          type:
          - number
          - 'null'
          description: Mean price move of the losing trades from entry to exit, as a percent of the entry price (negative), two decimals.
        median_win_pct:
          type:
          - number
          - 'null'
          description: 'Median winning move as a percent of the entry price: the typical win, less sensitive to outliers than avg_win_pct.'
        avg_trade_pct:
          type:
          - number
          - 'null'
          description: Mean price move over all resolved trades, wins and losses together, as a percent of the entry price.
        avg_r:
          type:
          - number
          - 'null'
          description: Mean R multiple over resolved trades, where one R is the entry-to-stop distance; 0.41 means the average trade made 0.41 times its risk.
        expected_r:
          type:
          - number
          - 'null'
          description: 'Per-trade expectancy in R: win rate times the average winning R plus loss rate times the average losing R. Equals avg_r when both come from the same trades.'
        profit_factor:
          type:
          - number
          - 'null'
          description: Gross R of the winning trades divided by gross R of the losing trades; above 1 means the wins outweigh the losses. Null when the record has no losses.
        avg_hold_bars:
          type:
          - number
          - 'null'
          description: Mean number of daily bars (sessions) from entry to exit over resolved trades, one decimal.
        backtest_range:
          type:
          - array
          - 'null'
          items:
            type: string
            description: An ISO date.
            format: date
          minItems: 2
          maxItems: 2
          description: The window the trades were taken from, as [first date, last date] in ISO format, at most the last 20 years. Null when the record carries no dates.
        measured:
          type: string
          description: 'The measurement rule in one paragraph: how entries, stops, targets and exits are counted. Identical on every block.'
        summary:
          type: string
          description: One sentence with the sample size, the window, the win rate, the average win, the average loss and the median win. Quote it whole rather than picking numbers out of it.
      examples:
      - scope: family
        family: falling_wedge
        symbol: null
        win_rate_pct: 54.0
        sample_size: 1287
        wins: 695
        losses: 592
        avg_win_pct: 8.1
        avg_loss_pct: -4.2
        median_win_pct: 6.3
        avg_trade_pct: 2.4
        avg_r: 0.41
        expected_r: 0.41
        profit_factor: 1.61
        avg_hold_bars: 11.2
        backtest_range:
        - '2006-09-25'
        - '2026-09-25'
        measured: Every detector-confirmed breakout … open trades are excluded.
        summary: 'Falling wedge: 1,287 resolved trades from 2006-09-25 to 2026-09-25; 54% reached the target, average win +8.1%, average loss -4.2%, median win +6.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
    Families:
      type: object
      title: Families
      description: Every pattern family with its 20-year record.
      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.
        families:
          type: array
          description: One entry per family, in the fixed order rising_wedge, falling_wedge, bullish_pennant, bearish_pennant, triangle.
          items:
            type: object
            description: One pattern family with its record.
            properties:
              family:
                type: string
                description: Family identifier.
                enum:
                - rising_wedge
                - falling_wedge
                - bullish_pennant
                - bearish_pennant
                - triangle
              label:
                type: string
                description: Human-readable family name.
              track_record:
                $ref: '#/components/schemas/StatBlock'
                description: The family's 20-year record. Null when no record is sealed in the active manifest.
      required:
      - api_version
      - as_of_session
      - source
      - disclaimer
      examples:
      - api_version: v1
        families:
        - family: falling_wedge
          label: Falling wedge
          track_record:
            scope: family
            family: falling_wedge
            symbol: null
            win_rate_pct: 54.0
            sample_size: 1287
            wins: 695
            losses: 592
            avg_win_pct: 8.1
            avg_loss_pct: -4.2
            median_win_pct: 6.3
            avg_trade_pct: 2.4
            avg_r: 0.41
            expected_r: 0.41
            profit_factor: 1.61
            avg_hold_bars: 11.2
            backtest_range:
            - '2006-09-25'
            - '2026-09-25'
            measured: Every detector-confirmed breakout … open trades are excluded.
            summary: 'Falling wedge: 1,287 resolved trades from 2006-09-25 to 2026-09-25; 54% reached the target, average win +8.1%, average loss -4.2%, median win +6.3%.'
    Universe:
      type: object
      title: Universe
      description: The symbols the active nightly manifest covers.
      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.
        count:
          type: integer
          description: Number of symbols.
        symbols:
          type: array
          description: Every symbol the active nightly manifest covers, sorted. Empty when no manifest is active.
          items:
            type: string
            description: Exchange symbol, upper case.
      required:
      - api_version
      - as_of_session
      - source
      - disclaimer
      examples:
      - api_version: v1
        count: 2
        symbols:
        - AAPL
        - NVDA
  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