changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "asOf": {
+ "description": "The trading session this response describes (YYYY-MM-DD, US Eastern).",
+ "format": "date",
+ "type": "string"
+ },
+ "charged": {
+ "additionalProperties": false,
+ "description": "What this call cost. Only the symbols in results are charged.",
+ "properties": {
+ "perSymbolUsd": {
+ "description": "The price per served symbol, in US dollars.",
+ "type": "string"
+ },
+ "symbols": {
+ "description": "How many symbols were served and charged: the length of results.",
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "totalUsd": {
+ "description": "What this call cost, in US dollars: the amount the 402 stated for it.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "symbols",
+ "perSymbolUsd",
+ "totalUsd"
+ ],
+ "type": "object"
+ },
+ "disclaimer": {
+ "const": "For informational purposes only. Not investment advice.",
+ "description": "Always the same sentence.",
+ "type": "string"
+ },
+ "lookupOnly": {
+ "description": "Stocks outside the ones with a page on regimecard.com. The batch does not compute them; the single-symbol lookup serves each one, one symbol per call. Not charged.",
+ "items": {
+ "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "notCovered": {
+ "description": "What Regime Card cannot serve at all: a stock whose price series stopped, or an entry that is not a symbol. Not charged.",
+ "items": {
+ "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "record": {
+ "additionalProperties": false,
+ "description": "The public, hash-linked record of the daily settled regime reading: its percentile and its regime label. It covers nothing else in this response: not the stress gate, stock or coin figures, the scorecard, or a live intraday reading. The same on every response.",
+ "properties": {
+ "covers": {
+ "const": "the daily settled regime reading",
+ "description": "The reading it covers: the percentile and the regime label of each daily settled reading, and nothing else in this response.",
+ "type": "string"
+ },
+ "ledger": {
+ "const": "https://regimecard.com/api/ledger",
+ "description": "Every entry as JSON, each with the hash of the entry before it.",
+ "format": "uri",
+ "type": "string"
+ },
+ "note": {
+ "const": "Each settled regime reading is added to a public, hash-linked record the day it is published; a correction is a new entry, never an edit.",
+ "description": "The same facts in one plain sentence.",
+ "type": "string"
+ },
+ "verify": {
+ "const": "https://regimecard.com/verify",
+ "description": "The page that explains the hash chain and checks every entry in the browser.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "verify",
+ "ledger",
+ "covers",
+ "note"
+ ],
+ "type": "object"
+ },
+ "regime": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "description": "The regime, as a stable key.",
+ "enum": [
+ "risk_off",
+ "mildly_off",
+ "neutral",
+ "mildly_on",
+ "risk_on"
+ ],
+ "type": "string"
+ },
+ "label": {
+ "description": "The regime, as the card prints it.",
+ "enum": [
+ "RISK-OFF",
+ "MILDLY OFF",
+ "NEUTRAL",
+ "MILDLY ON",
+ "RISK-ON"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "description": "The regime, in sentence case.",
+ "enum": [
+ "Risk-Off",
+ "Mildly Off",
+ "Neutral",
+ "Mildly On",
+ "Risk-On"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "key",
+ "label",
+ "name"
+ ],
+ "type": "object"
+ },
+ "related": {
+ "description": "The other paid routes: for each, its path, the question it answers and its price per call. Each is a separate call.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "path": {
+ "description": "The route's path on this origin.",
+ "type": "string"
+ },
+ "per": {
+ "description": "What the price is for: one call, or each covered symbol of one call.",
+ "enum": [
+ "call",
+ "covered symbol"
+ ],
+ "type": "string"
+ },
+ "priceUsd": {
+ "description": "The price in US dollars, paid in USDC.",
+ "type": "string"
+ },
+ "question": {
+ "description": "The question the route answers.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "path",
+ "question",
+ "priceUsd",
+ "per"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "research": {
+ "additionalProperties": false,
+ "description": "A published Regime Card study of the current regime. Present only when one exists for it.",
+ "properties": {
+ "title": {
+ "description": "The study's title.",
+ "type": "string"
+ },
+ "url": {
+ "description": "The study on regimecard.com.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "title",
+ "url"
+ ],
+ "type": "object"
+ },
+ "results": {
+ "description": "One entry per symbol served, in the order asked, with the fields a single lookup returns for it.",
+ "items": {
+ "additionalProperties": false,
+ "description": "One entry: the symbol asked for.",
+ "properties": {
+ "asOf": {
+ "description": "The session of the symbol's newest price in the figures (YYYY-MM-DD).",
+ "format": "date",
+ "type": "string"
+ },
+ "covered": {
+ "description": "False when Regime Card cannot serve this symbol: it has no price history, or its price series stopped. Never an error.",
+ "type": "boolean"
+ },
+ "horizons": {
+ "description": "One row per holding period, for the current regime.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "history": {
+ "description": "How much history is behind the row: full, limited, or none (too little to print a figure).",
+ "enum": [
+ "full",
+ "limited",
+ "none"
+ ],
+ "type": "string"
+ },
+ "horizon": {
+ "description": "The holding period.",
+ "enum": [
+ "1m",
+ "2m",
+ "3m",
+ "6m",
+ "12m"
+ ],
+ "type": "string"
+ },
+ "roseSharePct": {
+ "description": "How often the symbol rose over the period when it started in the current regime, in percent of past periods.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "typicalReturnPct": {
+ "description": "The typical (median) return over the period when it started in the current regime, in percent.",
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "horizon",
+ "typicalReturnPct",
+ "roseSharePct",
+ "history"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "The stock's or coin's name.",
+ "type": "string"
+ },
+ "page": {
+ "const": false,
+ "description": "Present, and false, on a US stock served on demand: it is outside the stocks that have a page on regimecard.com, so it carries no url and no peers.",
+ "type": "boolean"
+ },
+ "peers": {
+ "description": "For a stock: up to 5 peer symbols from the symbol's page. Symbols only, no figures.",
+ "items": {
+ "description": "A peer's symbol.",
+ "type": "string"
+ },
+ "maxItems": 5,
+ "minItems": 1,
+ "type": "array"
+ },
+ "peersNote": {
+ "description": "Present with peers: what a peer's figures cost.",
+ "type": "string"
+ },
+ "sensitivity": {
+ "description": "For a stock: how much its typical 3-month return moves from one regime to another, as a multiple of the S&P 500's. The figure on the symbol's page. Absent when the page prints none.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "symbol": {
+ "description": "The symbol as asked, upper case, a dotted share class with its dash (BRK.B is BRK-B).",
+ "type": "string"
+ },
+ "type": {
+ "description": "What it is.",
+ "enum": [
+ "stock",
+ "etf",
+ "crypto"
+ ],
+ "type": "string"
+ },
+ "url": {
+ "description": "The symbol's page on regimecard.com, with the same figures. Absent for a stock served on demand.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "symbol",
+ "covered"
+ ],
+ "type": "object"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "source": {
+ "const": "https://regimecard.com",
+ "description": "Where the reading is published.",
+ "type": "string"
+ },
+ "status": {
+ "description": "\"live\": computed during the session and still provisional. \"settled\": final for its session.",
+ "enum": [
+ "live",
+ "settled"
+ ],
+ "type": "string"
+ },
+ "unavailable": {
+ "description": "Covered symbols whose figures could not be built right now. Not charged.",
+ "items": {
+ "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "asOf",
+ "status",
+ "regime",
+ "results",
+ "notCovered",
+ "unavailable",
+ "lookupOnly",
+ "charged",
+ "related",
+ "record",
+ "disclaimer",
+ "source"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "The answer for a request in which no symbol can be served, unless every one of them is only unavailable right now (a 503). It is free: no payment is asked for it, and a payment that was attached is never verified or settled. It carries no regime and no charge: each symbol is in the list that says why it was not served.",
+ "properties": {
+ "asOf": {
+ "description": "The trading session this response describes (YYYY-MM-DD, US Eastern).",
+ "format": "date",
+ "type": "string"
+ },
+ "disclaimer": {
+ "const": "For informational purposes only. Not investment advice.",
+ "description": "Always the same sentence.",
+ "type": "string"
+ },
+ "lookupOnly": {
+ "description": "Stocks outside the ones with a page on regimecard.com. The batch does not compute them; the single-symbol lookup serves each one, one symbol per call. Not charged.",
+ "items": {
+ "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "notCovered": {
+ "description": "What Regime Card cannot serve at all: a stock whose price series stopped, or an entry that is not a symbol. Not charged.",
+ "items": {
+ "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "results": {
+ "description": "Empty: no symbol in the request could be served.",
+ "maxItems": 0,
+ "type": "array"
+ },
+ "source": {
+ "const": "https://regimecard.com",
+ "description": "Where the reading is published.",
+ "type": "string"
+ },
+ "status": {
+ "description": "\"live\": computed during the session and still provisional. \"settled\": final for its session.",
+ "enum": [
+ "live",
+ "settled"
+ ],
+ "type": "string"
+ },
+ "unavailable": {
+ "description": "Covered symbols whose figures could not be built right now. Not charged.",
+ "items": {
+ "description": "A symbol, upper case, a dotted share class with its dash (BRK.B is BRK-B). An entry that is not a symbol is shown with \"?\" for each character a symbol cannot carry, cut to 20 characters.",
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "asOf",
+ "status",
+ "results",
+ "notCovered",
+ "unavailable",
+ "lookupOnly",
+ "disclaimer",
+ "source"
+ ],
+ "type": "object"
+ }
+ ],
+ "type": "object"
+}