patternfetch-com · Schema

MultiResponse

One brief per timeframe plus a cross-timeframe alignment read.

FintechMarketDataAPIStocksCrypto

Properties

Name Type Description
sym string
views array
alignment object
nl string
briefs array
disclaimer string
View JSON Schema on GitHub

JSON Schema

patternfetch-com-multi-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/patternfetch-com/json-schema/patternfetch-com-multi-response-schema.json",
  "title": "MultiResponse",
  "description": "One brief per timeframe plus a cross-timeframe alignment read.",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/patternfetch-com-api-openapi.json#/components/schemas/MultiResponse",
  "type": "object",
  "properties": {
    "sym": {
      "type": "string"
    },
    "views": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tf": {
            "type": "string"
          },
          "trend": {
            "type": "string",
            "enum": [
              "up",
              "down",
              "range"
            ]
          },
          "strength": {
            "type": "number"
          },
          "nl": {
            "type": "string"
          }
        }
      }
    },
    "alignment": {
      "type": "object",
      "properties": {
        "trends": {
          "type": "object",
          "additionalProperties": {
            "type": "string",
            "enum": [
              "up",
              "down",
              "range"
            ]
          },
          "description": "Trend per timeframe."
        },
        "aligned": {
          "type": "boolean"
        },
        "direction": {
          "type": "string",
          "enum": [
            "up",
            "down",
            "range"
          ]
        },
        "divergence": {
          "type": [
            "string",
            "null"
          ],
          "description": "Which timeframes disagree, or null when they agree."
        }
      }
    },
    "nl": {
      "type": "string"
    },
    "briefs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Brief"
      }
    },
    "disclaimer": {
      "type": "string"
    }
  },
  "$defs": {
    "Brief": {
      "type": "object",
      "description": "Token-compact market-state brief. Returned by /v1/brief and /v1/demo.",
      "properties": {
        "header": {
          "type": "object",
          "properties": {
            "sym": {
              "type": "string"
            },
            "tf": {
              "type": "string"
            },
            "src": {
              "type": "string",
              "enum": [
                "binance",
                "vwap-composite",
                "yahoo",
                "twelvedata"
              ],
              "description": "The venue that ACTUALLY served this series — not the one routing would have guessed. A failover shows up here."
            },
            "n": {
              "type": "integer"
            },
            "t0": {
              "type": "integer",
              "description": "first candle open time (epoch ms)"
            },
            "t1": {
              "type": "integer",
              "description": "last candle open time (epoch ms)"
            },
            "asOf": {
              "type": "integer",
              "description": "Epoch ms of the last bar in the series. What the brief is actually AS OF — not when it was requested."
            },
            "delay": {
              "type": "string",
              "enum": [
                "realtime",
                "delayed/EOD"
              ],
              "description": "Freshness class of the serving source. Equity sources are delayed/EOD; crypto is realtime."
            },
            "adjusted": {
              "type": "boolean",
              "description": "Present (true) only for equity sources, meaning the series is split/dividend adjusted. Omitted entirely for crypto."
            }
          }
        },
        "codec": {
          "type": "object",
          "description": "Compact candle codec.",
          "properties": {
            "rows": {
              "type": "string",
              "description": "Per-candle o,h,l,c,v joined by ';' (no per-row timestamp)."
            },
            "sax": {
              "type": "string",
              "description": "a-g SAX shape signature (<=8 chars)."
            },
            "precision": {
              "type": "integer",
              "description": "Decimal precision used in rows."
            }
          }
        },
        "analysis": {
          "type": "object",
          "properties": {
            "patterns": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Pattern name. Open set — new detectors add names, so do not treat this as a closed enum."
                  },
                  "confidence": {
                    "type": "number",
                    "description": "geometric quality score 0..1 (NOT a probability of profit)"
                  },
                  "at": {
                    "type": "integer"
                  },
                  "span": {
                    "type": "integer"
                  },
                  "evidence": {
                    "$ref": "#/$defs/PatternEvidence"
                  }
                }
              }
            },
            "levels": {
              "type": "object",
              "properties": {
                "support": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "price": {
                        "type": "number"
                      },
                      "strength": {
                        "type": "number"
                      }
                    }
                  }
                },
                "resistance": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "price": {
                        "type": "number"
                      },
                      "strength": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            },
            "regime": {
              "type": "object",
              "properties": {
                "trend": {
                  "type": "string",
                  "enum": [
                    "up",
                    "down",
                    "range"
                  ]
                },
                "strength": {
                  "type": "number"
                },
                "volPct": {
                  "type": "number",
                  "description": "ATR as % of price"
                }
              }
            },
            "indicators": {
              "type": "object",
              "description": "Interpreted indicator states, keyed by indicator name. OPEN-ENDED: the code returns a map, so do not assume only rsi/ema are present.",
              "properties": {
                "rsi": {
                  "type": "object",
                  "properties": {
                    "v": {
                      "type": "number"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "overbought",
                        "oversold",
                        "neutral"
                      ]
                    }
                  }
                },
                "ema": {
                  "type": "object",
                  "properties": {
                    "v": {
                      "type": "number"
                    },
                    "state": {
                      "type": "string"
                    }
                  }
                }
              },
              "additionalProperties": true
            },
            "nl": {
              "type": "string",
              "description": "One-line natural-language summary the agent can act on."
            }
          }
        },
        "disclaimer": {
          "type": "string"
        },
        "methodologyUrl": {
          "type": "string"
        },
        "notice": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Caveats that change how the payload should be read — today the cross-listing warning (e.g. \"BTC\" is a US security here, not Bitcoin). Serialized as the FIRST key so it is seen before the data it qualifies. Absent when there is nothing to warn about."
        }
      }
    },
    "LiftEvidence": {
      "type": "object",
      "description": "The pattern's measured edge over a pattern-free baseline. THIS is the number that says whether the pattern carries information, as opposed to merely riding a drifting market.",
      "properties": {
        "baseline": {
          "type": "number",
          "description": "Direction-matched unconditional rate: P(up) for a bullish pattern, P(down) for a bearish one."
        },
        "baselineN": {
          "type": "integer",
          "description": "Windows behind the baseline."
        },
        "lift": {
          "type": "number",
          "description": "hitRate - baseline, in rate points. Can be negative."
        },
        "ci95": {
          "type": "number",
          "description": "95% confidence-interval half-width on lift."
        },
        "ci95Clustered": {
          "type": "number",
          "description": "Half-width widened for overlapping windows. Present when the occurrences are not independent; it is the more honest of the two."
        },
        "informative": {
          "type": "boolean",
          "description": "Whether lift is distinguishable from zero given the interval. False is a normal, honest outcome — most patterns most of the time."
        },
        "reading": {
          "type": "string",
          "enum": [
            "above-baseline",
            "below-baseline",
            "indistinguishable-from-baseline"
          ],
          "description": "Plain-language verdict, so a caller does not have to redo the statistics."
        }
      }
    },
    "PatternEvidence": {
      "type": "object",
      "description": "Backtested evidence for a detected pattern. Absent when the pattern has no sufficiently-powered evidence bucket — an omitted `evidence` means \"we have not measured this\", never \"it does not work\".",
      "properties": {
        "hitRate": {
          "type": "number",
          "description": "Directional hit rate over the horizon, 0..1."
        },
        "horizon": {
          "type": "integer",
          "description": "Bars forward the outcome was measured over."
        },
        "n": {
          "type": "integer",
          "description": "Independent historical occurrences."
        },
        "scope": {
          "type": "string",
          "description": "Corpus the rate was measured over."
        },
        "ci95": {
          "type": "number",
          "description": "95% confidence-interval half-width on hitRate."
        },
        "lift": {
          "$ref": "#/$defs/LiftEvidence"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/patternfetch-com-multi-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.