{
  "components": {
    "responses": {
      "Refusal": {
        "content": {
          "application/json": {
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Refusal"
                },
                {
                  "$ref": "#/components/schemas/PluginRefusal"
                }
              ]
            }
          }
        },
        "description": "A refusal: `error` a code, `reason` what to change; a plugin's carries `plugin` and its own code.",
        "headers": {
          "x-taji-proof": {
            "description": "On the 401 to a request carrying `x-taji-nonce` and no token of this run's: HMAC-SHA256 of `<port>:<nonce>` under the `local` token, then under the `agent` token, hex, `, ` between.",
            "schema": {
              "type": "string"
            }
          }
        }
      }
    },
    "schemas": {
      "Access": {
        "description": "What a plan lets a provider do with a class.",
        "oneOf": [
          {
            "enum": [
              "realtime",
              "refused"
            ],
            "type": "string"
          },
          {
            "const": "delayed",
            "description": "Streams late.",
            "type": "string"
          },
          {
            "const": "history",
            "description": "History served, nothing streams.",
            "type": "string"
          }
        ]
      },
      "AccountAlias": {
        "additionalProperties": false,
        "description": "What the user reads an account as.",
        "properties": {
          "alias": {
            "description": "The new name: not blank, 64 characters at most, no other row's.",
            "type": "string"
          },
          "id": {
            "description": "The row's handle, as `link.accounts` reads it.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "alias"
        ],
        "type": "object"
      },
      "AccountBook": {
        "description": "One account's book, its day, and the venue's own money and state.",
        "properties": {
          "account": {
            "description": "The handle.",
            "type": "string"
          },
          "arm": {
            "$ref": "#/components/schemas/ArmWord",
            "description": "The environment the account's arm reaches."
          },
          "as_of": {
            "description": "When the last refresh pass listed and reconciled the venue, an ISO 8601 UTC time.",
            "type": [
              "string",
              "null"
            ]
          },
          "clock": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VenueClock"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether the venue is open, `null` from a venue that publishes no clock."
          },
          "day": {
            "$ref": "#/components/schemas/Day"
          },
          "halt": {
            "description": "The human halt is on: nothing of ours sends.",
            "type": "boolean"
          },
          "margin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Margin"
              },
              {
                "type": "null"
              }
            ],
            "description": "The venue's own margin and liquidation state, `null` from a venue that states none."
          },
          "money": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "The venue's own money, `null` until the venue first answers and forever on an arm with none to ask."
          },
          "open_risk": {
            "description": "The dollars the working stops put at risk on the rows of ours; `null` where no row of ours has both a basis and a stop.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "paused_until": {
            "description": "Until when the venue rate limits the account's reads, an ISO 8601 UTC time.",
            "type": [
              "string",
              "null"
            ]
          },
          "positions": {
            "description": "One row per symbol held, ours and the venue's.",
            "items": {
              "$ref": "#/components/schemas/Position"
            },
            "type": "array"
          },
          "refresh_failed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RefreshFailure"
              },
              {
                "type": "null"
              }
            ],
            "description": "The failed venue reads since the last pass where every one answered; `null` while reads succeed."
          },
          "routes": {
            "description": "The venue's route list, read once per bind; `null` elsewhere.",
            "items": {
              "$ref": "#/components/schemas/VenueRoute"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "account",
          "arm",
          "positions",
          "halt",
          "day",
          "open_risk",
          "money",
          "margin",
          "clock",
          "routes",
          "as_of",
          "paused_until",
          "refresh_failed"
        ],
        "type": "object"
      },
      "AccountChanged": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/LinkedAccount"
          },
          {
            "$ref": "#/components/schemas/Changed"
          }
        ],
        "description": "What `link/accounts/<handle>/{approve,approvals}` answer: the row as `link.accounts` reads it, else the node when no trusted row lists it."
      },
      "AccountDay": {
        "description": "An account's day since ET midnight (a coin's from 16:00 ET of the previous NYSE session's date).",
        "properties": {
          "pct": {
            "description": "`pnl` over the equity the day started on; `null` until the venue answers its equity.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "pnl": {
            "description": "Today's P&L: what closed, the open rows and the fees made together; `null` with no fill, fee or open row.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "realized": {
            "description": "What today's executions booked against the average cost each met, gross of fees.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "unpriced": {
            "description": "Executions that closed a lot whose basis is not stated, plus held rows with no prior close.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "pnl",
          "pct",
          "realized",
          "unpriced"
        ],
        "type": "object"
      },
      "AccountFills": {
        "description": "An account's fills, ascending by `at`.",
        "items": {
          "$ref": "#/components/schemas/Fill"
        },
        "type": "array"
      },
      "AccountState": {
        "description": "Where a linked account stands.",
        "oneOf": [
          {
            "const": "bound",
            "description": "The running root brought it up.",
            "type": "string"
          },
          {
            "const": "connecting",
            "description": "A boot is bringing it up.",
            "type": "string"
          },
          {
            "const": "locked",
            "description": "Its record is sealed in the locked vault.",
            "type": "string"
          },
          {
            "const": "failed",
            "description": "Its venue arm would not bind or its boot check failed; retried.",
            "type": "string"
          },
          {
            "const": "unbound",
            "description": "Nothing has brought it up.",
            "type": "string"
          }
        ]
      },
      "Accounts": {
        "description": "The accounts this device has linked, in link order.",
        "items": {
          "$ref": "#/components/schemas/LinkedAccount"
        },
        "type": "array"
      },
      "ActivateHolder": {
        "description": "Who holds an order's `activate` rule until it passes.",
        "oneOf": [
          {
            "enum": [
              "venue"
            ],
            "type": "string"
          },
          {
            "const": "taji",
            "description": "Fires only while Taji runs.",
            "type": "string"
          }
        ]
      },
      "Activation": {
        "description": "Who holds an `activate` price rule until it passes, per orderable class:\n`venue`, `taji` (fires only while Taji runs) or `null` (refused).",
        "properties": {
          "crypto": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivateHolder"
              },
              {
                "type": "null"
              }
            ]
          },
          "equity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivateHolder"
              },
              {
                "type": "null"
              }
            ]
          },
          "future": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivateHolder"
              },
              {
                "type": "null"
              }
            ]
          },
          "future_option": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivateHolder"
              },
              {
                "type": "null"
              }
            ]
          },
          "option": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivateHolder"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "equity",
          "option",
          "future",
          "crypto",
          "future_option"
        ],
        "type": "object"
      },
      "ActivationState": {
        "description": "Where an order Taji holds for a price rule stands.",
        "oneOf": [
          {
            "const": "held",
            "description": "Held until its rule passes.",
            "type": "string"
          },
          {
            "const": "sending",
            "description": "Its rule passed; the venue has not answered the place.",
            "type": "string"
          },
          {
            "const": "cancelled",
            "description": "Released before it fired.",
            "type": "string"
          },
          {
            "const": "expired",
            "description": "Its time in force ended while held.",
            "type": "string"
          },
          {
            "const": "rejected",
            "description": "The place was refused.",
            "type": "string"
          }
        ]
      },
      "Actor": {
        "description": "Who authored the draft. `Agent` carries the proposal's own provenance — the\nsession that proposed it and the reason it gave — which is what the ticket\nshows and what [`Actor::compose`] routes on. It is NOT a routing identity:\nthe gate's source key is the fixed `taji-agent` row.",
        "oneOf": [
          {
            "enum": [
              "Human"
            ],
            "type": "string"
          },
          {
            "description": "An agent's proposal.",
            "properties": {
              "Agent": {
                "properties": {
                  "rationale": {
                    "description": "The reason the agent gave.",
                    "type": "string"
                  },
                  "session_id": {
                    "description": "The proposing agent's session.",
                    "type": "string"
                  }
                },
                "required": [
                  "session_id",
                  "rationale"
                ],
                "type": "object"
              }
            },
            "required": [
              "Agent"
            ],
            "type": "object"
          }
        ]
      },
      "Adjust": {
        "description": "Once `at` trades, the stop leg becomes `to`.",
        "properties": {
          "at": {
            "description": "The price that, once it trades, applies `to`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "to": {
            "$ref": "#/components/schemas/AdjustTo",
            "description": "What the stop leg becomes."
          }
        },
        "required": [
          "at",
          "to"
        ],
        "type": "object"
      },
      "AdjustAsk": {
        "additionalProperties": false,
        "description": "Once `at` trades, the stop leg becomes `to`.",
        "properties": {
          "at": {
            "description": "The price that, once it trades, applies `to`.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "to": {
            "$ref": "#/components/schemas/AdjustToAsk",
            "description": "What the stop leg becomes."
          }
        },
        "required": [
          "at",
          "to"
        ],
        "type": "object"
      },
      "AdjustTo": {
        "description": "What an [`Adjust`]ed stop leg becomes.",
        "oneOf": [
          {
            "properties": {
              "Stop": {
                "description": "The stop price.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Stop"
            ],
            "type": "object"
          },
          {
            "description": "A stop-limit.",
            "properties": {
              "StopLimit": {
                "properties": {
                  "limit": {
                    "description": "The limit it rests at once triggered.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "stop": {
                    "description": "The price that triggers it.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  }
                },
                "required": [
                  "stop",
                  "limit"
                ],
                "type": "object"
              }
            },
            "required": [
              "StopLimit"
            ],
            "type": "object"
          },
          {
            "description": "A trailing stop.",
            "properties": {
              "TrailingStop": {
                "properties": {
                  "stop": {
                    "description": "The stop price it starts from.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "trail": {
                    "$ref": "#/components/schemas/Trail"
                  }
                },
                "required": [
                  "stop",
                  "trail"
                ],
                "type": "object"
              }
            },
            "required": [
              "TrailingStop"
            ],
            "type": "object"
          }
        ]
      },
      "AdjustToAsk": {
        "description": "What an [`Adjust`]ed stop leg becomes.",
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "Stop": {
                "description": "The stop price.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Stop"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A stop-limit.",
            "properties": {
              "StopLimit": {
                "properties": {
                  "limit": {
                    "description": "The limit it rests at once triggered.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "stop": {
                    "description": "The price that triggers it.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  }
                },
                "required": [
                  "stop",
                  "limit"
                ],
                "type": "object"
              }
            },
            "required": [
              "StopLimit"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A trailing stop.",
            "properties": {
              "TrailingStop": {
                "properties": {
                  "stop": {
                    "description": "The stop price it starts from.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "trail": {
                    "$ref": "#/components/schemas/TrailAsk"
                  }
                },
                "required": [
                  "stop",
                  "trail"
                ],
                "type": "object"
              }
            },
            "required": [
              "TrailingStop"
            ],
            "type": "object"
          }
        ]
      },
      "Adoption": {
        "additionalProperties": false,
        "description": "A confirmed break adopted: the book moved to the venue's quantity and\naverage entry price, as the last refresh pass read them.",
        "properties": {
          "class": {
            "default": null,
            "description": "`equity`, `option`, `future` or `crypto` (another word 400): required only when Taji holds no single filled key for the instrument, and never overriding one.",
            "type": [
              "string",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "reason": {
            "default": null,
            "description": "Why, journaled; absent or empty 409 `reason_required`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "AfterOpen": {
        "description": "A linked form's act: the `https://` page its button opens.",
        "properties": {
          "label": {
            "description": "The button's words, at most 40 characters.",
            "type": "string"
          },
          "to": {
            "description": "An `https://` URL.",
            "type": "string"
          }
        },
        "required": [
          "to",
          "label"
        ],
        "type": "object"
      },
      "AgentAnnotationPatch": {
        "additionalProperties": false,
        "description": "The changes to apply to an existing annotation. Set `style` to restyle it and/or `label` to edit its caption; omit a field to leave it unchanged.",
        "properties": {
          "group": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ClearableLabel"
              },
              {
                "type": "null"
              }
            ],
            "description": "Put the drawing in a named group (`{\"set\": \"<name>\"}`), or take it out (`\"clear\"`). Omit to leave its group unchanged."
          },
          "label": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ClearableLabel"
              },
              {
                "type": "null"
              }
            ],
            "description": "Edit the annotation's caption. Send a string to set it, or the value `\"clear\"`-shaped object to remove it. Omit to leave the label untouched."
          },
          "style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Replace the annotation's full visual style (color, opacity, width, dash); a style without `text` keeps the annotation's text rows. Omit to leave styling unchanged."
          },
          "z_index": {
            "description": "The drawing's paint order among the chart's drawings: a higher `z_index` draws over a lower one (the chart's Visual order). Omit to leave it unchanged.",
            "format": "int16",
            "maximum": 32767,
            "minimum": -32768,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "AgentLayoutPreset": {
        "description": "The layout's shape: `single` (1 pane), `two_col` (2 side-by-side), `two_row` (2 stacked), `three_col` (3 side-by-side), `left_major_right_stacked` (1 large left + 2 stacked right), `quad_grid` (2×2). Slots are its stacks in reading order from 0.",
        "enum": [
          "single",
          "two_col",
          "two_row",
          "three_col",
          "left_major_right_stacked",
          "quad_grid"
        ],
        "type": "string"
      },
      "AgentLineWidth": {
        "description": "How thick the line/border is drawn. `thin` is a 1px hairline, `medium` (the usual default) is 2px, `thick` is 3px. Choose by emphasis; there is no free-form pixel value.",
        "oneOf": [
          {
            "const": "thin",
            "description": "1px logical stroke.",
            "type": "string"
          },
          {
            "const": "medium",
            "description": "2px logical stroke (the common default).",
            "type": "string"
          },
          {
            "const": "thick",
            "description": "3px logical stroke.",
            "type": "string"
          }
        ]
      },
      "AgentOffer": {
        "description": "An agent the Agent panel offers.",
        "properties": {
          "id": {
            "description": "`claude`, `codex`, `antigravity`, `grok`, `cursor` or `muse`.",
            "type": "string"
          },
          "installed": {
            "description": "Whether the vendor's CLI is on `PATH`, and for the first two Node 22 or later.",
            "type": "boolean"
          },
          "last": {
            "description": "Whether it is the last Desk's agent (`false` on all before the Agent panel has opened).",
            "type": "boolean"
          },
          "name": {
            "description": "The agent's name as the panel shows it.",
            "type": "string"
          },
          "why": {
            "description": "The sentence when not `installed`, else `null`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "installed",
          "why",
          "last"
        ],
        "type": "object"
      },
      "AgentOffers": {
        "description": "Every agent the Agent panel offers.",
        "items": {
          "$ref": "#/components/schemas/AgentOffer"
        },
        "type": "array"
      },
      "AgentPaneKind": {
        "anyOf": [
          {
            "enum": [
              "chart",
              "ladder",
              "book",
              "watchlist",
              "alerts",
              "notes",
              "calendar",
              "screener"
            ],
            "type": "string"
          },
          {
            "const": "details",
            "description": "Details and news on the watchlist's picked row.",
            "type": "string"
          },
          {
            "const": "chain",
            "description": "The option chain.",
            "type": "string"
          },
          {
            "const": "ticket",
            "description": "The order ticket.",
            "type": "string"
          },
          {
            "const": "table",
            "description": "The data table.",
            "type": "string"
          },
          {
            "const": "news",
            "description": "Headlines for a symbol.",
            "type": "string"
          },
          {
            "const": "financials",
            "description": "Statements, ratios and executives.",
            "type": "string"
          },
          {
            "const": "filings",
            "description": "SEC filings, holdings, stakes and insiders.",
            "type": "string"
          },
          {
            "const": "agent",
            "description": "The Agent's conversation.",
            "type": "string"
          },
          {
            "type": "string"
          }
        ],
        "description": "What the pane shows: `chart`, `ladder` (the focused chart's price ladder), `book` (the account's equity, positions and orders), `watchlist`, `details` (the watchlist's picked row), `alerts`, `notes`, `chain` (the option chain), `ticket` (the order ticket), `table` (the focused chart's bars and indicators as a table), `news` (headlines for a symbol), `financials` (statements, ratios and executives), `filings` (SEC filings, holdings, stakes and insiders), `calendar`, `screener`, `agent` (the conversation), or an enabled plugin's pane kind, `<plugin>.<word>`. Only a `chart` pane takes `symbol`, `timeframe` and `window`."
      },
      "AgentPanePosition": {
        "description": "Where the pane lands against the anchor: `left`, `right`, `above` or `below` halves the anchor's stack, the pane on that side (a half under a pane's least size cannot split: `no_room`; in the canvas's 24 lines, columns by rows, a chart takes 6x6, a ladder 5x7, a book 7x4, a chain 9x7, any other kind 3x3); `tab` adds it to the anchor's stack as its active tab.",
        "enum": [
          "left",
          "right",
          "above",
          "below",
          "tab"
        ],
        "type": "string"
      },
      "AgentRegistration": {
        "description": "The MCP bridge beside this binary and the platforms registered with it.",
        "properties": {
          "bridge": {
            "description": "The absolute path of the `taji-mcp` beside this binary (`taji-mcp.exe` on Windows), `TAJI_BRIDGE` overriding.",
            "type": "string"
          },
          "first_at": {
            "description": "The first request on the `agent` token, the MCP bridge's, to this state dir (RFC3339 UTC), `null` before one.",
            "type": [
              "string",
              "null"
            ]
          },
          "platforms": {
            "description": "One row per platform `taji-register list` finds, read at boot, after each verb and on `detect`\nand held between: a read never spawns. `null` where there is no `taji-register` beside this\nbinary (`TAJI_REGISTER` overriding).",
            "items": {
              "$ref": "#/components/schemas/Platform"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "first_at",
          "bridge",
          "platforms"
        ],
        "type": "object"
      },
      "AgentSetup": {
        "description": "The bridge, its platforms and the chats open on the running agent.",
        "properties": {
          "bridge": {
            "description": "The absolute path of the `taji-mcp` beside this binary (`taji-mcp.exe` on Windows), `TAJI_BRIDGE` overriding.",
            "type": "string"
          },
          "first_at": {
            "description": "The first request on the `agent` token, the MCP bridge's, to this state dir (RFC3339 UTC), `null` before one.",
            "type": [
              "string",
              "null"
            ]
          },
          "hands": {
            "description": "Every chat open on the running adapter that was asked or loaded, highest precedence first,\nthen by session; `[]` while no agent runs.",
            "items": {
              "$ref": "#/components/schemas/Hand"
            },
            "type": "array"
          },
          "platforms": {
            "description": "One row per platform `taji-register list` finds, read at boot, after each verb and on `detect`\nand held between: a read never spawns. `null` where there is no `taji-register` beside this\nbinary (`TAJI_REGISTER` overriding).",
            "items": {
              "$ref": "#/components/schemas/Platform"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "first_at",
          "bridge",
          "platforms",
          "hands"
        ],
        "type": "object"
      },
      "AgentStopped": {
        "description": "The panel closed.",
        "properties": {
          "stopped": {
            "description": "`false` when a channel's turn was left running: the phone is still waiting on its answer.",
            "type": "boolean"
          }
        },
        "required": [
          "stopped"
        ],
        "type": "object"
      },
      "AgentStyle": {
        "additionalProperties": false,
        "description": "The visual style of an annotation: its color, how opaque it is, how thick its line is, and its dash pattern.",
        "properties": {
          "color": {
            "description": "The stroke/fill color as a CSS-style hex string `#RRGGBB` (e.g. `#3b82f6` for blue) or a basic color name (`red`, `green`, `blue`, `orange`, `yellow`, `purple`, `cyan`, `magenta`, `white`, `black`, `gray`). The leading `#` is optional for hex. Alpha is NOT part of the color — use the separate `opacity` field to fade the whole annotation.",
            "type": "string"
          },
          "line_style": {
            "$ref": "#/components/schemas/AnnotationLineStyle",
            "description": "Stroke dash pattern: `solid` (unbroken), `dashed` (long dashes), or `dotted` (short dots)."
          },
          "opacity": {
            "description": "How opaque the whole annotation is, from 0.0 (invisible) to 1.0 (fully solid). Use a reduced value (e.g. 0.5) to de-emphasize a drawing. This fades the entire annotation uniformly; it is independent of the `color`.",
            "format": "float",
            "maximum": 1.0,
            "minimum": 0.0,
            "type": "number"
          },
          "text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TextStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "A `note`'s or `callout`'s text settings: font, colors, border, wrap, name and the intervals it shows on. Omit for the tool's defaults."
          },
          "width": {
            "$ref": "#/components/schemas/AgentLineWidth",
            "description": "Line/border thickness — `thin`, `medium`, or `thick`. See the width type for the pixel mapping."
          }
        },
        "required": [
          "color",
          "opacity",
          "width",
          "line_style"
        ],
        "type": "object"
      },
      "AgentWindow": {
        "additionalProperties": false,
        "description": "A frozen historical time window in UTC seconds (inclusive). The pane shows this range as a static exhibit: bars come from the historical corpus, nothing streams, the view is anchored to [start, end + one window-length of forward outcome], and a date-range badge marks it. The window must lie inside the symbol's available history — an out-of-range window is REJECTED with the available extent (`range_unavailable`), never clamped.",
        "properties": {
          "end_utc": {
            "description": "Window end in UTC seconds (inclusive). Must be after `start_utc`.",
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "label": {
            "description": "Short outcome caption rendered on the pane's badge after the date range (≤48 chars). ALWAYS label evidence windows with what happened next, computed from the match's forward stats — e.g. \"+1.3% in 80 bars\" or \"the bear case: −3.9%\" — so each exhibit is self-describing at a glance. Omit for no caption.",
            "maxLength": 48,
            "type": [
              "string",
              "null"
            ]
          },
          "start_utc": {
            "description": "Window start in UTC seconds (inclusive).",
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "start_utc",
          "end_utc"
        ],
        "type": "object"
      },
      "AlertCondition": {
        "additionalProperties": false,
        "description": "One condition of an alert: a price level, a move, a drawing's level or an\nindicator's, by the members it states.",
        "properties": {
          "bars": {
            "description": "A move's closed bars back, 1-300.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "drawing": {
            "description": "An annotation's id on the Desk: the level is the drawing's, computed each poll.",
            "type": [
              "string",
              "null"
            ]
          },
          "of": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "An indicator's plot the condition reads in place of the price; absent, `\"price\"`."
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A level, or a channel's lower edge: a positive number, `\"price\"` or an indicator's plot."
          },
          "upper": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A channel's upper edge, as `price` is."
          },
          "value": {
            "description": "A move's size, in price or for `_pct` words in percent of the close `bars` back (at least 0.01).",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/When"
              },
              {
                "type": "null"
              }
            ],
            "description": "`crosses`, `crosses_up`, `crosses_down`, `above`, `below`, `entering_channel`, `exiting_channel`, `inside_channel`, `outside_channel`, `moving_up`, `moving_down`, `moving_up_pct` or `moving_down_pct`."
          }
        },
        "type": "object"
      },
      "AlertEdit": {
        "additionalProperties": false,
        "description": "An edit of one watch: the members to change over its own.",
        "properties": {
          "and": {
            "description": "One more condition, a price's or a move's, both holding on one poll.",
            "items": {
              "$ref": "#/components/schemas/AlertCondition"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bars": {
            "description": "A move's closed bars back, 1-300.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "calendar": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionCalendar"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instant's calendar: `us-equities` (the default), `cme-equity-index-futures`, `cme-globex`, `cme-grains`, `cme-livestock` or `cme-crypto`."
          },
          "drawing": {
            "description": "An annotation's id on the Desk: the level is the drawing's, computed each poll.",
            "type": [
              "string",
              "null"
            ]
          },
          "expires_utc": {
            "description": "A UTC second after now; `null` Open-ended. Past it the alert is `expired`.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "fire": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AlertFireAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "An instant on a session calendar in place of a level: `{\"kind\": \"et_wall\", \"hour\", \"minute\"}`, `et_wall_repeating`, `before_session_end` or `before_session_end_repeating`."
          },
          "id": {
            "description": "The watch's id, a UUID.",
            "type": "string"
          },
          "interval": {
            "description": "The interval word a move, a drawing or an indicator is counted in; absent, the chart pane's.",
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "description": "What a fire says; empty, the default.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The alert's name.",
            "type": [
              "string",
              "null"
            ]
          },
          "notify": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotifyKeys"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the window tells the user."
          },
          "of": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "An indicator's plot the condition reads in place of the price; absent, `\"price\"`."
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A level, or a channel's lower edge: a positive number, `\"price\"` or an indicator's plot."
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BarSession"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session its spot drains in and a drawing's or an indicator's bars are read in: `regular`, `extended` or `24h`; absent, the chart's."
          },
          "symbol": {
            "description": "The item watched, `kind:key`; a drawing's absent is the symbol holding it.",
            "type": [
              "string",
              "null"
            ]
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Repeat"
              },
              {
                "type": "null"
              }
            ],
            "description": "`once` (the default: one fire, then `triggered`) or `every` (a level's alone: at most once a minute while the condition holds)."
          },
          "upper": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A channel's upper edge, as `price` is."
          },
          "value": {
            "description": "A move's size, in price or for `_pct` words in percent of the close `bars` back (at least 0.01).",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/When"
              },
              {
                "type": "null"
              }
            ],
            "description": "`crosses`, `crosses_up`, `crosses_down`, `above`, `below`, `entering_channel`, `exiting_channel`, `inside_channel`, `outside_channel`, `moving_up`, `moving_down`, `moving_up_pct` or `moving_down_pct`."
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "AlertFire": {
        "description": "When an alert fires, on session days only.\n\nFour forms, and none reduces to another: an entry anchored to the CLOSE moves\non a half day, structurally; one anchored to a wall-clock ET time does not;\nand a sweep that must re-fire while terminals are still arriving needs a\nRECURRING one. A single \"offset from open\" form would silently mis-fire the\nfirst two on every early close.\n\nNot a free-form cron: a schedule the venue cannot reason about is a schedule\nit cannot half-day-adjust.",
        "oneOf": [
          {
            "description": "`session_end - minutes`, on a session day. Half-day aware by\nconstruction: the anchor is the session's own close, so a 13:00 early\nclose moves the fire with it. Negative `minutes` is AFTER the close.",
            "properties": {
              "kind": {
                "const": "before_session_end",
                "type": "string"
              },
              "minutes": {
                "description": "Minutes before the session's close; negative is after it.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "minutes"
            ],
            "type": "object"
          },
          {
            "description": "Every `every_minutes`, from `session_end - minutes` until\n`session_end - until_before_session_end`, on a session day.\n\n[`Self::BeforeSessionEnd`]'s anchor with [`Self::EtWallRepeating`]'s\ncadence. Both offsets carry [`Self::BeforeSessionEnd`]'s sign convention,\nso `minutes = -1, until_before_session_end = -30` is close+1m through\nclose+30m.",
            "properties": {
              "every_minutes": {
                "description": "Minutes between fires, above 0.",
                "format": "int64",
                "type": "integer"
              },
              "kind": {
                "const": "before_session_end_repeating",
                "type": "string"
              },
              "minutes": {
                "description": "Minutes before the session's close the first fire lands; negative is after it.",
                "format": "int64",
                "type": "integer"
              },
              "until_before_session_end": {
                "description": "Minutes before the session's close the last fire is at or before; negative is after it.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "minutes",
              "every_minutes",
              "until_before_session_end"
            ],
            "type": "object"
          },
          {
            "description": "A wall-clock ET time on a session day. Fixed against the clock, NOT\nagainst the close — use it only where that is what the seat means.",
            "properties": {
              "hour": {
                "description": "The ET wall-clock hour, 0 to 23.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              },
              "kind": {
                "const": "et_wall",
                "type": "string"
              },
              "minute": {
                "description": "The ET wall-clock minute, 0 to 59.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "hour",
              "minute"
            ],
            "type": "object"
          },
          {
            "description": "Every `every_minutes`, from a wall-clock ET time until a close-anchored\nend.\n\nThe two ends are anchored differently on purpose: the window opens when\nthe seat acts, at a wall time, and ends where the position does —\non a half day a wall-clock end would run three hours past a book that\nsettled at 13:00. A window that is empty on a given date (an early close\nbefore `hour:minute`) simply has no fire that day, which is the same\nanswer [`fire_instant`] gives for a non-session day.",
            "properties": {
              "every_minutes": {
                "description": "Minutes between fires, above 0.",
                "format": "int64",
                "type": "integer"
              },
              "hour": {
                "description": "The ET wall-clock hour of the first fire, 0 to 23.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              },
              "kind": {
                "const": "et_wall_repeating",
                "type": "string"
              },
              "minute": {
                "description": "The ET wall-clock minute of the first fire, 0 to 59.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              },
              "until_before_session_end": {
                "description": "Minutes before the session's close the last fire is at or before; negative is after it.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "hour",
              "minute",
              "every_minutes",
              "until_before_session_end"
            ],
            "type": "object"
          }
        ]
      },
      "AlertFireAsk": {
        "description": "When an alert fires, on session days only.\n\nFour forms, and none reduces to another: an entry anchored to the CLOSE moves\non a half day, structurally; one anchored to a wall-clock ET time does not;\nand a sweep that must re-fire while terminals are still arriving needs a\nRECURRING one. A single \"offset from open\" form would silently mis-fire the\nfirst two on every early close.\n\nNot a free-form cron: a schedule the venue cannot reason about is a schedule\nit cannot half-day-adjust.",
        "oneOf": [
          {
            "additionalProperties": false,
            "description": "`session_end - minutes`, on a session day. Half-day aware by\nconstruction: the anchor is the session's own close, so a 13:00 early\nclose moves the fire with it. Negative `minutes` is AFTER the close.",
            "properties": {
              "kind": {
                "const": "before_session_end",
                "type": "string"
              },
              "minutes": {
                "description": "Minutes before the session's close; negative is after it.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "minutes"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Every `every_minutes`, from `session_end - minutes` until\n`session_end - until_before_session_end`, on a session day.\n\n[`Self::BeforeSessionEnd`]'s anchor with [`Self::EtWallRepeating`]'s\ncadence. Both offsets carry [`Self::BeforeSessionEnd`]'s sign convention,\nso `minutes = -1, until_before_session_end = -30` is close+1m through\nclose+30m.",
            "properties": {
              "every_minutes": {
                "description": "Minutes between fires, above 0.",
                "format": "int64",
                "type": "integer"
              },
              "kind": {
                "const": "before_session_end_repeating",
                "type": "string"
              },
              "minutes": {
                "description": "Minutes before the session's close the first fire lands; negative is after it.",
                "format": "int64",
                "type": "integer"
              },
              "until_before_session_end": {
                "description": "Minutes before the session's close the last fire is at or before; negative is after it.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "minutes",
              "every_minutes",
              "until_before_session_end"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A wall-clock ET time on a session day. Fixed against the clock, NOT\nagainst the close — use it only where that is what the seat means.",
            "properties": {
              "hour": {
                "description": "The ET wall-clock hour, 0 to 23.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              },
              "kind": {
                "const": "et_wall",
                "type": "string"
              },
              "minute": {
                "description": "The ET wall-clock minute, 0 to 59.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "hour",
              "minute"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Every `every_minutes`, from a wall-clock ET time until a close-anchored\nend.\n\nThe two ends are anchored differently on purpose: the window opens when\nthe seat acts, at a wall time, and ends where the position does —\non a half day a wall-clock end would run three hours past a book that\nsettled at 13:00. A window that is empty on a given date (an early close\nbefore `hour:minute`) simply has no fire that day, which is the same\nanswer [`fire_instant`] gives for a non-session day.",
            "properties": {
              "every_minutes": {
                "description": "Minutes between fires, above 0.",
                "format": "int64",
                "type": "integer"
              },
              "hour": {
                "description": "The ET wall-clock hour of the first fire, 0 to 23.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              },
              "kind": {
                "const": "et_wall_repeating",
                "type": "string"
              },
              "minute": {
                "description": "The ET wall-clock minute of the first fire, 0 to 59.",
                "format": "int8",
                "maximum": 127,
                "minimum": -128,
                "type": "integer"
              },
              "until_before_session_end": {
                "description": "Minutes before the session's close the last fire is at or before; negative is after it.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "hour",
              "minute",
              "every_minutes",
              "until_before_session_end"
            ],
            "type": "object"
          }
        ]
      },
      "AlertSpec": {
        "additionalProperties": false,
        "description": "An alert's members: what `watches/add` takes, and what `watches/edit` changes over the watch's own (`null` clears one).\nA level states `symbol`, `when` and `price` (a channel's `upper` too); a move `when`, `value`, `bars` and `interval`; a\ndrawing `drawing` and `when`; an indicator's condition `of` or a plot for a bound; an instant `fire` and `calendar`.",
        "properties": {
          "and": {
            "description": "One more condition, a price's or a move's, both holding on one poll.",
            "items": {
              "$ref": "#/components/schemas/AlertCondition"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bars": {
            "description": "A move's closed bars back, 1-300.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "calendar": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionCalendar"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instant's calendar: `us-equities` (the default), `cme-equity-index-futures`, `cme-globex`, `cme-grains`, `cme-livestock` or `cme-crypto`."
          },
          "drawing": {
            "description": "An annotation's id on the Desk: the level is the drawing's, computed each poll.",
            "type": [
              "string",
              "null"
            ]
          },
          "expires_utc": {
            "description": "A UTC second after now; `null` Open-ended. Past it the alert is `expired`.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "fire": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AlertFireAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "An instant on a session calendar in place of a level: `{\"kind\": \"et_wall\", \"hour\", \"minute\"}`, `et_wall_repeating`, `before_session_end` or `before_session_end_repeating`."
          },
          "interval": {
            "description": "The interval word a move, a drawing or an indicator is counted in; absent, the chart pane's.",
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "description": "What a fire says; empty, the default.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The alert's name.",
            "type": [
              "string",
              "null"
            ]
          },
          "notify": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotifyKeys"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the window tells the user."
          },
          "of": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "An indicator's plot the condition reads in place of the price; absent, `\"price\"`."
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A level, or a channel's lower edge: a positive number, `\"price\"` or an indicator's plot."
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BarSession"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session its spot drains in and a drawing's or an indicator's bars are read in: `regular`, `extended` or `24h`; absent, the chart's."
          },
          "symbol": {
            "description": "The item watched, `kind:key`; a drawing's absent is the symbol holding it.",
            "type": [
              "string",
              "null"
            ]
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Repeat"
              },
              {
                "type": "null"
              }
            ],
            "description": "`once` (the default: one fire, then `triggered`) or `every` (a level's alone: at most once a minute while the condition holds)."
          },
          "upper": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OperandAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A channel's upper edge, as `price` is."
          },
          "value": {
            "description": "A move's size, in price or for `_pct` words in percent of the close `bars` back (at least 0.01).",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/When"
              },
              {
                "type": "null"
              }
            ],
            "description": "`crosses`, `crosses_up`, `crosses_down`, `above`, `below`, `entering_channel`, `exiting_channel`, `inside_channel`, `outside_channel`, `moving_up`, `moving_down`, `moving_up_pct` or `moving_down_pct`."
          }
        },
        "type": "object"
      },
      "Algo": {
        "description": "An algo working a limit, and its parameters. A member left out is the\nvenue's default. A time is a UTC second, today's where the venue takes a\ntime of day alone; a share of volume a fraction of the market's volume\n(the venue validates its range); a size the order's\nunits.",
        "oneOf": [
          {
            "description": "Smart routing at a chosen urgency.",
            "properties": {
              "priority": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/AlgoPriority"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "strategy": {
                "const": "adaptive",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "The volume-weighted average price over the window.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "speed_up": {
                "description": "It speeds up when the market moves its way.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "vwap",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "The time-weighted average price over the window.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "pricing": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/TwapPricing"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "twap",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "A steady share of the market's volume.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "percent_of_volume",
                "type": "string"
              },
              "volume_share": {
                "description": "The share of the market's volume it works, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "The midpoint at the order's arrival.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "force_completion": {
                "description": "It tries to fill by the end of the day.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "risk_aversion": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RiskAversion"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "arrival_price",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "The closing auction's price.",
            "properties": {
              "force_completion": {
                "description": "It tries to fill by the end of the day.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "risk_aversion": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RiskAversion"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "close_price",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "Hidden, a randomized `display_size` shown.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "display_size": {
                "description": "The size shown, randomized by the venue.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "dark_ice",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "Accumulate/distribute: `component_size` slices `interval_secs` apart.",
            "properties": {
              "catch_up": {
                "description": "It catches up when behind its schedule.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "component_size": {
                "description": "The size of each slice.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "give_up": {
                "description": "The clearing's give-up number.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "interval_secs": {
                "description": "Seconds between slices.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "randomize_size": {
                "description": "The slice size varies by up to 55%.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "randomize_time": {
                "description": "The interval varies by up to 20%.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "ad",
                "type": "string"
              },
              "wait_for_fill": {
                "description": "Each slice waits for the last to fill.",
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "The venue's other accumulate/distribute.",
            "properties": {
              "component_size": {
                "description": "The size of each slice.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "interval_secs": {
                "description": "Seconds between slices.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "slice_order": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/SliceOrder"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The order each slice goes out as."
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "accu_distr",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "A share of volume that moves with the price: `volume_share`, changed\nby `volume_share_change`, held between the bounds.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "min_volume_share": {
                "description": "The least share of volume it works, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "pct_vol_px",
                "type": "string"
              },
              "volume_share": {
                "description": "The share of the market's volume it works, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "volume_share_change": {
                "description": "How much `volume_share` changes as the price moves.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "A share of volume from `start_volume_share` to `end_volume_share` as\nthe order fills.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "end_volume_share": {
                "description": "The share of volume it ends at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "start_volume_share": {
                "description": "The share of volume it starts at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "strategy": {
                "const": "pct_vol_sz",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "A share of volume from `start_volume_share` to `end_volume_share`\nover the window.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "end_volume_share": {
                "description": "The share of volume it ends at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "start_volume_share": {
                "description": "The share of volume it starts at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "strategy": {
                "const": "pct_vol_tm",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "An option's market impact against its risk of moving.",
            "properties": {
              "force_completion": {
                "description": "It tries to fill by the end of the day.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "risk_aversion": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RiskAversion"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "strategy": {
                "const": "balance_impact_risk",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "description": "An option at the market's average, at the least impact.",
            "properties": {
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "strategy": {
                "const": "min_impact",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          }
        ]
      },
      "AlgoAsk": {
        "description": "An algo working a limit, and its parameters. A member left out is the\nvenue's default. A time is a UTC second, today's where the venue takes a\ntime of day alone; a share of volume a fraction of the market's volume\n(the venue validates its range); a size the order's\nunits.",
        "oneOf": [
          {
            "additionalProperties": false,
            "description": "Smart routing at a chosen urgency.",
            "properties": {
              "priority": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/AlgoPriority"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "strategy": {
                "const": "adaptive",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "The volume-weighted average price over the window.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "speed_up": {
                "description": "It speeds up when the market moves its way.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "vwap",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "The time-weighted average price over the window.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "pricing": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/TwapPricing"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "twap",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A steady share of the market's volume.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "percent_of_volume",
                "type": "string"
              },
              "volume_share": {
                "description": "The share of the market's volume it works, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "The midpoint at the order's arrival.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "force_completion": {
                "description": "It tries to fill by the end of the day.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "risk_aversion": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RiskAversion"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "arrival_price",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "The closing auction's price.",
            "properties": {
              "force_completion": {
                "description": "It tries to fill by the end of the day.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "risk_aversion": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RiskAversion"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "close_price",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Hidden, a randomized `display_size` shown.",
            "properties": {
              "allow_past_end": {
                "description": "It keeps working past `end_utc` until filled.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "display_size": {
                "description": "The size shown, randomized by the venue.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "dark_ice",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Accumulate/distribute: `component_size` slices `interval_secs` apart.",
            "properties": {
              "catch_up": {
                "description": "It catches up when behind its schedule.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "component_size": {
                "description": "The size of each slice.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "give_up": {
                "description": "The clearing's give-up number.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "interval_secs": {
                "description": "Seconds between slices.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "randomize_size": {
                "description": "The slice size varies by up to 55%.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "randomize_time": {
                "description": "The interval varies by up to 20%.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "ad",
                "type": "string"
              },
              "wait_for_fill": {
                "description": "Each slice waits for the last to fill.",
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "The venue's other accumulate/distribute.",
            "properties": {
              "component_size": {
                "description": "The size of each slice.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "interval_secs": {
                "description": "Seconds between slices.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "slice_order": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/SliceOrder"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The order each slice goes out as."
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "accu_distr",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A share of volume that moves with the price: `volume_share`, changed\nby `volume_share_change`, held between the bounds.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "min_volume_share": {
                "description": "The least share of volume it works, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "strategy": {
                "const": "pct_vol_px",
                "type": "string"
              },
              "volume_share": {
                "description": "The share of the market's volume it works, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "volume_share_change": {
                "description": "How much `volume_share` changes as the price moves.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A share of volume from `start_volume_share` to `end_volume_share` as\nthe order fills.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "end_volume_share": {
                "description": "The share of volume it ends at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "start_volume_share": {
                "description": "The share of volume it starts at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "strategy": {
                "const": "pct_vol_sz",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A share of volume from `start_volume_share` to `end_volume_share`\nover the window.",
            "properties": {
              "end_utc": {
                "description": "When the algo ends, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "end_volume_share": {
                "description": "The share of volume it ends at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "no_take_liquidity": {
                "description": "It never takes liquidity.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "start_utc": {
                "description": "When the algo starts, in Unix seconds (UTC).",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "start_volume_share": {
                "description": "The share of volume it starts at, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "strategy": {
                "const": "pct_vol_tm",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "An option's market impact against its risk of moving.",
            "properties": {
              "force_completion": {
                "description": "It tries to fill by the end of the day.",
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "risk_aversion": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RiskAversion"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "strategy": {
                "const": "balance_impact_risk",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "An option at the market's average, at the least impact.",
            "properties": {
              "max_volume_share": {
                "description": "The most of the market's volume it takes, a fraction.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number",
                  "null"
                ]
              },
              "strategy": {
                "const": "min_impact",
                "type": "string"
              }
            },
            "required": [
              "strategy"
            ],
            "type": "object"
          }
        ]
      },
      "AlgoPriority": {
        "description": "An adaptive algo's urgency.",
        "enum": [
          "urgent",
          "normal",
          "patient"
        ],
        "type": "string"
      },
      "Analytics": {
        "description": "The closed-trade analytics a seat report states. Decimals\nas text, full precision.",
        "properties": {
          "curve": {
            "description": "The cumulative `pnl` after each closed trade, by `closed_at`, from 0.",
            "items": {
              "$ref": "#/components/schemas/Point"
            },
            "type": "array"
          },
          "drawdowns": {
            "items": {
              "$ref": "#/components/schemas/Drawdown"
            },
            "type": "array"
          },
          "expectancy": {
            "description": "`net / trades`, `null` without trades.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fees": {
            "description": "The sum of the closed trades' stated fees, a positive cost; `null` when none states one.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "gross_loss": {
            "description": "Negative or zero.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "gross_profit": {
            "description": "The sum of the winning trades' `pnl`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "losses": {
            "description": "Closed trades with a negative `pnl`.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "max_drawdown": {
            "description": "The deepest of `drawdowns`: `0` with trades and none, `null` with no trades.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "net": {
            "description": "`gross_profit` plus `gross_loss`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "profit_factor": {
            "description": "`gross_profit / |gross_loss|`, `null` without a loss.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "reward_risk": {
            "description": "The average win over the average loss, `null` without either.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "trades": {
            "description": "Closed trades with a `pnl`; `unpriced` the closed ones without.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "unpriced": {
            "description": "Closed trades with no `pnl`.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "win_rate": {
            "description": "`wins` over `trades`, percent profitable.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "wins": {
            "description": "A zero `pnl` is neither a win nor a loss.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "trades",
          "wins",
          "losses",
          "unpriced",
          "win_rate",
          "gross_profit",
          "gross_loss",
          "net",
          "fees",
          "profit_factor",
          "expectancy",
          "reward_risk",
          "max_drawdown",
          "curve",
          "drawdowns"
        ],
        "type": "object"
      },
      "Anchor": {
        "description": "A point or interval the annotation is pinned to in chart space. Choose the variant by `kind`: `time_price` (a point at a time AND a price), `price_only` (a price level, any time), `time_only` (a moment in time, any price), or `time_range` (a time interval). `time` values are UTC seconds; `price` values are in the symbol's quote currency.",
        "oneOf": [
          {
            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
            "properties": {
              "kind": {
                "const": "time_price",
                "type": "string"
              },
              "price": {
                "description": "Price component, in the symbol's quote currency. Bounded to [0, 1e12]; strictly-positive enforcement is applied by the ingest gate.",
                "format": "double",
                "maximum": 1000000000000.0,
                "minimum": 0.0,
                "type": "number"
              },
              "time": {
                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                "format": "double",
                "maximum": 7258118400.0,
                "minimum": -2208988800.0,
                "type": "number"
              }
            },
            "required": [
              "kind",
              "time",
              "price"
            ],
            "type": "object"
          },
          {
            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
            "properties": {
              "kind": {
                "const": "time_only",
                "type": "string"
              },
              "time": {
                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                "format": "double",
                "maximum": 7258118400.0,
                "minimum": -2208988800.0,
                "type": "number"
              }
            },
            "required": [
              "kind",
              "time"
            ],
            "type": "object"
          },
          {
            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
            "properties": {
              "kind": {
                "const": "price_only",
                "type": "string"
              },
              "price": {
                "description": "Price, in the symbol's quote currency. Bounded to [0, 1e12]; strictly-positive enforcement is applied by the ingest gate.",
                "format": "double",
                "maximum": 1000000000000.0,
                "minimum": 0.0,
                "type": "number"
              }
            },
            "required": [
              "kind",
              "price"
            ],
            "type": "object"
          },
          {
            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
            "properties": {
              "end": {
                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                "format": "double",
                "maximum": 7258118400.0,
                "minimum": -2208988800.0,
                "type": "number"
              },
              "kind": {
                "const": "time_range",
                "type": "string"
              },
              "start": {
                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                "format": "double",
                "maximum": 7258118400.0,
                "minimum": -2208988800.0,
                "type": "number"
              }
            },
            "required": [
              "kind",
              "start",
              "end"
            ],
            "type": "object"
          }
        ]
      },
      "Anchoring": {
        "additionalProperties": false,
        "description": "A drawing's geometry set whole.",
        "properties": {
          "anchors": {
            "$ref": "#/components/schemas/AnnotationAnchors",
            "description": "The new anchor geometry. Its `kind` MUST match the target annotation's shape: `horizontal` (a price level), `trendline` (two endpoints), or `rectangle` (two opposite corners)."
          },
          "id": {
            "description": "The id of the annotation to move/reshape, as learned from the chart read model. Must be a live annotation whose shape matches `anchors`.",
            "format": "uuid",
            "type": "string"
          },
          "pane_id": {
            "description": "The numeric id of the chart pane the annotation lives on, as learned from the chart read model. This selects which pane (and thus which symbol's chart) the edit is resolved against.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "anchors"
        ],
        "type": "object"
      },
      "AnnotationAnchors": {
        "description": "New absolute anchor geometry for an existing annotation, in chart {time, price} coordinates. The `kind` MUST match the target annotation's shape (each annotation kind takes the same-named anchors); a mismatch is rejected. Only the anchors change — a trendline's extend flags, a fib's levels, a position's side, plus style, label, scope, and z-order are left untouched.",
        "oneOf": [
          {
            "description": "New price level for an [`AnnotationPrimitive::Horizontal`]. Expected\n[`Anchor::PriceOnly`].",
            "properties": {
              "kind": {
                "const": "horizontal",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "anchor": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The new price level for the horizontal line (a `price_only` anchor)."
                  }
                },
                "required": [
                  "anchor"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "New endpoints for an [`AnnotationPrimitive::Trendline`]. Expected\n[`Anchor::TimePrice`]. The `extend_left` / `extend_right` flags are NOT\ntouched.",
            "properties": {
              "kind": {
                "const": "trendline",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "a": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The trendline's first endpoint (a `time_price` anchor with both a time and a price)."
                  },
                  "b": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The trendline's second endpoint (a `time_price` anchor); must differ from `a`."
                  }
                },
                "required": [
                  "a",
                  "b"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "New opposite corners for an [`AnnotationPrimitive::Rectangle`]. Expected\n[`Anchor::TimePrice`]; corner order does not matter.",
            "properties": {
              "kind": {
                "const": "rectangle",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "a": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "One corner of the rectangle (a `time_price` anchor with both a time and a price)."
                  },
                  "b": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The opposite corner (a `time_price` anchor); must differ from `a` on both axes."
                  }
                },
                "required": [
                  "a",
                  "b"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "New time for an [`AnnotationPrimitive::Vertical`]. Expected\n[`Anchor::TimeOnly`].",
            "properties": {
              "kind": {
                "const": "vertical",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "anchor": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The new moment for the vertical line (a `time_only` anchor)."
                  }
                },
                "required": [
                  "anchor"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "New swing for an [`AnnotationPrimitive::FibRetracement`]; its levels and\n`extend_right` are NOT touched.",
            "properties": {
              "kind": {
                "const": "fib_retracement",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "a": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The swing's new start, ratio 0 (a `time_price` anchor)."
                  },
                  "b": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The swing's new end, ratio 1 (a `time_price` anchor); its price must differ from `a`'s."
                  }
                },
                "required": [
                  "a",
                  "b"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "New point for an [`AnnotationPrimitive::Text`].",
            "properties": {
              "kind": {
                "const": "text",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "anchor": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The note's new point (a `time_price` anchor)."
                  }
                },
                "required": [
                  "anchor"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "The whole geometry of an [`AnnotationPrimitive::Position`]; its side is\nNOT touched.",
            "properties": {
              "kind": {
                "const": "position",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "end": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The new right edge (a `time_only` anchor), later than `entry`'s time."
                  },
                  "entry": {
                    "$ref": "#/components/schemas/Anchor",
                    "description": "The new left edge and entry price (a `time_price` anchor)."
                  },
                  "stop": {
                    "description": "The new stop price, on the position's stop side of the entry.",
                    "format": "double",
                    "type": "number"
                  },
                  "target": {
                    "description": "The new target price, on the position's target side of the entry.",
                    "format": "double",
                    "type": "number"
                  }
                },
                "required": [
                  "entry",
                  "end",
                  "stop",
                  "target"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "New points for an [`AnnotationPrimitive::Drawing`]; its tool and levels\nare NOT touched.",
            "properties": {
              "kind": {
                "const": "drawing",
                "type": "string"
              },
              "payload": {
                "properties": {
                  "points": {
                    "description": "The drawing's new points (`time_price` anchors), as many as its tool takes.",
                    "items": {
                      "$ref": "#/components/schemas/Anchor"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "points"
                ],
                "type": "object"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          }
        ]
      },
      "AnnotationEdit": {
        "additionalProperties": false,
        "description": "A drawing's style or label changed.",
        "properties": {
          "id": {
            "description": "The id of the annotation to change, as learned from the chart read model. Must be a live object.",
            "format": "uuid",
            "type": "string"
          },
          "pane_id": {
            "description": "The numeric id of the chart pane the annotation lives on, as learned from the chart read model. This selects which pane (and thus which symbol's chart) the edit is resolved against.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "patch": {
            "$ref": "#/components/schemas/AgentAnnotationPatch",
            "description": "The fields to change: a new `style` and/or a `label` edit. Omit a field to leave it unchanged."
          }
        },
        "required": [
          "id",
          "patch"
        ],
        "type": "object"
      },
      "AnnotationLineStyle": {
        "description": "How a line or border is stroked: `solid` (a continuous unbroken line), `dashed` (a long-dash pattern), or `dotted` (a short-dot pattern).",
        "oneOf": [
          {
            "const": "solid",
            "description": "A continuous, unbroken line.",
            "type": "string"
          },
          {
            "const": "dashed",
            "description": "A dashed line (alternating long marks and gaps).",
            "type": "string"
          },
          {
            "const": "dotted",
            "description": "A dotted line (a series of short dots).",
            "type": "string"
          }
        ]
      },
      "AnnotationPrimitive": {
        "description": "Which shape to draw on the chart. `horizontal` is a full-width price line at one price level. `trendline` is a segment between two time/price anchors, optionally extended to a viewport edge. `rectangle` is an axis-aligned box spanning two opposite time/price corners. `vertical` is a full-height line at one moment in time. `fib_retracement` is a Fibonacci retracement: price levels at ratios of the move between two time/price anchors. `text` is a note at one time/price point whose content is the top-level `label`. `position` is a long or short position: an entry with a stop and a target over a time span. `drawing` is any other drawing tool, named by `payload.tool`, over its time/price `points`. The shape-specific fields live under `payload`.",
        "oneOf": [
          {
            "description": "A full-width horizontal line at a single price level (e.g. a support or resistance line). Its `payload.anchor` is a price-only anchor; the line spans the entire visible time range.",
            "properties": {
              "kind": {
                "const": "horizontal",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/HorizontalV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "A straight line segment between two time/price anchors `a` and `b`. Set `extend_left`/`extend_right` to project the line past either endpoint to the chart edge (e.g. a trend channel).",
            "properties": {
              "kind": {
                "const": "trendline",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/TrendlineV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "An axis-aligned rectangle whose two opposite corners are the time/price anchors `a` and `b` (e.g. a highlighted zone or consolidation box). Corner order does not matter.",
            "properties": {
              "kind": {
                "const": "rectangle",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/RectangleV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "A full-height vertical line at one moment in time (e.g. an event or a session open). Its `payload.anchor` is a time-only anchor; the line spans the entire visible price range.",
            "properties": {
              "kind": {
                "const": "vertical",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/VerticalV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "A Fibonacci retracement over a swing from time/price anchor `a` to `b`: one horizontal level per ratio in `levels`, at `a.price + ratio * (b.price - a.price)` (0 is `a`, 1 is `b`). The usual levels are [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1].",
            "properties": {
              "kind": {
                "const": "fib_retracement",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/FibRetracementV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "A text note at one time/price point. Its content is the annotation's top-level `label`, which is required for this kind; `update_annotation` with a new `label` edits it.",
            "properties": {
              "kind": {
                "const": "text",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/TextV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "A long or short position: a box from `entry` to `end`, the target zone between the entry price and `target`, the stop zone between it and `stop`. A long needs stop < entry < target, a short target < entry < stop.",
            "properties": {
              "kind": {
                "const": "position",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/PositionV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          },
          {
            "description": "A drawing tool by name (`payload.tool`) over its time/price `points`; see `DrawingTool` for each tool's point count and meaning, which take `levels` and which need a `label`.",
            "properties": {
              "kind": {
                "const": "drawing",
                "type": "string"
              },
              "payload": {
                "$ref": "#/components/schemas/DrawingV1"
              }
            },
            "required": [
              "kind",
              "payload"
            ],
            "type": "object"
          }
        ]
      },
      "AnnotationScope": {
        "description": "How widely the annotation is shared. `desk` (the common choice) shows it on every chart pane in the current desk. `global` shows it across all desks. `pane` pins it to a single pane (supply that pane's numeric id). When unsure, use `desk`.",
        "oneOf": [
          {
            "description": "Pin to one chart pane only. `pane_id` is that pane's numeric identifier, learned from the chart read model.",
            "properties": {
              "kind": {
                "const": "pane",
                "type": "string"
              },
              "pane_id": {
                "description": "The pane's numeric id. The explicit `max` keeps the schema's admitted\nrange identical to the Rust `u32` serde admits — without it the schema\n(`minimum: 0`, no max) would accept `> u32::MAX`, which then fails the\ntyped decode with an unlocatable error instead of a clean schema-layer\n`/scope/pane_id` rejection.",
                "format": "uint32",
                "maximum": 4294967295.0,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "kind",
              "pane_id"
            ],
            "type": "object"
          },
          {
            "description": "Show on every chart pane in the current desk (the default choice for most annotations).",
            "properties": {
              "kind": {
                "const": "desk",
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          {
            "description": "Show across all desks, everywhere this symbol is charted.",
            "properties": {
              "kind": {
                "const": "global",
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          }
        ]
      },
      "Answers": {
        "description": "What a verb answers: `direct`, its 200 holds the answer; `changes`, a 202\nnaming the node whose `changed` frame carries the outcome.",
        "enum": [
          "direct",
          "changes"
        ],
        "type": "string"
      },
      "Any": {
        "description": "No bound on symbols at once.",
        "enum": [
          "any"
        ],
        "type": "string"
      },
      "Approval": {
        "description": "An act the agent's token asked for that a row's gate holds for a person.",
        "properties": {
          "account": {
            "description": "The account handle it acts on, `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "agent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChatRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The chat that parked it, else `null`."
          },
          "body": {
            "description": "What the verb is sent with, any verb's body: a `link` verb's only its `venue`, `provider`, `env`, `live`, `hours` and `approved`, `link/prefer`'s its `kind`, `class` and `value`, `link/account/alias`'s its `id` and `alias`, every other field being sent on approval but never read back."
          },
          "by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Scope"
              },
              {
                "type": "null"
              }
            ],
            "description": "The scope that approved or declined it."
          },
          "expires_at": {
            "description": "The Unix second an hour after it parked.",
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "description": "The approval's id, a UUID.",
            "type": "string"
          },
          "parked_at": {
            "description": "The Unix second it parked.",
            "format": "int64",
            "type": "integer"
          },
          "preview": {
            "description": "An `orders/<class>/place`'s `preview` answer, any verb's answer; `null` for any other verb."
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApprovalResult"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sent verb's answer."
          },
          "route": {
            "description": "The held verb's target.",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/ApprovalState"
          },
          "summary": {
            "description": "The act in the ticket's words then ` on <account>` for an order, a link verb's act and its venue or provider and env, `<act> on <account>` for any other verb, a withdrawal's then `: withdraws <exit>; …; leaves <n> <symbol> shares bare`.",
            "type": "string"
          },
          "why": {
            "description": "Why the act is the user's: [`why`].",
            "type": "string"
          }
        },
        "required": [
          "id",
          "route",
          "body",
          "account",
          "summary",
          "preview",
          "state",
          "parked_at",
          "expires_at",
          "by",
          "result",
          "agent",
          "why"
        ],
        "type": "object"
      },
      "ApprovalList": {
        "description": "Every approval pending and each that went final in the last hour, in the order they parked.",
        "items": {
          "$ref": "#/components/schemas/Approval"
        },
        "type": "array"
      },
      "ApprovalResult": {
        "description": "What an approved verb answered.",
        "properties": {
          "body": {
            "description": "The verb's answer, any verb's: its JSON, else its text."
          },
          "status": {
            "description": "The verb's HTTP status.",
            "format": "uint16",
            "maximum": 65535,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "status",
          "body"
        ],
        "type": "object"
      },
      "ApprovalState": {
        "description": "Where an approval stands.",
        "oneOf": [
          {
            "const": "pending",
            "description": "Waiting for a person.",
            "type": "string"
          },
          {
            "const": "approved",
            "description": "Approved and being sent.",
            "type": "string"
          },
          {
            "const": "done",
            "description": "Sent; `result` holds its answer.",
            "type": "string"
          },
          {
            "const": "declined",
            "description": "Refused by a person, or withdrawn by the agent.",
            "type": "string"
          },
          {
            "const": "expired",
            "description": "Still pending at `expires_at`.",
            "type": "string"
          }
        ]
      },
      "ApprovalsSwitch": {
        "additionalProperties": false,
        "description": "Whether the trading verbs that can send an order on a row wait for the user's approval.",
        "properties": {
          "on": {
            "description": "Turning approvals off that are on is the by-hand token's alone.",
            "type": "boolean"
          }
        },
        "required": [
          "on"
        ],
        "type": "object"
      },
      "ArmWord": {
        "description": "The chip's word for an arm.",
        "oneOf": [
          {
            "const": "sim",
            "description": "The in-process book.",
            "type": "string"
          },
          {
            "const": "paper",
            "description": "A venue's paper environment.",
            "type": "string"
          },
          {
            "const": "live",
            "description": "A venue's live environment.",
            "type": "string"
          }
        ]
      },
      "Arming": {
        "additionalProperties": false,
        "description": "A plan armed: that item's unarmed plan sent.",
        "properties": {
          "held": {
            "default": null,
            "description": "The opt-in to the legs Taji holds itself (`trading/exits`); absent `false`, 409 `held_exits` naming them.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "plan_rev": {
            "description": "The plan node's `rev` as the sender read it: 409 `rev` when the plan reads another or none, nothing armed.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "rev": {
            "default": null,
            "description": "The staged draft's `rev`, exactly when the plan's entry is that draft, as `draft/place`'s.",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "An item as `draft/stage` takes it.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "plan_rev"
        ],
        "type": "object"
      },
      "ArrangedPane": {
        "description": "One pane of an [`Arrangement`]: the store's own record of it.",
        "properties": {
          "indicators": {
            "description": "Per-pane indicator bindings (`ChartEngine.chart_objects`), each as the\npersistence-safe `IndicatorBindingSnapshot` + the live object's z/visible/\nlocked. Sorted by `definition` then `z_index` for a deterministic order.",
            "items": {
              "$ref": "#/components/schemas/IndicatorRecord"
            },
            "type": "array"
          },
          "kind": {
            "$ref": "#/components/schemas/PaneKindRecord"
          },
          "link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SyncGroup"
              },
              {
                "type": "null"
              }
            ],
            "description": "The link group the pane is in, on any kind (`layout/set_link`); absent in none. A non-chart pane follows its group's first chart in tree order, the popup last."
          },
          "paneId": {
            "description": "`u32` mirror of `PaneId`.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "reads": {
            "description": "The `GET` routes the pane draws, as its plugin's `[[ui.panes]]` names them, `[]` for a core pane or a kind no plugin declares; absent where the tree embeds the layout (`GET /`), which holds no plugin.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "symbol": {
            "description": "Bound item (`ChartBinding::symbol`). Capture always writes `Some`; a\nrecord without one is corrupt.",
            "type": [
              "string",
              "null"
            ]
          },
          "timeframe": {
            "description": "Bound timeframe (`ChartBinding::timeframe`); `Some` whenever `symbol`\nis. Already-serde pass-through.",
            "type": [
              "string",
              "null"
            ]
          },
          "visibleRange": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VisibleRangeRecord"
              },
              {
                "type": "null"
              }
            ],
            "description": "The visible time range, UTC seconds — captured ONLY for frozen evidence\npanes (static data, no liveness gate). Live panes re-anchor via the\nreveal matrix on restore, so persisting their viewport\nis wasted bytes AND viewport-dependent fixture flake — `None` for them."
          },
          "window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HistoricalWindow"
              },
              {
                "type": "null"
              }
            ],
            "description": "`Some` = a FROZEN historical-window pane (`ChartBinding::window`). Part\nof the binding identity — restore must re-freeze faithfully, never\nsilently un-freeze. Already-serde pass-through."
          },
          "windowLabel": {
            "description": "Frozen-window badge caption (`ChartBinding::window_label`); `Some`\nonly when `window` is.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "paneId",
          "kind",
          "window",
          "windowLabel",
          "visibleRange",
          "indicators"
        ],
        "type": "object"
      },
      "Arrangement": {
        "description": "What a Desk's panes are arranged as: the record's own topology, and one\nobject per pane beside it, the window whole as data.",
        "properties": {
          "chart_pane_id": {
            "description": "The id of the Desk's chart pane, the chart focused last (else, once that closes, the first in slot order, then a chart popup), `null` with none.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "layout": {
            "$ref": "#/components/schemas/DeskLayoutRecord",
            "description": "The split tree, or `empty` with no panes in it."
          },
          "panes": {
            "description": "One per pane, in the record's order.",
            "items": {
              "$ref": "#/components/schemas/ArrangedPane"
            },
            "type": "array"
          },
          "popup": {
            "description": "The pane floating over the canvas, `null` with none.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "popup_rect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupRect"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where this layout's popup draws, as `layout/popup {rect}` last kept it; `null` until then."
          },
          "sync": {
            "$ref": "#/components/schemas/Sync",
            "description": "The active layout's pane sync."
          }
        },
        "required": [
          "layout",
          "popup",
          "popup_rect",
          "chart_pane_id",
          "sync",
          "panes"
        ],
        "type": "object"
      },
      "Arrival": {
        "description": "How a provider's live reads arrive: pushed, or asked every `every_s`.",
        "enum": [
          "stream",
          "poll"
        ],
        "type": "string"
      },
      "AssetCapability": {
        "description": "Per-asset-class capability flags.",
        "properties": {
          "data": {
            "description": "Whether the adapter reads data in this class.",
            "type": "boolean"
          },
          "index_underlyings": {
            "description": "Whether options on an index underlying are sent.",
            "type": "boolean"
          },
          "multi_leg": {
            "description": "Whether the adapter sends multi-leg options.",
            "type": "boolean"
          },
          "orders": {
            "$ref": "#/components/schemas/OrderCoverage",
            "default": {
              "constraints": [],
              "fractional": false,
              "kinds": [],
              "notional": false,
              "sessions": {
                "24h": false,
                "extended": false,
                "post": false,
                "pre": false,
                "regular": false
              },
              "short": "Unverified",
              "tifs": []
            }
          },
          "trade": {
            "description": "Whether the adapter sends orders in this class.",
            "type": "boolean"
          }
        },
        "required": [
          "trade",
          "data",
          "multi_leg",
          "index_underlyings",
          "orders"
        ],
        "type": "object"
      },
      "AtOnce": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Any"
          },
          {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        ],
        "description": "Symbols one upstream holds: a count, or `any`."
      },
      "Atm": {
        "description": "One expiry's at-the-money IV: the mean of the call's and put's IV at each\nof the two strikes around spot, straight between them by strike.",
        "properties": {
          "dte": {
            "description": "Calendar days from today to the expiry; 0 on the day.",
            "format": "int32",
            "type": "integer"
          },
          "expiry": {
            "description": "Expiry date, `YYYY-MM-DD`.",
            "format": "date",
            "type": "string"
          },
          "iv": {
            "description": "Implied volatility as a fraction (0.21 is 21%).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "root": {
            "description": "The OCC series root (`SPX` beside `SPXW`).",
            "type": "string"
          }
        },
        "required": [
          "expiry",
          "root",
          "dte",
          "iv"
        ],
        "type": "object"
      },
      "Auth": {
        "additionalProperties": false,
        "description": "A client's first message on every socket.",
        "properties": {
          "hidden": {
            "default": null,
            "description": "`/ws/live`'s only: `true` on the never-shown capture page, whose socket hears capture asks but is no window.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "since": {
            "default": null,
            "description": "`/ws/live`'s only: the last `seq` a reconnecting client heard, answered by `hello`'s `paths` or `resync`.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "token": {
            "description": "One of this run's tokens.",
            "type": "string",
            "writeOnly": true
          },
          "type": {
            "const": "auth",
            "description": "`auth`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "token"
        ],
        "type": "object"
      },
      "AutoLiq": {
        "description": "The venue's auto-liquidation thresholds on an account, as the user set\nthem in the venue's own app.",
        "properties": {
          "daily_loss": {
            "description": "The day's loss at which the venue liquidates the account.",
            "type": [
              "string",
              "null"
            ]
          },
          "daily_loss_liq_only": {
            "description": "The day's loss at which the venue allows closing trades only.",
            "type": [
              "string",
              "null"
            ]
          },
          "daily_profit": {
            "description": "The day's profit at which the venue liquidates the account.",
            "type": [
              "string",
              "null"
            ]
          },
          "margin_pct": {
            "description": "The margin percentage at which the venue liquidates the account.",
            "type": [
              "string",
              "null"
            ]
          },
          "margin_pct_liq_only": {
            "description": "The margin percentage at which the venue allows closing trades only.",
            "type": [
              "string",
              "null"
            ]
          },
          "trailing_max_drawdown": {
            "description": "The trailing maximum drawdown at which the venue liquidates the account; `trailing_max_drawdown_mode` names how it trails.",
            "type": [
              "string",
              "null"
            ]
          },
          "trailing_max_drawdown_limit": {
            "description": "The venue's `trailingMaxDrawdownLimit`, in dollars; the venue documents\nno more of it.",
            "type": [
              "string",
              "null"
            ]
          },
          "trailing_max_drawdown_mode": {
            "description": "`EOD` or `RealTime`, the venue's word.",
            "type": [
              "string",
              "null"
            ]
          },
          "weekly_loss": {
            "description": "The week's loss at which the venue liquidates the account.",
            "type": [
              "string",
              "null"
            ]
          },
          "weekly_profit": {
            "description": "The week's profit at which the venue liquidates the account.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "daily_loss",
          "weekly_loss",
          "daily_profit",
          "weekly_profit",
          "trailing_max_drawdown",
          "trailing_max_drawdown_limit",
          "margin_pct",
          "daily_loss_liq_only",
          "margin_pct_liq_only",
          "trailing_max_drawdown_mode"
        ],
        "type": "object"
      },
      "Available": {
        "anyOf": [
          {
            "description": "`{\"column\": \"<name>\"}`: the instant a column of the row itself\ncarries, in UTC seconds.",
            "properties": {
              "column": {
                "description": "The column's name.",
                "type": "string"
              }
            },
            "required": [
              "column"
            ],
            "type": "object"
          },
          {
            "description": "`{\"local_time\": \"20:00\", \"zone\": \"America/New_York\"}`: that wall time\nin the zone on the row's UTC date, for a date-stamped file, converted\nper date so a DST change cannot shift it.",
            "properties": {
              "local_time": {
                "description": "The wall time, `HH:MM`.",
                "type": "string"
              },
              "zone": {
                "description": "The IANA zone name.",
                "type": "string"
              }
            },
            "required": [
              "local_time",
              "zone"
            ],
            "type": "object"
          }
        ],
        "description": "When a row becomes knowable — the one thing custom data must declare,\nbecause it is where lookahead enters: a daily close stamped at midnight is\nnot readable at 10:00 of that day."
      },
      "AvailableAsk": {
        "anyOf": [
          {
            "additionalProperties": false,
            "description": "`{\"column\": \"<name>\"}`: the instant a column of the row itself\ncarries, in UTC seconds.",
            "properties": {
              "column": {
                "description": "The column's name.",
                "type": "string"
              }
            },
            "required": [
              "column"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "`{\"local_time\": \"20:00\", \"zone\": \"America/New_York\"}`: that wall time\nin the zone on the row's UTC date, for a date-stamped file, converted\nper date so a DST change cannot shift it.",
            "properties": {
              "local_time": {
                "description": "The wall time, `HH:MM`.",
                "type": "string"
              },
              "zone": {
                "description": "The IANA zone name.",
                "type": "string"
              }
            },
            "required": [
              "local_time",
              "zone"
            ],
            "type": "object"
          }
        ],
        "description": "When a row becomes knowable — the one thing custom data must declare,\nbecause it is where lookahead enters: a daily close stamped at midnight is\nnot readable at 10:00 of that day."
      },
      "Awaiting": {
        "description": "What a parked verb answers, 202.",
        "properties": {
          "approval": {
            "description": "Its id at `read/approvals/<id>`.",
            "format": "uuid",
            "type": "string"
          },
          "expires_at": {
            "description": "The Unix second an hour after it parked.",
            "format": "int64",
            "type": "integer"
          },
          "summary": {
            "description": "What the card shows of it, the approval's `summary`.",
            "type": "string"
          },
          "window": {
            "description": "Whether a page holds `/ws/live` open to approve it in.",
            "type": "boolean"
          }
        },
        "required": [
          "approval",
          "expires_at",
          "window",
          "summary"
        ],
        "type": "object"
      },
      "Axis": {
        "description": "The side the price axis draws on.",
        "enum": [
          "right",
          "left"
        ],
        "type": "string"
      },
      "BarSession": {
        "description": "The session an alert reads: an intraday equity's or future's view (an\nequity's extended hours or `24h`, a future's Globex session), else the\nregular session.",
        "enum": [
          "regular",
          "extended",
          "24h"
        ],
        "type": "string"
      },
      "BarsDepth": {
        "anyOf": [
          {
            "description": "From a fixed first day.",
            "properties": {
              "since_utc": {
                "description": "The first second.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "since_utc"
            ],
            "type": "object"
          },
          {
            "description": "Over a trailing window.",
            "properties": {
              "rolling_days": {
                "description": "Days back.",
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "rolling_days"
            ],
            "type": "object"
          }
        ],
        "description": "How far back a provider's bars reach."
      },
      "Beat": {
        "description": "`/ws/live`'s heartbeat, sent every 10 s so a client hearing nothing for 25 s may count the socket dead; no change, so no `seq`.",
        "properties": {
          "type": {
            "const": "beat",
            "description": "`beat`.",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "Binding": {
        "description": "One indicator bound to a chart pane, never its values: those are `get/indicators`'.",
        "properties": {
          "definition": {
            "$ref": "#/components/schemas/BoundDefinition"
          },
          "id": {
            "description": "The binding's object id, a UUID.",
            "type": "string"
          },
          "node": {
            "description": "The node it reads at.",
            "type": "string"
          },
          "series": {
            "description": "The series it draws, by name.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "node",
          "definition",
          "series"
        ],
        "type": "object"
      },
      "BindingProvenance": {
        "description": "What a binding's values were computed from.",
        "properties": {
          "bars_sha": {
            "description": "sha256 over the pane's bars, each row's little-endian `i64` time then five `f64` (o, h, l, c, v).",
            "type": "string"
          },
          "definition": {
            "description": "The definition, `name@version`.",
            "type": "string"
          },
          "params": {
            "description": "The binding's parameters, as `definition.params`."
          }
        },
        "required": [
          "bars_sha",
          "definition",
          "params"
        ],
        "type": "object"
      },
      "Bindings": {
        "description": "A chart pane's bindings in bind order.",
        "items": {
          "$ref": "#/components/schemas/Binding"
        },
        "type": "array"
      },
      "Book": {
        "description": "One book across every account of a stage.",
        "properties": {
          "accounts": {
            "description": "One per row of the stage, in link order.",
            "items": {
              "$ref": "#/components/schemas/BookAccount"
            },
            "type": "array"
          },
          "placed": {
            "description": "Who placed it: one group per seat owner, then `manual` (the user and every agent), then `venue`.",
            "items": {
              "$ref": "#/components/schemas/Placed"
            },
            "type": "array"
          },
          "positions": {
            "description": "One per item any row holds, by symbol.",
            "items": {
              "$ref": "#/components/schemas/BookPosition"
            },
            "type": "array"
          },
          "since_utc": {
            "description": "The ET midnight every \"today\" figure starts at: the first row's `day.since_utc`. A coin's day starts at 16:00 ET of the previous NYSE session's date.",
            "format": "int64",
            "type": "integer"
          },
          "stage": {
            "$ref": "#/components/schemas/Stage"
          },
          "totals": {
            "$ref": "#/components/schemas/BookTotals"
          }
        },
        "required": [
          "stage",
          "since_utc",
          "accounts",
          "totals",
          "positions",
          "placed"
        ],
        "type": "object"
      },
      "BookAccount": {
        "description": "One row of the book: its `link.accounts` members, then its own figures off its `account` node, each `null` on a row with no book here (unbound, connecting, locked, failed).",
        "properties": {
          "alias": {
            "description": "What the user reads the account as.",
            "type": "string"
          },
          "allocated_usd": {
            "description": "The capital allocated to seats on the row, whole dollars.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "approved": {
            "description": "Whether the router may choose the row for an order that names no account.",
            "type": "boolean"
          },
          "arm": {
            "$ref": "#/components/schemas/ArmWord"
          },
          "as_of": {
            "description": "When the node was read, an ISO 8601 UTC time.",
            "type": [
              "string",
              "null"
            ]
          },
          "bound": {
            "description": "Whether `state` is `bound`.",
            "type": "boolean"
          },
          "brokerage": {
            "description": "The venue's own word, `sim` for the in-process book.",
            "type": "string"
          },
          "buying_power": {
            "description": "This account's alone: no one account can spend a sum.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "cash": {
            "description": "The cash off the same `money`; `null` where the venue states none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "classes": {
            "description": "The classes the row's bound adapter declares it trades.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "day": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AccountDay"
              },
              {
                "type": "null"
              }
            ]
          },
          "equity": {
            "description": "The account's equity off its `account` node's `money`; `null` until the venue first answers.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The handle, `<venue>_<paper|live>_<last four>` lowercase (`taji_sim` for the in-process book).",
            "type": "string"
          },
          "kind": {
            "description": "The venue's own word for the kind of account, empty where it has none.",
            "type": "string"
          },
          "live": {
            "description": "Whether the account trades real money; `false` on a paper row and the sim.",
            "type": "boolean"
          },
          "liveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarkState"
              },
              {
                "type": "null"
              }
            ],
            "description": "The stalest of its positions' marks."
          },
          "margin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Margin"
              },
              {
                "type": "null"
              }
            ],
            "description": "The venue's own, as the `account` node carries it."
          },
          "margin_used_pct": {
            "description": "`margin.used` over `equity` × 100, to two places.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "open_risk": {
            "description": "The dollars the working stops put at risk on the rows of ours; `null` where no row of ours has both a basis and a stop.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "positions": {
            "description": "How many positions it holds.",
            "format": "uint",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "reason": {
            "description": "Why the row is not bound, `null` when it is.",
            "type": [
              "string",
              "null"
            ]
          },
          "refresh_failed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RefreshFailure"
              },
              {
                "type": "null"
              }
            ]
          },
          "share_pct": {
            "description": "Its `equity` over `totals.equity` × 100, to two places.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/AccountState"
          },
          "tail": {
            "description": "The last four of the venue's own account number.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "brokerage",
          "live",
          "alias",
          "tail",
          "kind",
          "arm",
          "state",
          "bound",
          "reason",
          "classes",
          "approved",
          "allocated_usd",
          "equity",
          "cash",
          "buying_power",
          "margin_used_pct",
          "margin",
          "day",
          "open_risk",
          "positions",
          "share_pct",
          "liveness",
          "as_of",
          "refresh_failed"
        ],
        "type": "object"
      },
      "BookFill": {
        "description": "A fill and the account that took it.",
        "properties": {
          "account": {
            "description": "The handle of the row that took it.",
            "type": "string"
          },
          "at": {
            "description": "UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "basis_at_close": {
            "description": "The average cost the closed quantity met, on a fill that closed; `null` on an unpriced lot.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "closed": {
            "description": "The quantity it closed (a flip's opening residual not in it), `null` on a fill that closed none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "execution_id": {
            "description": "The venue's; with the broker, the journal's dedupe key.",
            "type": [
              "string",
              "null"
            ]
          },
          "fee": {
            "description": "The fee the venue stated; `null` where it states none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fee_in_kind": {
            "description": "Base units the venue withheld from the units received (a crypto buy's fee taken in the asset), stated or measured once the venue's position is adopted; absent where none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The intent's, `null` on a fill of an order Taji did not place.",
            "type": [
              "string",
              "null"
            ]
          },
          "instrument": {
            "$ref": "#/components/schemas/Instrument",
            "description": "The key its position folds under."
          },
          "item": {
            "description": "The instrument as an item, `<kind>:<key>`.",
            "type": "string"
          },
          "leg": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The composite member that executed, `null` off a composite."
          },
          "multiplier": {
            "description": "The dollars per unit of price `realized` was priced at, on a fill that closed; `null` where it is not known.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "order_id": {
            "description": "The venue's member order.",
            "type": [
              "string",
              "null"
            ]
          },
          "owner": {
            "description": "Who placed the order: `human`, `agent:<id>` or `seat:<desk>/<name>`, an exit its owner's; `null` on the venue's own.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "description": "The price it executed at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "qty": {
            "description": "The quantity executed.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "realized": {
            "description": "What it booked against the average cost it met, gross of money fees\n(a buy's fee in kind is in that cost), in dollars: times 100 on a standard option, the venue's point value on a\nfuture; `null` on a fill that opens or adds, that closed an unpriced lot,\nor whose multiplier is not known.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "$ref": "#/components/schemas/Side",
            "description": "The side of the execution."
          },
          "source": {
            "$ref": "#/components/schemas/FillSource"
          }
        },
        "required": [
          "account",
          "id",
          "instrument",
          "leg",
          "side",
          "qty",
          "price",
          "at",
          "order_id",
          "execution_id",
          "fee",
          "realized",
          "source",
          "item",
          "owner",
          "closed",
          "multiplier",
          "basis_at_close"
        ],
        "type": "object"
      },
      "BookOrder": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PlacedOrder"
          },
          {
            "$ref": "#/components/schemas/HeldOrder"
          },
          {
            "$ref": "#/components/schemas/BookVenueOrder"
          }
        ],
        "description": "A working order and the account it works in: an order of ours and one\nTaji holds already name theirs."
      },
      "BookOrders": {
        "description": "Every account's working orders, in link order.",
        "properties": {
          "rows": {
            "items": {
              "$ref": "#/components/schemas/BookOrder"
            },
            "type": "array"
          },
          "rows_total": {
            "description": "How many there were.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "rows",
          "rows_total"
        ],
        "type": "object"
      },
      "BookPosition": {
        "description": "One item held in any row of the book, its legs merged.",
        "properties": {
          "accounts": {
            "description": "How many legs.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "as_of": {
            "description": "The freshest leg's mark time, an ISO 8601 UTC time.",
            "type": [
              "string",
              "null"
            ]
          },
          "basis": {
            "description": "The legs' quantity-weighted average; `null` where a leg states none or the legs are on opposite sides.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "day_pnl": {
            "description": "The legs' sum; `null` where any leg's is.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "gross": {
            "description": "The legs' sizes summed unsigned, what `stopped` is read against: opposite legs net below it.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "item": {
            "description": "The item, `<kind>:<key>`.",
            "type": "string"
          },
          "legs": {
            "description": "One per row holding it, in link order.",
            "items": {
              "$ref": "#/components/schemas/Holding"
            },
            "type": "array"
          },
          "liveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarkState"
              },
              {
                "type": "null"
              }
            ]
          },
          "mark": {
            "description": "The freshest leg's mark.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "net": {
            "description": "The legs' signed sum.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "realized_today": {
            "description": "What today's closing fills on it booked across the rows: `0` with none, `null` where one booked none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "stopped": {
            "description": "The legs' sum.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "symbol": {
            "description": "The instrument's id, the book's key for marks and feeds.",
            "type": "string"
          },
          "unrealized": {
            "description": "The legs' sum; `null` where any leg's is: a partial sum would understate.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "item",
          "symbol",
          "net",
          "basis",
          "mark",
          "as_of",
          "liveness",
          "unrealized",
          "day_pnl",
          "realized_today",
          "stopped",
          "gross",
          "accounts",
          "legs"
        ],
        "type": "object"
      },
      "BookTotals": {
        "description": "Each figure the sum over the rows that state it, `null` where none does.",
        "properties": {
          "accounts": {
            "description": "How many rows the stage has.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "capital_allocated_usd": {
            "description": "The capital allocated to seats on the rows, whole dollars; `null` on a book with no rows.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "cash": {
            "description": "The rows' cash summed; the rows that state none are `unstated.cash`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "day_pct": {
            "description": "The `day_pnl` of the rows stating both over the equity their day started on.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "day_pnl": {
            "description": "Today's P&L of the rows that state it, summed; the others are `unstated.day_pnl`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "equity": {
            "description": "The rows' equities summed; the rows that state none are `unstated.equity`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "open_risk": {
            "description": "The dollars the working stops put at risk, summed over the rows that state it; the others are `unstated.open_risk`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "positions": {
            "description": "How many items are held.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "realized_today": {
            "description": "What today's executions booked, summed over the rows that state it; the others are `unstated.realized_today`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "unrealized": {
            "description": "The rows' open P&L summed; the rows with a position that states none are `unstated.unrealized`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "unstated": {
            "$ref": "#/components/schemas/Unstated"
          }
        },
        "required": [
          "accounts",
          "positions",
          "equity",
          "cash",
          "day_pnl",
          "day_pct",
          "realized_today",
          "unrealized",
          "open_risk",
          "capital_allocated_usd",
          "unstated"
        ],
        "type": "object"
      },
      "BookTrade": {
        "description": "A round trip and the account it was made in.",
        "properties": {
          "account": {
            "description": "The handle of the row that made it.",
            "type": "string"
          },
          "closed_at": {
            "description": "`None` while open.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "desk_id": {
            "description": "The desk of `owner`'s seat; `None` on any other owner.",
            "type": [
              "string",
              "null"
            ]
          },
          "entry_price": {
            "description": "Quantity-weighted, `None` when any part of the side is unpriced.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "exit_price": {
            "description": "Quantity-weighted over the exit side; `null` while open or when any part of the side is unpriced.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fees": {
            "description": "Σ the fills' stated fees, a positive cost, a flip's split by quantity\nbetween its two trades; `None` when none states one.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fills": {
            "description": "Execution ids, oldest first; a flip's fill is in both trades.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The first fill's execution id; `seed:<instrument>:<at>` for a trade\nthat opened on a lot no fill moved (the anchor's seed, an adoption).",
            "type": "string"
          },
          "instrument": {
            "$ref": "#/components/schemas/Instrument"
          },
          "item": {
            "description": "The instrument as an item, `<kind>:<key>`.",
            "type": "string"
          },
          "last_at": {
            "description": "UTC seconds of the last write to the trade's lot.",
            "format": "int64",
            "type": "integer"
          },
          "opened_at": {
            "description": "`None` on a trade opened by a lot older than the journal.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "owner": {
            "default": null,
            "description": "Who placed the first of its fills an owner is known for, as\n`projection::source_key` spells one (`human`, `agent:<id>`,\n`seat:<desk>/<name>`); `None` on a trade the venue's own fills\nalone make (placed outside Taji) and on a seed's.",
            "type": [
              "string",
              "null"
            ]
          },
          "placed_by": {
            "description": "Its `owner`, else `venue` (Taji did not place it).",
            "type": "string"
          },
          "pnl": {
            "description": "Gross, as `realized` is; `None` when a closing fill booked none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "qty": {
            "description": "The entry side's quantity.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "return_pct": {
            "description": "Percent move from `entry_price` to `exit_price`, signed so a profit is positive on a `short` too; `null` without either price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "description": "`long` or `short`.",
            "type": "string"
          },
          "symbol": {
            "description": "The instrument's id: the symbol, or the OCC-21 compact id of an option.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "symbol",
          "instrument",
          "side",
          "desk_id",
          "owner",
          "qty",
          "entry_price",
          "exit_price",
          "opened_at",
          "closed_at",
          "last_at",
          "pnl",
          "fees",
          "return_pct",
          "fills",
          "account",
          "item",
          "placed_by"
        ],
        "type": "object"
      },
      "BookVenueOrder": {
        "description": "An order the venue holds that Taji did not place, and the account it works in.",
        "properties": {
          "account": {
            "description": "The handle of the row it works in.",
            "type": "string"
          },
          "cancelable": {
            "description": "Whether the venue still holds it to cancel.",
            "type": "boolean"
          },
          "exec": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Glyph"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stop limit's `STP LMT`, its `price` its stop."
          },
          "group": {
            "description": "The other orders of its venue group, `[]` for a plain order.",
            "items": {
              "$ref": "#/components/schemas/GroupLink"
            },
            "type": "array"
          },
          "item": {
            "description": "`symbol` as an item.",
            "type": [
              "string",
              "null"
            ]
          },
          "limit": {
            "description": "A stop limit's limit price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "order_id": {
            "description": "The venue's own id: no intent names it.",
            "type": "string"
          },
          "price": {
            "description": "The price it rests at; a stop limit's its stop.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "qty": {
            "description": "The quantity it was asked for.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Side"
              },
              {
                "type": "null"
              }
            ],
            "description": "The side it was asked on."
          },
          "state": {
            "description": "The venue's own word.",
            "type": "string"
          },
          "stop": {
            "description": "A stop limit's stop price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "The venue's symbol for it.",
            "type": [
              "string",
              "null"
            ]
          },
          "tif": {
            "description": "Its time in force as Taji spells a `Tif`'s variant.",
            "type": [
              "string",
              "null"
            ]
          },
          "venue_held": {
            "description": "Always `true`: the flag a reader forks on.",
            "type": "boolean"
          }
        },
        "required": [
          "account",
          "order_id",
          "venue_held",
          "symbol",
          "item",
          "side",
          "exec",
          "price",
          "limit",
          "stop",
          "qty",
          "tif",
          "state",
          "cancelable",
          "group"
        ],
        "type": "object"
      },
      "BoughtBars": {
        "description": "A bars buy of one item, written into the store. Members in name order, as [`PricedProduct`]'s.",
        "properties": {
          "cached": {
            "description": "Always `false`: it was bought, not read off the store.",
            "type": "boolean"
          },
          "cost_usd": {
            "description": "What its group's price was.",
            "type": "string"
          },
          "dataset_id": {
            "description": "The series written.",
            "type": "string"
          },
          "fetched_at_utc": {
            "description": "When it was bought.",
            "format": "int64",
            "type": "integer"
          },
          "provider": {
            "description": "The provider that answered.",
            "type": "string"
          },
          "rest_after": {
            "description": "Set when the vendor rate limited a later piece of the ask: the rest is askable from then.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "rows": {
            "description": "Bars the vendor sent, `0` for a range it holds none of.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "tier": {
            "description": "The price tier the written series came off, `plan` or `usage`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "cached",
          "cost_usd",
          "dataset_id",
          "fetched_at_utc",
          "provider",
          "rest_after",
          "rows",
          "tier"
        ],
        "type": "object"
      },
      "BoundDefinition": {
        "description": "What a binding computes and where it draws.",
        "properties": {
          "id": {
            "description": "The definition, `name@version`.",
            "type": "string"
          },
          "pane": {
            "description": "`overlay` or `subplot`.",
            "type": "string"
          },
          "params": {
            "description": "The binding's parameters, as its catalog row's `schema` takes them."
          },
          "source": {
            "description": "The legend's short name, or a bound registered column's dataset.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "params",
          "source",
          "pane"
        ],
        "type": "object"
      },
      "BoundIndicator": {
        "description": "One binding read on its own node: the row and what it was computed from.",
        "properties": {
          "definition": {
            "$ref": "#/components/schemas/BoundDefinition"
          },
          "id": {
            "description": "The binding's object id, a UUID.",
            "type": "string"
          },
          "node": {
            "description": "The node it reads at.",
            "type": "string"
          },
          "provenance": {
            "$ref": "#/components/schemas/BindingProvenance"
          },
          "series": {
            "description": "The series it draws, by name.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "node",
          "definition",
          "series",
          "provenance"
        ],
        "type": "object"
      },
      "BoxMethod": {
        "description": "How a boxed style's box was sized.",
        "oneOf": [
          {
            "const": "traditional",
            "description": "The box picked.",
            "type": "string"
          },
          {
            "const": "percent",
            "description": "The Percentage LTP of the last close.",
            "type": "string"
          },
          {
            "const": "atr",
            "description": "Wilder's ATR(14) of the pane's own bars.",
            "type": "string"
          }
        ]
      },
      "BreakAdopted": {
        "description": "What `breaks/<break_id>/adopt` answers once the journal has.",
        "properties": {
          "answer": {
            "description": "`ADOPTED <instrument> <expected> -> <actual>`.",
            "type": "string"
          },
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "node",
          "answer"
        ],
        "type": "object"
      },
      "BreakKind": {
        "description": "The reconciler's word for a break, [`DiscrepancyKind`]'s.",
        "oneOf": [
          {
            "enum": [
              "SignFlipped",
              "PositionMissing",
              "QuantityShort",
              "QuantityExcess",
              "UnconfirmedQuantity"
            ],
            "type": "string"
          },
          {
            "const": "OrderMissing",
            "description": "An unacked intent the venue lists no order for.",
            "type": "string"
          },
          {
            "const": "CryptoFee",
            "description": "A crypto leg short by at most the fee the venue took in the credited asset.",
            "type": "string"
          },
          {
            "const": "UnspelledLeg",
            "description": "A venue leg id no instrument spells.",
            "type": "string"
          }
        ]
      },
      "BreakRow": {
        "description": "One open break between this account's book and its venue, as\n`stadium::discrepancy::open_breaks` folds it; decimals as text.",
        "properties": {
          "actual": {
            "description": "The venue's net.",
            "type": "string"
          },
          "break_id": {
            "description": "The break's id, the same across its sightings.",
            "format": "uuid",
            "type": "string"
          },
          "confirmed": {
            "description": "Seen identically twice: only a confirmed break can be adopted.",
            "type": "boolean"
          },
          "expected": {
            "description": "The journal's net.",
            "type": "string"
          },
          "instrument": {
            "description": "The instrument the break is on, as the reconciler names it.",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/BreakKind"
          },
          "opened_at": {
            "description": "An RFC 3339 instant.",
            "type": "string"
          },
          "sightings": {
            "description": "How many times the reconciler has sighted it.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "break_id",
          "instrument",
          "kind",
          "expected",
          "actual",
          "opened_at",
          "confirmed",
          "sightings"
        ],
        "type": "object"
      },
      "Breaks": {
        "description": "What `GET /read/trading/<acct>/breaks` answers: every open break, `[]` with none.",
        "items": {
          "$ref": "#/components/schemas/BreakRow"
        },
        "type": "array"
      },
      "Brief": {
        "description": "A form's panel: why link it, its act, and the fields typed on its `type` step.",
        "properties": {
          "act": {
            "description": "The act's words, whose press in the sheet seals the link.",
            "type": "string"
          },
          "fields": {
            "description": "The fields typed on `type`, in the manifest's order; none asked aside on a step.",
            "items": {
              "$ref": "#/components/schemas/BriefField"
            },
            "type": "array"
          },
          "why": {
            "description": "Why link it, the manifest's `brief.why`.",
            "type": "string"
          }
        },
        "required": [
          "why",
          "act",
          "fields"
        ],
        "type": "object"
      },
      "BriefField": {
        "description": "A field typed on a form's `type` step.",
        "properties": {
          "label": {
            "description": "What the sheet calls it.",
            "type": "string"
          },
          "name": {
            "description": "The name its value is posted under.",
            "type": "string"
          },
          "secret": {
            "description": "Whether it is a secret: one an agent made goes to `flow/secret`.",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "label",
          "secret"
        ],
        "type": "object"
      },
      "BudgetChip": {
        "description": "One risk budget chip.",
        "properties": {
          "label": {
            "description": "The budget in dollars as drawn, `$<n>`.",
            "type": "string"
          },
          "on": {
            "description": "Whether the draft's risk budget is this one.",
            "type": "boolean"
          },
          "value": {
            "description": "The budget in dollars, the number the chip posts back.",
            "type": "string"
          }
        },
        "required": [
          "label",
          "value",
          "on"
        ],
        "type": "object"
      },
      "BudgetSet": {
        "description": "What `link/data/budget` answers: the budget as written.",
        "properties": {
          "data_budget": {
            "description": "The device's data budget in USD, a decimal string.",
            "type": "string"
          }
        },
        "required": [
          "data_budget"
        ],
        "type": "object"
      },
      "Cache": {
        "description": "What this device keeps: one handle per class and interval of bars.",
        "properties": {
          "rows": {
            "items": {
              "$ref": "#/components/schemas/Handle"
            },
            "type": "array"
          }
        },
        "required": [
          "rows"
        ],
        "type": "object"
      },
      "CachedBars": {
        "description": "A bars ask a stored series already covers: it bought nothing and cost nothing.\nMembers in name order, as [`PricedProduct`]'s.",
        "properties": {
          "cached": {
            "description": "Always `true`.",
            "type": "boolean"
          },
          "dataset_id": {
            "description": "The series that covers the ask.",
            "type": "string"
          },
          "provenance": {
            "$ref": "#/components/schemas/ProvenanceRow",
            "description": "Where the series' rows came from."
          },
          "source": {
            "description": "Always `cache`.",
            "type": "string"
          }
        },
        "required": [
          "cached",
          "dataset_id",
          "provenance",
          "source"
        ],
        "type": "object"
      },
      "Cancellation": {
        "additionalProperties": false,
        "description": "A chat's running turn, or one of its subagents, cancelled.",
        "properties": {
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "task": {
            "default": null,
            "description": "One of the chat's subagents' sessions, cancelled alone.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "session"
        ],
        "type": "object"
      },
      "Cancellations": {
        "description": "What `orders/cancel_all` answers once every cancel resolved.",
        "properties": {
          "answer": {
            "description": "`CANCELLED <c> of <n>`: `n` the orders asked, `c` how many the venue confirmed.",
            "type": "string"
          },
          "cancelled": {
            "description": "The ids the venue confirmed cancelled.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "filled": {
            "description": "The ids filled before the cancel landed.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "refused": {
            "description": "The venue's or the book's words.",
            "items": {
              "$ref": "#/components/schemas/NotCancelled"
            },
            "type": "array"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "unresolved": {
            "description": "No terminal within the cancel's wait: the order may still rest; reconcile reads the venue.",
            "items": {
              "$ref": "#/components/schemas/NotCancelled"
            },
            "type": "array"
          }
        },
        "required": [
          "node",
          "answer",
          "cancelled",
          "filled",
          "unresolved",
          "refused"
        ],
        "type": "object"
      },
      "Candidate": {
        "properties": {
          "ask": {
            "description": "The combo's ask per share, signed (a credit negative).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "bid": {
            "description": "The combo's bid per share, signed (a credit negative).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "breakevens": {
            "description": "The underlying prices at which the expiry dollars cross zero.",
            "items": {
              "pattern": "^-?\\d+(\\.\\d+)?$",
              "type": "string"
            },
            "type": "array"
          },
          "days": {
            "description": "Whole days from the session's New York date to `expiry`.",
            "format": "int32",
            "type": "integer"
          },
          "expected_payoff": {
            "description": "The mean expiry dollars over the asked price range, sampled at 41 evenly spaced points.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "expiry": {
            "description": "The legs' expiry date, `yyyy-mm-dd`.",
            "format": "date",
            "type": "string"
          },
          "formula": {
            "description": "Each leg as a chip spells it, `790C` (`2×800C` at ratio 2).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/Leg"
            },
            "type": "array"
          },
          "max_loss": {
            "description": "Dollars per combo at expiry, as a positive figure; `null` where unbounded.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "max_loss_90": {
            "description": "The worst expiry dollars across the central 90% of the lognormal at the legs' mean IV, as a positive loss; `0` where none loses.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "max_loss_99": {
            "description": "The worst expiry dollars across the central 99% of the lognormal at the legs' mean IV, as a positive loss; `0` where none loses.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "max_profit": {
            "description": "Dollars per combo at expiry; `null` where unbounded.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "moneyness": {
            "$ref": "#/components/schemas/Moneyness"
          },
          "name": {
            "description": "The preset's display name.",
            "type": "string"
          },
          "reward_risk": {
            "description": "`max_profit` over `max_loss` to two places; `null` where either is unbounded or the loss is not above zero.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "spread_pct": {
            "description": "The legs' mean (ask - bid) / mid, in percent.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "theo": {
            "description": "The legs' summed theoretical value per share, signed (a credit negative): each row's `theo`, else Taji's model at its IV.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "type": {
            "description": "The preset's id, one of the finder's types.",
            "type": "string"
          },
          "vertices": {
            "description": "The expiry payoff curve as `[underlying, dollars]` points, ascending; straight lines between them are exact.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "win_rate": {
            "description": "The chance the expiry dollars are above zero, as a fraction, lognormal at the legs' mean IV.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "type",
          "name",
          "expiry",
          "days",
          "legs",
          "formula",
          "max_profit",
          "max_loss",
          "reward_risk",
          "breakevens",
          "theo",
          "bid",
          "ask",
          "spread_pct",
          "expected_payoff",
          "win_rate",
          "max_loss_90",
          "max_loss_99",
          "vertices",
          "moneyness"
        ],
        "type": "object"
      },
      "Capability": {
        "description": "What the account's BOUND adapter declares for equities, serialized in the\nadapter's own types: a venue that excludes something excludes it here with no\ncode of ours. The MCP bridge describes its trading tools from this.",
        "properties": {
          "activate": {
            "$ref": "#/components/schemas/Activation",
            "description": "Who holds an order's `constraints.activate` price rule, per class."
          },
          "capabilities": {
            "$ref": "#/components/schemas/AssetCapability",
            "description": "What the adapter trades and serves for equities, and the orders it sends."
          },
          "protection": {
            "$ref": "#/components/schemas/ProtectionCapability",
            "description": "What the venue holds of a protective order over equities."
          },
          "replace": {
            "$ref": "#/components/schemas/Replace",
            "description": "Whether the venue re-prices a working order in place."
          }
        },
        "required": [
          "protection",
          "replace",
          "capabilities",
          "activate"
        ],
        "type": "object"
      },
      "CaptureAsk": {
        "description": "`/ws/live`'s `changed ui/capture` to a page socket: take a capture and post it to `ui/captured`. No `seq`: it changes no node a `since` would reread.",
        "properties": {
          "path": {
            "const": "ui/capture",
            "description": "`ui/capture`.",
            "type": "string"
          },
          "record": {
            "$ref": "#/components/schemas/CaptureRecord",
            "description": "What to capture."
          },
          "type": {
            "const": "changed",
            "description": "`changed`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "path",
          "record"
        ],
        "type": "object"
      },
      "CaptureFailure": {
        "description": "Why the page took no capture.",
        "enum": [
          "no_window",
          "no_pane"
        ],
        "type": "string"
      },
      "CaptureOf": {
        "description": "What a capture takes: the whole window or one pane.",
        "enum": [
          "window",
          "pane"
        ],
        "type": "string"
      },
      "CaptureRecord": {
        "description": "What to capture, and the id the page's post names.",
        "properties": {
          "id": {
            "description": "The capture's id, which `ui/captured`'s `id` names.",
            "type": "string"
          },
          "of": {
            "$ref": "#/components/schemas/CaptureOf",
            "description": "The window or one pane."
          },
          "pane": {
            "description": "The pane to capture, `null` for the active one or the window.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "of",
          "pane"
        ],
        "type": "object"
      },
      "Captured": {
        "additionalProperties": false,
        "description": "The page's answer to `changed ui/capture`: a PNG, or why there is none.",
        "properties": {
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptureFailure"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why there is no PNG; exactly one of `png` and `error` is sent."
          },
          "id": {
            "description": "The `id` the `changed` frame's `record` carried.",
            "type": "string"
          },
          "png": {
            "default": null,
            "description": "The PNG in base64.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "CardAnswer": {
        "additionalProperties": false,
        "description": "A card's pick, or a question's answer.",
        "properties": {
          "action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuestionAction"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A question's answer."
          },
          "content": {
            "additionalProperties": true,
            "default": null,
            "description": "With `accept` alone: the answer, keyed by the question's properties.",
            "type": [
              "object",
              "null"
            ]
          },
          "option": {
            "default": null,
            "description": "A permission card's pick: an `optionId` the card offered.",
            "type": [
              "string",
              "null"
            ]
          },
          "request": {
            "description": "The card's request id.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "request"
        ],
        "type": "object"
      },
      "CardPicked": {
        "description": "The pick a permission card was answered with.",
        "properties": {
          "option": {
            "description": "The `optionId` sent.",
            "type": "string"
          },
          "request": {
            "description": "The card's request id.",
            "type": "string"
          }
        },
        "required": [
          "request",
          "option"
        ],
        "type": "object"
      },
      "Carried": {
        "additionalProperties": false,
        "description": "A secret field an agent carries for a flow's next post.",
        "properties": {
          "field": {
            "description": "A `brief.fields` name of the flow that is `secret` and not `held`.",
            "minLength": 1,
            "type": "string"
          },
          "flow": {
            "description": "The flow's id, as `GET /read/flows` serves it.",
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "description": "The secret, never echoed; `null` drops the field. Blank text is 400 `value`.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          }
        },
        "required": [
          "flow",
          "field",
          "value"
        ],
        "type": "object"
      },
      "Catalog": {
        "description": "Every route an agent can find, as `GET /read/routes` answers.",
        "properties": {
          "api": {
            "description": "The wire's version ([`API`]).",
            "type": "string"
          },
          "refusals": {
            "description": "The refusals every route may answer besides those its row names.",
            "items": {
              "$ref": "#/components/schemas/RefusalCode"
            },
            "type": "array"
          },
          "rows": {
            "description": "One row per `GET` and per `POST` the header table documents, then each enabled plugin's verbs and products.",
            "items": {
              "$ref": "#/components/schemas/Route"
            },
            "type": "array"
          },
          "version": {
            "description": "This kernel's version.",
            "type": "string"
          }
        },
        "required": [
          "version",
          "api",
          "rows",
          "refusals"
        ],
        "type": "object"
      },
      "ChainAnswer": {
        "additionalProperties": true,
        "description": "A `chains` buy's answer: the read's `Answer`, each part's `rows` its chain\n`{expiries, rows, spot, feed}`.",
        "type": "object"
      },
      "ChainRow": {
        "description": "One contract of a chain. `contract` is [`Instrument::id`] (OCC-21 compact),\n`root` its OCC series (`SPX` beside `SPXW`). Every figure the vendor does\nnot state is absent: `facts` holds what the vendor states alone (its\n`multiplier` never assumed 100), and `ts: None` is a listing with no quote.",
        "properties": {
          "ask": {
            "description": "The best ask per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "ask_iv": {
            "description": "σ solved from the ask, as `bid_iv` is from the bid.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "bid": {
            "description": "The best bid per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "bid_iv": {
            "description": "σ solved from the bid and from the ask, always Taji's (`computed`): no\nvendor states them.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "computed": {
            "description": "The figures [`crate::option_model::complete`] filled; empty, every\npresent figure is the vendor's. Not persisted.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "contract": {
            "description": "The contract's OCC-21 compact id.",
            "type": "string"
          },
          "delta": {
            "description": "Per share: the option's price change for a 1.00 move in the underlying.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "expiry": {
            "description": "The expiry date, `yyyy-mm-dd`.",
            "format": "date",
            "type": "string"
          },
          "facts": {
            "$ref": "#/components/schemas/Facts"
          },
          "gamma": {
            "description": "Per share: delta's change for a 1.00 move in the underlying.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "iv": {
            "description": "Implied volatility as a fraction: `0.2` is 20%.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "last": {
            "description": "The last trade's price per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "last_ts": {
            "description": "The last print's vendor time where the vendor dates only that.\nIn a row's JSON where set; no Arrow\ncolumn, so the wire's chain and legs rows omit it.",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "mid": {
            "description": "`(bid + ask) / 2`, absent unless both sides are above zero.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "open_interest": {
            "description": "Contracts open, as the vendor states it.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "probability": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Probability"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor's, off its streams only, else Taji's model."
          },
          "rho": {
            "description": "Per share, per 1.00 point of the rate in Taji's model.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "right": {
            "$ref": "#/components/schemas/OptionRight",
            "description": "`Call` or `Put`."
          },
          "root": {
            "description": "The contract's OCC root: `SPXW` for an SPX weekly.",
            "type": "string"
          },
          "std_dev": {
            "description": "The underlying's one-standard-deviation move to expiry, as a fraction of its price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "strike": {
            "description": "The strike price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "theo": {
            "description": "The vendor's, else Taji's model (`computed`).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "theta": {
            "description": "Per share, per calendar day in Taji's model.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "tradable": {
            "description": "Whether the vendor lists the contract as tradable; absent where it states nothing.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "ts": {
            "description": "When the vendor quoted the row; absent for a listing with no quote.",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "underlying": {
            "description": "The underlying's bare symbol: `SPX`, never `$SPX.X`.",
            "type": "string"
          },
          "vega": {
            "description": "Per share, per 1.00 point of volatility in Taji's model.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "volume": {
            "description": "Contracts traded, as the vendor states it.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "contract",
          "underlying",
          "root",
          "expiry",
          "strike",
          "right",
          "facts"
        ],
        "type": "object"
      },
      "ChangeRule": {
        "description": "The symbol's percent change since the last close against `percent`.",
        "properties": {
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "percent": {
            "description": "What the symbol's percent change is compared with, `2` for 2 %.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          },
          "symbol": {
            "description": "The symbol whose change is watched.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "predicate",
          "percent",
          "join"
        ],
        "type": "object"
      },
      "ChangeRuleAsk": {
        "additionalProperties": false,
        "description": "The symbol's percent change since the last close against `percent`.",
        "properties": {
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "percent": {
            "description": "What the symbol's percent change is compared with, `2` for 2 %.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          },
          "symbol": {
            "description": "The symbol whose change is watched.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "predicate",
          "percent"
        ],
        "type": "object"
      },
      "Changed": {
        "description": "What a plain verb answers: the node it acted on.",
        "properties": {
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "node"
        ],
        "type": "object"
      },
      "ChangedOrAwaiting": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Changed"
          },
          {
            "$ref": "#/components/schemas/Awaiting"
          }
        ],
        "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
      },
      "Changes": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "$ref": "#/components/schemas/Linked"
          },
          {
            "$ref": "#/components/schemas/CaptureAsk"
          }
        ],
        "description": "A `changed` frame: the changes since the last frame, a link ceremony's verdict, or a page's capture ask."
      },
      "Channel": {
        "description": "A messaging channel.",
        "properties": {
          "code": {
            "description": "The code the user may type on their phone instead of scanning `qr`, when its arm has shown one.",
            "type": [
              "string",
              "null"
            ]
          },
          "error": {
            "description": "The arm's last sentence (a run that ended, a failed send), `null` once a send lands.",
            "type": [
              "string",
              "null"
            ]
          },
          "fields": {
            "description": "The secret fields its link takes.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The wire word (`discord`), what `channels/*` verbs name it by.",
            "type": "string"
          },
          "inbound": {
            "description": "Whether the owner is heard on it.",
            "type": "boolean"
          },
          "last_sent_utc": {
            "description": "UTC seconds of the last send.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "description": "The platform as a person writes it (`Discord`).",
            "type": "string"
          },
          "owner": {
            "description": "The bound owner's handle as the channel reports it; `null` when unbound or outside the local and sheet tokens.",
            "type": [
              "string",
              "null"
            ]
          },
          "pair": {
            "description": "The pending pairing code the owner sends the bot while `pairing` and unexpired; `null` but to the local and sheet tokens.",
            "type": [
              "string",
              "null"
            ]
          },
          "qr": {
            "description": "The pending link's QR payload when its arm has shown one, dropped when the link settles or fails.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/ChannelState"
          }
        },
        "required": [
          "id",
          "name",
          "fields",
          "inbound",
          "state",
          "error",
          "qr",
          "code",
          "pair",
          "owner",
          "last_sent_utc"
        ],
        "type": "object"
      },
      "ChannelLink": {
        "additionalProperties": {
          "type": "string",
          "writeOnly": true
        },
        "description": "A channel linked by its row's fields, or paired again off its sealed\nrecord when none is given. Beside `channel`: the row's `fields`, each a\nnon-empty string (all or none), and any of its form's optional `on` fields\n(handed to the arm's `link`, never sealed; a blank one none), and no other key.",
        "properties": {
          "channel": {
            "description": "The channel's id, as `GET /read/channels` serves it.",
            "type": "string"
          }
        },
        "required": [
          "channel"
        ],
        "type": "object"
      },
      "ChannelLinked": {
        "description": "What `channels/link` answers: the channel linked.",
        "properties": {
          "channel": {
            "description": "The channel's id.",
            "type": "string"
          },
          "pair": {
            "description": "The code to send from the owner's account while an inbound channel waits for its owner; absent where the channel is linked at once.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "channel"
        ],
        "type": "object"
      },
      "ChannelList": {
        "description": "What `GET /read/channels` answers: one [`Channel`] per messaging channel this build holds.",
        "items": {
          "$ref": "#/components/schemas/Channel"
        },
        "type": "array"
      },
      "ChannelMessage": {
        "additionalProperties": false,
        "description": "A message sent to a channel: a caption, a chart pane's picture, or both.",
        "properties": {
          "channel": {
            "default": null,
            "description": "A linked channel's id; else the oldest unfinished phone question's channel, else every linked one.",
            "type": [
              "string",
              "null"
            ]
          },
          "pane": {
            "default": null,
            "description": "A chart pane's id: the picture `GET /read/ui/capture?pane=<pane>` answers.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "text": {
            "default": null,
            "description": "The text, the picture's caption when `pane` is given.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "ChannelName": {
        "additionalProperties": false,
        "description": "A channel, by its id.",
        "properties": {
          "channel": {
            "description": "The channel's id, as `GET /read/channels` serves it.",
            "type": "string"
          }
        },
        "required": [
          "channel"
        ],
        "type": "object"
      },
      "ChannelSent": {
        "description": "What `channels/send` answers: the platforms' ids of each message sent.",
        "properties": {
          "sent": {
            "description": "The platform's id of each message, channel by channel in the linked order.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "sent"
        ],
        "type": "object"
      },
      "ChannelState": {
        "description": "Where a channel's link stands: `unlinked`; `locked` (linked, its secret sealed under vault record\n`channel_<id>` in a vault this session has not opened); `pairing` (linked, waiting on the code); `linked`.",
        "enum": [
          "unlinked",
          "locked",
          "pairing",
          "linked"
        ],
        "type": "string"
      },
      "ChannelUnlinked": {
        "description": "What `channels/unlink` answers: the channel unlinked.",
        "properties": {
          "channel": {
            "description": "The channel's id.",
            "type": "string"
          }
        },
        "required": [
          "channel"
        ],
        "type": "object"
      },
      "ChartSettings": {
        "properties": {
          "alert_active_only": {
            "default": true,
            "description": "A paused, triggered or expired alert's line is hidden.",
            "type": "boolean"
          },
          "alert_color": {
            "$ref": "#/components/schemas/Hex",
            "default": "#dbdbdb"
          },
          "alert_hide_toasts": {
            "default": true,
            "description": "A fire's toast closes itself after 20 s.",
            "type": "boolean"
          },
          "alert_lines": {
            "default": true,
            "description": "The alerts' lines on the chart; `alert_color` colours them.",
            "type": "boolean"
          },
          "alert_sound": {
            "default": true,
            "description": "Whether an alert's fire plays its sound; `alert_volume` sets the level.",
            "type": "boolean"
          },
          "alert_volume": {
            "default": 50,
            "description": "Percent; above 100 plays at 100.",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": "integer"
          },
          "area_line": {
            "$ref": "#/components/schemas/Hex",
            "default": "#2962ff",
            "description": "Area's line; its fill is the line's colour fading down."
          },
          "auto_ladder": {
            "default": [
              "1m",
              "5m",
              "15m",
              "1h",
              "4h",
              "D",
              "W",
              "M"
            ],
            "description": "The rungs, finest first, each an interval word.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "auto_max_px": {
            "default": 30.0,
            "description": "Pixels; a bar wider than this moves the pane to the next finer rung. Over twice `auto_min_px`.",
            "format": "double",
            "type": "number"
          },
          "auto_min_px": {
            "default": 1.5,
            "description": "Pixels; a bar narrower than this moves the pane to the next coarser rung. At least 0.5.",
            "format": "double",
            "type": "number"
          },
          "auto_timeframe": {
            "default": true,
            "description": "The timeframe follows the zoom: a bar narrower than `auto_min_px` moves the pane to the ladder's next coarser\nrung, one wider than `auto_max_px` to its next finer.",
            "type": "boolean"
          },
          "background": {
            "$ref": "#/components/schemas/Hex",
            "default": "#0f0f0f",
            "description": "The solid colour, and a gradient's bottom."
          },
          "background_top": {
            "$ref": "#/components/schemas/Hex",
            "default": "#1f1f1f"
          },
          "background_type": {
            "$ref": "#/components/schemas/Ground",
            "default": "solid",
            "description": "Whether the canvas is one colour or a vertical gradient."
          },
          "bar_change": {
            "default": true,
            "description": "The bar's change values on the legend's series line.",
            "type": "boolean"
          },
          "bar_down": {
            "$ref": "#/components/schemas/Hex",
            "default": "#ff6a9c"
          },
          "bar_up": {
            "$ref": "#/components/schemas/Hex",
            "default": "#34e8c6"
          },
          "baseline_bottom": {
            "$ref": "#/components/schemas/Hex",
            "default": "#ff6a9c"
          },
          "baseline_level": {
            "default": 50,
            "description": "Baseline's base, percent of the shown price range from its bottom.",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": "integer"
          },
          "baseline_top": {
            "$ref": "#/components/schemas/Hex",
            "default": "#34e8c6"
          },
          "bid_ask_line": {
            "default": false,
            "description": "The bid and ask lines across the plot; `bid_ask_value` is their tags.",
            "type": "boolean"
          },
          "bid_ask_value": {
            "default": false,
            "description": "The quote's bid and ask: their tags and lines.",
            "type": "boolean"
          },
          "body": {
            "default": true,
            "description": "Whether candle bodies are drawn; `body_up` and `body_down` colour them.",
            "type": "boolean"
          },
          "body_down": {
            "$ref": "#/components/schemas/Hex",
            "default": "#ff6a9c"
          },
          "body_up": {
            "$ref": "#/components/schemas/Hex",
            "default": "#34e8c6"
          },
          "border": {
            "default": true,
            "description": "Whether candle borders are drawn; `border_up` and `border_down` colour them.",
            "type": "boolean"
          },
          "border_down": {
            "$ref": "#/components/schemas/Hex",
            "default": "#ff6a9c"
          },
          "border_up": {
            "$ref": "#/components/schemas/Hex",
            "default": "#34e8c6"
          },
          "box_percent": {
            "default": null,
            "description": "Renko's, Kagi's and point & figure's Percentage LTP box, percent of the last price; `None` is the view's box.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "brick_down": {
            "$ref": "#/components/schemas/Hex",
            "default": "#ff6a9c"
          },
          "brick_up": {
            "$ref": "#/components/schemas/Hex",
            "default": "#34e8c6",
            "description": "Renko, Line break, Kagi, Point & figure and Range."
          },
          "column_down": {
            "$ref": "#/components/schemas/Hex",
            "default": "#ff6a9c"
          },
          "column_prev_close": {
            "default": true,
            "description": "Columns are coloured by the close against the previous bar's close, not by the bar's own open and close.",
            "type": "boolean"
          },
          "column_up": {
            "$ref": "#/components/schemas/Hex",
            "default": "#34e8c6"
          },
          "countdown": {
            "default": true,
            "description": "The countdown to the bar's close on the price axis.",
            "type": "boolean"
          },
          "crosshair_color": {
            "$ref": "#/components/schemas/Hex",
            "default": "#8c8c8c"
          },
          "crosshair_style": {
            "$ref": "#/components/schemas/LineStyle",
            "default": "dashed",
            "description": "The crosshair's stroke."
          },
          "day_change": {
            "default": false,
            "description": "Last day change values: the symbol's change on the day, after the bar's, not following the crosshair.",
            "type": "boolean"
          },
          "day_of_week": {
            "default": true,
            "description": "The weekday in the time axis's and crosshair's date labels.",
            "type": "boolean"
          },
          "events_dividends": {
            "default": true,
            "description": "Badges on the price pane's floor: the Events rows.",
            "type": "boolean"
          },
          "events_earnings": {
            "default": true,
            "description": "Earnings badges on the price pane's floor.",
            "type": "boolean"
          },
          "events_earnings_breaks": {
            "default": false,
            "description": "A vertical line at each served earnings date: the Earnings\nbreaks.",
            "type": "boolean"
          },
          "events_filings": {
            "default": false,
            "description": "8-K filings at their filed date.",
            "type": "boolean"
          },
          "events_insiders": {
            "default": false,
            "description": "Open-market insider buys and sells at their trade date.",
            "type": "boolean"
          },
          "events_news": {
            "default": true,
            "description": "Latest-news badges on the price pane's floor.",
            "type": "boolean"
          },
          "events_splits": {
            "default": true,
            "description": "Split badges on the price pane's floor.",
            "type": "boolean"
          },
          "executions": {
            "default": true,
            "description": "An arrow at each fill's bar.",
            "type": "boolean"
          },
          "ext_line": {
            "default": true,
            "description": "The extended-hours last trade's line across the plot; `ext_value` is its tag.",
            "type": "boolean"
          },
          "ext_value": {
            "default": true,
            "description": "The pre-market, post-market or overnight last trade's tag on the price axis, and its line across the plot.",
            "type": "boolean"
          },
          "grid_h": {
            "default": true,
            "description": "Horizontal grid lines.",
            "type": "boolean"
          },
          "grid_h_color": {
            "$ref": "#/components/schemas/Hex",
            "default": "#3c3c3c"
          },
          "grid_h_style": {
            "$ref": "#/components/schemas/LineStyle",
            "default": "dotted",
            "description": "The horizontal grid lines' stroke."
          },
          "grid_v": {
            "default": true,
            "description": "Vertical grid lines.",
            "type": "boolean"
          },
          "grid_v_color": {
            "$ref": "#/components/schemas/Hex",
            "default": "#3c3c3c"
          },
          "grid_v_style": {
            "$ref": "#/components/schemas/LineStyle",
            "default": "dotted",
            "description": "The vertical grid lines' stroke."
          },
          "high_low_color": {
            "$ref": "#/components/schemas/Hex",
            "default": "#2962ff"
          },
          "high_low_line": {
            "default": false,
            "description": "The visible range's high and low price lines across the plot.",
            "type": "boolean"
          },
          "high_low_value": {
            "default": false,
            "description": "The visible range's high and low price tags on the price axis.",
            "type": "boolean"
          },
          "hlc_bars": {
            "default": false,
            "description": "Bars without the open tick.",
            "type": "boolean"
          },
          "hlc_close": {
            "$ref": "#/components/schemas/Hex",
            "default": "#2962ff"
          },
          "hlc_high": {
            "$ref": "#/components/schemas/Hex",
            "default": "#00bcd4"
          },
          "hlc_low": {
            "$ref": "#/components/schemas/Hex",
            "default": "#e91e63"
          },
          "indicator_inputs": {
            "default": true,
            "description": "Each indicator's inputs in the legend.",
            "type": "boolean"
          },
          "indicator_labels": {
            "default": false,
            "description": "Indicators' names beside their value tags, and the value tags themselves.",
            "type": "boolean"
          },
          "indicator_titles": {
            "default": true,
            "description": "Each indicator's title in the legend.",
            "type": "boolean"
          },
          "indicator_value_labels": {
            "default": true,
            "description": "Each indicator's value tag on the price axis.",
            "type": "boolean"
          },
          "indicator_values": {
            "default": true,
            "description": "Each indicator's values in the legend.",
            "type": "boolean"
          },
          "last_line": {
            "default": true,
            "description": "The last price's line across the plot.",
            "type": "boolean"
          },
          "last_value": {
            "default": true,
            "description": "The last price's tag on the price axis.",
            "type": "boolean"
          },
          "line_break_lines": {
            "default": 3,
            "description": "Line break's number of lines a reversal must take out.",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": "integer"
          },
          "line_color": {
            "$ref": "#/components/schemas/Hex",
            "default": "#2962ff",
            "description": "Line, Line with markers and Step line."
          },
          "logo": {
            "default": true,
            "description": "The symbol's logo in the legend.",
            "type": "boolean"
          },
          "nav_buttons": {
            "$ref": "#/components/schemas/Shown",
            "default": "hover"
          },
          "no_overlap": {
            "default": true,
            "description": "Tags stack clear of one another rather than overlapping at their prices.",
            "type": "boolean"
          },
          "ohlc": {
            "default": true,
            "description": "The open, high, low and close values on the legend's series line.",
            "type": "boolean"
          },
          "orders": {
            "default": true,
            "description": "The account's positions and working orders on the chart.",
            "type": "boolean"
          },
          "plus_button": {
            "default": true,
            "description": "The plus button on the price axis.",
            "type": "boolean"
          },
          "pnf_one_step_back": {
            "default": false,
            "description": "Point & figure's One step back building: at a reversal of 1, a one-figure column takes the turn's figure.",
            "type": "boolean"
          },
          "pnf_reversal": {
            "default": 3,
            "description": "Point & figure's reversal, in boxes.",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": "integer"
          },
          "precision": {
            "default": null,
            "description": "Decimals the price scale prints; `None` is the instrument's own.",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "prev_close_colors": {
            "default": false,
            "description": "Candle, Heikin-Ashi, volume-candle and bar styles colour a bar by its close against the previous bar's close, not by its own open and close.",
            "type": "boolean"
          },
          "prev_close_line": {
            "default": false,
            "description": "The previous close's line across the plot; `prev_close_value` is its tag.",
            "type": "boolean"
          },
          "prev_close_value": {
            "default": false,
            "description": "The previous session's close: its tag on the price axis and its line across the plot.",
            "type": "boolean"
          },
          "scale_modes": {
            "$ref": "#/components/schemas/Shown",
            "default": "hover"
          },
          "scale_price_only": {
            "default": false,
            "description": "The price scale fits the bars alone, not the compared lines.",
            "type": "boolean"
          },
          "scale_text": {
            "$ref": "#/components/schemas/Hex",
            "default": "#b8b8b8"
          },
          "separator_color": {
            "$ref": "#/components/schemas/Hex",
            "default": "#2e2e2e"
          },
          "session_breaks": {
            "default": false,
            "description": "A dashed line at each new session on an intraday chart.",
            "type": "boolean"
          },
          "symbol_label": {
            "default": false,
            "description": "The symbol's name beside its last price tag.",
            "type": "boolean"
          },
          "title": {
            "default": true,
            "description": "The symbol's title in the legend, as `title_source` says.",
            "type": "boolean"
          },
          "title_source": {
            "$ref": "#/components/schemas/TitleSource",
            "default": "description"
          },
          "volume": {
            "default": false,
            "description": "The bar's volume, `Vol`, on the series line.",
            "type": "boolean"
          },
          "wick": {
            "default": true,
            "description": "Whether candle wicks are drawn; `wick_up` and `wick_down` colour them.",
            "type": "boolean"
          },
          "wick_down": {
            "$ref": "#/components/schemas/Hex",
            "default": "#ff6a9c"
          },
          "wick_up": {
            "$ref": "#/components/schemas/Hex",
            "default": "#34e8c6"
          }
        },
        "required": [
          "prev_close_colors",
          "body",
          "body_up",
          "body_down",
          "wick",
          "wick_up",
          "wick_down",
          "border",
          "border_up",
          "border_down",
          "bar_up",
          "bar_down",
          "hlc_bars",
          "line_color",
          "area_line",
          "hlc_high",
          "hlc_low",
          "hlc_close",
          "baseline_top",
          "baseline_bottom",
          "baseline_level",
          "column_up",
          "column_down",
          "column_prev_close",
          "high_low_color",
          "brick_up",
          "brick_down",
          "line_break_lines",
          "pnf_reversal",
          "pnf_one_step_back",
          "box_percent",
          "precision",
          "logo",
          "title",
          "title_source",
          "ohlc",
          "bar_change",
          "volume",
          "day_change",
          "indicator_titles",
          "indicator_inputs",
          "indicator_values",
          "scale_modes",
          "plus_button",
          "countdown",
          "last_value",
          "last_line",
          "high_low_value",
          "high_low_line",
          "ext_value",
          "ext_line",
          "symbol_label",
          "prev_close_value",
          "prev_close_line",
          "bid_ask_value",
          "bid_ask_line",
          "indicator_labels",
          "indicator_value_labels",
          "no_overlap",
          "day_of_week",
          "scale_price_only",
          "auto_timeframe",
          "auto_min_px",
          "auto_max_px",
          "auto_ladder",
          "background_type",
          "background",
          "background_top",
          "grid_v",
          "grid_v_color",
          "grid_v_style",
          "grid_h",
          "grid_h_color",
          "grid_h_style",
          "separator_color",
          "crosshair_color",
          "crosshair_style",
          "scale_text",
          "nav_buttons",
          "orders",
          "executions",
          "alert_lines",
          "alert_color",
          "alert_active_only",
          "alert_sound",
          "alert_volume",
          "alert_hide_toasts",
          "session_breaks",
          "events_dividends",
          "events_splits",
          "events_earnings",
          "events_news",
          "events_insiders",
          "events_filings",
          "events_earnings_breaks"
        ],
        "type": "object"
      },
      "ChartStyle": {
        "enum": [
          "candles",
          "bars",
          "hollow_candles",
          "volume_candles",
          "line",
          "line_markers",
          "step_line",
          "area",
          "hlc_area",
          "baseline",
          "columns",
          "high_low",
          "heikin",
          "renko",
          "line_break",
          "kagi",
          "point_figure",
          "range"
        ],
        "type": "string"
      },
      "ChartView": {
        "description": "A chart pane's view: what it draws and how, as the verbs and the window's picks left it.",
        "properties": {
          "adjust_dividends": {
            "description": "ADJ: the serving provider's cash-dividend adjustment.",
            "type": "boolean"
          },
          "axis": {
            "$ref": "#/components/schemas/Axis"
          },
          "bar_count": {
            "description": "The bars in the visible range, else in the loaded extent.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "box": {
            "description": "The renko, range, Kagi reversal and point & figure box picked, `null` for the computed one.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "box_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoxMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "box_size": {
            "description": "The box those styles draw with, a tick multiple; `null` off them or with no bars.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "compare": {
            "description": "The items drawn in percent over the pane's, at most 3.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "instrument": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InstrumentSpec"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the symbol is and trades by, `null` with no symbol."
          },
          "invert": {
            "description": "The price axis drawn top to bottom.",
            "type": "boolean"
          },
          "legs": {
            "description": "A spread pane's legs drawn in dollars beside its net.",
            "type": "boolean"
          },
          "link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SyncGroup"
              },
              {
                "type": "null"
              }
            ],
            "description": "The pane's chart-syncing group, `null` in none."
          },
          "panes": {
            "description": "The chart's stack top to bottom; `[]` the window's default.",
            "items": {
              "$ref": "#/components/schemas/ViewPane"
            },
            "type": "array"
          },
          "pin": {
            "description": "The provider the pane's bars are pinned to, `null` the hub's ranking.",
            "type": [
              "string",
              "null"
            ]
          },
          "price_range": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PriceRange"
              },
              {
                "type": "null"
              }
            ],
            "description": "The low and high over the same bars, `null` with none."
          },
          "profile": {
            "description": "The volume profile on.",
            "type": "boolean"
          },
          "ratio": {
            "description": "Price units per bar width while the price is locked to the bars, `null` unlocked.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "scale": {
            "$ref": "#/components/schemas/PriceScale",
            "description": "How the price axis maps price to height: `linear`, `log`, `percent`, or `indexed` (the first visible bar's close is 100)."
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EquitySession"
              },
              {
                "type": "null"
              }
            ],
            "description": "The hours an intraday stock's or future's bars cover; `null` on any other pane and on a frozen window."
          },
          "settings": {
            "$ref": "#/components/schemas/ChartSettings",
            "description": "The pane's appearance settings: colours per style, the status line, the scales and lines drawn."
          },
          "style": {
            "$ref": "#/components/schemas/ChartStyle",
            "description": "How the bars are drawn: `candles`, `bars`, `hollow_candles`, `volume_candles`, `line`, `line_markers`, `step_line`, `area`, `hlc_area`, `baseline`, `columns`, `high_low`, `heikin`, `renko`, `line_break`, `kagi`, `point_figure` or `range`."
          },
          "symbol": {
            "description": "The pane's item, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "timeframe": {
            "description": "The bar timeframe, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "visible_range": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VisibleRange"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` until a verb sets one, and again after a symbol or timeframe change."
          },
          "window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FrozenSpan"
              },
              {
                "type": "null"
              }
            ],
            "description": "A frozen window's load, `null` on a live pane."
          }
        },
        "required": [
          "symbol",
          "instrument",
          "timeframe",
          "visible_range",
          "bar_count",
          "price_range",
          "scale",
          "style",
          "box",
          "box_size",
          "box_method",
          "compare",
          "profile",
          "legs",
          "panes",
          "invert",
          "adjust_dividends",
          "session",
          "window",
          "ratio",
          "axis",
          "settings",
          "link",
          "pin"
        ],
        "type": "object"
      },
      "Chase": {
        "description": "A bounded reprice walk the kernel runs on a working limit or spread: every\n`every_secs` the price moves `step` toward `cap`, both in the order's own\nwords (a buy's or a debit's cap above the start, a sell's or a credit's\nbelow; an even spread walks into a debit), then `then`.",
        "properties": {
          "cap": {
            "description": "The price the walk stops at: above the start for a buy or a debit,\nbelow for a sell or a credit.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "every_secs": {
            "description": "Seconds between reprices.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "step": {
            "description": "How far each reprice moves the price toward `cap`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "then": {
            "$ref": "#/components/schemas/ChaseEnd",
            "default": "hold"
          }
        },
        "required": [
          "every_secs",
          "step",
          "cap",
          "then"
        ],
        "type": "object"
      },
      "ChaseAsk": {
        "additionalProperties": false,
        "description": "A bounded reprice walk the kernel runs on a working limit or spread: every\n`every_secs` the price moves `step` toward `cap`, both in the order's own\nwords (a buy's or a debit's cap above the start, a sell's or a credit's\nbelow; an even spread walks into a debit), then `then`.",
        "properties": {
          "cap": {
            "description": "The price the walk stops at: above the start for a buy or a debit,\nbelow for a sell or a credit.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "every_secs": {
            "description": "Seconds between reprices.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "step": {
            "description": "How far each reprice moves the price toward `cap`.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "then": {
            "$ref": "#/components/schemas/ChaseEnd",
            "default": "hold"
          }
        },
        "required": [
          "every_secs",
          "step",
          "cap"
        ],
        "type": "object"
      },
      "ChaseEnd": {
        "description": "What a chase does at its cap: rest there, cancel one interval later, or\ncross: one interval past the cap, reprice to its legs' natural (a\ndebit pays the asks and takes the bids, a credit the reverse) until it fills.",
        "enum": [
          "hold",
          "cancel",
          "cross"
        ],
        "type": "string"
      },
      "ChaseStage": {
        "description": "Where a chase stands: walking toward its cap, resting at it, or ended.",
        "enum": [
          "chasing",
          "at_cap",
          "ended"
        ],
        "type": "string"
      },
      "ChaseState": {
        "description": "One chase as `orders/<id>` shows it: `price` and `cap` in the order's\nown words.",
        "properties": {
          "cap": {
            "description": "The price the walk stops at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "next_at": {
            "description": "When the next step is asked, an RFC 3339 instant.",
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "description": "Why the walk ended or holds, `null` while it walks.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "description": "Where the walk has the order now.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/ChaseStage"
          },
          "steps": {
            "description": "How many steps it has taken.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "price",
          "steps",
          "cap",
          "next_at",
          "state",
          "note"
        ],
        "type": "object"
      },
      "ChatAnswered": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CardPicked"
          },
          {
            "$ref": "#/components/schemas/QuestionAnswered"
          }
        ],
        "description": "What `agent/answer` sent the agent: a card's pick or a question's answer."
      },
      "ChatCancelled": {
        "description": "A chat's running turn, or one of its subagents, cancelled.",
        "properties": {
          "queued": {
            "description": "The messages the cancel removed from the chat's queue, as the `queue` frame's rows name them: the window puts them back in the composer. Empty for a subagent's cancel.",
            "items": {
              "description": "A message taken off a chat's queue.",
              "properties": {
                "id": {
                  "description": "Its id, as `prompt` named it.",
                  "type": "string"
                },
                "images": {
                  "description": "The images it carried.",
                  "items": {
                    "description": "An image a removed message carried.",
                    "properties": {
                      "data": {
                        "description": "Its bytes in base64.",
                        "type": "string"
                      },
                      "mimeType": {
                        "description": "Its media type.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "mimeType",
                      "data"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "mentions": {
                  "description": "The things it named.",
                  "items": {
                    "description": "A thing a removed message named.",
                    "properties": {
                      "name": {
                        "description": "What the chip showed.",
                        "type": "string"
                      },
                      "uri": {
                        "description": "`taji://<tree path>`.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "uri",
                      "name"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "text": {
                  "description": "Its text.",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text",
                "mentions",
                "images"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "task": {
            "description": "The subagent's session, when one was cancelled alone.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "session",
          "queued"
        ],
        "type": "object"
      },
      "ChatConfigured": {
        "description": "A chat's options after a set.",
        "properties": {
          "config": {
            "description": "The session's options as the agent names them (ACP's `configOptions`), a select's groups flattened.",
            "items": true,
            "type": "array"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "config"
        ],
        "type": "object"
      },
      "ChatData": {
        "description": "A chat event's payload, shaped by the event named beside it."
      },
      "ChatDeleted": {
        "description": "A chat deleted.",
        "properties": {
          "desk": {
            "description": "The desk's id.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "desk"
        ],
        "type": "object"
      },
      "ChatError": {
        "description": "A `subscribe` the kernel refused, said on an open socket.",
        "properties": {
          "error": {
            "description": "`session`.",
            "type": "string"
          },
          "id": {
            "description": "The client's id for the refused `subscribe`.",
            "type": "string"
          },
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "status": {
            "description": "`404`: no such session.",
            "format": "uint16",
            "maximum": 65535,
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "error",
            "description": "`error`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "status",
          "error",
          "seq"
        ],
        "type": "object"
      },
      "ChatEvent": {
        "description": "One frame of a subscribed chat, kept ones first and then live.",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ChatData",
            "description": "The event's payload as the adapter gave it; `null` when it was not JSON."
          },
          "event": {
            "description": "The chat's event name as the adapter frames it (`prompt`, `update`, `question`, `done`, `turn`, `closed`, ...), whose payload `data` is.",
            "type": "string"
          },
          "id": {
            "description": "The client's own id for the subscription this frame belongs to.",
            "type": "string"
          },
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "agent",
            "description": "`agent`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "event",
          "data",
          "seq"
        ],
        "type": "object"
      },
      "ChatMatch": {
        "description": "A kept chat whose prompts or replies hold the search's `q`.",
        "properties": {
          "agent": {
            "description": "The adapter's id.",
            "type": "string"
          },
          "desk": {
            "description": "The desk it is filed under.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "snippet": {
            "description": "Its text around the first match, whitespace runs one space, `…` where cut.",
            "type": "string"
          },
          "title": {
            "description": "The one `agent/rename` gave, else the agent's.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "desk",
          "session",
          "agent",
          "title",
          "snippet"
        ],
        "type": "object"
      },
      "ChatMatches": {
        "description": "The kept chats whose transcripts hold `q`, newest first, at most 50.",
        "items": {
          "$ref": "#/components/schemas/ChatMatch"
        },
        "type": "array"
      },
      "ChatMove": {
        "additionalProperties": false,
        "description": "One of a desk's chats filed under another desk.",
        "properties": {
          "desk": {
            "description": "The desk's id.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "to": {
            "description": "The desk it moves to.",
            "type": "string"
          }
        },
        "required": [
          "desk",
          "session",
          "to"
        ],
        "type": "object"
      },
      "ChatMoved": {
        "description": "A chat filed under another desk.",
        "properties": {
          "desk": {
            "description": "The desk it is now filed under.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "desk"
        ],
        "type": "object"
      },
      "ChatOpened": {
        "description": "The chat a question or a hand-off opened a turn on.",
        "properties": {
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session"
        ],
        "type": "object"
      },
      "ChatOpening": {
        "additionalProperties": false,
        "description": "A chat opened on a desk: the desk's current one, one the agent lists, or a new one.",
        "properties": {
          "agent": {
            "description": "The agent's id, one `GET /read/agent/adapters` lists.",
            "type": "string"
          },
          "config": {
            "additionalProperties": {
              "$ref": "#/components/schemas/OptionValue"
            },
            "description": "The user's picks among the session's `configOptions`, by option id: `mode` first, then the rest in the session's own order.",
            "type": [
              "object",
              "null"
            ]
          },
          "desk": {
            "description": "The desk's id.",
            "type": "string"
          },
          "new": {
            "default": null,
            "description": "`true` opens a new chat.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "session": {
            "default": null,
            "description": "One of the chats the agent lists for `desk`; absent, the desk's current chat.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "agent",
          "desk"
        ],
        "type": "object"
      },
      "ChatPin": {
        "additionalProperties": false,
        "description": "One of a desk's chats pinned, re-ranked or unpinned.",
        "properties": {
          "desk": {
            "description": "The desk's id.",
            "type": "string"
          },
          "rank": {
            "description": "Its place among the desk's pinned chats, 0 the first; past the last\nputs it last; null or absent unpins.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "desk",
          "session"
        ],
        "type": "object"
      },
      "ChatPinned": {
        "description": "A chat pinned at a rank among its desk's pinned chats, or unpinned.",
        "properties": {
          "rank": {
            "description": "Its place among the desk's pinned chats, 0 the first; `null` when unpinned.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "rank"
        ],
        "type": "object"
      },
      "ChatQuestion": {
        "additionalProperties": false,
        "description": "A question asked on a chat: a turn, a steer of the running one, or queued for its end.",
        "properties": {
          "images": {
            "description": "Four at most, each 5 MiB decoded and 10 MiB together, sent as ACP `image` blocks.",
            "items": {
              "$ref": "#/components/schemas/Picture"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "mentions": {
            "description": "The desk's things it names, five at most and 64 KiB together, each sent as an embedded text `resource`.",
            "items": {
              "$ref": "#/components/schemas/Mention"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "text": {
            "description": "The question; blank only beside `images`.",
            "type": "string"
          },
          "when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuestionTiming"
              },
              {
                "type": "null"
              }
            ],
            "description": "While a turn runs: `now` (the default) steers it, `next` queues the question for its end."
          }
        },
        "required": [
          "session",
          "text"
        ],
        "type": "object"
      },
      "ChatRef": {
        "description": "A chat of the running agent: the session, its adapter's id and name.",
        "properties": {
          "agent": {
            "description": "The adapter's id.",
            "type": "string"
          },
          "name": {
            "description": "The adapter's name.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "agent",
          "name"
        ],
        "type": "object"
      },
      "ChatRenamed": {
        "description": "A chat's title as the desk's history shows it.",
        "properties": {
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "title": {
            "description": "The title kept; `null` when it was cleared.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "session",
          "title"
        ],
        "type": "object"
      },
      "ChatSession": {
        "description": "One of the running agent's own sessions of a desk's cwd (ACP's `session/list`).",
        "properties": {
          "agent": {
            "description": "The adapter's id.",
            "type": "string"
          },
          "at": {
            "description": "Its last update (RFC 3339).",
            "type": [
              "string",
              "null"
            ]
          },
          "pinned": {
            "description": "Pinned by the user: pinned rows come first, in their rank order.",
            "type": "boolean"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "title": {
            "description": "The one `agent/rename` gave, else the agent's.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "session",
          "agent",
          "title",
          "at",
          "pinned"
        ],
        "type": "object"
      },
      "ChatSessions": {
        "description": "A desk's chats as the kernel keeps them, each running agent's own listing merged in, pinned\nones first in their rank order, then newest first.",
        "items": {
          "$ref": "#/components/schemas/ChatSession"
        },
        "type": "array"
      },
      "ChatStarted": {
        "description": "A chat `agent/start` opened or showed again.",
        "properties": {
          "agent": {
            "description": "The adapter's id.",
            "type": "string"
          },
          "config": {
            "description": "The session's options as the agent names them (ACP's `configOptions`), a select's groups flattened.",
            "items": true,
            "type": "array"
          },
          "edit": {
            "description": "Why editing a question is refused on this agent; `null` where it is not.",
            "type": [
              "string",
              "null"
            ]
          },
          "images": {
            "description": "Whether the agent takes images.",
            "type": "boolean"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "agent",
          "edit",
          "images",
          "config"
        ],
        "type": "object"
      },
      "ChatSubscribe": {
        "additionalProperties": false,
        "description": "A chat client's `subscribe`: the chat of an Agent session, framed under the client's `id`; one `id` holds one subscription, which a second `subscribe` of it replaces.",
        "properties": {
          "agent": {
            "description": "The Agent session whose chat to follow; an unknown one is answered with an `error` frame.",
            "type": "string"
          },
          "id": {
            "description": "The client's own name for this subscription, on every frame of it.",
            "type": "string"
          },
          "type": {
            "const": "subscribe",
            "description": "`subscribe`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "agent"
        ],
        "type": "object"
      },
      "ChatTitle": {
        "additionalProperties": false,
        "description": "The title the desk's history shows for one of its chats.",
        "properties": {
          "desk": {
            "description": "The desk's id.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "title": {
            "description": "Shown over the agent's own; empty clears it.",
            "type": "string"
          }
        },
        "required": [
          "desk",
          "session",
          "title"
        ],
        "type": "object"
      },
      "ChatUnsubscribe": {
        "additionalProperties": false,
        "description": "A chat client's `unsubscribe`: the chat under `id` is no longer sent; no answer.",
        "properties": {
          "id": {
            "description": "The `id` the chat was subscribed under.",
            "type": "string"
          },
          "type": {
            "const": "unsubscribe",
            "description": "`unsubscribe`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "type": "object"
      },
      "CheckReport": {
        "description": "What a script's check found over the fixture history.",
        "properties": {
          "bars": {
            "description": "Bars in the fixture history.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "drawings": {
            "$ref": "#/components/schemas/Drawn",
            "description": "What the run holds at its end."
          },
          "fault": {
            "description": "Why the run stopped, `null` when it ran to the end.",
            "type": [
              "string",
              "null"
            ]
          },
          "invariants": {
            "description": "The model's invariants against the run.",
            "items": {
              "$ref": "#/components/schemas/Invariant"
            },
            "type": "array"
          },
          "logs": {
            "description": "What the script logged.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ms": {
            "description": "How long the run took, in milliseconds.",
            "format": "double",
            "type": "number"
          },
          "plots": {
            "description": "One row per plot the script draws.",
            "items": {
              "$ref": "#/components/schemas/PlotStats"
            },
            "type": "array"
          },
          "tests": {
            "description": "The author's tests.",
            "items": {
              "$ref": "#/components/schemas/TestResult"
            },
            "type": "array"
          }
        },
        "required": [
          "bars",
          "ms",
          "plots",
          "logs",
          "invariants",
          "tests",
          "fault",
          "drawings"
        ],
        "type": "object"
      },
      "Chip": {
        "description": "One control chip: `value` is the word it posts back on change.",
        "properties": {
          "disabled": {
            "description": "Whether the chip cannot be picked; `reason` says why when it is the session's.",
            "type": "boolean"
          },
          "label": {
            "description": "The chip's face.",
            "type": "string"
          },
          "on": {
            "description": "Whether the draft currently has this value.",
            "type": "boolean"
          },
          "reason": {
            "description": "Why it is disabled, where the session and pairs would meet.",
            "type": [
              "string",
              "null"
            ]
          },
          "value": {
            "description": "The word it posts back on change.",
            "type": "string"
          }
        },
        "required": [
          "label",
          "value",
          "on",
          "disabled"
        ],
        "type": "object"
      },
      "ClassCoverage": {
        "description": "How far back each history read reaches for one class, one row per product and granularity some provider serves.",
        "properties": {
          "class": {
            "description": "One of `classes` on `data/coverage`.",
            "type": "string"
          },
          "default_session": {
            "$ref": "#/components/schemas/EquitySession",
            "description": "The session an intraday chart of the class is born on and an alert naming none reads: the last chosen on a chart of the class (`chart.session.<class>`), else a future's `extended` and any other class's `regular`."
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/HistoryRow"
            },
            "type": "array"
          }
        },
        "required": [
          "class",
          "default_session",
          "rows"
        ],
        "type": "object"
      },
      "Classed": {
        "description": "An item of a class.",
        "properties": {
          "charted": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Instrument"
              },
              {
                "type": "null"
              }
            ],
            "description": "The contract a chart view's continuous future draws where no provider serves the roll's bars; absent\notherwise."
          },
          "class": {
            "description": "The class word: `equity`, `option`, `future`, `future_option`, `crypto`, `forex` or `index`.",
            "type": "string"
          },
          "facts": {
            "$ref": "#/components/schemas/Facts",
            "description": "What the contract trades by: the facts known, no others."
          },
          "item": {
            "description": "The item, `kind:key`.",
            "type": "string"
          },
          "legs": {
            "description": "A spread's legs, absent on any other.",
            "items": {
              "$ref": "#/components/schemas/SpreadLeg"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "price_format": {
            "description": "How a price is written: `32nds` for a rates future quoted in them, else `decimal`.",
            "type": "string"
          },
          "trades_as": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Instrument"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instrument an order on the item names, `null` for one that takes none (an index, a forex pair, a spread)\nand a continuous future, whose chart view states its own: there, absent while the kernel reads it."
          },
          "trades_as_why": {
            "description": "Why a chart view's continuous future or future option trades as none, beside `trades_as` `null`; absent\notherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "underlying": {
            "description": "An option's underlying as an item, absent on any other.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "item",
          "class",
          "price_format",
          "facts"
        ],
        "type": "object"
      },
      "ClearableLabel": {
        "description": "Tri-state label edit for [`AnnotationPatch::label`]: `Set` writes a label,\n`Clear` removes it. The third state — \"leave the label untouched\" — is the\nABSENCE of a `ClearableLabel` (i.e. the patch field is `None`), NOT a variant\nhere. So `label: None` = no change; `label: Some(Clear)` = remove the label;\n`label: Some(Set(s))` = set the label to `s`.",
        "oneOf": [
          {
            "additionalProperties": false,
            "description": "Write this label string onto the annotation.",
            "properties": {
              "set": {
                "description": "The label to write.",
                "type": "string"
              }
            },
            "required": [
              "set"
            ],
            "type": "object"
          },
          {
            "const": "clear",
            "description": "Remove the annotation's label (set it to `None`).",
            "type": "string"
          }
        ]
      },
      "ClientAct": {
        "description": "One `acted` event of a client session.",
        "properties": {
          "at_utc": {
            "description": "The Unix second it acted.",
            "format": "int64",
            "type": "integer"
          },
          "node": {
            "description": "The node it changed, when it names one.",
            "type": [
              "string",
              "null"
            ]
          },
          "seq": {
            "description": "The event's `seq`.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "title": {
            "description": "The act in words, as the event's.",
            "type": "string"
          },
          "undo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Undo"
              },
              {
                "type": "null"
              }
            ],
            "description": "The event's `undo` while its frame is still the desk's newest `desk/<desk>/undo`."
          }
        },
        "required": [
          "seq",
          "at_utc",
          "title",
          "node",
          "undo"
        ],
        "type": "object"
      },
      "ClientRef": {
        "description": "What an outside MCP client calls itself, told as `x-taji-client`: a label, never a grant.",
        "properties": {
          "mark": {
            "description": "The first agent id of the Agent panel's adapters that the lowercased `name` holds.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The client's own name (`clientInfo.name`).",
            "type": "string"
          },
          "session": {
            "description": "One per bridge connection.",
            "type": "string"
          },
          "title": {
            "description": "The client's title for this session, when it told one.",
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "description": "The client's version, when it told one.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "session",
          "name",
          "version",
          "title",
          "mark"
        ],
        "type": "object"
      },
      "ClientSession": {
        "description": "One outside MCP client session on a desk: the client as its newest act told it, its acts newest first.",
        "properties": {
          "acts": {
            "items": {
              "$ref": "#/components/schemas/ClientAct"
            },
            "type": "array"
          },
          "first_at_utc": {
            "description": "Its first act on the desk, a Unix second.",
            "format": "int64",
            "type": "integer"
          },
          "last_at_utc": {
            "description": "Its newest act on the desk, a Unix second.",
            "format": "int64",
            "type": "integer"
          },
          "mark": {
            "description": "The Agent panel adapter's id its name holds, for the mark beside it.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The client's own name.",
            "type": "string"
          },
          "session": {
            "description": "One per bridge connection.",
            "type": "string"
          },
          "title": {
            "description": "The client's title for this session, when it told one.",
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "description": "The client's version, when it told one.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "session",
          "name",
          "version",
          "title",
          "mark",
          "first_at_utc",
          "last_at_utc",
          "acts"
        ],
        "type": "object"
      },
      "ClientSessions": {
        "description": "The outside MCP client sessions that acted on a desk, newest `last_at_utc` first.",
        "items": {
          "$ref": "#/components/schemas/ClientSession"
        },
        "type": "array"
      },
      "Clients": {
        "description": "The windows that hold a page token.",
        "properties": {
          "clients": {
            "description": "How many pages bought the `page` token through `/app/token`, a sheet counting none: how a script knows a window loaded.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "clients"
        ],
        "type": "object"
      },
      "ClonedWatches": {
        "description": "What `watches/clone` answers: the copies made.",
        "properties": {
          "ids": {
            "description": "The copies' ids, in the order of the ids asked.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "node": {
            "description": "The path of the Desk's watches.",
            "type": "string"
          }
        },
        "required": [
          "ids",
          "node"
        ],
        "type": "object"
      },
      "Code": {
        "description": "A refusal's code: one condition, answered with one status.",
        "enum": [
          "action",
          "alias",
          "approved",
          "at_utc",
          "bad_agent",
          "bad_args",
          "bad_ask",
          "bad_config",
          "bad_desk",
          "bad_device",
          "bad_session",
          "class",
          "content",
          "continuous",
          "current",
          "data_budget",
          "env",
          "fields",
          "hours",
          "id",
          "ids",
          "images",
          "kind",
          "lookahead",
          "mentions",
          "name",
          "on",
          "option",
          "password",
          "q",
          "reads",
          "source",
          "target_from",
          "test",
          "text",
          "title",
          "upgrade",
          "url",
          "value",
          "venue",
          "wrong_class",
          "code",
          "login",
          "passkey",
          "token",
          "unauthorized",
          "budget",
          "hand",
          "origin",
          "plugin_disabled",
          "reports_off",
          "scope",
          "secret",
          "state_dir",
          "account",
          "chat",
          "definition",
          "desk",
          "device",
          "field",
          "flow",
          "layout",
          "list",
          "no_approval",
          "no_binding",
          "no_capture",
          "no_channel",
          "no_code",
          "no_dataset",
          "no_expiry",
          "no_group",
          "no_node",
          "no_pane",
          "no_plan",
          "no_product",
          "no_verb",
          "not_found",
          "not_listed",
          "note",
          "pane",
          "provider",
          "queued",
          "report",
          "request",
          "series",
          "session",
          "sound",
          "step",
          "symbol",
          "task",
          "unknown",
          "unknown_pane",
          "unknown_route",
          "unknown_split",
          "watch",
          "not_a_proxy",
          "account_required",
          "already_sealed",
          "ambiguous",
          "arming",
          "budget_unset",
          "busy",
          "callback",
          "cancelled",
          "captcha",
          "claim",
          "class_required",
          "class_unsupported",
          "client_id",
          "closing",
          "consent",
          "declined",
          "denied",
          "device_invalid",
          "device_unavailable",
          "duplicate",
          "editing",
          "env_mismatch",
          "exchange",
          "expired",
          "extended_bracket",
          "fetch_first",
          "fetching",
          "flat",
          "gateway",
          "halted",
          "held",
          "held_exits",
          "history_loading",
          "holds_exits",
          "holds_secret",
          "idle",
          "in_flight",
          "incapable",
          "installed",
          "invalid_key",
          "key",
          "last_layout",
          "linking",
          "list_full",
          "list_shown",
          "live_intent",
          "locked",
          "manifest",
          "many_agentic",
          "method",
          "move_first",
          "moved",
          "no_accounts",
          "no_agent",
          "no_agentic",
          "no_basis",
          "no_desk",
          "no_device",
          "no_feed",
          "no_images",
          "no_multiplier",
          "no_room",
          "no_route",
          "no_source",
          "no_spot",
          "no_window",
          "node",
          "not_active",
          "not_adoptable",
          "not_bound",
          "not_by_hand",
          "not_confirmed",
          "not_installed",
          "not_live",
          "not_open",
          "not_running",
          "not_sealed",
          "not_sighted",
          "not_working",
          "partly_filled",
          "nothing_staged",
          "one_click_off",
          "penalized",
          "popup_open",
          "port",
          "queue",
          "reach",
          "reason_required",
          "record",
          "redirect",
          "refused",
          "register_refused",
          "rejected",
          "report_url",
          "rev",
          "seam",
          "sent",
          "settling",
          "stale_draft",
          "starting",
          "state",
          "stateless",
          "stopped",
          "storage_failed",
          "superseded",
          "through_market",
          "unlinked",
          "unsealed",
          "unsupported",
          "vault",
          "vault_busy",
          "vault_locked",
          "venue_closed",
          "write",
          "wrong_agent",
          "wrong_password",
          "agent_quit",
          "cursor_expired",
          "lapsed",
          "image",
          "mention",
          "too_large",
          "not_text",
          "host",
          "check",
          "compile",
          "intent_id_reused",
          "no_replay",
          "not_linked",
          "not_macos",
          "too_many_rows",
          "approvals_full",
          "rate_limited",
          "head_too_large",
          "desk_failed",
          "internal",
          "io",
          "no_window_build",
          "panicked",
          "registration",
          "restore",
          "rows",
          "spawn",
          "store",
          "unknowable",
          "unsaved",
          "no_bundle",
          "no_register",
          "not_served",
          "agent",
          "artifact",
          "channel",
          "config",
          "mode",
          "no_chain",
          "register",
          "registry",
          "remote",
          "send_failed",
          "signature",
          "start",
          "unreachable",
          "vendor",
          "voice",
          "app_gone",
          "no_answer",
          "no_registry",
          "not_ready",
          "capture",
          "start_timeout",
          "timeout"
        ],
        "type": "string"
      },
      "ColumnDecl": {
        "description": "One key of a product's row objects.",
        "properties": {
          "doc": {
            "description": "One sentence on what the column holds.",
            "type": [
              "string",
              "null"
            ]
          },
          "estimated": {
            "description": "Computed under the product's `model`, not observed.",
            "type": "boolean"
          },
          "fold": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ColumnFold"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the kernel folds the column over a time slice; a `cells` column\nalone. `sum`: summed per price (a list) or over the slice (a scalar);\nabsent: the shape's fold."
          },
          "name": {
            "description": "The key in each row object.",
            "type": "string"
          },
          "nullable": {
            "default": false,
            "description": "Whether a row may hold `null`; false when absent.",
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/ColumnType",
            "description": "The key's type."
          },
          "unit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Unit"
              },
              {
                "type": "null"
              }
            ],
            "description": "What its numbers count; an int, float, decimal or list column's alone."
          }
        },
        "required": [
          "name",
          "type",
          "nullable"
        ],
        "type": "object"
      },
      "ColumnFold": {
        "description": "How the kernel folds a `cells` column over a time slice, its manifest word.",
        "enum": [
          "sum"
        ],
        "type": "string"
      },
      "ColumnType": {
        "description": "A column's type, each its one JSON form in a row: a string, an integer, a\nnumber, a decimal string, a boolean, a `YYYY-MM-DD` string, or an array of\nits item's form.",
        "enum": [
          "string",
          "int",
          "float",
          "decimal",
          "bool",
          "date",
          "list<float>",
          "list<decimal>",
          "list<int>"
        ],
        "type": "string"
      },
      "ComputedDrawing": {
        "description": "One computed drawing over its span of the pane's bars.",
        "oneOf": [
          {
            "description": "The Linear Regression Channel: each line `[price at from, price at to]`; all `null` under 2 bars.",
            "properties": {
              "base": {
                "description": "The closes' least-squares line.",
                "items": {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "maxItems": 2,
                "minItems": 2,
                "type": [
                  "array",
                  "null"
                ]
              },
              "lower": {
                "description": "The base less 2 standard errors.",
                "items": {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "maxItems": 2,
                "minItems": 2,
                "type": [
                  "array",
                  "null"
                ]
              },
              "pearson_r": {
                "description": "0 on a flat series.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "tool": {
                "const": "regression_trend",
                "type": "string"
              },
              "upper": {
                "description": "The base plus 2 standard errors.",
                "items": {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "maxItems": 2,
                "minItems": 2,
                "type": [
                  "array",
                  "null"
                ]
              }
            },
            "required": [
              "tool",
              "base",
              "upper",
              "lower",
              "pearson_r"
            ],
            "type": "object"
          },
          {
            "description": "The volume-weighted mean of hlc3 from the anchor.",
            "properties": {
              "t": {
                "description": "Each bar's time, UTC seconds.",
                "items": {
                  "format": "int64",
                  "type": "integer"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "tool": {
                "const": "anchored_vwap",
                "type": "string"
              },
              "v": {
                "description": "Each bar's VWAP, `null` until volume trades.",
                "items": {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "type": [
                  "array",
                  "null"
                ]
              }
            },
            "required": [
              "tool",
              "t",
              "v"
            ],
            "type": "object"
          },
          {
            "description": "The volume profile over the bars between the two anchors.",
            "properties": {
              "profile": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/VolumeProfile"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tool": {
                "const": "fixed_range_volume_profile",
                "type": "string"
              }
            },
            "required": [
              "tool",
              "profile"
            ],
            "type": "object"
          },
          {
            "description": "The volume profile from the anchor to the last bar.",
            "properties": {
              "profile": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/VolumeProfile"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tool": {
                "const": "anchored_volume_profile",
                "type": "string"
              }
            },
            "required": [
              "tool",
              "profile"
            ],
            "type": "object"
          }
        ],
        "properties": {
          "from": {
            "description": "The first bar time of the span, UTC seconds; `null` with every figure when the latest anchor precedes\nthe bars.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "id": {
            "description": "The drawing's id, `null` for an unsaved one.",
            "type": [
              "string",
              "null"
            ]
          },
          "to": {
            "description": "The last bar time of the span, UTC seconds.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "from",
          "to"
        ],
        "type": "object"
      },
      "ComputedDrawings": {
        "description": "The drawings the kernel computes off a pane's bars.",
        "properties": {
          "drawings": {
            "items": {
              "$ref": "#/components/schemas/ComputedDrawing"
            },
            "type": "array"
          }
        },
        "required": [
          "drawings"
        ],
        "type": "object"
      },
      "Condition": {
        "anyOf": [
          {
            "properties": {
              "bars": {
                "description": "Closed bars back the move is measured from, for a moving `when`; `None` otherwise.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "of": {
                "$ref": "#/components/schemas/Operand"
              },
              "price": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Operand"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "upper": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Operand"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "value": {
                "description": "The size of the move, for a moving `when`; `None` otherwise.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "when": {
                "$ref": "#/components/schemas/When"
              }
            },
            "required": [
              "when",
              "of"
            ],
            "type": "object"
          },
          {
            "properties": {
              "price": {
                "description": "The price compared with; a channel's one bound, `upper` its other.",
                "format": "double",
                "type": "number"
              },
              "upper": {
                "description": "A channel's second price; `None` for a level.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "when": {
                "$ref": "#/components/schemas/When"
              }
            },
            "required": [
              "when",
              "price"
            ],
            "type": "object"
          },
          {
            "properties": {
              "bars": {
                "description": "Closed bars back the move is measured from, 1 to 300.",
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "value": {
                "description": "The move that trips it: price units, or percent of the close `bars` back for a `_pct` `when`.",
                "format": "double",
                "type": "number"
              },
              "when": {
                "$ref": "#/components/schemas/When"
              }
            },
            "required": [
              "when",
              "value",
              "bars"
            ],
            "type": "object"
          },
          {
            "properties": {
              "drawing": {
                "description": "The annotation's id, a UUID.",
                "type": "string"
              },
              "shape": {
                "$ref": "#/components/schemas/Shape",
                "description": "The drawing's kind, as its extend flags now make it."
              },
              "when": {
                "$ref": "#/components/schemas/When"
              }
            },
            "required": [
              "when",
              "drawing",
              "shape"
            ],
            "type": "object"
          }
        ],
        "description": "One condition on the spot: against a price (a channel's second price is\n`upper`), a move over the last `bars` closed bars, `value` in price\nunits, or percent of the close `bars` back for a `_pct` word; or against\nthe annotation `drawing` on the watch's symbol, its level computed each\npoll; or, `Indicator`, one whose source (`of`) or a bound is a built-in\nindicator's plot, computed each poll over its chart's bars. First, so a\nrow holding `of` is never read as a price or a move."
      },
      "ConstraintWord": {
        "description": "One [`Constraints`] field, or one kind of `activate` rule: the word an\nadapter's `OrderCoverage.constraints` declares and a refusal names.",
        "oneOf": [
          {
            "enum": [
              "all_or_none",
              "activate",
              "activate_volume",
              "activate_change",
              "activate_margin",
              "activate_fill",
              "activate_at",
              "trigger",
              "rules_cancel",
              "rules_outside_rth",
              "route",
              "peg",
              "peg_offset",
              "peg_offset_half",
              "peg_min_qty",
              "peg_compete_size",
              "show_only",
              "non_display",
              "add_liquidity",
              "book_only",
              "discretionary_price",
              "discretionary_to_limit",
              "min_qty",
              "sweep_to_fill",
              "not_held",
              "active",
              "inactive",
              "randomize_size",
              "randomize_price",
              "price_mgmt",
              "marketable_to_bbo",
              "imbalance_only",
              "post_to_ats",
              "duration_secs",
              "scale",
              "algo",
              "block",
              "delta_hedge",
              "do_not_reduce",
              "tax_lot",
              "activation_price",
              "stop_link",
              "limit_link",
              "all_shares"
            ],
            "type": "string"
          },
          {
            "const": "adjust",
            "description": "A group's stop leg that moves once a price trades.",
            "type": "string"
          },
          {
            "const": "oca",
            "description": "A group's exit pair in an [`OcaMode`] other than the default.",
            "type": "string"
          },
          {
            "const": "cross_expiry",
            "description": "A spread whose option legs hold more than one expiry: a calendar or\ndiagonal.",
            "type": "string"
          }
        ]
      },
      "Constraints": {
        "description": "The fill, activation, routing and pricing conditions a venue holds on an\norder. Each field set is a [`ConstraintWord`]; the stadium actor refuses\none the account's adapter does not declare. A time the order is good until\nis `Tif::Gtd(GoodTill::At)`, not a constraint.",
        "properties": {
          "activate": {
            "description": "The order activates once these rules hold, each joined to the next by\nits `join`.",
            "items": {
              "$ref": "#/components/schemas/Rule"
            },
            "type": "array"
          },
          "activate_at": {
            "description": "The order activates at this instant.",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "activation_price": {
            "description": "The price at which the order activates, > 0.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "active": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Window"
              },
              {
                "type": "null"
              }
            ],
            "description": "A good-till-cancelled scale or `ad` algo order works only inside this\nwindow."
          },
          "add_liquidity": {
            "description": "Only adds liquidity on the route; needs `book_only`.",
            "type": "boolean"
          },
          "algo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Algo"
              },
              {
                "type": "null"
              }
            ],
            "description": "A venue execution algorithm works the limit."
          },
          "all_or_none": {
            "default": false,
            "description": "Fills whole or not at all.",
            "type": "boolean"
          },
          "all_shares": {
            "description": "A closing order for the whole position, whatever `qty` says.",
            "type": "boolean"
          },
          "block": {
            "description": "An option order of 50 contracts or more sent as a block; an option alone.",
            "type": "boolean"
          },
          "book_only": {
            "description": "Never re-routed off the route named.",
            "type": "boolean"
          },
          "delta_hedge": {
            "description": "The venue delta-hedges each fill with a market order on the\nunderlying; a single-leg option alone.",
            "type": "boolean"
          },
          "discretionary_price": {
            "description": "Shown this far inside the price actually willing to pay.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "discretionary_to_limit": {
            "description": "A primary-peg order takes its discretion up to its limit.",
            "type": "boolean"
          },
          "do_not_reduce": {
            "description": "Not reduced for an ex-dividend date.",
            "type": "boolean"
          },
          "duration_secs": {
            "description": "Seconds the order works, > 0, on a Gtd, whose date it replaces.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "imbalance_only": {
            "description": "An auction order that only offsets the imbalance; a Moc, Loc, Moo or Loo.",
            "type": "boolean"
          },
          "inactive": {
            "description": "Placed deactivated: held at the venue, not worked.",
            "type": "boolean"
          },
          "limit_link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PriceLink"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a trailing stop limit's `limit_offset` is offset from, and in\nwhat unit."
          },
          "marketable_to_bbo": {
            "description": "A marketable order routes to the best bid or offer.",
            "type": "boolean"
          },
          "min_qty": {
            "description": "No fill smaller than this many shares, 1 up to `qty`; a whole `qty`.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "non_display": {
            "description": "Shown to no one.",
            "type": "boolean"
          },
          "not_held": {
            "description": "The venue works it at its own discretion in time and price.",
            "type": "boolean"
          },
          "peg": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Peg"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the order's price is pegged to."
          },
          "peg_compete_size": {
            "description": "The least size a `best` peg competes against, on an alternative\ntrading system route.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "peg_min_qty": {
            "description": "The least a pegged order trades at once, on an alternative trading\nsystem route.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "peg_offset": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Offset"
              },
              {
                "type": "null"
              }
            ],
            "description": "The peg's offset: an amount, or a percent on a `best` peg on an\nalternative trading system route."
          },
          "peg_offset_half": {
            "description": "A `mid` peg's offset when the spread is an odd number of cents wide, on\nan alternative trading system route.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "post_to_ats": {
            "description": "Seconds parked on the venue's own ATS before it routes out, > 0.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price_mgmt": {
            "description": "The venue's price-management algorithm prices it.",
            "type": "boolean"
          },
          "randomize_price": {
            "description": "The venue randomizes the order's price; a volatility order alone takes it.",
            "type": "boolean"
          },
          "randomize_size": {
            "description": "The venue randomizes the order's size; a volatility order alone takes it.",
            "type": "boolean"
          },
          "route": {
            "description": "A venue route id off `trading/<acct>/account.routes`; `None` is the\nvenue's default.",
            "type": [
              "string",
              "null"
            ]
          },
          "rules_cancel": {
            "description": "The rules, `activate_at` among them (a cancel-at), cancel the order\ninstead of activating it.",
            "type": "boolean"
          },
          "rules_outside_rth": {
            "description": "The rules are also watched outside regular hours.",
            "type": "boolean"
          },
          "scale": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Scale"
              },
              {
                "type": "null"
              }
            ],
            "description": "A ladder of limits below (a buy) or above (a sell) the first; a limit\nalone."
          },
          "show_only": {
            "description": "Shares shown of the order, a positive whole number; a limit or\nstop-limit only.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "stop_link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkBasis"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a trailing stop's trail is offset from."
          },
          "sweep_to_fill": {
            "description": "Takes every price on the book at once rather than routing.",
            "type": "boolean"
          },
          "tax_lot": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxLot"
              },
              {
                "type": "null"
              }
            ],
            "description": "Which lots a closing order sells."
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trigger"
              },
              {
                "type": "null"
              }
            ],
            "description": "What prices the order's own stop."
          }
        },
        "required": [
          "all_or_none"
        ],
        "type": "object"
      },
      "ConstraintsAsk": {
        "additionalProperties": false,
        "description": "The fill, activation, routing and pricing conditions a venue holds on an\norder. Each field set is a [`ConstraintWord`]; the stadium actor refuses\none the account's adapter does not declare. A time the order is good until\nis `Tif::Gtd(GoodTill::At)`, not a constraint.",
        "properties": {
          "activate": {
            "description": "The order activates once these rules hold, each joined to the next by\nits `join`.",
            "items": {
              "$ref": "#/components/schemas/RuleAsk"
            },
            "type": "array"
          },
          "activate_at": {
            "description": "The order activates at this instant.",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "activation_price": {
            "description": "The price at which the order activates, > 0.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "active": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WindowAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A good-till-cancelled scale or `ad` algo order works only inside this\nwindow."
          },
          "add_liquidity": {
            "description": "Only adds liquidity on the route; needs `book_only`.",
            "type": "boolean"
          },
          "algo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AlgoAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A venue execution algorithm works the limit."
          },
          "all_or_none": {
            "default": false,
            "description": "Fills whole or not at all.",
            "type": "boolean"
          },
          "all_shares": {
            "description": "A closing order for the whole position, whatever `qty` says.",
            "type": "boolean"
          },
          "block": {
            "description": "An option order of 50 contracts or more sent as a block; an option alone.",
            "type": "boolean"
          },
          "book_only": {
            "description": "Never re-routed off the route named.",
            "type": "boolean"
          },
          "delta_hedge": {
            "description": "The venue delta-hedges each fill with a market order on the\nunderlying; a single-leg option alone.",
            "type": "boolean"
          },
          "discretionary_price": {
            "description": "Shown this far inside the price actually willing to pay.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "discretionary_to_limit": {
            "description": "A primary-peg order takes its discretion up to its limit.",
            "type": "boolean"
          },
          "do_not_reduce": {
            "description": "Not reduced for an ex-dividend date.",
            "type": "boolean"
          },
          "duration_secs": {
            "description": "Seconds the order works, > 0, on a Gtd, whose date it replaces.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "imbalance_only": {
            "description": "An auction order that only offsets the imbalance; a Moc, Loc, Moo or Loo.",
            "type": "boolean"
          },
          "inactive": {
            "description": "Placed deactivated: held at the venue, not worked.",
            "type": "boolean"
          },
          "limit_link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PriceLinkAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a trailing stop limit's `limit_offset` is offset from, and in\nwhat unit."
          },
          "marketable_to_bbo": {
            "description": "A marketable order routes to the best bid or offer.",
            "type": "boolean"
          },
          "min_qty": {
            "description": "No fill smaller than this many shares, 1 up to `qty`; a whole `qty`.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "non_display": {
            "description": "Shown to no one.",
            "type": "boolean"
          },
          "not_held": {
            "description": "The venue works it at its own discretion in time and price.",
            "type": "boolean"
          },
          "peg": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PegAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the order's price is pegged to."
          },
          "peg_compete_size": {
            "description": "The least size a `best` peg competes against, on an alternative\ntrading system route.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "peg_min_qty": {
            "description": "The least a pegged order trades at once, on an alternative trading\nsystem route.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "peg_offset": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OffsetAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "The peg's offset: an amount, or a percent on a `best` peg on an\nalternative trading system route."
          },
          "peg_offset_half": {
            "description": "A `mid` peg's offset when the spread is an odd number of cents wide, on\nan alternative trading system route.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "post_to_ats": {
            "description": "Seconds parked on the venue's own ATS before it routes out, > 0.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price_mgmt": {
            "description": "The venue's price-management algorithm prices it.",
            "type": "boolean"
          },
          "randomize_price": {
            "description": "The venue randomizes the order's price; a volatility order alone takes it.",
            "type": "boolean"
          },
          "randomize_size": {
            "description": "The venue randomizes the order's size; a volatility order alone takes it.",
            "type": "boolean"
          },
          "route": {
            "description": "A venue route id off `trading/<acct>/account.routes`; `None` is the\nvenue's default.",
            "type": [
              "string",
              "null"
            ]
          },
          "rules_cancel": {
            "description": "The rules, `activate_at` among them (a cancel-at), cancel the order\ninstead of activating it.",
            "type": "boolean"
          },
          "rules_outside_rth": {
            "description": "The rules are also watched outside regular hours.",
            "type": "boolean"
          },
          "scale": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScaleAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "A ladder of limits below (a buy) or above (a sell) the first; a limit\nalone."
          },
          "show_only": {
            "description": "Shares shown of the order, a positive whole number; a limit or\nstop-limit only.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "stop_link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkBasis"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a trailing stop's trail is offset from."
          },
          "sweep_to_fill": {
            "description": "Takes every price on the book at once rather than routing.",
            "type": "boolean"
          },
          "tax_lot": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxLot"
              },
              {
                "type": "null"
              }
            ],
            "description": "Which lots a closing order sells."
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trigger"
              },
              {
                "type": "null"
              }
            ],
            "description": "What prices the order's own stop."
          }
        },
        "type": "object"
      },
      "Controls": {
        "description": "The ticket's chips.",
        "properties": {
          "budget": {
            "description": "The draft's risk budget, `\"\"` with none.",
            "type": "string"
          },
          "budgets": {
            "items": {
              "$ref": "#/components/schemas/BudgetChip"
            },
            "type": "array"
          },
          "exits": {
            "$ref": "#/components/schemas/Toggle",
            "description": "The take and stop toggles."
          },
          "outside_rth": {
            "$ref": "#/components/schemas/EquitySession",
            "description": "The session \"Fill order outside RTH\" sends: `24h` at night, else `extended`."
          },
          "session": {
            "description": "`REGULAR`, `EXTENDED`, `24H`, posting the lower-case word.",
            "items": {
              "$ref": "#/components/schemas/Chip"
            },
            "type": "array"
          },
          "tif": {
            "description": "`DAY`, `GTC`, and `IOC` always disabled.",
            "items": {
              "$ref": "#/components/schemas/Chip"
            },
            "type": "array"
          }
        },
        "required": [
          "budgets",
          "budget",
          "tif",
          "session",
          "outside_rth",
          "exits"
        ],
        "type": "object"
      },
      "Cost": {
        "description": "What a provider's bars cost to ask.",
        "enum": [
          "free",
          "metered"
        ],
        "type": "string"
      },
      "Coverage": {
        "description": "Where each source serves and where each venue trades, linked or not.",
        "properties": {
          "classes": {
            "description": "Every instrument class, in order: `equity`, `index`, `future`, `option`, `crypto`, `future_option`, `forex`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "data": {
            "description": "One row per provider and class.",
            "items": {
              "$ref": "#/components/schemas/SourceCoverage"
            },
            "type": "array"
          },
          "economic": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EconomicCoverage"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one read with no class, `null` where no source holds the role."
          },
          "execution": {
            "description": "One row per venue and class.",
            "items": {
              "$ref": "#/components/schemas/VenueCoverage"
            },
            "type": "array"
          },
          "no_adapter": {
            "$ref": "#/components/schemas/UnadaptedCoverage",
            "description": "Vendors the build audits and has no adapter for."
          },
          "unclassed": {
            "description": "Classes `classes` has no word for (`cfd`), per vendor.",
            "items": {
              "$ref": "#/components/schemas/UnwordedClass"
            },
            "type": "array"
          }
        },
        "required": [
          "classes",
          "data",
          "economic",
          "execution",
          "unclassed",
          "no_adapter"
        ],
        "type": "object"
      },
      "Crosshair": {
        "description": "Where the user's crosshair rests and what they selected, as the window last posted it: every member `null` until it posts one, always headless, and once its Desk is deleted. Never recorded.",
        "properties": {
          "at_utc": {
            "description": "When it was posted, UTC seconds.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "desk": {
            "description": "The Desk's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "pane": {
            "description": "The pane the pointer last rested on.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price": {
            "description": "The price under the crosshair; `null` off every plot.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "selection": {
            "description": "The ids of the selected chart objects.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "time": {
            "description": "The bar's `t`, UTC seconds; `null` off every plot.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "desk",
          "pane",
          "time",
          "price",
          "selection",
          "at_utc"
        ],
        "type": "object"
      },
      "Cursor": {
        "additionalProperties": false,
        "description": "Where the window's crosshair rests. The window posts it once the crosshair\nrests 250 ms and on every selection change; it replaces the node whole.",
        "properties": {
          "desk": {
            "description": "The Desk's id.",
            "type": "string"
          },
          "pane": {
            "description": "The pane's id.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "price": {
            "default": null,
            "description": "The price under the crosshair; `null` off the chart.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "selection": {
            "default": null,
            "description": "The ids of the selected chart objects.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "time": {
            "default": null,
            "description": "UTC seconds; `null` off the chart.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "desk",
          "pane"
        ],
        "type": "object"
      },
      "CustomIndicator": {
        "additionalProperties": false,
        "description": "A TypeScript indicator and its optional tests, checked and stored on a Desk.",
        "properties": {
          "name": {
            "description": "`[a-z][a-z0-9_]`, 64 at most, and no registered indicator's.",
            "type": "string"
          },
          "source": {
            "description": "The TypeScript indicator source (`@taji/indicators`), 256 KiB at most.",
            "type": "string"
          },
          "test": {
            "default": null,
            "description": "Optional test module for the indicator, 256 KiB at most.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "source"
        ],
        "type": "object"
      },
      "Data": {
        "description": "The `data` node itself: what `get/bars` can answer from, the words it takes,\nthe reads under it, and the hub's own open upstreams. Above every Session,\nlike `link` — a key belongs to the device.\n\n`vendor` is the LINKED venue's own word, so a client reads which venue would\nanswer a bars fetch rather than a venue this node named by habit. `cache` is\nthe dataset cache's directory, and the ONE local store these reads have.\n`hub` is one row per LIVE upstream, which is state rather than\nconfiguration: it is empty until something subscribes.",
        "properties": {
          "cache": {
            "description": "The store's directory (`TAJI_STORE_DIR`, else `~/.local/share/taji/store`), the ONE local store these reads have.",
            "type": "string"
          },
          "hub": {
            "$ref": "#/components/schemas/Upstreams",
            "description": "The open vendor upstreams (`data/hub`)."
          },
          "reads": {
            "description": "The reads under the node: the data products, then the node's own.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "timeframes": {
            "description": "The named words of the `timeframe` `get/bars` takes.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendor": {
            "description": "The linked venue's own word, `null` when no venue key is linked.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "vendor",
          "cache",
          "timeframes",
          "reads",
          "hub"
        ],
        "type": "object"
      },
      "DataBudget": {
        "additionalProperties": false,
        "description": "The device's data budget, which holds every fetch.",
        "properties": {
          "data_budget": {
            "description": "USD, a decimal string ≥ 0; 0 counts as set.",
            "type": "string"
          }
        },
        "required": [
          "data_budget"
        ],
        "type": "object"
      },
      "DataKey": {
        "additionalProperties": false,
        "description": "A data provider's key into the vault.",
        "properties": {
          "key": {
            "description": "The provider's API key; a captured sign-in's refresh token. Blank is 400.",
            "type": "string",
            "writeOnly": true
          },
          "provider": {
            "description": "The provider's wire word: a metered, keyed or series source, a captured\nsign-in, or a plugin whose `[sign_in]` is a key.",
            "type": "string"
          },
          "secret": {
            "description": "A captured sign-in's device token, beside its refresh token; refused for any other provider.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          }
        },
        "required": [
          "provider",
          "key"
        ],
        "type": "object"
      },
      "DataLinked": {
        "description": "What `link/data/link` answers: the node, and for a keyed source its plan per class.",
        "properties": {
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "tier": {
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Access"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": "Per class `realtime`, `delayed`, `history`, `refused` or `null`; absent for a source that is not keyed.",
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "node"
        ],
        "type": "object"
      },
      "DataProduct": {
        "anyOf": [
          {
            "enum": [
              "bars",
              "trades",
              "quotes",
              "depth",
              "chains",
              "corporate_actions",
              "news",
              "screener",
              "fundamentals",
              "earnings"
            ],
            "type": "string"
          },
          {
            "const": "filings",
            "description": "A filer's SEC filings index: one row per accession.",
            "type": "string"
          },
          {
            "const": "filing_sections",
            "description": "One filing's sections and text, and what changed from the filer's\nprior filing of the form: one row per section.",
            "type": "string"
          },
          {
            "const": "insider_trades",
            "description": "Form 3, 4 and 5 transactions: one row per Table I or II line.",
            "type": "string"
          },
          {
            "const": "holdings",
            "description": "13F-HR holdings: one row per position of a filer's quarter.",
            "type": "string"
          },
          {
            "const": "ownership_stakes",
            "description": "Schedule 13D and 13G stakes: one row per reporting person.",
            "type": "string"
          },
          {
            "const": "executive_comp",
            "description": "The proxy statement's summary compensation table: one row per\nexecutive and fiscal year.",
            "type": "string"
          },
          {
            "const": "search",
            "description": "Symbols and roots by text, else (no `search` word) the tradable\nmembers of a symbol list or of whole exchanges in listing order, or a\nfuture root's dated contracts: one row per member.",
            "type": "string"
          },
          {
            "const": "statistics",
            "description": "A venue's published statistics: settlement, open interest, session\nhigh and low, auction prints.",
            "type": "string"
          },
          {
            "const": "imbalance",
            "description": "The auction imbalance a venue publishes before an open or close.",
            "type": "string"
          },
          {
            "const": "status",
            "description": "A symbol's trading state as the venue publishes it: halts, pauses,\nresumptions. Every row is an event.",
            "type": "string"
          },
          {
            "const": "instrument",
            "description": "What one instrument allows an order: tick, point value, quantity step\nand minimum, tradability, halt, and what a typed item trades as\n(`trades_as`).",
            "type": "string"
          },
          {
            "const": "details",
            "description": "One instrument's identity, profile, contract and key statistics\n([`crate::details`]), composed off the linked sources' `instrument`\nand `fundamentals`.",
            "type": "string"
          },
          {
            "const": "series",
            "description": "A registered table's rows, its symbols the table names: the store's\nalone, so no provider serves it and it is not in [`Self::ALL`].",
            "type": "string"
          },
          {
            "const": "economic",
            "description": "The economic calendar over a span, Taji's headline US events on the\nrelease provider's values at each release's own vintage where one is\nlinked: no class or symbol, so it is not in [`Self::ALL`].",
            "type": "string"
          },
          {
            "const": "ipos",
            "description": "The market's offerings by listing day, each as last revised: every\nrow an equity listing, no class or symbol asked, so not in\n[`Self::ALL`].",
            "type": "string"
          },
          {
            "const": "index_daily",
            "description": "The daily SPX, VIX, VIX1D and VVIX history: one row per index and\nday, a close and where stated the open, high and low.",
            "type": "string"
          },
          {
            "const": "constituents",
            "description": "An index's members and their weights: one row per member, the day's\nfigures joined on by the kernel.",
            "type": "string"
          },
          {
            "const": "option_flow",
            "description": "An underlying's option prints over a span, each with the consolidated\nquote that stood before it: one row per print, the kernel's side and\npremium on it.",
            "type": "string"
          },
          {
            "$ref": "#/components/schemas/ProductSlot",
            "description": "A plugin's own product, `<id>.<name>`, known by registration alone\n([`DataProduct::register`]): not in [`Self::ALL`]."
          }
        ],
        "description": "One data product a provider may serve, in the words `data/coverage` renders.\nAccount reads (fills, balances, watchlists, alerts) are not data products."
      },
      "DataSource": {
        "additionalProperties": false,
        "description": "The data provider whose key, or plugin sign-in, leaves the vault.",
        "properties": {
          "provider": {
            "description": "The provider's wire word, as `link/data/link` takes it.",
            "type": "string"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "DataSpend": {
        "description": "What the device's data pulls have cost.",
        "properties": {
          "spent_usd": {
            "description": "The pull log's sum, what a 402 counts, the buys under way included; dollars as a decimal string.",
            "type": "string"
          }
        },
        "required": [
          "spent_usd"
        ],
        "type": "object"
      },
      "DataUnlinked": {
        "description": "What `link/data/unlink` answers.",
        "properties": {
          "provider": {
            "description": "Always `null`: the key has left the vault.",
            "type": "null"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "Dataset": {
        "description": "One dataset off the store's catalog, by where its rows came from.",
        "oneOf": [
          {
            "description": "What the hub bought off a provider.",
            "properties": {
              "adjustment": {
                "description": "The basis the held rows are on.",
                "enum": [
                  "raw",
                  "split",
                  "split-spinoff",
                  "split-dividend-spinoff"
                ],
                "type": "string"
              },
              "cost_usd": {
                "description": "What the pulls cost, dollars as a decimal string.",
                "type": "string"
              },
              "dataset_id": {
                "description": "The catalog id: `bars:<provider>:<SYMBOL>:<1m|D>:<adjustment>` or `chains:<provider>:<UNDERLYING>`.",
                "type": "string"
              },
              "desk_id": {
                "description": "The Desk that ran the read, empty for none.",
                "type": "string"
              },
              "fetched_at_utc": {
                "description": "The newest pull's UTC second.",
                "format": "int64",
                "type": "integer"
              },
              "fetches": {
                "description": "Each answered pull, with its cost.",
                "items": {
                  "$ref": "#/components/schemas/Fetch"
                },
                "type": "array"
              },
              "from_utc": {
                "description": "The widest span held, `[from_utc, to_utc)`; `null` where none is.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "origin": {
                "const": "provider",
                "type": "string"
              },
              "provider": {
                "description": "The provider's wire word.",
                "pattern": "^[a-z0-9_-]+$",
                "type": "string"
              },
              "rows": {
                "description": "Rows held.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "symbol": {
                "description": "The item as a read spells it.",
                "type": "string"
              },
              "tier": {
                "description": "Which tier the price came off, `plan` or `usage`; `null` where the provider has none or its probe never answered.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "timeframe": {
                "description": "The bar timeframe held, `1m` or `D`.",
                "enum": [
                  "1m",
                  "5m",
                  "15m",
                  "30m",
                  "1h",
                  "4h",
                  "D",
                  "W",
                  "M",
                  "Y"
                ],
                "type": "string"
              },
              "to_utc": {
                "description": "The span's exclusive end, UTC seconds; `null` where none is held.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "vendor_dataset": {
                "description": "The provider's own name for the dataset, `null` where it has none.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "origin",
              "dataset_id",
              "provider",
              "vendor_dataset",
              "tier",
              "fetches",
              "fetched_at_utc",
              "cost_usd",
              "symbol",
              "timeframe",
              "from_utc",
              "to_utc",
              "adjustment",
              "rows",
              "desk_id"
            ],
            "type": "object"
          },
          {
            "description": "What `data/register` declared.",
            "properties": {
              "available": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Available"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When a row becomes knowable, `null` for a `file`."
              },
              "columns": {
                "description": "The value columns in the input's order; empty for a `file`.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "cost_usd": {
                "description": "Zero: a registration costs nothing, as a decimal string.",
                "type": "string"
              },
              "dataset_id": {
                "description": "`series:<name>@<N>`.",
                "type": "string"
              },
              "desk_id": {
                "description": "The Desk the registration was made against.",
                "type": "string"
              },
              "fetched_at_utc": {
                "description": "The UTC second it was registered.",
                "format": "int64",
                "type": "integer"
              },
              "from_utc": {
                "description": "The first row's time, UTC seconds; `null` for a `file`.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "how": {
                "description": "How it was made, a word recorded and never executed; `null` where not given.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "kind": {
                "$ref": "#/components/schemas/DatasetKind"
              },
              "name": {
                "description": "The name it was registered under, the `<name>` of `series:<name>`.",
                "type": "string"
              },
              "origin": {
                "const": "custom",
                "type": "string"
              },
              "rows": {
                "description": "Rows held; zero for a `file`.",
                "format": "uint",
                "minimum": 0,
                "type": "integer"
              },
              "sha256": {
                "description": "The input file's own hash.",
                "type": "string"
              },
              "source": {
                "description": "Where the data came from, a word recorded and never executed.",
                "type": "string"
              },
              "symbol": {
                "description": "`series:<name>`.",
                "type": "string"
              },
              "to_utc": {
                "description": "The last row's time, UTC seconds; `null` for a `file`.",
                "format": "int64",
                "type": [
                  "integer",
                  "null"
                ]
              },
              "url": {
                "description": "Where it was fetched from, a word recorded and never executed; `null` where not given.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "description": "The registration's version; the same bytes re-declared are the next.",
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "origin",
              "dataset_id",
              "name",
              "version",
              "sha256",
              "kind",
              "columns",
              "source",
              "url",
              "how",
              "available",
              "fetched_at_utc",
              "cost_usd",
              "symbol",
              "from_utc",
              "to_utc",
              "rows",
              "desk_id"
            ],
            "type": "object"
          }
        ]
      },
      "DatasetKey": {
        "anyOf": [
          {
            "description": "A `dataset_id`.",
            "type": "string"
          },
          {
            "description": "The integer catalog id.",
            "format": "int64",
            "type": "integer"
          }
        ],
        "description": "A dataset, named as `data/datasets` lists it."
      },
      "DatasetKind": {
        "description": "What a registered dataset is. A `File` is hashed and declarable and nothing\nmore: it is never served to a reader.",
        "enum": [
          "bars",
          "series",
          "file"
        ],
        "type": "string"
      },
      "Datasets": {
        "description": "The datasets this device holds, bought and registered alike, newest first.",
        "properties": {
          "datasets": {
            "items": {
              "$ref": "#/components/schemas/Dataset"
            },
            "type": "array"
          }
        },
        "required": [
          "datasets"
        ],
        "type": "object"
      },
      "Day": {
        "description": "Today's P&L, the ET day the clock is in (a coin's part from 16:00 ET of the previous NYSE session's date, a stock's prior close).",
        "properties": {
          "closed": {
            "description": "What the same executions made today as a brokerage's day P&L states it: a part held into the day (today's reductions take it first) from its prior close, a lot opened today from its entry, never from an older one. The prior close is the daily bar's close of the trading day before the day's date exactly as the vendor serves it (`quotes::prior_close`, the quote's `prev_close` rule), read for each day until it is served, then fixed until the next; a read of another day (a Mac that slept through midnight) is none. An equity's or index's is its last regular session's (never a minute's close), a future's its last trade date's (a lot held from Friday is measured from Friday's on Saturday, Sunday and Monday, and the 18:00 Globex roll changes nothing), a coin's the close of its last 1-minute bar before its day starts; each is unpriced until that bar is served, and an option has none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "fee_rows": {
            "description": "The fees the venue charged since, booked against the day and never a fill (the key-and-secret venue's `FEE` and `CFEE` activities, posted end of day, asked every ten minutes); `[]` and `fees` `\"0\"` when it charged none, both `null` from a venue that states none.",
            "items": {
              "$ref": "#/components/schemas/FeeRow"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fees": {
            "description": "The sum of `fee_rows`; `null` from a venue that states none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fills": {
            "description": "How many executions `…/fills` lists since, whoever placed them.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "pct": {
            "description": "`pnl` over the equity the day started on (the venue's equity less `pnl`); `null` until the venue answers its equity.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "pnl": {
            "description": "`closed`, `unrealized` and `fees` together; `null` with no fill, fee or open row.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "realized": {
            "description": "What the executions booked against the average cost each met, the journal's fills and the venue's own folded in time order by one rule, gross of money fees (a buy's fee in kind is in the cost).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "since_utc": {
            "description": "Midnight America/New_York.",
            "format": "int64",
            "type": "integer"
          },
          "unpriced": {
            "description": "How many of today's executions closed a lot whose basis Taji cannot state (opened outside Taji before today, or added to since midnight), which book no `realized`, or closed a part held into the day with no prior close, which adds nothing to `closed`; plus how many open rows hold a part into the day with no prior close, which adds no `unrealized`.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "unrealized": {
            "description": "What the open rows made today by the same rule: the part held into the day from its prior close, the rest from today's entry. `null` where no row has one.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "venue_fills": {
            "description": "How many of those the venue reports of an order no journal of ours names (placed outside Taji).",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "since_utc",
          "fills",
          "venue_fills",
          "unpriced",
          "realized",
          "closed",
          "unrealized",
          "fees",
          "fee_rows",
          "pnl",
          "pct"
        ],
        "type": "object"
      },
      "DefaultPair": {
        "description": "The exit pair a switched-on exit starts at.",
        "properties": {
          "stop": {
            "description": "The stop price, 25 ticks off the anchor and snapped to the instrument's tick.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "stop_by": {
            "$ref": "#/components/schemas/ExitBy"
          },
          "take": {
            "description": "The take price, 75 ticks off the anchor and snapped to the instrument's tick.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "take_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExitBy"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "take",
          "stop",
          "take_by",
          "stop_by"
        ],
        "type": "object"
      },
      "Delivered": {
        "description": "What `report/send` answers once the site took the report.",
        "properties": {
          "id": {
            "description": "The report's id.",
            "type": "string"
          },
          "receipt": {
            "description": "The site's receipt, as `sent.json` now holds it.",
            "type": "string"
          },
          "sent_at": {
            "description": "When the site took it, RFC 3339 UTC to the millisecond.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "sent_at",
          "receipt"
        ],
        "type": "object"
      },
      "Departed": {
        "description": "A closed window's leases ended.",
        "properties": {
          "reverted": {
            "description": "The indicator bindings reverted off the window's previews.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "reverted"
        ],
        "type": "object"
      },
      "Departure": {
        "additionalProperties": false,
        "description": "A closed window, by its `/ws/live` hello's client id.",
        "properties": {
          "client": {
            "description": "The `client` of the socket's hello: that window's indicator preview leases end and their bindings revert.",
            "type": "string"
          }
        },
        "required": [
          "client"
        ],
        "type": "object"
      },
      "DeskChat": {
        "additionalProperties": false,
        "description": "One of a desk's chats, as the agent lists it.",
        "properties": {
          "desk": {
            "description": "The desk's id.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "desk",
          "session"
        ],
        "type": "object"
      },
      "DeskFile": {
        "additionalProperties": false,
        "description": "A file written under a Desk's directory.",
        "properties": {
          "body": {
            "description": "The file's whole UTF-8 text.",
            "type": "string"
          },
          "file": {
            "description": "`DESK.md` (64 KiB at most), `documents/<name>` (256 KiB; one plain name on every OS: not `.`/`..`, no `/`, `\\` or `:`, no trailing `.` or space, no device name such as `CON` or `NUL`, 251 bytes at most).",
            "type": "string"
          }
        },
        "required": [
          "file",
          "body"
        ],
        "type": "object"
      },
      "DeskFounded": {
        "description": "A Desk founded.",
        "properties": {
          "desk": {
            "description": "The new Desk's id.",
            "type": "string"
          },
          "path": {
            "description": "Its directory; `null` where the kernel holds no state directory.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "desk",
          "path"
        ],
        "type": "object"
      },
      "DeskLayoutRecord": {
        "description": "The canvas a layout record names: no tree (an empty canvas, which may\nstill hold a popup), or the split tree. Adjacently tagged on\n`kind`/`value` so a variant is self-describing.",
        "oneOf": [
          {
            "description": "No tree: an empty canvas, which may still hold a popup.",
            "properties": {
              "kind": {
                "const": "empty",
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          {
            "description": "The split tree.",
            "properties": {
              "kind": {
                "const": "tree",
                "type": "string"
              },
              "value": {
                "$ref": "#/components/schemas/Tree"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "type": "object"
          }
        ]
      },
      "DeskName": {
        "additionalProperties": false,
        "description": "A Desk's new name.",
        "properties": {
          "name": {
            "description": "The Desk's name; blank is 400.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "DeskNote": {
        "additionalProperties": false,
        "description": "A note written on a Desk, persisting across a relaunch.",
        "properties": {
          "author": {
            "default": null,
            "description": "Who wrote it, named on the `local` token alone (a seat runner's `seat:<name>`); absent or blank is `wire`. Another token's note is its own, `agent` on the `agent` token and `user` on the window's, and naming another author is 400.",
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "description": "The note's text; blank is 400.",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "DeskOrdering": {
        "additionalProperties": false,
        "description": "The Desks in the order the window set.",
        "properties": {
          "ids": {
            "description": "Every Desk's id once, in the new order; else 400 and nothing moves.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "DeskRef": {
        "description": "The Desk a verb acted on.",
        "properties": {
          "desk": {
            "description": "The Desk's id.",
            "type": "string"
          }
        },
        "required": [
          "desk"
        ],
        "type": "object"
      },
      "DeskRow": {
        "additionalProperties": {
          "type": "string"
        },
        "description": "One Desk as the list reads it, and as `desks?q=` ranks it.",
        "properties": {
          "active": {
            "description": "Whether it is the Desk the window shows.",
            "type": "boolean"
          },
          "created_at": {
            "description": "When it was made, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "first_line": {
            "description": "`DESK.md`'s first non-empty line, 200 chars at most; absent from the unranked list.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The Desk's id.",
            "type": "string"
          },
          "last_active": {
            "description": "Its last genuine activity, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "description": "The name the user gave it, `null` until one is given.",
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "description": "How many notes it holds.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "score": {
            "description": "What `desks?q=` scored it: 3 per query word in its name, 1 per query word in `DESK.md`, in its document names, in its notes and in each text a plugin searches on it; absent from the unranked list.",
            "format": "uint",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "created_at",
          "last_active",
          "active",
          "notes"
        ],
        "type": "object"
      },
      "DeskSummary": {
        "additionalProperties": true,
        "description": "A Desk at a glance, capped: what `desk/<id>` answers.",
        "properties": {
          "active": {
            "description": "Whether it is the active Desk.",
            "type": "boolean"
          },
          "capital_allocation": {
            "description": "The risk the Desk may take, dollars as a decimal string.",
            "type": "string"
          },
          "created_at": {
            "description": "When the Desk was made, UTC seconds; `null` without its record.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "data_budget": {
            "description": "The device's data ceiling (`link/data/budget`), dollars as a decimal string, \"0\" with none.",
            "type": "string"
          },
          "data_spend": {
            "$ref": "#/components/schemas/DataSpend"
          },
          "documents": {
            "description": "The first 100 documents.",
            "items": {
              "$ref": "#/components/schemas/DocumentRow"
            },
            "type": "array"
          },
          "id": {
            "description": "The Desk's id.",
            "type": "string"
          },
          "instructions": {
            "description": "The first 12 KiB of `DESK.md`.",
            "type": "string"
          },
          "last_active": {
            "description": "Its last genuine activity, UTC seconds; `null` without its record.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "layout": {
            "$ref": "#/components/schemas/LayoutSummary"
          },
          "name": {
            "description": "The name the user gave it, `null` until one is given.",
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "description": "The last 20 notes.",
            "items": {
              "$ref": "#/components/schemas/Note"
            },
            "type": "array"
          },
          "path": {
            "description": "The Desk's directory, `null` with none (`TAJI_STATELESS=1`, a snapshot).",
            "type": [
              "string",
              "null"
            ]
          },
          "truncated": {
            "description": "Whether `instructions` was cut.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "path",
          "created_at",
          "last_active",
          "active",
          "capital_allocation",
          "data_budget",
          "data_spend",
          "instructions",
          "truncated",
          "documents",
          "notes",
          "layout"
        ],
        "type": "object"
      },
      "DeskWritten": {
        "description": "A file written under a Desk.",
        "properties": {
          "bytes": {
            "description": "Its size.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "desk": {
            "description": "The Desk's id.",
            "type": "string"
          },
          "file": {
            "description": "The file, as sent.",
            "type": "string"
          }
        },
        "required": [
          "desk",
          "file",
          "bytes"
        ],
        "type": "object"
      },
      "Desks": {
        "description": "The Desks the list holds, in its own order, or those `desks?q=` ranks best first.",
        "items": {
          "$ref": "#/components/schemas/DeskRow"
        },
        "type": "array"
      },
      "Diagnostic": {
        "description": "`line` and `column` are 1-based, `column` in characters; line 0 means no position.",
        "properties": {
          "column": {
            "description": "The column of the fault, 1-based, in characters.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "line": {
            "description": "The line of the fault, 1-based; 0 is no position.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "message": {
            "description": "What the stripper found wrong.",
            "type": "string"
          }
        },
        "required": [
          "line",
          "column",
          "message"
        ],
        "type": "object"
      },
      "Dir": {
        "description": "`Row`: `a` left of `b`. `Col`: `a` above `b`.",
        "enum": [
          "row",
          "col"
        ],
        "type": "string"
      },
      "DirectionScope": {
        "description": "Which side's protectives the venue will hold.",
        "oneOf": [
          {
            "enum": [
              "Any"
            ],
            "type": "string"
          },
          {
            "const": "SellToCloseOnly",
            "description": "Exits that CLOSE a long only -- a short's buy-to-close is refused.",
            "type": "string"
          }
        ]
      },
      "DisplayZone": {
        "additionalProperties": false,
        "description": "The zone the window shows times in.",
        "properties": {
          "display_tz": {
            "description": "An IANA zone name.",
            "type": "string"
          }
        },
        "required": [
          "display_tz"
        ],
        "type": "object"
      },
      "DisplayZoneSet": {
        "description": "The zone now set.",
        "properties": {
          "display_tz": {
            "description": "An IANA zone name.",
            "type": "string"
          }
        },
        "required": [
          "display_tz"
        ],
        "type": "object"
      },
      "Disposition": {
        "description": "The gate's chip.",
        "properties": {
          "chip": {
            "description": "The chip's words: `REFUSED · <reason>` (the gate's, else the route's refusal), `ADVISORY · ASKING`, `ADVISORY · UNANSWERED` or `ADVISORY · CLEAR`.",
            "type": "string"
          },
          "note": {
            "description": "What the gate's answer means for the click.",
            "type": "string"
          },
          "tone": {
            "$ref": "#/components/schemas/Tone"
          }
        },
        "required": [
          "chip",
          "tone",
          "note"
        ],
        "type": "object"
      },
      "Document": {
        "description": "One document of a Desk, read whole.",
        "properties": {
          "body": {
            "description": "The file's text.",
            "type": "string"
          },
          "bytes": {
            "description": "Its size.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "modified_at": {
            "description": "When it was last modified, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "description": "The file's name.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "bytes",
          "modified_at",
          "body"
        ],
        "type": "object"
      },
      "DocumentRow": {
        "description": "One file under a Desk's `documents/`.",
        "properties": {
          "bytes": {
            "description": "Its size.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "modified_at": {
            "description": "When it was last modified, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "description": "The file's name, which `documents/<name>` reads it by.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "bytes",
          "modified_at"
        ],
        "type": "object"
      },
      "Documents": {
        "description": "A Desk's documents by name, every file under its `documents/` including ones added by hand.",
        "items": {
          "$ref": "#/components/schemas/DocumentRow"
        },
        "type": "array"
      },
      "DraftEdit": {
        "additionalProperties": false,
        "description": "The staged draft's fields written onto it, naming the `rev` the editor read.",
        "properties": {
          "chase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChaseAsk"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A reprice walk on a limit without pairs or `replaces`, as `orders/<class>/place` takes it."
          },
          "exits": {
            "description": "A spread's net-priced exits, positive amounts in the net's word, Taji supervising them from the entry's first fill.",
            "items": {
              "$ref": "#/components/schemas/PairPoints"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "funds_pct": {
            "default": null,
            "description": "`qty` as this percent of the row's buying power for the class at the anchor, floored to the lot; `null` is none.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "legs": {
            "default": null,
            "description": "1 to 4 legs, `kind.Spread.legs`' own spelling, options on `symbol`: the draft one spread at `net`; `null` is 400.",
            "items": {
              "$ref": "#/components/schemas/LegAsk"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "limit": {
            "default": null,
            "description": "A `stop_limit`'s limit price, on the instrument's tick; unstated or `null` it rests at the stop. An `edit` of `price` carries it by the entry's delta.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "net": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NetPriceAsk"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A spread's net price; `null` sets it at the legs' mid once quoted."
          },
          "notional": {
            "default": null,
            "description": "A crypto pair's size in dollars, floor(notional ÷ price) to the pair's step.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "order_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The entry's shape, overruling the quadrant; `null` infers it."
          },
          "pairs": {
            "description": "The exit pairs, the quantity split evenly over them, the remainder on the first; beside `stop` or `takes` 400 `pairs or stop and takes`.",
            "items": {
              "$ref": "#/components/schemas/PairPoints"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "price": {
            "default": null,
            "description": "The entry price, on the instrument's tick; `null` is 400 `price is a price`. An `edit` of it carries every pair by the entry's delta.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "qty": {
            "default": null,
            "description": "Shares, contracts, or a spread's combos (default 1); above zero.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "rev": {
            "description": "The draft's `rev` as the editor read it (the ticket's or the draft node's, or its own last `stage` or `edit` answer's): 409 `stale_draft` once another seat replaced it, nothing edited.",
            "format": "uuid",
            "type": "string"
          },
          "risk_budget": {
            "default": null,
            "description": "Sizes floor(budget ÷ the mean per-share distance to the stops).",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "risk_pct": {
            "default": null,
            "description": "The budget as a percent of the row's equity, to the cent toward zero; `null` is none.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "runner": {
            "default": null,
            "description": "The sugar's stop-only runner beside the takes; absent or `null` `true`.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DraftSession"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` returns it to the default: the clock's for a limit, regular otherwise."
          },
          "side": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SideWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "On `stage` the draft's side, which `legs` makes a spread's; on `edit` a flip, the pairs mirrored about the price unless `pairs` restates them."
          },
          "sizes": {
            "default": null,
            "description": "A spread's contracts per leg, one whole count ≥ 1 each: the legs' ratios their quotient by the greatest common divisor and `qty` that divisor; `null` is none.",
            "items": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "stop": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StopPoint"
              },
              {
                "type": "null"
              }
            ],
            "description": "Sugar in prices: one pair per take at this stop plus a stop-only runner unless `runner: false`, alone one stop-only pair, `null` none."
          },
          "takes": {
            "default": null,
            "description": "The sugar's takes, prices; without `stop` 400 `takes need a stop`.",
            "items": {
              "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
              "type": [
                "string",
                "number"
              ]
            },
            "type": [
              "array",
              "null"
            ]
          },
          "tif": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TifChip"
              },
              {
                "type": "null"
              }
            ],
            "description": "`DAY`, `GTC`, `IOC` or `FOK`."
          },
          "trail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DraftTrail"
              },
              {
                "type": "null"
              }
            ],
            "description": "A `trailing_stop`'s trail."
          }
        },
        "required": [
          "rev"
        ],
        "type": "object"
      },
      "DraftPlacing": {
        "additionalProperties": false,
        "description": "The staged draft placed, as its sender was shown it.",
        "properties": {
          "expires_at": {
            "default": null,
            "description": "The sender's Unix millisecond past which the act is not sent: reaching the kernel later, 409 `expired`, `expired at <hh:mm:ss>, arrived <n> s late; nothing was sent`. Judged as it arrives, so an act held for approval is sent when approved, however late.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "held": {
            "default": null,
            "description": "The opt-in to the legs Taji holds itself (`trading/exits`): the draft's `exits`, or pairs its row would not seat on the entry; absent `false`, 409 `held_exits` naming them, as `plans/arm`'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "intent_id": {
            "default": null,
            "description": "A UUIDv7 the sender mints (RFC 9562 §5.7): the order goes out under it, and a repeat places nothing. Omitted, the kernel mints one.",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "rev": {
            "default": null,
            "description": "The staged draft's `rev` as the sender was shown it (the ticket's, or a `stage`/`edit` answer's): 400 `bad_ask` `draft/place names the draft's rev` without one, read after 409 `nothing_staged`.",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "DraftSeated": {
        "description": "What `draft/stage` and `draft/edit` answer: the draft's node and the `rev` it was seated under.",
        "properties": {
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "rev": {
            "description": "The uuid naming the draft's terms, which the draft node and the ticket carry: a seat that changes no field keeps it, any other mints a new one, and none outlives a restart.",
            "format": "uuid",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "node",
          "rev"
        ],
        "type": "object"
      },
      "DraftSession": {
        "description": "A draft's session, the three the ticket's chips show.",
        "enum": [
          "regular",
          "extended",
          "24h"
        ],
        "type": "string"
      },
      "DraftStaging": {
        "additionalProperties": false,
        "description": "A draft staged: `{symbol, spot, side}` and an entry `price` beside the\ndraft's own fields. With `legs` neither `price` nor `side` is read.",
        "properties": {
          "chase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChaseAsk"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A reprice walk on a limit without pairs or `replaces`, as `orders/<class>/place` takes it."
          },
          "exits": {
            "description": "A spread's net-priced exits, positive amounts in the net's word, Taji supervising them from the entry's first fill.",
            "items": {
              "$ref": "#/components/schemas/PairPoints"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "funds_pct": {
            "default": null,
            "description": "`qty` as this percent of the row's buying power for the class at the anchor, floored to the lot; `null` is none.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "legs": {
            "default": null,
            "description": "1 to 4 legs, `kind.Spread.legs`' own spelling, options on `symbol`: the draft one spread at `net`; `null` is 400.",
            "items": {
              "$ref": "#/components/schemas/LegAsk"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "limit": {
            "default": null,
            "description": "A `stop_limit`'s limit price, on the instrument's tick; unstated or `null` it rests at the stop. An `edit` of `price` carries it by the entry's delta.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "net": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NetPriceAsk"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A spread's net price; `null` sets it at the legs' mid once quoted."
          },
          "notional": {
            "default": null,
            "description": "A crypto pair's size in dollars, floor(notional ÷ price) to the pair's step.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "object": {
            "default": null,
            "description": "The id of the chart drawing the draft came from, carried on the draft node until the next stage.",
            "type": [
              "string",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "order_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderType"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The entry's shape, overruling the quadrant; `null` infers it."
          },
          "pairs": {
            "description": "The exit pairs, the quantity split evenly over them, the remainder on the first; beside `stop` or `takes` 400 `pairs or stop and takes`.",
            "items": {
              "$ref": "#/components/schemas/PairPoints"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "price": {
            "default": null,
            "description": "The entry price, on the instrument's tick; `null` is 400 `price is a price`. An `edit` of it carries every pair by the entry's delta.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "qty": {
            "default": null,
            "description": "Shares, contracts, or a spread's combos (default 1); above zero.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "replaces": {
            "default": null,
            "description": "A working order's `intent_id` that `place` cancels first (the node's `replaces`).",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "risk_budget": {
            "default": null,
            "description": "Sizes floor(budget ÷ the mean per-share distance to the stops).",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "risk_pct": {
            "default": null,
            "description": "The budget as a percent of the row's equity, to the cent toward zero; `null` is none.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "runner": {
            "default": null,
            "description": "The sugar's stop-only runner beside the takes; absent or `null` `true`.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DraftSession"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` returns it to the default: the clock's for a limit, regular otherwise."
          },
          "side": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SideWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "On `stage` the draft's side, which `legs` makes a spread's; on `edit` a flip, the pairs mirrored about the price unless `pairs` restates them."
          },
          "sizes": {
            "default": null,
            "description": "A spread's contracts per leg, one whole count ≥ 1 each: the legs' ratios their quotient by the greatest common divisor and `qty` that divisor; `null` is none.",
            "items": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "spot": {
            "description": "The last trade the sender read: a market entry's anchor.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "stop": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StopPoint"
              },
              {
                "type": "null"
              }
            ],
            "description": "Sugar in prices: one pair per take at this stop plus a stop-only runner unless `runner: false`, alone one stop-only pair, `null` none."
          },
          "symbol": {
            "description": "An item (`equity:RKLB`; bare text 400 naming `equity:<it>`), which the draft node's `symbol` echoes.",
            "type": "string"
          },
          "takes": {
            "default": null,
            "description": "The sugar's takes, prices; without `stop` 400 `takes need a stop`.",
            "items": {
              "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
              "type": [
                "string",
                "number"
              ]
            },
            "type": [
              "array",
              "null"
            ]
          },
          "tif": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TifChip"
              },
              {
                "type": "null"
              }
            ],
            "description": "`DAY`, `GTC`, `IOC` or `FOK`."
          },
          "trail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DraftTrail"
              },
              {
                "type": "null"
              }
            ],
            "description": "A `trailing_stop`'s trail."
          }
        },
        "required": [
          "symbol",
          "spot"
        ],
        "type": "object"
      },
      "DraftTrail": {
        "additionalProperties": false,
        "description": "A trailing stop's trail: exactly one of the two, above zero.",
        "properties": {
          "amount": {
            "default": null,
            "description": "In price.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "percent": {
            "default": null,
            "description": "In percent of the price.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Draw": {
        "description": "The scopes a read of `product` on an item of `class` (`None`: any) off\neach of `providers` spends, as the route names them:\n`{provider, login, limit}`.\nA rate scope a bars series spends, as `GET /read/link/rate_limits` names it.",
        "properties": {
          "limit": {
            "description": "The scope's name.",
            "type": "string"
          },
          "login": {
            "description": "The login whose scope it spends, as the scope's row names it.",
            "type": "string"
          },
          "provider": {
            "description": "The provider that answered the series.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "login",
          "limit"
        ],
        "type": "object"
      },
      "Drawdown": {
        "description": "One run of `curve` under its peak.",
        "properties": {
          "depth": {
            "description": "The peak less the lowest point of the run, a positive amount.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "peak_at": {
            "description": "`None` when the peak is the curve's start, 0.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "recovered_at": {
            "description": "`None` while still under.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "trough_at": {
            "description": "UTC seconds of the lowest point of the run.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "peak_at",
          "trough_at",
          "recovered_at",
          "depth"
        ],
        "type": "object"
      },
      "DrawingRead": {
        "description": "One annotation on the Desk, on any symbol.",
        "properties": {
          "annotation": {
            "$ref": "#/components/schemas/DrawnAnnotation"
          },
          "layouts": {
            "description": "The ids of the layouts whose panes show `symbol`: the one to open to see it.",
            "items": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "type": "array"
          },
          "symbol": {
            "description": "The symbol it is drawn on.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "annotation",
          "layouts"
        ],
        "type": "object"
      },
      "DrawingTool": {
        "description": "A drawing tool, each over its `points` (all `time_price`, in drawing order). Lines: `info_line` (2), `trend_angle` (2), `horizontal_ray` (1, rightward), `cross_line` (1). Channels: `parallel_channel` (3: line 0→1 and its parallel through 2), `regression_trend` (2: the closes' regression between the two times, ±2 standard deviations), `flat_top_bottom` (3: line 0→1 and a level at 2's price), `disjoint_channel` (3). Pitchforks (3: handle 0, prongs 1 and 2; levels): `pitchfork`, `schiff_pitchfork`, `modified_schiff_pitchfork`, `inside_pitchfork`. Fibonacci (levels): `trend_based_fib_extension` (3), `fib_channel` (3), `fib_time_zone` (2: verticals at each ratio of the 0→1 bars, ratios to 100), `fib_speed_resistance_fan` (2), `trend_based_fib_time` (3), `fib_circles` (2: centre 0, radius to 1), `fib_spiral` (2, no levels), `fib_speed_resistance_arcs` (2), `fib_wedge` (3), `pitchfan` (3). Gann: `gann_box` (2, levels), `gann_square_fixed` (2), `gann_square` (2), `gann_fan` (2). Patterns, each point a pivot: `xabcd_pattern` (5), `cypher_pattern` (5), `head_and_shoulders` (7), `abcd_pattern` (4), `triangle_pattern` (4), `three_drives_pattern` (7), `elliott_impulse_wave` (6), `elliott_correction_wave` (4), `elliott_triangle_wave` (6), `elliott_double_combo_wave` (4), `elliott_triple_combo_wave` (6). Cycles (2: one period from 0 to 1): `cyclic_lines`, `time_cycles`, `sine_line`. Forecasting: `position_forecast` (2), `bars_pattern` (2: the bars between the times, copied from point 1 on), `ghost_feed` (2 or more), `sector` (3: centre 0, arc from 1 to 2). Volume, computed from the bars: `anchored_vwap` (1), `fixed_range_volume_profile` (2), `anchored_volume_profile` (1). Measures: `price_range`, `date_range`, `date_and_price_range` (2). Shapes: `brush` and `highlighter` (2 or more, the stroke), `arrow_marker` and `arrow` (2: tail, head), `arrow_mark_up` and `arrow_mark_down` (1), `rotated_rectangle` (3), `path` (2 or more, open), `circle` (2: centre, rim), `ellipse` (3: the axis 0→1, 2 on the other), `polyline` (3 or more, closed), `triangle` (3), `arc` (3), `curve` (3: end, control, end), `double_curve` (4: end, control, control, end). Annotation, the text the top-level `label`: `note` (1, label required), `price_note` (2), `pin` (1), `table` (1, label required: rows by newline, cells by tab), `callout` (2: target, box; label required), `comment` (1, label required), `price_label` (1), `signpost` (1, label required), `flag_mark` (1). Icons, the symbol the `label`: `emoji` (1: one emoji), `sticker` (1) and `icon` (1), each a name from Taji's sticker or icon set.",
        "enum": [
          "info_line",
          "trend_angle",
          "horizontal_ray",
          "cross_line",
          "parallel_channel",
          "regression_trend",
          "flat_top_bottom",
          "disjoint_channel",
          "pitchfork",
          "schiff_pitchfork",
          "modified_schiff_pitchfork",
          "inside_pitchfork",
          "trend_based_fib_extension",
          "fib_channel",
          "fib_time_zone",
          "fib_speed_resistance_fan",
          "trend_based_fib_time",
          "fib_circles",
          "fib_spiral",
          "fib_speed_resistance_arcs",
          "fib_wedge",
          "pitchfan",
          "gann_box",
          "gann_square_fixed",
          "gann_square",
          "gann_fan",
          "xabcd_pattern",
          "cypher_pattern",
          "head_and_shoulders",
          "abcd_pattern",
          "triangle_pattern",
          "three_drives_pattern",
          "elliott_impulse_wave",
          "elliott_correction_wave",
          "elliott_triangle_wave",
          "elliott_double_combo_wave",
          "elliott_triple_combo_wave",
          "cyclic_lines",
          "time_cycles",
          "sine_line",
          "position_forecast",
          "bars_pattern",
          "ghost_feed",
          "sector",
          "anchored_vwap",
          "fixed_range_volume_profile",
          "anchored_volume_profile",
          "price_range",
          "date_range",
          "date_and_price_range",
          "brush",
          "highlighter",
          "arrow_marker",
          "arrow",
          "arrow_mark_up",
          "arrow_mark_down",
          "rotated_rectangle",
          "path",
          "circle",
          "ellipse",
          "polyline",
          "triangle",
          "arc",
          "curve",
          "double_curve",
          "note",
          "price_note",
          "pin",
          "table",
          "callout",
          "comment",
          "price_label",
          "signpost",
          "flag_mark",
          "emoji",
          "sticker",
          "icon"
        ],
        "type": "string"
      },
      "DrawingV1": {
        "additionalProperties": false,
        "description": "A drawing tool: which, its points in order, and a levelled tool's ratios.",
        "properties": {
          "levels": {
            "description": "A levelled tool's ratios (the fib tools but the spiral, the pitchforks, the pitchfan, the Gann box), at least one, each in [-5, 5] (`fib_time_zone` [-100, 100]); the default for the extension and the fib channel is [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.618, 2.618, 3.618, 4.236]. Absent, or empty, for every other tool.",
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": "array"
          },
          "points": {
            "description": "The tool's points in drawing order, each a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`); as many as the tool takes.",
            "items": {
              "$ref": "#/components/schemas/Anchor"
            },
            "type": "array"
          },
          "tool": {
            "$ref": "#/components/schemas/DrawingTool"
          }
        },
        "required": [
          "tool",
          "points"
        ],
        "type": "object"
      },
      "Drawn": {
        "description": "The drawings, tables, cards and bars panel a run holds at its end, by kind.",
        "properties": {
          "bar_categories": {
            "description": "Count of categories in the bars panel, 0 with no panel.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "boxes": {
            "description": "Count of box drawings.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "cards": {
            "description": "Count of cards.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "labels": {
            "description": "Count of label drawings.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "lines": {
            "description": "Count of line drawings.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "polylines": {
            "description": "Count of polyline drawings.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "tables": {
            "description": "Count of tables.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "lines",
          "labels",
          "boxes",
          "polylines",
          "tables",
          "cards",
          "bar_categories"
        ],
        "type": "object"
      },
      "DrawnAnnotation": {
        "description": "One drawn annotation — a manipulable, serializable\n[`ChartObject`](crate::object::ChartObject) wrapping one of its\nprimitives.\n\n`PartialEq` (NOT `Eq`) — the primitives hold `f64` anchors, matching the\n`PartialEq`-only discipline of every other f64-bearing type in the crate\n([`ChartPoint`](crate::geometry::ChartPoint), [`AnnotationStyle`]).\n\n**No `created_at` / `modified_at`**:\n[`translate`](crate::object::ChartObject::translate) is clockless (no HLC\nin scope), so a `modified_at` stamped here would be stale after every edit.",
        "properties": {
          "group": {
            "description": "The named group of drawings it sits in.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "Globally-unique identity (UUID v7).",
            "format": "uuid",
            "type": "string"
          },
          "label": {
            "description": "Optional caption rendered near the annotation (display layer).",
            "type": [
              "string",
              "null"
            ]
          },
          "locked": {
            "description": "Manipulation guard.",
            "type": "boolean"
          },
          "primitive": {
            "description": "Which primitive shape this annotation draws.",
            "oneOf": [
              {
                "description": "A full-width horizontal line at a single price level (e.g. a support or resistance line). Its `payload.anchor` is a price-only anchor; the line spans the entire visible time range.",
                "properties": {
                  "kind": {
                    "const": "horizontal",
                    "type": "string"
                  },
                  "payload": {
                    "description": "Horizontal price line — spans the full visible time range at a fixed price.\n`anchor` is an [`Anchor::PriceOnly`].",
                    "properties": {
                      "anchor": {
                        "description": "The price level the line sits at, as a price-only anchor (`{\"kind\":\"price_only\",\"price\":123.45}`). The price is in the symbol's quote currency. The line spans the full visible time range.",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "anchor"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              },
              {
                "description": "A straight line segment between two time/price anchors `a` and `b`. Set `extend_left`/`extend_right` to project the line past either endpoint to the chart edge (e.g. a trend channel).",
                "properties": {
                  "kind": {
                    "const": "trendline",
                    "type": "string"
                  },
                  "payload": {
                    "description": "Trendline — a segment between two anchors, optionally extended past either\nendpoint to the viewport edge. `a` / `b` are [`Anchor::TimePrice`].",
                    "properties": {
                      "a": {
                        "description": "The first endpoint, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`). `time` is UTC seconds; `price` is in the symbol's quote currency.",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "b": {
                        "description": "The second endpoint, as a time/price anchor (same shape as `a`).",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "extend_left": {
                        "description": "When true, project the line past the earlier-time endpoint to the left chart edge. Default false (segment stops at the anchor).",
                        "type": "boolean"
                      },
                      "extend_right": {
                        "description": "When true, project the line past the later-time endpoint to the right chart edge. Default false.",
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "a",
                      "b",
                      "extend_left",
                      "extend_right"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              },
              {
                "description": "An axis-aligned rectangle whose two opposite corners are the time/price anchors `a` and `b` (e.g. a highlighted zone or consolidation box). Corner order does not matter.",
                "properties": {
                  "kind": {
                    "const": "rectangle",
                    "type": "string"
                  },
                  "payload": {
                    "description": "Rectangle — an axis-aligned box spanning two opposite corners. `a` / `b` are\n[`Anchor::TimePrice`]; the box is the min/max bounds of the two.",
                    "properties": {
                      "a": {
                        "description": "One corner, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`). The rectangle is the axis-aligned bounding box of the two corners, so corner order does not matter.",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "b": {
                        "description": "The opposite corner, as a time/price anchor (same shape as `a`).",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "a",
                      "b"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              },
              {
                "description": "A full-height vertical line at one moment in time (e.g. an event or a session open). Its `payload.anchor` is a time-only anchor; the line spans the entire visible price range.",
                "properties": {
                  "kind": {
                    "const": "vertical",
                    "type": "string"
                  },
                  "payload": {
                    "description": "Vertical time line — spans the full visible price range at a fixed time.\n`anchor` is an [`Anchor::TimeOnly`].",
                    "properties": {
                      "anchor": {
                        "description": "The moment the line sits at, as a time-only anchor (`{\"kind\":\"time_only\",\"time\":<utc_seconds>}`). The line spans the full visible price range.",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "anchor"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              },
              {
                "description": "A Fibonacci retracement over a swing from time/price anchor `a` to `b`: one horizontal level per ratio in `levels`, at `a.price + ratio * (b.price - a.price)` (0 is `a`, 1 is `b`). The usual levels are [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1].",
                "properties": {
                  "kind": {
                    "const": "fib_retracement",
                    "type": "string"
                  },
                  "payload": {
                    "description": "Fibonacci retracement — levels at ratios of the `a`→`b` price move. `a` / `b`\nare [`Anchor::TimePrice`].",
                    "properties": {
                      "a": {
                        "description": "The swing's start, ratio 0, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`).",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "b": {
                        "description": "The swing's end, ratio 1, as a time/price anchor; its price must differ from `a`'s.",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "extend_right": {
                        "description": "When true, the levels run from the swing to the right chart edge; false stops them at the swing's later end.",
                        "type": "boolean"
                      },
                      "levels": {
                        "description": "The ratios to draw a level at, each in [-5, 5], at least one. The usual set is [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1].",
                        "items": {
                          "format": "double",
                          "type": "number"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "a",
                      "b",
                      "levels",
                      "extend_right"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              },
              {
                "description": "A text note at one time/price point. Its content is the annotation's top-level `label`, which is required for this kind; `update_annotation` with a new `label` edits it.",
                "properties": {
                  "kind": {
                    "const": "text",
                    "type": "string"
                  },
                  "payload": {
                    "description": "Text note — one point; the content is [`Annotation::label`].",
                    "properties": {
                      "anchor": {
                        "description": "Where the note sits, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`).",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "anchor"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              },
              {
                "description": "A long or short position: a box from `entry` to `end`, the target zone between the entry price and `target`, the stop zone between it and `stop`. A long needs stop < entry < target, a short target < entry < stop.",
                "properties": {
                  "kind": {
                    "const": "position",
                    "type": "string"
                  },
                  "payload": {
                    "description": "Long or short position — `entry` is [`Anchor::TimePrice`], `end` is\n[`Anchor::TimeOnly`] (the box's right edge).",
                    "properties": {
                      "end": {
                        "description": "The box's right edge, as a time-only anchor (`{\"kind\":\"time_only\",\"time\":<utc_seconds>}`), later than `entry`'s time.",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "entry": {
                        "description": "The box's left edge and the entry price, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`).",
                        "oneOf": [
                          {
                            "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                            "properties": {
                              "kind": {
                                "const": "time_price",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "time": {
                                "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                            "properties": {
                              "kind": {
                                "const": "time_only",
                                "type": "string"
                              },
                              "time": {
                                "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "time"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                            "properties": {
                              "kind": {
                                "const": "price_only",
                                "type": "string"
                              },
                              "price": {
                                "description": "The price as a decimal string, `null` where it is not finite.",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "price"
                            ],
                            "type": "object"
                          },
                          {
                            "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                            "properties": {
                              "end": {
                                "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              },
                              "kind": {
                                "const": "time_range",
                                "type": "string"
                              },
                              "start": {
                                "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                "format": "double",
                                "maximum": 7258118400.0,
                                "minimum": -2208988800.0,
                                "type": "number"
                              }
                            },
                            "required": [
                              "kind",
                              "start",
                              "end"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "side": {
                        "description": "`long` or `short`; fixed once drawn.",
                        "enum": [
                          "long",
                          "short"
                        ],
                        "type": "string"
                      },
                      "stop": {
                        "description": "The stop price, in the symbol's quote currency: below the entry for a long, above it for a short.",
                        "format": "double",
                        "type": "number"
                      },
                      "target": {
                        "description": "The target price, in the symbol's quote currency: above the entry for a long, below it for a short.",
                        "format": "double",
                        "type": "number"
                      }
                    },
                    "required": [
                      "side",
                      "entry",
                      "end",
                      "stop",
                      "target"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              },
              {
                "description": "A drawing tool by name (`payload.tool`) over its time/price `points`; see `DrawingTool` for each tool's point count and meaning, which take `levels` and which need a `label`.",
                "properties": {
                  "kind": {
                    "const": "drawing",
                    "type": "string"
                  },
                  "payload": {
                    "description": "A drawing tool: which, its points in order, and a levelled tool's ratios.",
                    "properties": {
                      "levels": {
                        "description": "A levelled tool's ratios (the fib tools but the spiral, the pitchforks, the pitchfan, the Gann box), at least one, each in [-5, 5] (`fib_time_zone` [-100, 100]); the default for the extension and the fib channel is [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1, 1.618, 2.618, 3.618, 4.236]. Absent, or empty, for every other tool.",
                        "items": {
                          "format": "double",
                          "type": "number"
                        },
                        "type": "array"
                      },
                      "points": {
                        "description": "The tool's points in drawing order, each a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`); as many as the tool takes.",
                        "items": {
                          "description": "A point or interval the annotation is pinned to in chart space. Choose the variant by `kind`: `time_price` (a point at a time AND a price), `price_only` (a price level, any time), `time_only` (a moment in time, any price), or `time_range` (a time interval). `time` values are UTC seconds; `price` values are in the symbol's quote currency.",
                          "oneOf": [
                            {
                              "description": "Anchored to both a time and a price (e.g. a trendline endpoint).",
                              "properties": {
                                "kind": {
                                  "const": "time_price",
                                  "type": "string"
                                },
                                "price": {
                                  "description": "The price as a decimal string, `null` where it is not finite.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "time": {
                                  "description": "Time component, in UTC seconds since the Unix epoch. Bounded to roughly the years 1900..2200 — a finite window that blocks `f64` overflow, not a data-availability claim.",
                                  "format": "double",
                                  "maximum": 7258118400.0,
                                  "minimum": -2208988800.0,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "kind",
                                "time",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Anchored to a time only (e.g. a vertical line at a bar).",
                              "properties": {
                                "kind": {
                                  "const": "time_only",
                                  "type": "string"
                                },
                                "time": {
                                  "description": "Time, in UTC seconds since the Unix epoch (years ~1900..2200).",
                                  "format": "double",
                                  "maximum": 7258118400.0,
                                  "minimum": -2208988800.0,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "kind",
                                "time"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Anchored to a price only (e.g. a horizontal price line spanning the\nfull visible time range).",
                              "properties": {
                                "kind": {
                                  "const": "price_only",
                                  "type": "string"
                                },
                                "price": {
                                  "description": "The price as a decimal string, `null` where it is not finite.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "price"
                              ],
                              "type": "object"
                            },
                            {
                              "description": "Anchored to a time interval (e.g. a rectangle's horizontal extent, or a\nsession-range highlight).",
                              "properties": {
                                "end": {
                                  "description": "Interval end, in UTC seconds (years ~1900..2200). Must be later than `start`.",
                                  "format": "double",
                                  "maximum": 7258118400.0,
                                  "minimum": -2208988800.0,
                                  "type": "number"
                                },
                                "kind": {
                                  "const": "time_range",
                                  "type": "string"
                                },
                                "start": {
                                  "description": "Interval start, in UTC seconds (years ~1900..2200). Must be earlier than `end` (checked by the ingest gate).",
                                  "format": "double",
                                  "maximum": 7258118400.0,
                                  "minimum": -2208988800.0,
                                  "type": "number"
                                }
                              },
                              "required": [
                                "kind",
                                "start",
                                "end"
                              ],
                              "type": "object"
                            }
                          ]
                        },
                        "type": "array"
                      },
                      "tool": {
                        "description": "A drawing tool, each over its `points` (all `time_price`, in drawing order). Lines: `info_line` (2), `trend_angle` (2), `horizontal_ray` (1, rightward), `cross_line` (1). Channels: `parallel_channel` (3: line 0→1 and its parallel through 2), `regression_trend` (2: the closes' regression between the two times, ±2 standard deviations), `flat_top_bottom` (3: line 0→1 and a level at 2's price), `disjoint_channel` (3). Pitchforks (3: handle 0, prongs 1 and 2; levels): `pitchfork`, `schiff_pitchfork`, `modified_schiff_pitchfork`, `inside_pitchfork`. Fibonacci (levels): `trend_based_fib_extension` (3), `fib_channel` (3), `fib_time_zone` (2: verticals at each ratio of the 0→1 bars, ratios to 100), `fib_speed_resistance_fan` (2), `trend_based_fib_time` (3), `fib_circles` (2: centre 0, radius to 1), `fib_spiral` (2, no levels), `fib_speed_resistance_arcs` (2), `fib_wedge` (3), `pitchfan` (3). Gann: `gann_box` (2, levels), `gann_square_fixed` (2), `gann_square` (2), `gann_fan` (2). Patterns, each point a pivot: `xabcd_pattern` (5), `cypher_pattern` (5), `head_and_shoulders` (7), `abcd_pattern` (4), `triangle_pattern` (4), `three_drives_pattern` (7), `elliott_impulse_wave` (6), `elliott_correction_wave` (4), `elliott_triangle_wave` (6), `elliott_double_combo_wave` (4), `elliott_triple_combo_wave` (6). Cycles (2: one period from 0 to 1): `cyclic_lines`, `time_cycles`, `sine_line`. Forecasting: `position_forecast` (2), `bars_pattern` (2: the bars between the times, copied from point 1 on), `ghost_feed` (2 or more), `sector` (3: centre 0, arc from 1 to 2). Volume, computed from the bars: `anchored_vwap` (1), `fixed_range_volume_profile` (2), `anchored_volume_profile` (1). Measures: `price_range`, `date_range`, `date_and_price_range` (2). Shapes: `brush` and `highlighter` (2 or more, the stroke), `arrow_marker` and `arrow` (2: tail, head), `arrow_mark_up` and `arrow_mark_down` (1), `rotated_rectangle` (3), `path` (2 or more, open), `circle` (2: centre, rim), `ellipse` (3: the axis 0→1, 2 on the other), `polyline` (3 or more, closed), `triangle` (3), `arc` (3), `curve` (3: end, control, end), `double_curve` (4: end, control, control, end). Annotation, the text the top-level `label`: `note` (1, label required), `price_note` (2), `pin` (1), `table` (1, label required: rows by newline, cells by tab), `callout` (2: target, box; label required), `comment` (1, label required), `price_label` (1), `signpost` (1, label required), `flag_mark` (1). Icons, the symbol the `label`: `emoji` (1: one emoji), `sticker` (1) and `icon` (1), each a name from Taji's sticker or icon set.",
                        "enum": [
                          "info_line",
                          "trend_angle",
                          "horizontal_ray",
                          "cross_line",
                          "parallel_channel",
                          "regression_trend",
                          "flat_top_bottom",
                          "disjoint_channel",
                          "pitchfork",
                          "schiff_pitchfork",
                          "modified_schiff_pitchfork",
                          "inside_pitchfork",
                          "trend_based_fib_extension",
                          "fib_channel",
                          "fib_time_zone",
                          "fib_speed_resistance_fan",
                          "trend_based_fib_time",
                          "fib_circles",
                          "fib_spiral",
                          "fib_speed_resistance_arcs",
                          "fib_wedge",
                          "pitchfan",
                          "gann_box",
                          "gann_square_fixed",
                          "gann_square",
                          "gann_fan",
                          "xabcd_pattern",
                          "cypher_pattern",
                          "head_and_shoulders",
                          "abcd_pattern",
                          "triangle_pattern",
                          "three_drives_pattern",
                          "elliott_impulse_wave",
                          "elliott_correction_wave",
                          "elliott_triangle_wave",
                          "elliott_double_combo_wave",
                          "elliott_triple_combo_wave",
                          "cyclic_lines",
                          "time_cycles",
                          "sine_line",
                          "position_forecast",
                          "bars_pattern",
                          "ghost_feed",
                          "sector",
                          "anchored_vwap",
                          "fixed_range_volume_profile",
                          "anchored_volume_profile",
                          "price_range",
                          "date_range",
                          "date_and_price_range",
                          "brush",
                          "highlighter",
                          "arrow_marker",
                          "arrow",
                          "arrow_mark_up",
                          "arrow_mark_down",
                          "rotated_rectangle",
                          "path",
                          "circle",
                          "ellipse",
                          "polyline",
                          "triangle",
                          "arc",
                          "curve",
                          "double_curve",
                          "note",
                          "price_note",
                          "pin",
                          "table",
                          "callout",
                          "comment",
                          "price_label",
                          "signpost",
                          "flag_mark",
                          "emoji",
                          "sticker",
                          "icon"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "tool",
                      "points"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "kind",
                  "payload"
                ],
                "type": "object"
              }
            ]
          },
          "scope": {
            "description": "Visibility / sharing scope.",
            "oneOf": [
              {
                "description": "Pin to one chart pane only. `pane_id` is that pane's numeric identifier, learned from the chart read model.",
                "properties": {
                  "kind": {
                    "const": "pane",
                    "type": "string"
                  },
                  "pane_id": {
                    "description": "The pane's numeric id. The explicit `max` keeps the schema's admitted\nrange identical to the Rust `u32` serde admits — without it the schema\n(`minimum: 0`, no max) would accept `> u32::MAX`, which then fails the\ntyped decode with an unlocatable error instead of a clean schema-layer\n`/scope/pane_id` rejection.",
                    "format": "uint32",
                    "maximum": 4294967295.0,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "kind",
                  "pane_id"
                ],
                "type": "object"
              },
              {
                "description": "Show on every chart pane in the current desk (the default choice for most annotations).",
                "properties": {
                  "kind": {
                    "const": "desk",
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              },
              {
                "description": "Show across all desks, everywhere this symbol is charted.",
                "properties": {
                  "kind": {
                    "const": "global",
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              }
            ]
          },
          "source": {
            "description": "Provenance (owner / desk / model / turn).",
            "properties": {
              "desk_id": {
                "description": "The desk it was drawn on.",
                "type": "string"
              },
              "model": {
                "description": "The model that drew it; absent unless `owner` is `agent`.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "description": "Who created this chart object.\n\n`Builtin` is for shipped-with-Taji indicators (EMA / Bollinger / RSI starters). Distinct from `Agent` (auto-applied via the agent write path,\nengine-stamped at ingest) and `User` (direct user gesture). Lets the Inspector show a \"Built-in\"\nbadge without inspecting source paths, and lets future audit/analytics\npartition by provenance.\n\n`#[non_exhaustive]` per engine-wide convention for cross-boundary enums\n(matches `taji-types::Liveness` / `Session` / `OrderSide` / etc.): adding a\nvariant is a non-breaking change for\ndownstream `match` sites that already carry a `_ => {}` wildcard arm.",
                "enum": [
                  "user",
                  "agent",
                  "builtin"
                ],
                "type": "string"
              },
              "turn_id": {
                "description": "The agent's turn that drew it; absent unless `owner` is `agent`.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "owner",
              "desk_id"
            ],
            "type": "object"
          },
          "style": {
            "description": "Stroke color / width / dash / opacity.",
            "properties": {
              "color": {
                "description": "Packed color, **0xAARRGGBB, sRGB**: `a = bits 24-31`, `r = 16-23`,\n`g = 8-15`, `b = 0-7`, the byte order indicator output styles use too.\n\nThe `AA` byte is the **base** per-color alpha; the final rendered alpha\nmultiplies it by [`opacity`](Self::opacity) (see that field for the rule).",
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "line_style": {
                "description": "Solid / dashed / dotted dash pattern.",
                "oneOf": [
                  {
                    "const": "solid",
                    "description": "A continuous, unbroken line.",
                    "type": "string"
                  },
                  {
                    "const": "dashed",
                    "description": "A dashed line (alternating long marks and gaps).",
                    "type": "string"
                  },
                  {
                    "const": "dotted",
                    "description": "A dotted line (a series of short dots).",
                    "type": "string"
                  }
                ]
              },
              "opacity": {
                "description": "Whole-object alpha **master multiplier** in `[0.0, 1.0]` — the single\nprecedence rule that disambiguates it from [`color`](Self::color)'s `AA`\nalpha byte (CSS / Figma \"layer opacity\" model): `color` defines the base\ncolor *and* its per-color alpha; `opacity` then fades the **entire**\nannotation uniformly. The two are NOT redundant — `color`'s alpha is\nabsolute, `opacity` is a multiplier on top of it.\n\nEffective rendered alpha (computed by the renderer, NOT here):\nstroke `= (color >> 24) as f32 / 255.0 * opacity`; a rectangle's derived\nfill alpha is likewise scaled by `opacity`. `opacity == 1.0` uses\n`color`'s alpha verbatim. Primary use: de-emphasized or agent-proposed\ndrawings rendered at reduced opacity without rewriting per-color alpha.",
                "format": "float",
                "type": "number"
              },
              "text": {
                "description": "A note's or callout's settings rows; `None` draws the tool's defaults.",
                "properties": {
                  "background": {
                    "default": null,
                    "description": "The label's background color, or null for none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "bold": {
                    "default": false,
                    "description": "Bold words; false when absent.",
                    "type": "boolean"
                  },
                  "border": {
                    "default": null,
                    "description": "The label's border color, or null for none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "border_width": {
                    "default": 2,
                    "description": "The border's thickness, 1 to 4.",
                    "format": "uint8",
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "color": {
                    "description": "The words' color.",
                    "type": "string"
                  },
                  "italic": {
                    "default": false,
                    "description": "Italic words; false when absent.",
                    "type": "boolean"
                  },
                  "size": {
                    "description": "Font size in px: 8, 10, 11, 12, 14, 16, 18, 20, 22, 24, 28, 32 or 40.",
                    "format": "uint8",
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "title": {
                    "default": null,
                    "description": "The drawing's own name, or null for the tool's.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "visibility": {
                    "default": null,
                    "description": "The intervals it shows on, or null for all.",
                    "properties": {
                      "days": {
                        "description": "Days, 1 to 366.",
                        "items": {
                          "format": "uint16",
                          "maximum": 65535,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 2,
                        "minItems": 2,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "hours": {
                        "description": "Hours, 1 to 24.",
                        "items": {
                          "format": "uint16",
                          "maximum": 65535,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 2,
                        "minItems": 2,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "minutes": {
                        "description": "Minutes, 1 to 59.",
                        "items": {
                          "format": "uint16",
                          "maximum": 65535,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 2,
                        "minItems": 2,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "months": {
                        "description": "Months, 1 to 12.",
                        "items": {
                          "format": "uint16",
                          "maximum": 65535,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 2,
                        "minItems": 2,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "ranges": {
                        "description": "Whether it shows on range intervals; Taji has none.",
                        "type": "boolean"
                      },
                      "seconds": {
                        "description": "Seconds, 1 to 59.",
                        "items": {
                          "format": "uint16",
                          "maximum": 65535,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 2,
                        "minItems": 2,
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "ticks": {
                        "description": "Whether it shows on tick intervals; Taji has none.",
                        "type": "boolean"
                      },
                      "weeks": {
                        "description": "Weeks, 1 to 52.",
                        "items": {
                          "format": "uint16",
                          "maximum": 65535,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 2,
                        "minItems": 2,
                        "type": [
                          "array",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "ticks",
                      "ranges"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "wrap": {
                    "default": false,
                    "description": "Wrap the words (a callout's Text wrap).",
                    "type": "boolean"
                  }
                },
                "required": [
                  "color",
                  "size"
                ],
                "type": [
                  "object",
                  "null"
                ]
              },
              "width": {
                "description": "Stroke width in physical pixels.",
                "format": "float",
                "type": "number"
              }
            },
            "required": [
              "color",
              "width",
              "line_style",
              "opacity"
            ],
            "type": "object"
          },
          "visible": {
            "description": "Legend eye-toggle / render gate.",
            "type": "boolean"
          },
          "z_index": {
            "description": "Render z-order within the chart-objects layer.",
            "format": "int16",
            "maximum": 32767,
            "minimum": -32768,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "primitive",
          "style",
          "scope",
          "visible",
          "locked",
          "z_index",
          "source"
        ],
        "type": "object"
      },
      "Dumped": {
        "description": "A dataset dumped.",
        "properties": {
          "dataset": {
            "description": "The dataset, as sent.",
            "type": "string"
          },
          "dumped": {
            "description": "Always `true`.",
            "type": "boolean"
          }
        },
        "required": [
          "dataset",
          "dumped"
        ],
        "type": "object"
      },
      "Dumping": {
        "additionalProperties": false,
        "description": "The dataset whose stored rows go.",
        "properties": {
          "dataset": {
            "$ref": "#/components/schemas/DatasetKey",
            "description": "The dataset to dump."
          }
        },
        "required": [
          "dataset"
        ],
        "type": "object"
      },
      "EconomicCoverage": {
        "description": "The calendar source's economic rows, valued by the values source.",
        "properties": {
          "as_of": {
            "description": "The day it was read.",
            "type": "string"
          },
          "linked": {
            "description": "Whether that source is linked on this device.",
            "type": "boolean"
          },
          "offered_data": {
            "$ref": "#/components/schemas/EconomicOffered"
          },
          "provider": {
            "description": "The source an unpinned `get/economic` takes values from.",
            "type": "string"
          },
          "reads": {
            "$ref": "#/components/schemas/EconomicReads"
          },
          "releases": {
            "description": "The headline releases `get/economic` answers.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "description": "The vendor spec that says what it offers.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "linked",
          "releases",
          "source",
          "as_of",
          "offered_data",
          "reads"
        ],
        "type": "object"
      },
      "EconomicOffered": {
        "description": "What the values source's spec offers: history alone.",
        "properties": {
          "history": {
            "description": "The products asked for a span: `economic` alone.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "live": {
            "description": "Products streamed; always empty.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "note": {
            "description": "Why the vendor's other data is not offered.",
            "type": "string"
          },
          "realtime": {
            "description": "Products answered live on request; always empty.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "history",
          "live",
          "realtime",
          "note"
        ],
        "type": "object"
      },
      "EconomicReads": {
        "description": "The class-less products Taji reads of the values source.",
        "properties": {
          "history": {
            "description": "The class-less products Taji asks of it for a span.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "live": {
            "description": "The class-less products Taji streams from it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "realtime": {
            "description": "The class-less products it answers live on request.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "history",
          "live",
          "realtime"
        ],
        "type": "object"
      },
      "Effect": {
        "description": "What a route does, and so which of the agent's tools calls it: `order` a\ntrading verb a venue hears, `stage` one no venue hears, `asks` a row built\nby [`asks`], [`gated`] or [`hand`] (the `commit` tool's description in\n`agent/src/mcp/catalog.ts` says which), `write` any other `POST`, `read` a\n`GET`.",
        "oneOf": [
          {
            "const": "read",
            "description": "A `GET`.",
            "type": "string"
          },
          {
            "const": "write",
            "description": "A `POST` that changes Taji's own state.",
            "type": "string"
          },
          {
            "const": "asks",
            "description": "A `POST` the MCP `commit` tool's description lists, every plugin verb among them.",
            "type": "string"
          },
          {
            "const": "order",
            "description": "A `trading/` verb a venue hears: it sends, or takes back what was sent.",
            "type": "string"
          },
          {
            "const": "stage",
            "description": "A `trading/` verb no venue hears: the draft, a plan's draft, a route or a preview.",
            "type": "string"
          }
        ]
      },
      "EntryWindowEt": {
        "description": "ET wall-clock window for ENTERING a new protective order, minutes since midnight.",
        "properties": {
          "close_min": {
            "description": "Minutes since midnight ET at which entering a new protective ends.",
            "format": "uint16",
            "maximum": 65535,
            "minimum": 0,
            "type": "integer"
          },
          "open_min": {
            "description": "Minutes since midnight ET from which a new protective may be entered.",
            "format": "uint16",
            "maximum": 65535,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "open_min",
          "close_min"
        ],
        "type": "object"
      },
      "Envelope": {
        "description": "The changes since the last frame, each distinct path once, at its newest place.",
        "properties": {
          "paths": {
            "description": "Each path changed since the last frame, once.",
            "items": {
              "$ref": "#/components/schemas/PathChange"
            },
            "type": "array"
          },
          "seq": {
            "description": "The newest change this frame covers.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "changed",
            "description": "`changed`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "seq",
          "paths"
        ],
        "type": "object"
      },
      "EquitySession": {
        "description": "The equity sessions a venue's day is read in -- a CLOSED set.\nIt says when a SEATED protective can execute, never when one can be seated:\na stop rests at the venue around the clock\nand is merely dormant outside its session set. An option order's\nsession too. A bars read's view: a future's `regular` is its calendar's\nRTH and `extended` its Globex session; an option's `extended` runs 07:30\nto 16:15 ET; any other non-equity has one session, `regular`.",
        "oneOf": [
          {
            "enum": [
              "regular",
              "extended"
            ],
            "type": "string"
          },
          {
            "const": "24h",
            "description": "Every hour of the 24/5 week: pre, regular, post and the night.",
            "type": "string"
          },
          {
            "const": "pre",
            "description": "The pre-market alone, 08:00-09:30 ET.",
            "type": "string"
          },
          {
            "const": "post",
            "description": "The post-market alone, 16:00-20:00 ET.",
            "type": "string"
          }
        ]
      },
      "Event": {
        "description": "One thing that happened: an order's outcome, an approval parked, a venue's relink due, an\nagent's desk write, a phone signed in, or a plugin's row. A member a kind does not carry is `null`.",
        "properties": {
          "account": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EventAccount"
              },
              {
                "type": "null"
              }
            ],
            "description": "The account it concerns, off `link.accounts` (a `plugin` row's as the plugin names it)."
          },
          "agent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChatRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The chat whose bridge sent the act, on an `acted` event with a known `x-taji-chat` tag."
          },
          "approval": {
            "description": "The approval's id on a `parked` event.",
            "type": [
              "string",
              "null"
            ]
          },
          "at_utc": {
            "description": "The Unix second it happened, the outcome's own when it carries one.",
            "format": "int64",
            "type": "integer"
          },
          "call": {
            "description": "The ACP `toolCallId` of the tool call that made the act, on an `acted` event with `agent`:\nthe one open call of that chat whose input is the act's route and body, else `null`.",
            "type": [
              "string",
              "null"
            ]
          },
          "client": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ClientRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The outside MCP client whose bridge sent the act, on an `acted` event with no `x-taji-chat`."
          },
          "desk": {
            "description": "The desk an `acted` event wrote: the target's `desk/<id>`, else `desks/new`'s answered `desk`.",
            "type": [
              "string",
              "null"
            ]
          },
          "instrument": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Instrument"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/EventKind"
          },
          "node": {
            "description": "The node the act answered, on an `acted` event; the plugin's node, on a `plugin` event.",
            "type": [
              "string",
              "null"
            ]
          },
          "order": {
            "description": "The order's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "description": "The order's resting price, or its fill's average; a decimal string.",
            "type": [
              "string",
              "null"
            ]
          },
          "qty": {
            "description": "A decimal string.",
            "type": [
              "string",
              "null"
            ]
          },
          "seq": {
            "description": "Counts up from the boot's Unix microsecond.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "session": {
            "description": "The Remote Control session a `signed_in` event opened, as `GET /read/remote` lists it.",
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderSide"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Source"
              },
              {
                "type": "null"
              }
            ]
          },
          "stop": {
            "description": "A stop limit's stop; a decimal string.",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "description": "The event in words.",
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Undo"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where to undo the act, on an `acted` event whose answer's `seq` is a `desk/<id>/undo` frame's."
          },
          "venue": {
            "description": "The venue on a `relink` event.",
            "type": [
              "string",
              "null"
            ]
          },
          "was": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Was"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a `modified` order rested at before."
          },
          "who": {
            "description": "The source as a person reads it: `you`, `flatten`, `reconciler`, `Taji`, `agent` or a seat's name.",
            "type": [
              "string",
              "null"
            ]
          },
          "words": {
            "description": "A refusal's or rejection's reason, a halt's reason, a `plugin` row's detail.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "seq",
          "at_utc",
          "kind",
          "title",
          "words",
          "order",
          "side",
          "qty",
          "price",
          "stop",
          "was",
          "instrument",
          "source",
          "who",
          "account",
          "approval",
          "venue",
          "agent",
          "call",
          "node",
          "undo",
          "desk",
          "client",
          "session"
        ],
        "type": "object"
      },
      "EventAccount": {
        "description": "An account as an event names it.",
        "properties": {
          "alias": {
            "description": "What the user reads the account as.",
            "type": "string"
          },
          "brokerage": {
            "description": "`null` where a plugin's row names none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The account's handle.",
            "type": "string"
          },
          "live": {
            "description": "Whether it is a live account, not a paper one.",
            "type": "boolean"
          },
          "tail": {
            "description": "`null` where a plugin's row names none, and on the sim book.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "alias",
          "brokerage",
          "tail",
          "live"
        ],
        "type": "object"
      },
      "EventKind": {
        "description": "An event's kind: an order's outcome, or what a link, an approval, the agent, a phone or a plugin did.",
        "enum": [
          "filled",
          "exit_fired",
          "partial",
          "cancelled",
          "rejected",
          "refused",
          "placed",
          "modified",
          "trading_halted",
          "parked",
          "relink",
          "acted",
          "signed_in",
          "plugin"
        ],
        "type": "string"
      },
      "EventLog": {
        "description": "The run's last 500 trading, link, agent and plugin events, oldest first.",
        "properties": {
          "rows": {
            "description": "The events with `seq` past `after` when `after` is given.",
            "items": {
              "$ref": "#/components/schemas/Event"
            },
            "type": "array"
          },
          "seq": {
            "description": "This run's newest `seq`, counting from the boot's Unix microsecond.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "seq",
          "rows"
        ],
        "type": "object"
      },
      "Exec": {
        "description": "How an order executes, every class's one vocabulary; which words a class\ntakes is [`OrderWord::on`], checked by [`OrderKind::validate`].",
        "oneOf": [
          {
            "enum": [
              "Market",
              "Moc",
              "Moo"
            ],
            "type": "string"
          },
          {
            "description": "Rests at a limit price.",
            "properties": {
              "Limit": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Limit"
            ],
            "type": "object"
          },
          {
            "description": "Standalone resting stop (order_class simple): triggers at the stop price,\nthen executes as a market order. The RESTING-ONLY tier's crash floor.",
            "properties": {
              "Stop": {
                "description": "The stop price.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Stop"
            ],
            "type": "object"
          },
          {
            "description": "Standalone resting stop-limit: triggers at `stop`, rests as a limit at\n`limit`.",
            "properties": {
              "StopLimit": {
                "properties": {
                  "limit": {
                    "description": "The limit it rests at once triggered.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "stop": {
                    "description": "The price that triggers the order.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  }
                },
                "required": [
                  "stop",
                  "limit"
                ],
                "type": "object"
              }
            },
            "required": [
              "StopLimit"
            ],
            "type": "object"
          },
          {
            "description": "Trails the market by an amount or a percent, then executes at market.",
            "properties": {
              "TrailingStop": {
                "$ref": "#/components/schemas/Trail"
              }
            },
            "required": [
              "TrailingStop"
            ],
            "type": "object"
          },
          {
            "description": "Limit-priced opening auction.",
            "properties": {
              "Loo": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Loo"
            ],
            "type": "object"
          },
          {
            "description": "Limit-priced closing auction.",
            "properties": {
              "Loc": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Loc"
            ],
            "type": "object"
          },
          {
            "description": "Trails as `TrailingStop` does, then rests as a limit `limit_offset`\nfrom the stop.",
            "properties": {
              "TrailingStopLimit": {
                "properties": {
                  "limit_offset": {
                    "description": "How far the limit rests from the stop.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "trail": {
                    "$ref": "#/components/schemas/Trail"
                  }
                },
                "required": [
                  "trail",
                  "limit_offset"
                ],
                "type": "object"
              }
            },
            "required": [
              "TrailingStopLimit"
            ],
            "type": "object"
          },
          {
            "description": "Market if touched: a market order once the trigger trades.",
            "properties": {
              "Mit": {
                "description": "The price that triggers the market order.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Mit"
            ],
            "type": "object"
          },
          {
            "description": "Limit if touched: a limit at `limit` once `trigger` trades.",
            "properties": {
              "Lit": {
                "properties": {
                  "limit": {
                    "description": "The limit it rests at once triggered.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "trigger": {
                    "description": "The price that triggers the limit order.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  }
                },
                "required": [
                  "trigger",
                  "limit"
                ],
                "type": "object"
              }
            },
            "required": [
              "Lit"
            ],
            "type": "object"
          },
          {
            "const": "Mtl",
            "description": "Market to limit: fills at the market, the rest resting at that price.",
            "type": "string"
          },
          {
            "description": "The venue's pre-open auction at a limit; `Tif::Day` alone.",
            "properties": {
              "Auction": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Auction"
            ],
            "type": "object"
          },
          {
            "description": "The gateway venue's volatility order, an option alone: priced at `volatility`, a\nfraction (`0.25` is 25 %) per `per`, the venue computing the limit off\nthe underlying's `reference` price, re-computed as it moves when\n`continuous`, cancelled when the underlying leaves `stock_range`, each\nfill delta-hedged on the underlying by `hedge`.",
            "properties": {
              "Vol": {
                "properties": {
                  "continuous": {
                    "default": false,
                    "description": "The venue re-computes the limit as the underlying moves.",
                    "type": "boolean"
                  },
                  "hedge": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/VolHedge"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "per": {
                    "$ref": "#/components/schemas/VolPer"
                  },
                  "reference": {
                    "$ref": "#/components/schemas/VolReference",
                    "default": "nbbo_average"
                  },
                  "stock_range": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/StockRange"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "volatility": {
                    "description": "The volatility to price at, a fraction (`0.25` is 25 %) per `per`.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  }
                },
                "required": [
                  "volatility",
                  "per",
                  "continuous",
                  "reference"
                ],
                "type": "object"
              }
            },
            "required": [
              "Vol"
            ],
            "type": "object"
          }
        ]
      },
      "ExecAsk": {
        "description": "How an order executes, every class's one vocabulary; which words a class\ntakes is [`OrderWord::on`], checked by [`OrderKind::validate`].",
        "oneOf": [
          {
            "enum": [
              "Market",
              "Moc",
              "Moo"
            ],
            "type": "string"
          },
          {
            "additionalProperties": false,
            "description": "Rests at a limit price.",
            "properties": {
              "Limit": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Limit"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Standalone resting stop (order_class simple): triggers at the stop price,\nthen executes as a market order. The RESTING-ONLY tier's crash floor.",
            "properties": {
              "Stop": {
                "description": "The stop price.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Stop"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Standalone resting stop-limit: triggers at `stop`, rests as a limit at\n`limit`.",
            "properties": {
              "StopLimit": {
                "properties": {
                  "limit": {
                    "description": "The limit it rests at once triggered.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "stop": {
                    "description": "The price that triggers the order.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  }
                },
                "required": [
                  "stop",
                  "limit"
                ],
                "type": "object"
              }
            },
            "required": [
              "StopLimit"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Trails the market by an amount or a percent, then executes at market.",
            "properties": {
              "TrailingStop": {
                "$ref": "#/components/schemas/TrailAsk"
              }
            },
            "required": [
              "TrailingStop"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Limit-priced opening auction.",
            "properties": {
              "Loo": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Loo"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Limit-priced closing auction.",
            "properties": {
              "Loc": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Loc"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Trails as `TrailingStop` does, then rests as a limit `limit_offset`\nfrom the stop.",
            "properties": {
              "TrailingStopLimit": {
                "properties": {
                  "limit_offset": {
                    "description": "How far the limit rests from the stop.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "trail": {
                    "$ref": "#/components/schemas/TrailAsk"
                  }
                },
                "required": [
                  "trail",
                  "limit_offset"
                ],
                "type": "object"
              }
            },
            "required": [
              "TrailingStopLimit"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Market if touched: a market order once the trigger trades.",
            "properties": {
              "Mit": {
                "description": "The price that triggers the market order.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Mit"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Limit if touched: a limit at `limit` once `trigger` trades.",
            "properties": {
              "Lit": {
                "properties": {
                  "limit": {
                    "description": "The limit it rests at once triggered.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "trigger": {
                    "description": "The price that triggers the limit order.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  }
                },
                "required": [
                  "trigger",
                  "limit"
                ],
                "type": "object"
              }
            },
            "required": [
              "Lit"
            ],
            "type": "object"
          },
          {
            "const": "Mtl",
            "description": "Market to limit: fills at the market, the rest resting at that price.",
            "type": "string"
          },
          {
            "additionalProperties": false,
            "description": "The venue's pre-open auction at a limit; `Tif::Day` alone.",
            "properties": {
              "Auction": {
                "description": "The limit price.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Auction"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "The gateway venue's volatility order, an option alone: priced at `volatility`, a\nfraction (`0.25` is 25 %) per `per`, the venue computing the limit off\nthe underlying's `reference` price, re-computed as it moves when\n`continuous`, cancelled when the underlying leaves `stock_range`, each\nfill delta-hedged on the underlying by `hedge`.",
            "properties": {
              "Vol": {
                "properties": {
                  "continuous": {
                    "default": false,
                    "description": "The venue re-computes the limit as the underlying moves.",
                    "type": "boolean"
                  },
                  "hedge": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/VolHedgeAsk"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "per": {
                    "$ref": "#/components/schemas/VolPer"
                  },
                  "reference": {
                    "$ref": "#/components/schemas/VolReference",
                    "default": "nbbo_average"
                  },
                  "stock_range": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/StockRangeAsk"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "volatility": {
                    "description": "The volatility to price at, a fraction (`0.25` is 25 %) per `per`.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  }
                },
                "required": [
                  "volatility",
                  "per"
                ],
                "type": "object"
              }
            },
            "required": [
              "Vol"
            ],
            "type": "object"
          }
        ]
      },
      "ExerciseAction": {
        "description": "A venue may carry both (exercise, do-not-exercise) or only the first. An\nadapter refuses the one it lacks.",
        "enum": [
          "exercise",
          "do_not_exercise"
        ],
        "type": "string"
      },
      "Exercised": {
        "description": "What `positions/<contract>/exercise` answers once the venue has.",
        "properties": {
          "answer": {
            "description": "`EXERCISED <qty> <contract>`, `EXERCISED <contract>` without `qty`, `DNE <contract>` for `do_not_exercise`.",
            "type": "string"
          }
        },
        "required": [
          "answer"
        ],
        "type": "object"
      },
      "Exercising": {
        "additionalProperties": false,
        "description": "A held option exercised, or the venue told not to auto-exercise it.",
        "properties": {
          "action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExerciseAction"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "`exercise` (absent) or `do_not_exercise`."
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "override": {
            "default": null,
            "description": "`true` exercises regardless of the money (a gateway venue alone; refused elsewhere).",
            "type": [
              "boolean",
              "null"
            ]
          },
          "qty": {
            "default": null,
            "description": "Contracts, above zero; absent the whole held quantity.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "ExitActivation": {
        "description": "A held order and the stream its rule is judged on.",
        "properties": {
          "account": {
            "description": "The handle of the row it will be placed on.",
            "type": "string"
          },
          "feed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExitFeed"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` where the rule names no stream."
          },
          "held_by": {
            "$ref": "#/components/schemas/HeldBy"
          },
          "intent_id": {
            "description": "The id the intent was journaled under.",
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/OrderKind"
          },
          "note": {
            "description": "The rule it waits on, in words.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/ActivationState"
          },
          "suspended": {
            "description": "Why a held one is not judged.",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "The instrument's id.",
            "type": "string"
          },
          "why": {
            "description": "How an ended one ended; `null` while held or sending.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "intent_id",
          "account",
          "symbol",
          "kind",
          "state",
          "held_by",
          "note",
          "why",
          "suspended",
          "feed"
        ],
        "type": "object"
      },
      "ExitBy": {
        "description": "An exit at `at` as its distance off `anchor` in every unit; `None` where\nan input is unknown.",
        "properties": {
          "balance_pct": {
            "description": "`usd` as a percent of the account's equity; `null` where either is unknown.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "pct": {
            "description": "The rest to two decimals.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "ticks": {
            "description": "Whole ticks; `None` where the tick is unknown.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "usd": {
            "description": "Dollars lost or gained over the pair's share of the size; `null` without a point value.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "ticks",
          "pct",
          "usd",
          "balance_pct"
        ],
        "type": "object"
      },
      "ExitDirection": {
        "description": "Which way price moves to reach a level.",
        "enum": [
          "at_or_below",
          "at_or_above"
        ],
        "type": "string"
      },
      "ExitDistance": {
        "additionalProperties": false,
        "description": "A distance off the anchor: whole ticks of the symbol's own increment, a\ntake's the nearest, a stop's floored.",
        "properties": {
          "unit": {
            "$ref": "#/components/schemas/ExitUnit",
            "description": "`ticks`, `pct` of the anchor, `usd` over the pair's own share of the size, or `balance_pct` of equity."
          },
          "value": {
            "description": "How far, counted in `unit`.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          }
        },
        "required": [
          "unit",
          "value"
        ],
        "type": "object"
      },
      "ExitFeed": {
        "description": "The one hub stream per (symbol, product) a level or rule is judged on.",
        "properties": {
          "last_utc": {
            "description": "The newest judged print's UTC second.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "product": {
            "description": "The data product's wire word, `trades` or `quotes`.",
            "type": "string"
          },
          "provider": {
            "description": "The provider's wire word, `null` before one is chosen.",
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "description": "Why a lapsed stream lapsed.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/ExitFeedState"
          }
        },
        "required": [
          "product",
          "provider",
          "state",
          "reason",
          "last_utc"
        ],
        "type": "object"
      },
      "ExitFeedState": {
        "description": "Whether a level's or rule's stream is delivering.",
        "enum": [
          "opening",
          "live",
          "lapsed"
        ],
        "type": "string"
      },
      "ExitKind": {
        "description": "Which exit of a pair.",
        "enum": [
          "take",
          "stop"
        ],
        "type": "string"
      },
      "ExitLeg": {
        "description": "A level Taji holds and the stream it is judged on.",
        "properties": {
          "direction": {
            "$ref": "#/components/schemas/ExitDirection"
          },
          "feed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExitFeed"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` where no stream is open for it."
          },
          "leg": {
            "$ref": "#/components/schemas/ExitKind"
          },
          "level": {
            "description": "The price that trips it.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "on": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/On"
              },
              {
                "type": "null"
              }
            ],
            "description": "The other symbol's stream it is judged on (a plan's stop on another symbol); `null` for its own."
          },
          "qty": {
            "description": "The quantity the order sends.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "side": {
            "$ref": "#/components/schemas/Side",
            "description": "The side of the order to send, never the position's: a long's exits sell."
          },
          "suspended": {
            "description": "Why Taji will not send this leg; `null` while it is judged.",
            "type": [
              "string",
              "null"
            ]
          },
          "tranche": {
            "description": "The id of the exit pair the level belongs to.",
            "type": "string"
          }
        },
        "required": [
          "tranche",
          "leg",
          "side",
          "qty",
          "level",
          "direction",
          "on",
          "suspended",
          "feed"
        ],
        "type": "object"
      },
      "ExitOwner": {
        "description": "The levels one owner holds over one account's position.",
        "properties": {
          "account": {
            "description": "The handle of the account whose position the levels cover.",
            "type": "string"
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/ExitLeg"
            },
            "type": "array"
          },
          "owner": {
            "description": "`human`, `agent:<id>` or `seat:<desk>/<name>`.",
            "type": "string"
          }
        },
        "required": [
          "account",
          "owner",
          "legs"
        ],
        "type": "object"
      },
      "ExitPoint": {
        "anyOf": [
          {
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          {
            "$ref": "#/components/schemas/ExitDistance"
          }
        ],
        "description": "A take or a stop: a price, or a distance off the anchor."
      },
      "ExitRow": {
        "description": "One symbol's row on `trading/exits`: what Taji holds over it, every account in it.",
        "properties": {
          "actions_unchecked": {
            "description": "Why the day's corporate-actions check of an equity this row's exits\nare held on (its own, an option's underlying, a level's `on` or a\nrule's symbol) did not run, in its `failed` notice's words: what is\nheld stays live, unscreened. `null` once a check answers, or with no\nequity.",
            "type": [
              "string",
              "null"
            ]
          },
          "activations": {
            "description": "The orders in this symbol held until their rule passes.",
            "items": {
              "$ref": "#/components/schemas/ExitActivation"
            },
            "type": "array"
          },
          "owners": {
            "items": {
              "$ref": "#/components/schemas/ExitOwner"
            },
            "type": "array"
          },
          "symbol": {
            "description": "The instrument's id.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "actions_unchecked",
          "owners",
          "activations"
        ],
        "type": "object"
      },
      "ExitUnit": {
        "description": "The unit a pair's take or stop is stated in off the entry, the\nticket's: whole ticks, a percent of the anchor, dollars over the pair's\nsize, a percent of the account's equity.",
        "enum": [
          "ticks",
          "pct",
          "usd",
          "balance_pct"
        ],
        "type": "string"
      },
      "ExpiryType": {
        "enum": [
          "regular",
          "weekly",
          "quarterly",
          "daily"
        ],
        "type": "string"
      },
      "Facts": {
        "description": "One contract's facts. `multiplier` is dollars per 1.0 of price per\ncontract in every class (FIX 231), never an option's deliverable;\n`spread_ticks` a net's ladder, `None` meaning `ticks`.",
        "properties": {
          "expiry": {
            "description": "The contract's expiry date.",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "expiry_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExpiryType"
              },
              {
                "type": "null"
              }
            ],
            "description": "The kind of expiry: `regular`, `weekly`, `quarterly` or `daily`."
          },
          "first_notice": {
            "description": "The first notice date of a future.",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "last_trade_at": {
            "description": "When the contract last trades.",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "min_qty": {
            "description": "The smallest order quantity.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "multiplier": {
            "description": "Dollars per 1.0 of price per contract, in every class.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "qty_step": {
            "description": "The grid an order quantity is a whole multiple of.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "settlement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Settlement"
              },
              {
                "type": "null"
              }
            ],
            "description": "`am` settles an option on its expiry's opening prices, `pm` on its close."
          },
          "spread_ticks": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Ticks"
              },
              {
                "type": "null"
              }
            ]
          },
          "style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Style"
              },
              {
                "type": "null"
              }
            ],
            "description": "`american` exercises any time to expiry, `european` only at it."
          },
          "ticks": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Ticks"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object"
      },
      "Failure": {
        "description": "A change that failed, a frame of its own: a framed `failed` is never heard again by a client away when it came.",
        "properties": {
          "err": {
            "description": "Why.",
            "type": "string"
          },
          "path": {
            "description": "The node that failed to change; `link` for a link ceremony's.",
            "type": "string"
          },
          "record": {
            "description": "A link ceremony's: the record it was sealing; else absent.",
            "type": "string"
          },
          "seq": {
            "description": "The change this frame is.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "failed",
            "description": "`failed`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "seq",
          "path",
          "err"
        ],
        "type": "object"
      },
      "Fed": {
        "description": "One upstream's share of [`Liveness`].",
        "properties": {
          "last_tick_utc": {
            "description": "The wall second anything last arrived on it, a forming minute included, `null` for none.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "provider": {
            "description": "The provider's wire word.",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/UpstreamStatus"
          },
          "symbol": {
            "description": "The item as a read spells it, `equity:AAPL`.",
            "type": "string"
          },
          "timeframe": {
            "description": "The bar timeframe the upstream feeds.",
            "enum": [
              "1m",
              "5m",
              "15m",
              "30m",
              "1h",
              "4h",
              "D",
              "W",
              "M",
              "Y"
            ],
            "type": "string"
          }
        },
        "required": [
          "provider",
          "symbol",
          "timeframe",
          "state",
          "last_tick_utc"
        ],
        "type": "object"
      },
      "Fee": {
        "description": "A commission off the venue doc's `## Fees`, every figure a decimal string.",
        "properties": {
          "as_of": {
            "description": "The day the page was read.",
            "type": "string"
          },
          "per_contract": {
            "description": "Charged on each contract.",
            "type": "string"
          },
          "per_micro": {
            "description": "A micro future's `per_contract`, `—` where it is the same.",
            "type": "string"
          },
          "per_order": {
            "description": "Charged once on each order.",
            "type": "string"
          },
          "per_share": {
            "description": "Charged on each share.",
            "type": "string"
          },
          "source": {
            "description": "The vendor page the figures are read off.",
            "type": "string"
          }
        },
        "required": [
          "per_order",
          "per_share",
          "per_contract",
          "per_micro",
          "source",
          "as_of"
        ],
        "type": "object"
      },
      "FeeRow": {
        "description": "One fee the venue charged the account outside any fill (its fee activities\ncarry no order id): booked against the day, never a fill.",
        "properties": {
          "amount": {
            "description": "USD at the venue's sign, a charge negative; `0` on a fee paid in the\nasset, which already reached the position.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "at_utc": {
            "description": "Unix seconds.",
            "format": "int64",
            "type": "integer"
          },
          "description": {
            "description": "The venue's own words for it (`Coinbase Transaction Fee`); `null` where\nit gives none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The venue's id of the fee activity.",
            "type": "string"
          },
          "kind": {
            "description": "The venue's own sub-type word: `TAF`, `REG`, `CFEE`.",
            "type": "string"
          },
          "symbol": {
            "description": "What it was charged on, in the venue's spelling; `null` where the venue\nnames nothing.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "at_utc",
          "kind",
          "symbol",
          "amount",
          "description"
        ],
        "type": "object"
      },
      "FeedState": {
        "description": "Whether the feed is up, as [`Liveness`] says it.",
        "oneOf": [
          {
            "enum": [
              "lapsed",
              "dialing",
              "live"
            ],
            "type": "string"
          },
          {
            "const": "none",
            "description": "No upstream is open.",
            "type": "string"
          }
        ]
      },
      "Fees": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Fee"
          },
          {
            "$ref": "#/components/schemas/Unmeasured"
          }
        ],
        "description": "A venue's commission for a class (`## Fees`), or `not measured`."
      },
      "Fetch": {
        "description": "A dataset's answered pull: what it cost and the window the vendor was\nasked for.",
        "properties": {
          "at_utc": {
            "description": "When the vendor answered, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "cost_usd": {
            "description": "What it cost, dollars as a decimal string.",
            "type": "string"
          },
          "from": {
            "description": "The window asked for, `[from, to)` UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "rows": {
            "description": "Rows the vendor sent.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "to": {
            "description": "The window's end, exclusive.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "at_utc",
          "from",
          "to",
          "rows",
          "cost_usd"
        ],
        "type": "object"
      },
      "FetchWord": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "boolean"
          },
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ],
        "description": "One member of a fetch body: a word's text, flag or number, or `null` for none."
      },
      "Fetched": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PricedProduct",
            "description": "A dry run of a product but bars."
          },
          {
            "$ref": "#/components/schemas/PricedBars",
            "description": "A bars dry run of an uncovered item."
          },
          {
            "$ref": "#/components/schemas/BoughtBars",
            "description": "A bars buy."
          },
          {
            "$ref": "#/components/schemas/CachedBars",
            "description": "A bars ask a stored series already covers."
          },
          {
            "$ref": "#/components/schemas/ChainAnswer",
            "description": "A `chains` buy."
          },
          {
            "$ref": "#/components/schemas/VendorRow",
            "description": "A buy of any other JSON product."
          }
        ],
        "description": "Every JSON answer of `POST /fetch` at 200, as a schema: the asker knows\nwhich from its `product` and `dry_run`. Each is serialized by its own builder."
      },
      "Fetching": {
        "additionalProperties": {
          "$ref": "#/components/schemas/FetchWord"
        },
        "description": "A fetch body: the buy's `desk_id` and `dry_run` beside the product's own query words\n(`product`, defaulting to `bars`), each checked against what that product takes after the parse.",
        "type": "object"
      },
      "FibRetracementV1": {
        "additionalProperties": false,
        "description": "Fibonacci retracement — levels at ratios of the `a`→`b` price move. `a` / `b`\nare [`Anchor::TimePrice`].",
        "properties": {
          "a": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The swing's start, ratio 0, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`)."
          },
          "b": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The swing's end, ratio 1, as a time/price anchor; its price must differ from `a`'s."
          },
          "extend_right": {
            "description": "When true, the levels run from the swing to the right chart edge; false stops them at the swing's later end.",
            "type": "boolean"
          },
          "levels": {
            "description": "The ratios to draw a level at, each in [-5, 5], at least one. The usual set is [0, 0.236, 0.382, 0.5, 0.618, 0.786, 1].",
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": "array"
          }
        },
        "required": [
          "a",
          "b",
          "levels",
          "extend_right"
        ],
        "type": "object"
      },
      "FieldKind": {
        "description": "`secret` masked, never prefilled, cleared at the post; `text` and `url` shown.",
        "enum": [
          "text",
          "secret",
          "url"
        ],
        "type": "string"
      },
      "Figures": {
        "description": "The header's own numbers, unformatted: the entry and pairs a drag needs and\nthe figures the ticket shows beside them, `null` unknown.",
        "properties": {
          "defaults": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DefaultPair"
              },
              {
                "type": "null"
              }
            ],
            "description": "The pair an exit switched on starts at, 75 and 25 ticks off the anchor, `take_by`/`stop_by` over the draft's whole qty; `null` on a symbol whose tick Taji does not know."
          },
          "entry": {
            "description": "The draft's entry price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "funds_pct": {
            "description": "The percent of buying power the size spends.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "next_pair_qty": {
            "description": "The share one more pair would take.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "pairs": {
            "description": "`qty` after the split.",
            "items": {
              "$ref": "#/components/schemas/PairFigures"
            },
            "type": "array"
          }
        },
        "required": [
          "entry",
          "pairs",
          "next_pair_qty",
          "defaults",
          "funds_pct"
        ],
        "type": "object"
      },
      "Fill": {
        "description": "One execution as an account's `fills` serves it: the journal's, or the\nvenue's of an order no journal of ours names (placed outside Taji).",
        "properties": {
          "at": {
            "description": "UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "basis_at_close": {
            "description": "The average cost the closed quantity met, on a fill that closed; `null` on an unpriced lot.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "closed": {
            "description": "The quantity it closed (a flip's opening residual not in it), `null` on a fill that closed none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "execution_id": {
            "description": "The venue's; with the broker, the journal's dedupe key.",
            "type": [
              "string",
              "null"
            ]
          },
          "fee": {
            "description": "The fee the venue stated; `null` where it states none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fee_in_kind": {
            "description": "Base units the venue withheld from the units received (a crypto buy's fee taken in the asset), stated or measured once the venue's position is adopted; absent where none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The intent's, `null` on a fill of an order Taji did not place.",
            "type": [
              "string",
              "null"
            ]
          },
          "instrument": {
            "$ref": "#/components/schemas/Instrument",
            "description": "The key its position folds under."
          },
          "item": {
            "description": "The instrument as an item, `<kind>:<key>`.",
            "type": "string"
          },
          "leg": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The composite member that executed, `null` off a composite."
          },
          "multiplier": {
            "description": "The dollars per unit of price `realized` was priced at, on a fill that closed; `null` where it is not known.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "order_id": {
            "description": "The venue's member order.",
            "type": [
              "string",
              "null"
            ]
          },
          "owner": {
            "description": "Who placed the order: `human`, `agent:<id>` or `seat:<desk>/<name>`, an exit its owner's; `null` on the venue's own.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "description": "The price it executed at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "qty": {
            "description": "The quantity executed.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "realized": {
            "description": "What it booked against the average cost it met, gross of money fees\n(a buy's fee in kind is in that cost), in dollars: times 100 on a standard option, the venue's point value on a\nfuture; `null` on a fill that opens or adds, that closed an unpriced lot,\nor whose multiplier is not known.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "$ref": "#/components/schemas/Side",
            "description": "The side of the execution."
          },
          "source": {
            "$ref": "#/components/schemas/FillSource"
          }
        },
        "required": [
          "id",
          "instrument",
          "leg",
          "side",
          "qty",
          "price",
          "at",
          "order_id",
          "execution_id",
          "fee",
          "realized",
          "source",
          "item",
          "owner",
          "closed",
          "multiplier",
          "basis_at_close"
        ],
        "type": "object"
      },
      "FillModel": {
        "description": "How a word fills.",
        "oneOf": [
          {
            "const": "touch",
            "description": "A market order at the bar's open; a limit or stop on a touch of its\nprice, at the open when the bar opens through it; a stop-limit rests\nits limit once its stop trades, working that bar only when it opened\nthrough the stop. A repriced order fills from the next bar by its\nword's model at the new price.",
            "type": "string"
          },
          {
            "const": "auction_close",
            "description": "The session's last bar's close.",
            "type": "string"
          },
          {
            "const": "auction_open",
            "description": "The session's first bar's open.",
            "type": "string"
          },
          {
            "const": "linked",
            "description": "A group, as a venue that holds it whole does: the entry by `Touch`; from the next bar\nits exits by `Touch`, the stop when a bar touches both; one exit's\nfill cancels the other. That is the default; a caller's [`Intrabar`]\npicks otherwise ([`stop_first`]). The caller owns the group.",
            "type": "string"
          },
          {
            "const": "net_mid",
            "description": "A spread at its net, signed as [`NetQuote`] is (a credit negative):\nit fills at the net once the minute's net mid costs no more, whichever\nword the net carries.",
            "type": "string"
          },
          {
            "const": "spread_stop",
            "description": "A spread's exit tranche ([`spread_exit`]): its stop and take by\n`Touch` on the net bar read in the entry's word (a credit's net\nnegated), filling at that net.",
            "type": "string"
          }
        ]
      },
      "FillPreview": {
        "description": "How [`fill::judge`] reads an order on a bar it was shown: `verdict`\n`fills` (at `price`), `rests` or `expires`, by `model`, off the bar opening\nat `bar_utc`.",
        "properties": {
          "bar_utc": {
            "description": "The open of the bar the order was read on, RFC-3339 UTC.",
            "type": "string"
          },
          "model": {
            "$ref": "#/components/schemas/FillModel",
            "description": "A spread's `net_mid`, on its net bar."
          },
          "price": {
            "description": "What it fills at; a spread's signed, a credit negative.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "verdict": {
            "$ref": "#/components/schemas/FillVerdict"
          }
        },
        "required": [
          "model",
          "verdict",
          "price",
          "bar_utc"
        ],
        "type": "object"
      },
      "FillRule": {
        "description": "Holds once any order of the account fills in `symbol` of `class`.",
        "properties": {
          "class": {
            "$ref": "#/components/schemas/InstrumentClass"
          },
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "symbol": {
            "description": "The symbol whose fill holds the rule.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "class",
          "join"
        ],
        "type": "object"
      },
      "FillRuleAsk": {
        "additionalProperties": false,
        "description": "Holds once any order of the account fills in `symbol` of `class`.",
        "properties": {
          "class": {
            "$ref": "#/components/schemas/InstrumentClass"
          },
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "symbol": {
            "description": "The symbol whose fill holds the rule.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "class"
        ],
        "type": "object"
      },
      "FillSource": {
        "description": "Who observed a fill.",
        "oneOf": [
          {
            "enum": [
              "Replay"
            ],
            "type": "string"
          },
          {
            "const": "BrokerWire",
            "description": "The venue's own answer carried the execution.",
            "type": "string"
          },
          {
            "const": "ReconcilerDiscovery",
            "description": "Reconcile discovered it in the venue's order history.",
            "type": "string"
          },
          {
            "const": "Venue",
            "description": "The venue reported it of an order no journal of ours names.",
            "type": "string"
          }
        ]
      },
      "FillVerdict": {
        "description": "What [`fill::judge`] read of an order on one bar.",
        "oneOf": [
          {
            "enum": [
              "rests",
              "expires"
            ],
            "type": "string"
          },
          {
            "const": "fills",
            "description": "At `price`.",
            "type": "string"
          }
        ]
      },
      "Fills": {
        "description": "Every account's fills, ascending by `at`, from ET midnight unless `from` names a bound.",
        "items": {
          "$ref": "#/components/schemas/BookFill"
        },
        "type": "array"
      },
      "Finding": {
        "description": "The Strategy finder over one chain read: the best candidates by expected\npayoff.",
        "properties": {
          "as_of": {
            "description": "When the chain read's figures stood, its `snapshot_dt`: its newest\nrow's quote time, else when it was fetched; `null` where it holds no row.",
            "type": [
              "string",
              "null"
            ]
          },
          "candidates": {
            "description": "Best first by expected payoff, at most the ask's `limit`.",
            "items": {
              "$ref": "#/components/schemas/Candidate"
            },
            "type": "array"
          },
          "cap": {
            "description": "The most candidates one ask prices.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "capped": {
            "description": "Whether `evaluated` reached `cap`.",
            "type": "boolean"
          },
          "evaluated": {
            "description": "Candidates priced; at `cap`, `capped` and the rest unread.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "feed": {
            "description": "Which of the provider's feeds quoted the chain.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "The expiries asked, `yyyy-mm-dd`.",
            "type": "string"
          },
          "provider": {
            "description": "Who answered the chain.",
            "type": [
              "string",
              "null"
            ]
          },
          "range": {
            "description": "The expected price range, percent from spot.",
            "maxItems": 2,
            "minItems": 2,
            "prefixItems": [
              {
                "format": "double",
                "type": "number"
              },
              {
                "format": "double",
                "type": "number"
              }
            ],
            "type": "array"
          },
          "spot": {
            "description": "The underlying's last trade the chain read states, what `range` is a percent from.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "to": {
            "description": "The last expiry asked, `yyyy-mm-dd`.",
            "type": "string"
          },
          "underlying": {
            "description": "The chain's underlying, bare (`SPX` for `$SPX.X`).",
            "type": "string"
          }
        },
        "required": [
          "underlying",
          "provider",
          "feed",
          "spot",
          "as_of",
          "from",
          "to",
          "range",
          "candidates",
          "evaluated",
          "capped",
          "cap"
        ],
        "type": "object"
      },
      "Fired": {
        "description": "When a [`Watch`] tripped, at what price (`None` for an instant), and\nwhether the user has read it in the Alerts log.",
        "properties": {
          "at_utc": {
            "description": "When it tripped, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "logged_utc": {
            "description": "When a late poll logged it, past `at_utc`; `None` when on time.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "muted": {
            "description": "Outside its alert's schedule: logged, told to no one.",
            "type": "boolean"
          },
          "price": {
            "description": "The price it tripped at, `None` for an instant.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "read": {
            "default": false,
            "description": "Whether the user has read it in the Alerts log.",
            "type": "boolean"
          }
        },
        "required": [
          "at_utc",
          "read"
        ],
        "type": "object"
      },
      "Flag": {
        "description": "The seven flag colours, in menu order.",
        "enum": [
          "red",
          "blue",
          "green",
          "orange",
          "purple",
          "cyan",
          "pink"
        ],
        "type": "string"
      },
      "Flow": {
        "description": "A link form stepped through, or one of the kernel's own.",
        "properties": {
          "after": {
            "description": "The form's manifest sentence for what the user does once it is linked, else `null`.",
            "type": [
              "string",
              "null"
            ]
          },
          "after_open": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Open"
              },
              {
                "type": "null"
              }
            ],
            "description": "The page `flow/open {flow, step: \"after\"}` opens for `after`, the manifest's `after_open`, else `null`."
          },
          "at": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Standing"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the flow stands, the first that holds: its link in flight (the step its channel's arm\nlast said, else `sign_in` once `link.linking` names its record and URL); `vault` while it is\na step; `type` while `carried` is not empty; a channel's kept refusal word (on the step whose\n`fails` holds it, else the step last said, else the first); any other form's `link.last`\nwhere its `record` is the form's record (else its plugin), `ok` is false and `err` is not\n`cancelled`, none while the flow's mark is later than `last.at_utc` (on the step whose\n`fails` holds it, else where the vocabulary places it: `invalid_key`, `rejected`, `callback`\non `type`; `timeout`, `exchange`, `register` on `sign_in`; `denied` on `sign_in` else\n`type`; `unreachable` and `storage_failed` on the last step); `pair` while the channel's row\nis `pairing`; a `sign_in` that lapsed (`due` on a done flow whose `link.venues.<plugin>.relink`\nis true, `expired` where `link.data.<plugin>.expired` is); on a flow not done the step after\nits mark; else\n`null`. The remote-access arm's form stands instead on the step the arm last said while\n`linking` (else the first); on a kept `error`, the step whose `fails` holds it with its\n`refusals` sentence, else the step last said (else the first) as the word `remote` with the\nerror's sentence; on `pair` while `on` with no phone paired on the live code; else `null`. A\nstep before `at` is `done`, and with none every step is as the flow."
          },
          "brief": {
            "$ref": "#/components/schemas/Brief",
            "description": "The panel the form opens on, off its manifest."
          },
          "can": {
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Access"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": "On a done flow whose plugin serves bars, what its plan grants per class (the hub's\n`grants.json`, as `link.data` reads it), else `null`.",
            "type": [
              "object",
              "null"
            ]
          },
          "carried": {
            "description": "The field names carried in memory for the flow (`flow/secret`), `[]` when none.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "done": {
            "description": "Whether it is linked: a channel's or a voice provider's row `linked` or `locked`, the remote-access arm `on` or\n`off` with a phone paired, a venue's record sealed in the form's env, a data provider's\n`link.data` entry.",
            "type": "boolean"
          },
          "form": {
            "description": "The form's id, as `link/forms` serves it.",
            "type": "string"
          },
          "hand": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Hand"
              },
              {
                "type": "null"
              }
            ],
            "description": "The chat `flow/hand` started for the flow while it is open on the running adapter and the flow\nis not `done`, else `null` (a read that finds the flow `done` ends the hand-off). A `working`\nturn is `needs_you` while `flow/need` is set or the standing step (`at.step`, else the first\nstep not `done`) is `yours`, and an ended turn is `needs_you`, `why` that step's `title`."
          },
          "plugin": {
            "description": "The plugin the form links, `null` on the kernel's own.",
            "type": [
              "string",
              "null"
            ]
          },
          "prompt": {
            "description": "The short ask the sheet hands to the Agent panel (naming the title, id and MCP tools), `null`\nwhen `done` or `carried` is not empty: the agent does the steps it can and walks the user\nthrough their `yours` ones.",
            "type": [
              "string",
              "null"
            ]
          },
          "steps": {
            "description": "The kernel's `vault` (the form seals a secret and the vault is not `unlocked`), then the\nmanifest's `do` steps, then `type` (it has fields), `pair` (its manifest sets `pairs = true`)\nand `sign_in` (it is OAuth, or its sign-in opens a host). On the remote-access arm's form, the\nstep its link stands on while `linking` opens `GET /read/remote`'s `open`, \"Sign in\" on the\nfirst step (the arm's sign-in).",
            "items": {
              "$ref": "#/components/schemas/Step"
            },
            "type": "array"
          },
          "title": {
            "description": "The form's title.",
            "type": "string"
          }
        },
        "required": [
          "title",
          "plugin",
          "form",
          "carried",
          "hand",
          "brief",
          "prompt",
          "steps",
          "done",
          "can",
          "after",
          "after_open",
          "at"
        ],
        "type": "object"
      },
      "FlowCarried": {
        "description": "The secret fields held for a flow's next post, by name.",
        "properties": {
          "carried": {
            "description": "The names then held, in the form's `fields` order; never a value.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "carried"
        ],
        "type": "object"
      },
      "FlowHanded": {
        "description": "A flow's prompt handed to a new chat.",
        "properties": {
          "opened": {
            "description": "Always `true`.",
            "type": "boolean"
          },
          "session": {
            "description": "The chat the prompt was asked in.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "opened"
        ],
        "type": "object"
      },
      "FlowMarked": {
        "description": "The `do` step a flow now stands marked at.",
        "properties": {
          "marked": {
            "description": "The step marked, `null` for none.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "marked"
        ],
        "type": "object"
      },
      "FlowNeeded": {
        "description": "Whether the step the agent is doing on a flow waits on the user's own hand.",
        "properties": {
          "needs": {
            "description": "The flag as it now stands; `false` with no hand-off on the flow.",
            "type": "boolean"
          }
        },
        "required": [
          "needs"
        ],
        "type": "object"
      },
      "FlowOpened": {
        "description": "What `flow/open` did.",
        "properties": {
          "opened": {
            "description": "Whether the place was opened.",
            "type": "boolean"
          }
        },
        "required": [
          "opened"
        ],
        "type": "object"
      },
      "FlowPassed": {
        "description": "Whether a hand-off moved.",
        "properties": {
          "passed": {
            "description": "`false` with no hand-off on `flow`.",
            "type": "boolean"
          }
        },
        "required": [
          "passed"
        ],
        "type": "object"
      },
      "FlowTaken": {
        "description": "Whether a flow was taken back.",
        "properties": {
          "taken": {
            "description": "`false` with no hand-off on `flow`.",
            "type": "boolean"
          }
        },
        "required": [
          "taken"
        ],
        "type": "object"
      },
      "Flows": {
        "additionalProperties": {
          "$ref": "#/components/schemas/Flow"
        },
        "description": "Every flow by its id: each served form's, then the kernel's own `vault`, `agent` and `first`.",
        "type": "object"
      },
      "Forms": {
        "description": "`GET /read/link/forms`'s body.",
        "properties": {
          "forms": {
            "items": {
              "$ref": "#/components/schemas/LinkForm"
            },
            "type": "array"
          }
        },
        "required": [
          "forms"
        ],
        "type": "object"
      },
      "Founding": {
        "additionalProperties": false,
        "description": "A new Desk, named, its instructions `DESK.md` from the start.",
        "properties": {
          "instructions": {
            "default": null,
            "description": "`DESK.md`'s text, at most 64 KiB; none writes no file.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The Desk's name; blank is 400.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "FreshSource": {
        "description": "One linked source's live path, off its `READS` `Live` side and its offer's `FRESH`.",
        "properties": {
          "every_s": {
            "description": "Seconds between asks of a polled source, `null` for a stream.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "hours": {
            "description": "The class's hours where a vendor line states them, else `null`.",
            "type": [
              "string",
              "null"
            ]
          },
          "how": {
            "$ref": "#/components/schemas/Arrival"
          },
          "lag_s": {
            "description": "How many seconds behind it arrives: a delayed grant's own (a basic equity or options plan can be 15 minutes late per its audit doc), 0 for a crypto socket; a plan-only source streams on a `plan` key alone; a polled source is a twice-a-second poll.",
            "format": "int64",
            "type": "integer"
          },
          "source": {
            "description": "The linked provider's word.",
            "type": "string"
          },
          "symbols_at_once": {
            "$ref": "#/components/schemas/AtOnce",
            "description": "How many symbols one upstream holds of the product."
          },
          "why": {
            "description": "Why a lag above 0 is the plan's, `null` at 0.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "source",
          "lag_s",
          "how",
          "every_s",
          "symbols_at_once",
          "hours",
          "why"
        ],
        "type": "object"
      },
      "Freshest": {
        "description": "The source a row's lowest lag belongs to.",
        "properties": {
          "lag_s": {
            "description": "That source's `lag_s`.",
            "format": "int64",
            "type": "integer"
          },
          "source": {
            "description": "The word of the source with the lowest lag.",
            "type": "string"
          }
        },
        "required": [
          "source",
          "lag_s"
        ],
        "type": "object"
      },
      "Freshness": {
        "description": "What each linked source's live path can give, per class and product; nothing linked is `rows: []`.",
        "properties": {
          "rows": {
            "items": {
              "$ref": "#/components/schemas/FreshnessRow"
            },
            "type": "array"
          }
        },
        "required": [
          "rows"
        ],
        "type": "object"
      },
      "FreshnessRow": {
        "description": "One class and product's live paths.",
        "properties": {
          "class": {
            "description": "One of `classes` on `data/coverage`.",
            "type": "string"
          },
          "freshest": {
            "$ref": "#/components/schemas/Freshest",
            "description": "The source with the lowest lag."
          },
          "granularity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Granularity"
              },
              {
                "type": "null"
              }
            ],
            "description": "`1m` for `bars`, `null` for every other product."
          },
          "product": {
            "description": "The data product, as the bridge's `data_<product>` tools name it.",
            "type": "string"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/FreshSource"
            },
            "type": "array"
          }
        },
        "required": [
          "class",
          "product",
          "granularity",
          "freshest",
          "sources"
        ],
        "type": "object"
      },
      "FrozenSpan": {
        "description": "What a frozen window's one store load reads, clipped to the held series: UTC seconds, `[from, to)`.",
        "properties": {
          "from": {
            "description": "The first second read, inclusive.",
            "format": "int64",
            "type": "integer"
          },
          "to": {
            "description": "The second the read stops before.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "Get": {
        "additionalProperties": false,
        "description": "A client's one-shot read of `GET /get/<product>?<query>`, answered once under its `id`.",
        "properties": {
          "id": {
            "description": "The client's own id for the read.",
            "type": "string"
          },
          "product": {
            "description": "Any `GET /get/<product>` product.",
            "type": "string"
          },
          "query": {
            "default": null,
            "description": "That product's query string, `cursor=<id>` included.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "const": "get",
            "description": "`get`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "product"
        ],
        "type": "object"
      },
      "Glyph": {
        "description": "How an order executes as a line's label prints it ([`Exec::glyph`]).",
        "enum": [
          "LMT",
          "STP",
          "STP LMT",
          "MKT",
          "TRAIL",
          "MOO",
          "MOC",
          "LOO",
          "LOC"
        ],
        "type": "string"
      },
      "GoodTill": {
        "description": "YYYY-MM-DD (through that date's close) or a datetime with an offset",
        "type": "string"
      },
      "Grant": {
        "description": "What a key's plan grants one class.",
        "properties": {
          "access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Access"
              },
              {
                "type": "null"
              }
            ],
            "description": "The class's access; `null` unknown."
          },
          "depth": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BarsDepth"
              },
              {
                "type": "null"
              }
            ],
            "description": "The plan's own depth, in `depth`'s words."
          },
          "late_s": {
            "description": "A delayed plan's lag in seconds, else `null`.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "products": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ProductAccess"
            },
            "description": "Each product granted otherwise than the class, by product word; a refusal learned this run is `refused`.",
            "type": "object"
          }
        },
        "required": [
          "access",
          "late_s",
          "depth",
          "products"
        ],
        "type": "object"
      },
      "Granularity": {
        "description": "A bars granularity.",
        "enum": [
          "D",
          "1m"
        ],
        "type": "string"
      },
      "Greeks": {
        "description": "A position's greeks: each leg's per share (`option_model::Figures`'\nunits), signed by side, times its ratio, the qty and the multiplier.",
        "properties": {
          "delta": {
            "description": "Dollars the position gains per 1.00 the underlying rises.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "gamma": {
            "description": "The change in `delta` per 1.00 the underlying rises.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "rho": {
            "description": "Dollars the position gains per point (0.01) of the risk-free rate.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "theta": {
            "description": "Dollars the position gains per calendar day.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "vega": {
            "description": "Dollars the position gains per point (0.01) of implied volatility.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "delta",
          "gamma",
          "theta",
          "vega",
          "rho"
        ],
        "type": "object"
      },
      "Ground": {
        "enum": [
          "solid",
          "gradient"
        ],
        "type": "string"
      },
      "Group": {
        "enum": [
          "directional",
          "income",
          "volatility",
          "neutral",
          "hedging"
        ],
        "type": "string"
      },
      "GroupCreation": {
        "additionalProperties": false,
        "description": "A new group of the account's positions.",
        "properties": {
          "members": {
            "description": "2 to 4 held positions of one underlying, each the part the group holds.",
            "items": {
              "$ref": "#/components/schemas/GroupMemberAsk"
            },
            "type": "array"
          }
        },
        "required": [
          "members"
        ],
        "type": "object"
      },
      "GroupLink": {
        "description": "One link from an order to another of its group, in the venue's words:\n`OSO` names a child, `OSP` the parent, `BRK`/`OCO` a sibling.",
        "properties": {
          "order_id": {
            "description": "The linked order's venue id.",
            "type": "string"
          },
          "relationship": {
            "description": "The venue's word: `OSO` the linked order is a child, `OSP` the parent, `BRK` or `OCO` a sibling.",
            "type": "string"
          }
        },
        "required": [
          "relationship",
          "order_id"
        ],
        "type": "object"
      },
      "GroupMember": {
        "description": "The part of one position a group holds, or no group holds.",
        "properties": {
          "item": {
            "description": "As `Position.item`.",
            "type": "string"
          },
          "qty": {
            "description": "Signed, long positive, whole.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "item",
          "qty"
        ],
        "type": "object"
      },
      "GroupMemberAsk": {
        "additionalProperties": false,
        "description": "The part of one position a group holds, or no group holds.",
        "properties": {
          "item": {
            "description": "As `Position.item`.",
            "type": "string"
          },
          "qty": {
            "description": "Signed, long positive, whole.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          }
        },
        "required": [
          "item",
          "qty"
        ],
        "type": "object"
      },
      "GroupMerge": {
        "additionalProperties": false,
        "description": "Groups merged into one.",
        "properties": {
          "ids": {
            "description": "Two or more groups' `id`s as last read; their union holds at most 4 members.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "GroupSplit": {
        "additionalProperties": false,
        "description": "A group split into parts.",
        "properties": {
          "id": {
            "description": "The group's `id` as last read.",
            "type": "string"
          },
          "parts": {
            "description": "Each part 2 or more of the group's members; what no part names stays one more group, or falls ungrouped with fewer than two members.",
            "items": {
              "items": {
                "$ref": "#/components/schemas/GroupMemberAsk"
              },
              "type": "array"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "parts"
        ],
        "type": "object"
      },
      "GroupUpdate": {
        "additionalProperties": false,
        "description": "A group's members replaced.",
        "properties": {
          "id": {
            "description": "The group's `id` as last read.",
            "type": "string"
          },
          "members": {
            "description": "2 to 4, as `create`'s; `[]` dissolves the group.",
            "items": {
              "$ref": "#/components/schemas/GroupMemberAsk"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "members"
        ],
        "type": "object"
      },
      "Groups": {
        "description": "`trading/<acct>/groups`: the account's positions as groups.",
        "properties": {
          "groups": {
            "description": "`null` until the venue first answers its groups on the account.",
            "items": {
              "$ref": "#/components/schemas/PositionGroup"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "ungrouped": {
            "description": "Each held share or option quantity no group holds; `null` until the venue first answers its groups on the account.",
            "items": {
              "$ref": "#/components/schemas/GroupMember"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "groups",
          "ungrouped"
        ],
        "type": "object"
      },
      "Hand": {
        "description": "A chat's hand: where its turn stands, as `GET /read/agent`'s `hands` and a flow's `hand` serve it.",
        "properties": {
          "agent": {
            "description": "The adapter's id.",
            "type": "string"
          },
          "flow": {
            "description": "The flow whose hand-off holds the chat, else `null`.",
            "type": [
              "string",
              "null"
            ]
          },
          "last": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LastCall"
              },
              {
                "type": "null"
              }
            ],
            "description": "The running turn's newest tool call in words, `null` with no turn running."
          },
          "name": {
            "description": "The adapter's name.",
            "type": "string"
          },
          "session": {
            "description": "The chat's session.",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/HandState"
          },
          "why": {
            "description": "`asking` the waiting card's Taji tool or its kind's word, or a parked act's summary;\n`needs_you` the waiting question; `failed` the turn's error; else `null`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "session",
          "agent",
          "name",
          "state",
          "why",
          "last",
          "flow"
        ],
        "type": "object"
      },
      "HandState": {
        "description": "A chat's state: `asking` a card or approval waits, `needs_you` its question waits, `working` a turn\nruns, `failed` its turn's error, `stopped` cancelled, `done` idle. Ordered highest precedence first.",
        "enum": [
          "asking",
          "needs_you",
          "working",
          "failed",
          "stopped",
          "done"
        ],
        "type": "string"
      },
      "Handle": {
        "description": "One handle this device holds a bar series under, folded over its symbols.",
        "properties": {
          "held_from": {
            "description": "The widest span's first day over the symbols, `YYYY-MM-DD`.",
            "type": [
              "string",
              "null"
            ]
          },
          "held_to": {
            "description": "The widest span's last day over the symbols, `YYYY-MM-DD`.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "`<class>/bars/<1m|5m|30m|1h|4h|D>`, the class of each held symbol.",
            "type": "string"
          },
          "interval": {
            "description": "The handle's interval tier.",
            "type": "string"
          },
          "reach_from": {
            "description": "The linked sources' earliest day for it (`data/coverage/<class>`), `null` where not measured.",
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "description": "Rows summed over the symbols' series.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "scope": {
            "$ref": "#/components/schemas/Holder"
          },
          "symbols": {
            "description": "How many symbols are held under the handle.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "target_from": {
            "description": "How far back the user wants it kept (`<state dir>/cache.json`), else `held_from`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "scope",
          "symbols",
          "held_from",
          "held_to",
          "target_from",
          "reach_from",
          "interval",
          "rows"
        ],
        "type": "object"
      },
      "Handoff": {
        "additionalProperties": false,
        "description": "A flow's `prompt` handed to a new chat.",
        "properties": {
          "agent": {
            "default": null,
            "description": "The agent to ask; else the last Desk's installed agent, else the first installed.",
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "flow": {
            "description": "The flow's id, as `GET /read/flows` serves it.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "flow"
        ],
        "type": "object"
      },
      "HedgeRef": {
        "description": "A price and the instant it was read, for the risk gate's notional and\nstaleness rules.",
        "properties": {
          "asof": {
            "description": "When `price` was read.",
            "format": "date-time",
            "type": "string"
          },
          "price": {
            "description": "The underlying's price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "price",
          "asof"
        ],
        "type": "object"
      },
      "Held": {
        "description": "Every series the store holds of one product, one entry each.",
        "items": {
          "$ref": "#/components/schemas/HeldSpan"
        },
        "type": "array"
      },
      "HeldBy": {
        "description": "Who holds an order that waits on its rule: Taji, never a venue.",
        "enum": [
          "taji"
        ],
        "type": "string"
      },
      "HeldExits": {
        "description": "What `GET /read/trading/exits` answers.",
        "properties": {
          "notices": {
            "description": "What boot found in `exits.json` and could not resume, one line each,\nkept for the run: nothing this run does resumes what one names.\n`[]` with none.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rows": {
            "description": "One row per symbol Taji holds levels or orders over, `[]` with none.",
            "items": {
              "$ref": "#/components/schemas/ExitRow"
            },
            "type": "array"
          }
        },
        "required": [
          "rows",
          "notices"
        ],
        "type": "object"
      },
      "HeldLeg": {
        "description": "An exit leg the venue holds against an order of ours: no intent names it\nand no line is drawn for it; it is addressed through its parent.",
        "properties": {
          "adjust": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Adjust"
              },
              {
                "type": "null"
              }
            ],
            "description": "A single pair's stop's adjust rule, `null` with none."
          },
          "exec": {
            "$ref": "#/components/schemas/Glyph"
          },
          "leg": {
            "$ref": "#/components/schemas/ExitKind"
          },
          "price": {
            "description": "The take's limit or the stop's trigger.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "side": {
            "$ref": "#/components/schemas/LabelSide",
            "description": "The side that closes the entry."
          },
          "tranche": {
            "description": "A multibracket's pair, by its tranche's index; `null` on a single pair.",
            "format": "uint",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "leg",
          "tranche",
          "side",
          "exec",
          "price",
          "adjust"
        ],
        "type": "object"
      },
      "HeldOption": {
        "description": "A held option's contract row as the legs net quotes it bought alone, read once per refresh pass whether or not a pane watches it. Per share, the vendor's unless named in `computed`; every figure and `provider` is `null` before the first pass or where the quote is refused.",
        "properties": {
          "ask": {
            "description": "The ask per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "bid": {
            "description": "The bid per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "computed": {
            "description": "The figures Taji's model supplied (spot the underlying's live last trade); `[]` when none is Taji's.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "delta": {
            "description": "Per share; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "dte": {
            "description": "The calendar days from today (ET) to expiry, `0` on expiry day.",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "gamma": {
            "description": "Per share; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "iv": {
            "description": "The implied volatility; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "provider": {
            "description": "The vendor the quote came from.",
            "type": [
              "string",
              "null"
            ]
          },
          "rho": {
            "description": "Per share; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "std_dev": {
            "description": "The underlying's one-standard-deviation move to expiry; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "theo": {
            "description": "The theoretical value per share; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "theta": {
            "description": "Per share; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "vega": {
            "description": "Per share; Taji's model's when named in `computed`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "dte",
          "provider",
          "bid",
          "ask",
          "iv",
          "delta",
          "gamma",
          "theta",
          "vega",
          "rho",
          "theo",
          "std_dev",
          "computed"
        ],
        "type": "object"
      },
      "HeldOrder": {
        "description": "An order Taji holds for a price rule, as the `orders` read and `trading/exits` show it.",
        "properties": {
          "account": {
            "description": "The handle of the row it will be placed on.",
            "type": "string"
          },
          "held_by": {
            "$ref": "#/components/schemas/HeldBy"
          },
          "intent_id": {
            "description": "The id the intent was journaled under.",
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/OrderKind"
          },
          "note": {
            "description": "The rule it waits on, in words.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/ActivationState"
          },
          "suspended": {
            "description": "Why a held one is not judged.",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "The instrument's id.",
            "type": "string"
          },
          "why": {
            "description": "How an ended one ended; `null` while held or sending.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "intent_id",
          "account",
          "symbol",
          "kind",
          "state",
          "held_by",
          "note",
          "why",
          "suspended"
        ],
        "type": "object"
      },
      "HeldSpan": {
        "description": "One held series: its spans and rows (a chain's spans one a day held).",
        "properties": {
          "adjustment": {
            "description": "The price basis: `raw`, `split`, `split-spinoff` or `split-dividend-spinoff`.",
            "enum": [
              "raw",
              "split",
              "split-spinoff",
              "split-dividend-spinoff"
            ],
            "type": "string"
          },
          "product": {
            "$ref": "#/components/schemas/DataProduct"
          },
          "provider": {
            "description": "The provider word the series is held from.",
            "pattern": "^[a-z0-9_-]+$",
            "type": "string"
          },
          "rows": {
            "description": "Rows summed over the spans.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "spans": {
            "items": {
              "$ref": "#/components/schemas/SessionSpan"
            },
            "type": "array"
          },
          "symbol": {
            "description": "The item as a read spells it, `equity:AAPL`.",
            "type": "string"
          },
          "timeframe": {
            "description": "`null` on a chain.",
            "enum": [
              "1m",
              "5m",
              "15m",
              "30m",
              "1h",
              "4h",
              "D",
              "W",
              "M",
              "Y",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "product",
          "provider",
          "symbol",
          "timeframe",
          "adjustment",
          "spans",
          "rows"
        ],
        "type": "object"
      },
      "Hello": {
        "description": "`/ws/live`'s first frame: this connection and the kernel's change number.",
        "properties": {
          "client": {
            "description": "This connection's name, which the window's indicator previews carry (its close is `ui/gone` on it).",
            "type": "string"
          },
          "paths": {
            "description": "With the auth's `since`, each distinct path changed after it, by its newest change; absent without `since` or with `resync`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "resync": {
            "description": "`true` when the kernel cannot tell what changed since the auth's `since` (older than the changes it keeps, or another run's): the client rereads everything. Absent otherwise.",
            "type": "boolean"
          },
          "seq": {
            "description": "This run's current change number, one counter for every `/ws/live` socket from the boot's Unix microsecond.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "hello",
            "description": "`hello`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "client",
          "seq"
        ],
        "type": "object"
      },
      "Hex": {
        "description": "A `#rrggbb` colour, lowercased.",
        "type": "string"
      },
      "HistoricalWindow": {
        "description": "A frozen historical time window — UTC seconds, inclusive on both ends.\n\nThe canonical \"this pane shows [start, end], frozen\" vocabulary, shared by\nevery layer that names a frozen evidence pane: `taji-chart`'s\n`ChartBinding.window` (where it joins the binding identity AND its\n`key()`, so live→frozen and frozen→frozen rebinds mechanically regress the\nskeleton — no-stale-reveal by construction), `taji-chart-objects`'\n`PaneViewSnapshot.window` (so checkpoint restore rebinds frozen panes\nfaithfully), and the agent tool DTOs. One type everywhere — the\n`DeskId`/`TurnId` precedent; defining per-crate twins would invite\nmapping drift at every seam.\n\nThe contract is **source-agnostic**: \"load the authoritative bars for this\nrange\", whatever store serves them.\n\nSerialized snake_case (`start_utc` / `end_utc`) — the agent wire shape and\nthe boundary-snapshot vocabulary agree by construction.",
        "properties": {
          "end_utc": {
            "description": "Window end, UTC seconds (inclusive). Always ≥ `start_utc` for windows\nadmitted through the agent ingest gate; constructors do not enforce it\n(defensive consumers normalize).",
            "format": "int64",
            "type": "integer"
          },
          "start_utc": {
            "description": "Window start, UTC seconds (inclusive).",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "start_utc",
          "end_utc"
        ],
        "type": "object"
      },
      "HistoryExtend": {
        "description": "An unlinked provider's history of a product.",
        "properties": {
          "cost": {
            "$ref": "#/components/schemas/Cost"
          },
          "from": {
            "description": "The first day (`YYYY-MM-DD`) linking it would reach, as `HistorySource.from` states it; `null` not measured.",
            "type": [
              "string",
              "null"
            ]
          },
          "history": {
            "description": "As `HistorySource.history`.",
            "type": "string"
          },
          "kinds": {
            "description": "The `fundamentals` kinds it serves; absent off `fundamentals`.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "link": {
            "description": "The provider's word, what to link.",
            "type": "string"
          }
        },
        "required": [
          "link",
          "from",
          "cost",
          "history"
        ],
        "type": "object"
      },
      "HistoryRow": {
        "description": "One product's history at one granularity.",
        "properties": {
          "extend": {
            "description": "The unlinked providers, what linking them would add.",
            "items": {
              "$ref": "#/components/schemas/HistoryExtend"
            },
            "type": "array"
          },
          "from": {
            "description": "The earliest day (`YYYY-MM-DD`) any linked source reaches; `null` not measured.",
            "type": [
              "string",
              "null"
            ]
          },
          "granularity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Granularity"
              },
              {
                "type": "null"
              }
            ],
            "description": "`D` or `1m` for `bars`, `null` for every other product."
          },
          "product": {
            "description": "The data product, as the bridge's `data_<product>` tools name it.",
            "type": "string"
          },
          "sources": {
            "description": "The linked providers.",
            "items": {
              "$ref": "#/components/schemas/HistorySource"
            },
            "type": "array"
          }
        },
        "required": [
          "product",
          "granularity",
          "from",
          "sources",
          "extend"
        ],
        "type": "object"
      },
      "HistorySource": {
        "description": "A linked provider's history of a product.",
        "properties": {
          "adjustment": {
            "description": "The most-adjusted basis a bars ask takes; `null` off bars.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "The first day (`YYYY-MM-DD`), off the provider's `depth` for bars and its `plugins/<provider>/src/offer.rs` `REACH` for the rest; `null` not measured or, with `rolling_days`, a trailing window.",
            "type": [
              "string",
              "null"
            ]
          },
          "history": {
            "description": "`range` (any span), `today` (the vendor's now alone) or `sessions` (one past session per buy).",
            "type": "string"
          },
          "kinds": {
            "description": "The `fundamentals` kinds it serves; absent off `fundamentals`.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rolling_days": {
            "description": "Days in the trailing window, `null` where it keeps none.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "sessions": {
            "description": "The equity sessions it serves.",
            "items": {
              "$ref": "#/components/schemas/EquitySession"
            },
            "type": "array"
          },
          "source": {
            "description": "The linked provider's word.",
            "type": "string"
          },
          "total_return": {
            "description": "Whether dividends are adjusted.",
            "type": "boolean"
          }
        },
        "required": [
          "source",
          "from",
          "adjustment",
          "total_return",
          "sessions",
          "history",
          "rolling_days"
        ],
        "type": "object"
      },
      "Holder": {
        "description": "Whose copy a handle is; `mine` is this device's.",
        "enum": [
          "mine"
        ],
        "type": "string"
      },
      "Holding": {
        "description": "One row's hold on an item.",
        "properties": {
          "account": {
            "description": "The row's handle.",
            "type": "string"
          },
          "basis": {
            "description": "What the open position cost; `null` on a lot whose basis Taji cannot state.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "day_pnl": {
            "description": "The row's part of its account's `day.pnl`; `null` where it has no mark or multiplier, or a part held into the day has no prior close.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "desk_id": {
            "description": "The desk whose seat owns it, `null` on any other owner.",
            "type": [
              "string",
              "null"
            ]
          },
          "liveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarkState"
              },
              {
                "type": "null"
              }
            ]
          },
          "mark": {
            "description": "The row's newest price for it, `liveness` says how current; `null` where nothing priced it.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "net": {
            "description": "Signed, long positive.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "owner": {
            "description": "Who owns it: `human`, `agent:<id>` or `seat:<desk>/<name>`; `null` on a venue-held row.",
            "type": [
              "string",
              "null"
            ]
          },
          "pct": {
            "description": "`(mark − basis) / basis × 100`, signed by the side held; `null` without both.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "placed_by": {
            "description": "Its `owner`, else `venue` (Taji did not place it).",
            "type": "string"
          },
          "realized_today": {
            "description": "What today's closing fills of this row on it booked: `0` with none, `null` where one booked none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "stopped": {
            "description": "The quantity its stops cover, never above `net`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "stops": {
            "items": {
              "$ref": "#/components/schemas/Stop"
            },
            "type": "array"
          },
          "unconfirmed": {
            "description": "A venue-held row an unresolved order of ours names.",
            "type": "boolean"
          },
          "unrealized": {
            "description": "In dollars; `null` where it is not known.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "venue_held": {
            "description": "The venue holds it and Taji did not place it.",
            "type": "boolean"
          }
        },
        "required": [
          "account",
          "net",
          "basis",
          "mark",
          "unrealized",
          "day_pnl",
          "pct",
          "liveness",
          "realized_today",
          "stopped",
          "stops",
          "desk_id",
          "owner",
          "placed_by",
          "venue_held",
          "unconfirmed"
        ],
        "type": "object"
      },
      "HorizontalV1": {
        "additionalProperties": false,
        "description": "Horizontal price line — spans the full visible time range at a fixed price.\n`anchor` is an [`Anchor::PriceOnly`].",
        "properties": {
          "anchor": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The price level the line sits at, as a price-only anchor (`{\"kind\":\"price_only\",\"price\":123.45}`). The price is in the symbol's quote currency. The line spans the full visible time range."
          }
        },
        "required": [
          "anchor"
        ],
        "type": "object"
      },
      "Hours": {
        "enum": [
          "24/7",
          "weekdays",
          "working"
        ],
        "type": "string"
      },
      "Indicator": {
        "description": "One indicator the catalog lists: what `add_indicator` takes a `definition` from.",
        "properties": {
          "category": {
            "description": "The group the Indicators list files it under; `My scripts` for a Desk's own.",
            "type": "string"
          },
          "defaults": {
            "description": "Its parameters at their defaults, an object of the parameters' own values."
          },
          "definition": {
            "description": "What `add_indicator` takes: `name@<version>`; a plugin's script's bare\n`name`, which it also takes at its plugin's version\n(`name@<version>`); a layer's id.",
            "type": "string"
          },
          "description": {
            "description": "What it computes, one sentence; empty on a Desk's own script.",
            "type": "string"
          },
          "name": {
            "description": "The kernel's name, which a plugin keys on.",
            "type": "string"
          },
          "pane": {
            "$ref": "#/components/schemas/IndicatorPane",
            "description": "Whether it draws over the price or in its own pane."
          },
          "plots": {
            "description": "The outputs in column order.",
            "items": {
              "$ref": "#/components/schemas/IndicatorPlot"
            },
            "type": "array"
          },
          "readiness": {
            "description": "A plugin's layer, or its script that declares needs: one entry per class it is read on, `missing` what no linked, on provider serves there; a class absent, not for it.",
            "items": {
              "description": "One class a plugin reads, and its needs no linked, on provider serves there.",
              "properties": {
                "class": {
                  "description": "The chart's instrument class.",
                  "type": "string"
                },
                "missing": {
                  "description": "Each need no linked, on provider serves at its span; empty, it is ready.",
                  "items": {
                    "description": "A need no linked, on provider serves.",
                    "properties": {
                      "product": {
                        "description": "A core product's word, or a plugin's `<id>.<name>`.",
                        "type": "string"
                      },
                      "providers": {
                        "description": "The providers that would serve it, unlinked or linked with their data off, by id; empty, none would.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "span": {
                        "description": "`history`, `live` or `now`.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "product",
                      "span",
                      "providers"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "class",
                "missing"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "schema": {
            "$ref": "#/components/schemas/Schema",
            "description": "The parameters and settings as a JSON Schema; the settings are `source`, `calc`, `calc_closes`, `offset`, `origin` and `style`, the binding's look, whose `plots` keys are the outputs."
          },
          "short": {
            "description": "The legend's name.",
            "type": "string"
          },
          "source": {
            "description": "The script's TypeScript.",
            "type": "string"
          },
          "test": {
            "description": "Its test's source, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "description": "The word the Indicators list shows, the common word where there is one.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "definition",
          "title",
          "short",
          "description",
          "category",
          "pane",
          "defaults",
          "schema",
          "plots"
        ],
        "type": "object"
      },
      "IndicatorBindingSnapshot": {
        "description": "Data-only snapshot of indicator-binding state.\n\nNo `IndicatorHandle` dependency — the host crate reconstructs the runtime\nhandle from `definition` at restore time via the `IndicatorRegistry` trait.\nData lives in the shared substrate layer,\nbehavior lives in the host.",
        "properties": {
          "definition": {
            "description": "The indicator's catalog definition (`name@version`), used by\n`IndicatorRegistry::get_or_build` to rehydrate the runtime\n`IndicatorHandle` at restore time.",
            "type": "string"
          },
          "params": {
            "description": "Indicator parameters as a JSON value — the host's typed param decoder\nre-parses these against the indicator's published schema on restore."
          }
        },
        "required": [
          "definition",
          "params"
        ],
        "type": "object"
      },
      "IndicatorCheck": {
        "additionalProperties": false,
        "description": "A TypeScript indicator compiled and checked on the fixture without storing.",
        "properties": {
          "source": {
            "description": "The TypeScript indicator source (`@taji/indicators`), 256 KiB at most.",
            "type": "string"
          },
          "test": {
            "default": null,
            "description": "Optional test module for the indicator, 256 KiB at most.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "source"
        ],
        "type": "object"
      },
      "IndicatorChecked": {
        "description": "What `indicators/check` found; nothing is stored.",
        "properties": {
          "errors": {
            "description": "Why the source does not compile; empty when it does.",
            "items": {
              "$ref": "#/components/schemas/Diagnostic"
            },
            "type": "array"
          },
          "report": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckReport"
              },
              {
                "type": "null"
              }
            ],
            "description": "The check's report; `null` when `errors` is not empty."
          }
        },
        "required": [
          "errors",
          "report"
        ],
        "type": "object"
      },
      "IndicatorEdit": {
        "additionalProperties": false,
        "description": "An indicator's params changed, beside the window's own members.",
        "properties": {
          "client": {
            "default": null,
            "description": "A `/ws/live` hello's `client`, owner of a preview's lease.",
            "type": [
              "string",
              "null"
            ]
          },
          "expect": {
            "default": null,
            "description": "The params it believes the binding holds: otherwise 409 `changed`, nothing applied."
          },
          "id": {
            "description": "The id of the indicator to change, as learned from the chart read model. Must be a live indicator.",
            "format": "uuid",
            "type": "string"
          },
          "pane_id": {
            "description": "The numeric id of the chart pane the indicator lives on, as learned from the chart read model.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "params": {
            "description": "The complete new parameter object (replaces the current params; not a partial patch). Must satisfy the indicator's parameter schema."
          },
          "preview": {
            "default": false,
            "description": "The settings dialog previewing an edit: applied and framed, no undo step. The first on a binding opens a lease on its params before, owned by `client`, which Ok, any recorded update, the binding's removal, an undo or redo that moves it or a preview of those params back ends; when that connection closes the lease passes to the open connection that previewed last, else reverts the binding to them, no undo step, expecting what it last previewed, so any change since stands; one no open connection owns reverts after 10 minutes with no post.",
            "type": "boolean"
          },
          "was": {
            "default": null,
            "description": "The params its one recorded step returns to, refused as the indicator refuses params."
          }
        },
        "required": [
          "id",
          "params"
        ],
        "type": "object"
      },
      "IndicatorPane": {
        "description": "Where an indicator draws.",
        "oneOf": [
          {
            "const": "overlay",
            "description": "Over the price.",
            "type": "string"
          },
          {
            "const": "subplot",
            "description": "In a pane of its own.",
            "type": "string"
          }
        ]
      },
      "IndicatorPlot": {
        "description": "One output of an indicator.",
        "properties": {
          "at": {
            "description": "A `char` or `marker` plot's place against its value; absent on any other.",
            "type": [
              "string",
              "null"
            ]
          },
          "char": {
            "description": "A `char` plot's character; absent on any other.",
            "type": [
              "string",
              "null"
            ]
          },
          "color": {
            "description": "Its colour, `#rrggbb` or `#rrggbbaa`.",
            "type": "string"
          },
          "colors": {
            "description": "The palette of a painted output; absent otherwise.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "computed": {
            "description": "`true` where a script computes the colour, in place of `colors`; absent otherwise.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/PlotKind",
            "description": "What it draws as, a `get/indicators` kind."
          },
          "name": {
            "description": "The output's name, the stream's own.",
            "type": "string"
          },
          "shape": {
            "description": "A `marker` plot's shape; absent on any other.",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "description": "The word the Data window shows for it.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "title",
          "kind",
          "color"
        ],
        "type": "object"
      },
      "IndicatorRecord": {
        "description": "One persisted indicator binding: the live object's identity\n([`ObjectId`](taji_chart_objects::ObjectId)) + the data-only\n[`IndicatorBindingSnapshot`](taji_chart_objects::IndicatorBindingSnapshot)\n(definition + params — REUSED, not re-minted) plus the live object's render\ngates. Re-bound at restore via the caller-supplied rebind closure\n(`IndicatorRegistry::get_or_build(definition, params, id, source)`), which\nreceives this whole record so the rebuilt object preserves `id`.\n\n**Why `id` is persisted.** Annotation ids\nare already persisted (id stability across boots is a contract — an agent\nresuming a restored conversation can reference an annotation by id); indicator\nobject ids must match that contract for the same reason. The id is the\nchart-object identity (`ChartObject::id()`), distinct from the binding's\n`definition` (which identifies the indicator *kind*, not this instance). Restore\nhands `id` to the rebind closure so the rebuilt `IndicatorHandle` carries the\nSAME id it had pre-boot.\n\n**`PartialEq` is hand-written, not derived** — the reused\n`IndicatorBindingSnapshot` does NOT derive `PartialEq` (it's a foreign,\ndata-only type carrying a `serde_json::Value`). The brief reuses the\nsnapshot rather than re-minting a `PartialEq` mirror, so equality is\nimplemented here over `id` + its two fields (`definition: String` + `params:\nserde_json::Value`, both `PartialEq`) plus the local render gates.",
        "properties": {
          "id": {
            "description": "The chart-object identity (`ChartObject::id()`) — persisted so restore\nrebuilds the indicator under the SAME id (annotation-id-stability parity;\nagent references survive a boot).",
            "type": "string"
          },
          "locked": {
            "description": "Manipulation guard.",
            "type": "boolean"
          },
          "snapshot": {
            "$ref": "#/components/schemas/IndicatorBindingSnapshot",
            "description": "definition + params (the reused leaf snapshot)."
          },
          "visible": {
            "description": "Legend eye-toggle state.",
            "type": "boolean"
          },
          "zIndex": {
            "description": "Render z-order within the chart-objects layer.",
            "format": "int16",
            "maximum": 32767,
            "minimum": -32768,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "snapshot",
          "zIndex",
          "visible",
          "locked"
        ],
        "type": "object"
      },
      "IndicatorRemoval": {
        "additionalProperties": false,
        "description": "An indicator removed from a chart pane.",
        "properties": {
          "id": {
            "description": "The id of the indicator to remove, as learned from the chart read model. Must be a live indicator.",
            "format": "uuid",
            "type": "string"
          },
          "pane_id": {
            "description": "The numeric id of the chart pane the indicator lives on, as learned from the chart read model.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "IndicatorTest": {
        "additionalProperties": false,
        "description": "Tests run against a stored custom indicator on a Desk.",
        "properties": {
          "definition": {
            "description": "The stored custom indicator (`<name>` for the latest, `<name>@<N>` for a pinned version).",
            "type": "string"
          },
          "test": {
            "default": null,
            "description": "Optional test module, 256 KiB at most; absent runs the version's stored tests.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "definition"
        ],
        "type": "object"
      },
      "IndicatorTested": {
        "description": "A version's tests, run.",
        "properties": {
          "definition": {
            "description": "`<name>@<N>`.",
            "type": "string"
          },
          "tests": {
            "description": "One result per test the `test` module declares.",
            "items": {
              "$ref": "#/components/schemas/TestResult"
            },
            "type": "array"
          }
        },
        "required": [
          "definition",
          "tests"
        ],
        "type": "object"
      },
      "IndicatorWritten": {
        "description": "A version of a Desk's indicator, stored or already held.",
        "properties": {
          "definition": {
            "description": "`<name>@<N>`.",
            "type": "string"
          },
          "report": {
            "$ref": "#/components/schemas/CheckReport",
            "description": "The check the source passed."
          }
        },
        "required": [
          "definition",
          "report"
        ],
        "type": "object"
      },
      "Indicators": {
        "description": "Every indicator a catalog lists, the registered ones then a Desk's customs.",
        "items": {
          "$ref": "#/components/schemas/Indicator"
        },
        "type": "array"
      },
      "Installation": {
        "description": "An installed plugin's record.",
        "properties": {
          "enabled": {
            "description": "Whether the plugin is seated; `false` where a boot check refused it.",
            "type": "boolean"
          },
          "publisher": {
            "description": "The installed publisher.",
            "type": "string"
          },
          "version": {
            "description": "The installed version.",
            "type": "string"
          }
        },
        "required": [
          "version",
          "publisher",
          "enabled"
        ],
        "type": "object"
      },
      "InstalledPlugin": {
        "additionalProperties": false,
        "description": "An installed plugin.",
        "properties": {
          "id": {
            "description": "The plugin's id, as `GET /read/plugins` rows it.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "Instructions": {
        "description": "A Desk's instructions, its `DESK.md`.",
        "properties": {
          "text": {
            "description": "The whole `DESK.md`, `\"\"` when there is none.",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "Instrument": {
        "description": "What an order trades, identity only: side, effect and ratio stay on the\norder. Adding a class is one variant here and one [`InstrumentClass`].",
        "oneOf": [
          {
            "description": "A stock or fund by its symbol.",
            "properties": {
              "Equity": {
                "properties": {
                  "symbol": {
                    "description": "The ticker.",
                    "type": "string"
                  }
                },
                "required": [
                  "symbol"
                ],
                "type": "object"
              }
            },
            "required": [
              "Equity"
            ],
            "type": "object"
          },
          {
            "description": "`root` the OCC series (`SPXW`); its underlying (`SPX`) is `Instrument::underlying`.",
            "properties": {
              "Option": {
                "properties": {
                  "expiry": {
                    "description": "The expiration date.",
                    "format": "date",
                    "type": "string"
                  },
                  "right": {
                    "$ref": "#/components/schemas/OptionRight"
                  },
                  "root": {
                    "description": "The OCC series, which can differ from the underlying's symbol.",
                    "type": "string"
                  },
                  "strike": {
                    "description": "The strike price per share.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  }
                },
                "required": [
                  "root",
                  "expiry",
                  "strike",
                  "right"
                ],
                "type": "object"
              }
            },
            "required": [
              "Option"
            ],
            "type": "object"
          },
          {
            "description": "A dated contract by its fields (`ESZ26`: `ES`, 2026, 12), so every vendor's spelling of\nit is one key.",
            "properties": {
              "Future": {
                "properties": {
                  "month": {
                    "description": "The contract's month, 1 to 12.",
                    "format": "uint8",
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "root": {
                    "description": "The futures root, `ES` of `ESZ26`.",
                    "type": "string"
                  },
                  "year": {
                    "description": "The four-digit year of the contract's month.",
                    "format": "uint16",
                    "maximum": 65535,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "root",
                  "year",
                  "month"
                ],
                "type": "object"
              }
            },
            "required": [
              "Future"
            ],
            "type": "object"
          },
          {
            "description": "An option on a future.",
            "properties": {
              "FutureOption": {
                "properties": {
                  "contract": {
                    "description": "The contract as `NQZ26 C30750`: the future, the right and the strike,\nthen a trading class where it differs from the root.",
                    "type": "string"
                  }
                },
                "required": [
                  "contract"
                ],
                "type": "object"
              }
            },
            "required": [
              "FutureOption"
            ],
            "type": "object"
          },
          {
            "description": "A crypto pair.",
            "properties": {
              "Crypto": {
                "properties": {
                  "pair": {
                    "description": "The pair as `BTC/USD`.",
                    "type": "string"
                  }
                },
                "required": [
                  "pair"
                ],
                "type": "object"
              }
            },
            "required": [
              "Crypto"
            ],
            "type": "object"
          },
          {
            "description": "A currency pair of two ISO 4217 codes.",
            "properties": {
              "Forex": {
                "properties": {
                  "pair": {
                    "description": "The pair as `EUR/USD`.",
                    "type": "string"
                  }
                },
                "required": [
                  "pair"
                ],
                "type": "object"
              }
            },
            "required": [
              "Forex"
            ],
            "type": "object"
          },
          {
            "description": "An index, which is not tradable itself.",
            "properties": {
              "Index": {
                "properties": {
                  "symbol": {
                    "description": "The symbol with its `$`, `$SPX`.",
                    "type": "string"
                  }
                },
                "required": [
                  "symbol"
                ],
                "type": "object"
              }
            },
            "required": [
              "Index"
            ],
            "type": "object"
          }
        ]
      },
      "InstrumentAsk": {
        "description": "What an order trades, identity only: side, effect and ratio stay on the\norder. Adding a class is one variant here and one [`InstrumentClass`].",
        "oneOf": [
          {
            "additionalProperties": false,
            "description": "A stock or fund by its symbol.",
            "properties": {
              "Equity": {
                "properties": {
                  "symbol": {
                    "description": "The ticker.",
                    "type": "string"
                  }
                },
                "required": [
                  "symbol"
                ],
                "type": "object"
              }
            },
            "required": [
              "Equity"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "`root` the OCC series (`SPXW`); its underlying (`SPX`) is `Instrument::underlying`.",
            "properties": {
              "Option": {
                "properties": {
                  "expiry": {
                    "description": "The expiration date.",
                    "format": "date",
                    "type": "string"
                  },
                  "right": {
                    "$ref": "#/components/schemas/OptionRight"
                  },
                  "root": {
                    "description": "The OCC series, which can differ from the underlying's symbol.",
                    "type": "string"
                  },
                  "strike": {
                    "description": "The strike price per share.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  }
                },
                "required": [
                  "root",
                  "expiry",
                  "strike",
                  "right"
                ],
                "type": "object"
              }
            },
            "required": [
              "Option"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A dated contract by its fields (`ESZ26`: `ES`, 2026, 12), so every vendor's spelling of\nit is one key.",
            "properties": {
              "Future": {
                "properties": {
                  "month": {
                    "description": "The contract's month, 1 to 12.",
                    "format": "uint8",
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "root": {
                    "description": "The futures root, `ES` of `ESZ26`.",
                    "type": "string"
                  },
                  "year": {
                    "description": "The four-digit year of the contract's month.",
                    "format": "uint16",
                    "maximum": 65535,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "root",
                  "year",
                  "month"
                ],
                "type": "object"
              }
            },
            "required": [
              "Future"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "An option on a future.",
            "properties": {
              "FutureOption": {
                "properties": {
                  "contract": {
                    "description": "The contract as `NQZ26 C30750`: the future, the right and the strike,\nthen a trading class where it differs from the root.",
                    "type": "string"
                  }
                },
                "required": [
                  "contract"
                ],
                "type": "object"
              }
            },
            "required": [
              "FutureOption"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A crypto pair.",
            "properties": {
              "Crypto": {
                "properties": {
                  "pair": {
                    "description": "The pair as `BTC/USD`.",
                    "type": "string"
                  }
                },
                "required": [
                  "pair"
                ],
                "type": "object"
              }
            },
            "required": [
              "Crypto"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A currency pair of two ISO 4217 codes.",
            "properties": {
              "Forex": {
                "properties": {
                  "pair": {
                    "description": "The pair as `EUR/USD`.",
                    "type": "string"
                  }
                },
                "required": [
                  "pair"
                ],
                "type": "object"
              }
            },
            "required": [
              "Forex"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "An index, which is not tradable itself.",
            "properties": {
              "Index": {
                "properties": {
                  "symbol": {
                    "description": "The symbol with its `$`, `$SPX`.",
                    "type": "string"
                  }
                },
                "required": [
                  "symbol"
                ],
                "type": "object"
              }
            },
            "required": [
              "Index"
            ],
            "type": "object"
          }
        ]
      },
      "InstrumentClass": {
        "description": "What a symbol IS, for both halves of the coverage map: which provider can\nserve its bars, and which venue will trade it. Wider than\n[`Self::ORDERABLE`], the classes an order routes as: an index trades\nnothing itself and still has to be askable for.",
        "oneOf": [
          {
            "enum": [
              "Equity",
              "Index",
              "Future",
              "Option",
              "Crypto"
            ],
            "type": "string"
          },
          {
            "const": "FutureOption",
            "description": "An option on a dated future, the venue's own spelling (`NQZ26 C30750`).",
            "type": "string"
          },
          {
            "const": "Forex",
            "description": "A currency pair, `EUR/USD`.",
            "type": "string"
          }
        ]
      },
      "InstrumentSpec": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Unclassed"
          },
          {
            "$ref": "#/components/schemas/Classed"
          }
        ],
        "description": "What an item is and trades by, as `instrument` carries it."
      },
      "Intent": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OrderIntent"
          },
          {
            "properties": {
              "kind": {
                "$ref": "#/components/schemas/OrderKind"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          }
        ],
        "description": "What an order of ours asked: the whole intent, or the kind alone on a place\nrefused before the gate."
      },
      "IntentSent": {
        "description": "What `draft/place`, `account/market` and a position's `close` and `reverse` answer, and an order door's repeat of an `intent_id`: the node, and the id the order goes out under.",
        "properties": {
          "intent_id": {
            "description": "The id the order goes out under, whatever comes of it: one refused after the 202 reads at `orders/<intent_id>`, and a close that sends nothing frames `failed` there. A modify the venue replaces keeps the replaced order's, and a reverse's is its closing order's.",
            "format": "uuid",
            "type": "string"
          },
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "node",
          "intent_id"
        ],
        "type": "object"
      },
      "IntentSentOrAwaiting": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/IntentSent"
          },
          {
            "$ref": "#/components/schemas/Awaiting"
          }
        ],
        "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
      },
      "Invariant": {
        "properties": {
          "detail": {
            "description": "Why it failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Which invariant: `determinism`, `prefix` or `ticks_then_close`.",
            "type": "string"
          },
          "ok": {
            "description": "Whether the run held it.",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "ok",
          "detail"
        ],
        "type": "object"
      },
      "Join": {
        "description": "How a rule joins the next in `activate`: `And` both must hold, `Or` either.",
        "enum": [
          "And",
          "Or"
        ],
        "type": "string"
      },
      "Judge": {
        "description": "Wire form: \"tick\" | {\"quote\": \"bid\"|\"ask\"|\"mid\"} (externally tagged).",
        "oneOf": [
          {
            "enum": [
              "tick"
            ],
            "type": "string"
          },
          {
            "properties": {
              "quote": {
                "$ref": "#/components/schemas/QuoteSide"
              }
            },
            "required": [
              "quote"
            ],
            "type": "object"
          }
        ]
      },
      "JudgeAsk": {
        "description": "Wire form: \"tick\" | {\"quote\": \"bid\"|\"ask\"|\"mid\"} (externally tagged).",
        "oneOf": [
          {
            "enum": [
              "tick"
            ],
            "type": "string"
          },
          {
            "additionalProperties": false,
            "properties": {
              "quote": {
                "$ref": "#/components/schemas/QuoteSide"
              }
            },
            "required": [
              "quote"
            ],
            "type": "object"
          }
        ]
      },
      "LabelSide": {
        "description": "A side as a line's label prints it ([`side_word`]).",
        "enum": [
          "BUY",
          "SELL"
        ],
        "type": "string"
      },
      "Lagged": {
        "description": "The change source outran the socket, which lost what is unknown: the client rereads everything.",
        "properties": {
          "seq": {
            "description": "The kernel's change number when the loss was found.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "lagged",
            "description": "`lagged`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "seq"
        ],
        "type": "object"
      },
      "LaidPreset": {
        "description": "A setup laid on a chain's expiry.",
        "properties": {
          "finder": {
            "description": "One of the Strategy finder's types.",
            "type": "boolean"
          },
          "group": {
            "$ref": "#/components/schemas/Group",
            "description": "`directional`, `income`, `volatility`, `neutral` or `hedging`."
          },
          "id": {
            "description": "The setup's word, as the finder's `types` takes it where `finder` is `true`.",
            "type": "string"
          },
          "legs": {
            "description": "The draft's legs; `null` for a setup holding shares and where the chain\nlists no strike that far out.",
            "items": {
              "$ref": "#/components/schemas/Leg"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "description": "The setup as the Strategy builder names it.",
            "type": "string"
          },
          "net": {
            "description": "The legs' signed mid.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "description": "Why `legs` is `null`.",
            "type": [
              "string",
              "null"
            ]
          },
          "outlook": {
            "$ref": "#/components/schemas/Outlook",
            "description": "The view it takes: `bullish`, `slightly_bullish`, `bearish`, `slightly_bearish`, `either_direction`, `range_bound` or `near_strike`."
          },
          "payoff": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Payoff"
              },
              {
                "type": "null"
              }
            ],
            "description": "At `net`; `null` unquoted."
          }
        },
        "required": [
          "id",
          "name",
          "group",
          "outlook",
          "finder",
          "legs",
          "net",
          "payoff",
          "note"
        ],
        "type": "object"
      },
      "LaidPresets": {
        "description": "The presets laid on one chain read.",
        "properties": {
          "expiry": {
            "description": "The expiry they are laid on, `yyyy-mm-dd`.",
            "type": "string"
          },
          "feed": {
            "description": "Which of the provider's feeds quoted the chain.",
            "type": [
              "string",
              "null"
            ]
          },
          "presets": {
            "items": {
              "$ref": "#/components/schemas/LaidPreset"
            },
            "type": "array"
          },
          "provider": {
            "description": "Who answered the chain.",
            "type": [
              "string",
              "null"
            ]
          },
          "spot": {
            "description": "The underlying's last trade the chain read states, what the strikes are laid around.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "underlying": {
            "description": "The chain's underlying, bare (`SPX` for `$SPX.X`).",
            "type": "string"
          },
          "width": {
            "description": "Listed strikes a width.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "underlying",
          "provider",
          "feed",
          "spot",
          "expiry",
          "width",
          "presets"
        ],
        "type": "object"
      },
      "LastCall": {
        "description": "A running turn's newest tool call.",
        "properties": {
          "at_utc": {
            "description": "When the call began, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "text": {
            "description": "The call's kind as the user would say it: `Reading`, `Editing`, `Searching`, `Running a command`, `Browsing`, `Thinking` or `Working`.",
            "type": "string"
          }
        },
        "required": [
          "text",
          "at_utc"
        ],
        "type": "object"
      },
      "LastLink": {
        "description": "The last link this run ended, every member `null` before one: what a client whose call dropped reads for its verdict.",
        "properties": {
          "accounts": {
            "description": "The handles of the record it sealed.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "at_utc": {
            "description": "When it ended, an ISO 8601 UTC time.",
            "type": [
              "string",
              "null"
            ]
          },
          "err": {
            "description": "Its refusal word, `cancelled` included, `null` when it linked.",
            "type": [
              "string",
              "null"
            ]
          },
          "ok": {
            "description": "Whether it linked.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "reason": {
            "description": "The vendor's own words when it gave some.",
            "type": [
              "string",
              "null"
            ]
          },
          "record": {
            "description": "The record it linked.",
            "type": [
              "string",
              "null"
            ]
          },
          "verb": {
            "description": "The ceremony verb, `venue/link`, `venue/oauth`, `venue/start` or `data/link`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "verb",
          "record",
          "at_utc",
          "ok",
          "err",
          "reason",
          "accounts"
        ],
        "type": "object"
      },
      "LayerSlot": {
        "description": "Where a layer draws.",
        "oneOf": [
          {
            "const": "behind",
            "description": "Under the price series.",
            "type": "string"
          },
          {
            "const": "above",
            "description": "Over the price series.",
            "type": "string"
          },
          {
            "const": "dock",
            "description": "In a pane docked to the chart's side.",
            "type": "string"
          },
          {
            "const": "main",
            "description": "In place of the price series.",
            "type": "string"
          }
        ]
      },
      "Layout": {
        "description": "One layout of a Desk's strip.",
        "properties": {
          "active": {
            "description": "Whether it is the one on screen: exactly one layout is.",
            "type": "boolean"
          },
          "id": {
            "description": "The layout's number on the Desk.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "description": "The name the layout's tab shows.",
            "type": "string"
          },
          "panes": {
            "description": "The id of every pane the layout holds, its popup's included, in tree order.",
            "items": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "type": "array"
          },
          "symbol": {
            "description": "The item of the layout's chart pane, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "timeframe": {
            "description": "The timeframe of the layout's chart pane, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "active",
          "symbol",
          "timeframe",
          "panes"
        ],
        "type": "object"
      },
      "LayoutAddition": {
        "additionalProperties": false,
        "description": "A new layout on a Desk, optionally shaped by `set_layout`'s preset and slot bindings.",
        "properties": {
          "name": {
            "default": null,
            "description": "The layout's name; blank is 400, absent `Layout <id>`.",
            "type": [
              "string",
              "null"
            ]
          },
          "panes": {
            "description": "Per-slot bindings (row-major indices into the preset).",
            "items": {
              "$ref": "#/components/schemas/SetLayoutSlot"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "preset": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentLayoutPreset"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The named grid preset to apply."
          }
        },
        "type": "object"
      },
      "LayoutCopy": {
        "additionalProperties": false,
        "description": "A copy of the active layout on a Desk.",
        "properties": {
          "name": {
            "default": null,
            "description": "The new layout's name; blank is 400, absent `<the active name> copy`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "LayoutId": {
        "additionalProperties": false,
        "description": "A layout on a Desk, named by its numeric id.",
        "properties": {
          "id": {
            "description": "The layout's numeric id.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "LayoutOrdering": {
        "additionalProperties": false,
        "description": "A desk's layouts in the strip order the window set.",
        "properties": {
          "ids": {
            "description": "Every layout's numeric id once, in the new order; else 400 and nothing moves.",
            "items": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "LayoutRenaming": {
        "additionalProperties": false,
        "description": "A layout on a Desk, renamed.",
        "properties": {
          "id": {
            "description": "The layout's numeric id.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "description": "The layout's new name; blank is 400.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "LayoutReshape": {
        "additionalProperties": false,
        "description": "A layout arranged: a preset and its slots.",
        "properties": {
          "active_slot": {
            "default": null,
            "description": "Optional slot to focus after the reshape. Omit to leave focus where it is.",
            "format": "uint32",
            "maximum": 15.0,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "panes": {
            "description": "Slot assignments. Each entry names a slot and what to show there. Unlisted slots keep (existing panes) or inherit (new panes) their binding.",
            "items": {
              "$ref": "#/components/schemas/SetLayoutSlot"
            },
            "type": "array"
          },
          "preset": {
            "$ref": "#/components/schemas/AgentLayoutPreset",
            "description": "The named preset to apply."
          }
        },
        "required": [
          "preset"
        ],
        "type": "object"
      },
      "LayoutSummary": {
        "description": "A Desk's layout in brief.",
        "properties": {
          "panes": {
            "description": "How many panes it holds.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "symbols": {
            "description": "The items its panes are bound to, each once, sorted.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "panes",
          "symbols"
        ],
        "type": "object"
      },
      "Layouts": {
        "description": "A Desk's layouts in strip order.",
        "items": {
          "$ref": "#/components/schemas/Layout"
        },
        "type": "array"
      },
      "Leg": {
        "description": "One leg of an [`OrderKind::Spread`].",
        "properties": {
          "effect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PositionIntentEffect"
              },
              {
                "type": "null"
              }
            ]
          },
          "instrument": {
            "description": "The leg's item, `kind:text` (`option:SPY261016P00500000`).",
            "type": "string"
          },
          "ratio": {
            "description": ">= 1.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "side": {
            "$ref": "#/components/schemas/Side"
          }
        },
        "required": [
          "instrument",
          "side",
          "ratio"
        ],
        "type": "object"
      },
      "LegAsk": {
        "additionalProperties": false,
        "description": "One leg of an [`OrderKind::Spread`].",
        "properties": {
          "effect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PositionIntentEffect"
              },
              {
                "type": "null"
              }
            ]
          },
          "instrument": {
            "description": "The leg's item, `kind:text` (`option:SPY261016P00500000`).",
            "type": "string"
          },
          "ratio": {
            "description": ">= 1.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "side": {
            "$ref": "#/components/schemas/Side"
          }
        },
        "required": [
          "instrument",
          "side",
          "ratio"
        ],
        "type": "object"
      },
      "LegGreeks": {
        "description": "One leg's figures as its quoted row carries them, the vendor's unless named\nin `computed`.",
        "properties": {
          "computed": {
            "description": "The figures Taji's model gave.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "contract": {
            "description": "The leg's OCC-21 compact id.",
            "type": "string"
          },
          "delta": {
            "description": "Per share: the option's price change for a 1.00 move in the underlying.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "gamma": {
            "description": "Per share: delta's change for a 1.00 move in the underlying.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "iv": {
            "description": "Each figure the vendor's unless named in `computed` (Taji's model as on `get/chains` rows, spot the underlying's live last trade), `null` where neither gives it.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "probability": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Probability"
              },
              {
                "type": "null"
              }
            ],
            "description": "The leg's row's (`get/chains`); no net of it."
          },
          "rho": {
            "description": "Per share, per 1.00 point of the rate in Taji's model.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "std_dev": {
            "description": "The underlying's one-standard-deviation move to expiry, as a fraction of its price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "theo": {
            "description": "The leg's theoretical value per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "theta": {
            "description": "Per share, per calendar day in Taji's model.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "vega": {
            "description": "Per share, per 1.00 point of volatility in Taji's model.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "contract",
          "iv",
          "delta",
          "gamma",
          "theta",
          "vega",
          "rho",
          "theo",
          "std_dev",
          "probability",
          "computed"
        ],
        "type": "object"
      },
      "LegRef": {
        "description": "A composite member: its part and its tranche (`None` on a one-tranche\ncomposite, as [`LegState::tranche`]).",
        "properties": {
          "role": {
            "$ref": "#/components/schemas/LegRole"
          },
          "tranche": {
            "description": "The index into the intent's declared tranches; `null` on a one-tranche composite.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "role",
          "tranche"
        ],
        "type": "object"
      },
      "LegRole": {
        "description": "A leg's part in its venue group.",
        "enum": [
          "entry",
          "take",
          "stop"
        ],
        "type": "string"
      },
      "Level": {
        "anyOf": [
          {
            "description": "A line's price.",
            "format": "double",
            "type": "number"
          },
          {
            "description": "A channel's or a rectangle's bounds.",
            "properties": {
              "lower": {
                "description": "The lower bound.",
                "format": "double",
                "type": "number"
              },
              "upper": {
                "description": "The upper bound.",
                "format": "double",
                "type": "number"
              }
            },
            "required": [
              "upper",
              "lower"
            ],
            "type": "object"
          },
          {
            "description": "A vertical line's time.",
            "properties": {
              "time": {
                "description": "The line's time, a UTC second.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "time"
            ],
            "type": "object"
          }
        ],
        "description": "A drawing condition's level at the forming bar: a line's price, a\nchannel's or a rectangle's bounds, or a vertical line's time with the\nforming bar's open."
      },
      "Line": {
        "description": "What a describe read answers: the node in one line.",
        "properties": {
          "line": {
            "description": "The node described in one line.",
            "type": "string"
          }
        },
        "required": [
          "line"
        ],
        "type": "object"
      },
      "LineState": {
        "description": "What one order line renders as.\n\n`Draft`, `Staged` and `Supervised` never reach a venue, so they have no\nrepresentation in the substrate's `OrderState` and the substrate is not\ngrown one. `position` — the sixth noun — is not here: it is not an order.",
        "oneOf": [
          {
            "const": "DRAFT",
            "description": "On the chart only — the crosshair preview, nothing committed.",
            "type": "string"
          },
          {
            "const": "STAGED",
            "description": "A draft of exactly one order, waiting to be armed.",
            "type": "string"
          },
          {
            "const": "PENDING",
            "description": "Left the app; the venue has not answered. Never dressed as filled.",
            "type": "string"
          },
          {
            "const": "WORKING",
            "description": "Resting at the venue.",
            "type": "string"
          },
          {
            "const": "SUPERVISED",
            "description": "Armed in this app, nothing at a venue.",
            "type": "string"
          }
        ]
      },
      "LineStyle": {
        "enum": [
          "solid",
          "dashed",
          "dotted"
        ],
        "type": "string"
      },
      "Link": {
        "description": "`GET /read/link`: what this device has linked.",
        "properties": {
          "accounts": {
            "$ref": "#/components/schemas/Accounts"
          },
          "data": {
            "$ref": "#/components/schemas/Sources"
          },
          "data_budget": {
            "description": "The device's data budget (`link/data/budget`), a decimal string, `null` until set.",
            "type": [
              "string",
              "null"
            ]
          },
          "last": {
            "$ref": "#/components/schemas/LastLink"
          },
          "linking": {
            "$ref": "#/components/schemas/LinkInFlight"
          },
          "metered": {
            "description": "The providers that do not link before the budget is set.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "prefer": {
            "$ref": "#/components/schemas/Prefer"
          },
          "vault": {
            "$ref": "#/components/schemas/Vault"
          },
          "venues": {
            "$ref": "#/components/schemas/Venues"
          }
        },
        "required": [
          "vault",
          "prefer",
          "venues",
          "accounts",
          "data",
          "data_budget",
          "metered",
          "linking",
          "last"
        ],
        "type": "object"
      },
      "LinkBasis": {
        "description": "The price a linked price is offset from: a manual one, the order's base,\nits trigger, the last print, the bid, the ask, the bid or ask on the\norder's side, the mark, the average.",
        "enum": [
          "manual",
          "base",
          "trigger",
          "last",
          "bid",
          "ask",
          "ask_bid",
          "mark",
          "average"
        ],
        "type": "string"
      },
      "LinkBrief": {
        "description": "The panel a form opens on: why link it, what Taji reads and never does, and what the user needs.",
        "properties": {
          "need": {
            "description": "What the user needs to link it.",
            "type": "string"
          },
          "never": {
            "description": "What Taji never does.",
            "type": "string"
          },
          "reads": {
            "description": "What Taji reads.",
            "type": "string"
          },
          "why": {
            "description": "Why to link it.",
            "type": "string"
          }
        },
        "required": [
          "why",
          "reads",
          "never",
          "need"
        ],
        "type": "object"
      },
      "LinkCancelled": {
        "description": "What `link/venue/cancel` answers: the link in flight ended.",
        "properties": {
          "cancelled": {
            "description": "The record the link in flight was for.",
            "type": "string"
          }
        },
        "required": [
          "cancelled"
        ],
        "type": "object"
      },
      "LinkEnv": {
        "description": "The environment a form links: the forms of one plugin with an `env` are one Paper/Live choice.",
        "enum": [
          "paper",
          "live"
        ],
        "type": "string"
      },
      "LinkField": {
        "description": "One typed value, posted under `name`.",
        "properties": {
          "default": {
            "default": null,
            "description": "Shown until the user types, and posted for a blank: never a secret's.",
            "type": [
              "string",
              "null"
            ]
          },
          "held": {
            "default": false,
            "description": "A password the user keeps, never a value an agent can post; `secret` fields only.",
            "type": "boolean"
          },
          "help": {
            "default": null,
            "description": "A hint under the field, at most 200 characters.",
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/FieldKind",
            "description": "How the field is shown."
          },
          "label": {
            "description": "The field's caption, at most 40 characters.",
            "type": "string"
          },
          "name": {
            "description": "The key it is posted under, a word.",
            "type": "string"
          },
          "on": {
            "default": null,
            "description": "A step of the form that asks for it, optionally and aside: `text` fields only. Never sealed or carried,\nand neither `type` nor the vault counts it.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "label",
          "kind",
          "default",
          "help",
          "held",
          "on"
        ],
        "type": "object"
      },
      "LinkForm": {
        "description": "One link form the sheet draws: its plugin's declaration, and what the\nkernel posts when it is pressed.",
        "properties": {
          "act": {
            "description": "The words on the button that links it (`Link paper`).",
            "type": "string"
          },
          "after": {
            "default": null,
            "description": "What the user does once it is linked.",
            "type": [
              "string",
              "null"
            ]
          },
          "after_open": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AfterOpen"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The page the flow's `after` opens for it."
          },
          "again": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkPost"
              },
              {
                "type": "null"
              }
            ],
            "description": "The re-link off the sealed key, nothing typed."
          },
          "brief": {
            "$ref": "#/components/schemas/LinkBrief",
            "description": "The panel before any field."
          },
          "env": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkEnv"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The forms of one plugin with an `env` are one Paper/Live choice."
          },
          "fields": {
            "default": [],
            "description": "What the user types, in order.",
            "items": {
              "$ref": "#/components/schemas/LinkField"
            },
            "type": "array"
          },
          "form": {
            "description": "`<id>` or `<id>-<word>`: what `taji ui --form` names.",
            "type": "string"
          },
          "group": {
            "description": "The heading its title sits under (`Brokerages`).",
            "type": "string"
          },
          "handoff": {
            "description": "Its post only hands the sign-in to `taji-link`: the 200 is no verdict\n(`link.last` is), and no kernel link waits to be cancelled.",
            "type": "boolean"
          },
          "holds": {
            "additionalProperties": {
              "format": "uint64",
              "minimum": 0,
              "type": "integer"
            },
            "default": {},
            "description": "A key of `refusals` to the seconds a link that failed so stays held.",
            "type": "object"
          },
          "kind": {
            "$ref": "#/components/schemas/LinkKind",
            "description": "How the form links."
          },
          "lede": {
            "description": "The sentence under the title: what the user hands over and where it goes.",
            "type": "string"
          },
          "next": {
            "description": "What it asks once the vault is open: a form on a closed vault shows it as its step 2.",
            "type": "string"
          },
          "opens": {
            "description": "The hosts its sign-in sends the browser to (the window may open them);\nnone for a form that types a key.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "pairs": {
            "default": false,
            "description": "Whether the flow ends in a pairing step (`pair`).",
            "type": "boolean"
          },
          "paste": {
            "default": false,
            "description": "While its sign-in waits, a box for the address the browser stopped on.",
            "type": "boolean"
          },
          "plugin": {
            "description": "The plugin whose manifest declares it.",
            "type": "string"
          },
          "post": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkPost"
              },
              {
                "type": "null"
              }
            ],
            "description": "The link verb and fixed arguments it posts, its typed fields joined;\n`null` where no seat links the form in this build."
          },
          "record": {
            "description": "The vault record `link.linking` and `link.last` name for it; none for\na pasted data key, whose answer is its verdict.",
            "type": [
              "string",
              "null"
            ]
          },
          "redo": {
            "default": null,
            "description": "The act's words for a sign-in to redo.",
            "type": [
              "string",
              "null"
            ]
          },
          "refusals": {
            "additionalProperties": {
              "type": "string"
            },
            "default": {},
            "description": "A refusal word (`unreachable`) to the sentence this form says for it.",
            "type": "object"
          },
          "relink": {
            "default": null,
            "description": "A sign-in that lapses: the sentence before its due time and \"sign in again\".",
            "type": [
              "string",
              "null"
            ]
          },
          "risk": {
            "description": "Whether real money is at stake, in a sentence (`No real money: fills are\nsimulated.`).",
            "type": "string"
          },
          "sources": {
            "default": [],
            "description": "`[label, https URL]` each.",
            "items": {
              "items": {
                "type": "string"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "type": "array"
          },
          "steps": {
            "default": [],
            "description": "The user's steps before the act, in order; the kernel adds `vault`, `type`, `sign_in` and `pair`.",
            "items": {
              "$ref": "#/components/schemas/LinkStep"
            },
            "type": "array"
          },
          "title": {
            "description": "The form's name on the sheet (`Alpaca`).",
            "type": "string"
          },
          "waiting": {
            "default": null,
            "description": "The act's words while its link waits; absent, \"Connecting\".",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "plugin",
          "form",
          "env",
          "kind",
          "group",
          "title",
          "lede",
          "next",
          "risk",
          "act",
          "waiting",
          "paste",
          "brief",
          "relink",
          "redo",
          "refusals",
          "holds",
          "fields",
          "sources",
          "steps",
          "pairs",
          "after",
          "after_open",
          "post",
          "again",
          "record",
          "handoff",
          "opens"
        ],
        "type": "object"
      },
      "LinkInFlight": {
        "description": "The link in flight, every member `null` when idle.",
        "properties": {
          "record": {
            "description": "The record it links.",
            "type": [
              "string",
              "null"
            ]
          },
          "since_utc": {
            "description": "When it began, an ISO 8601 UTC time.",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "description": "The sign-in page the kernel opened, `null` for a probe and until the page is known.",
            "type": [
              "string",
              "null"
            ]
          },
          "verb": {
            "description": "The ceremony verb, `venue/link`, `venue/oauth`, `venue/start` or `data/link`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "verb",
          "record",
          "url",
          "since_utc"
        ],
        "type": "object"
      },
      "LinkKind": {
        "description": "`fields` the user types; `oauth` a sign-in in the browser after them; `start` nothing to type.",
        "enum": [
          "fields",
          "oauth",
          "start"
        ],
        "type": "string"
      },
      "LinkPost": {
        "description": "A link verb's route and the fixed arguments the typed fields join; a\nfield never overrides one.",
        "properties": {
          "body": {
            "$ref": "#/components/schemas/LinkPostBody"
          },
          "route": {
            "description": "The verb's path under `/verb/`, `link/venue/link`, `channels/link`, `voice/link` or `remote/link`.",
            "type": "string"
          }
        },
        "required": [
          "route",
          "body"
        ],
        "type": "object"
      },
      "LinkPostBody": {
        "description": "The fixed arguments of a link verb's post: the members its route takes,\nthose a form sets present and the rest absent.",
        "properties": {
          "channel": {
            "description": "`channels/link`: the channel's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "env": {
            "description": "`link/venue/link`: `paper` or `live`.",
            "type": [
              "string",
              "null"
            ]
          },
          "live": {
            "description": "`link/venue/link` on a Gateway's live form: `true`, the user's yes to a live link.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "plugin": {
            "description": "`link/plugin/oauth`: the plugin's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "provider": {
            "description": "`link/data/link` and `voice/link`: the provider's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "venue": {
            "description": "`link/venue/link`, `link/venue/start` and `link/venue/oauth`: the venue's id.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "LinkStep": {
        "description": "One step of a form: a title, a sentence, the place it opens and the refusal words that land on it.",
        "properties": {
          "fails": {
            "default": [],
            "description": "Keys of the form's `refusals`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The step's word, of `[a-z_]`, unique in the form.",
            "type": "string"
          },
          "open": {
            "default": null,
            "description": "An `https://` URL or one of [`OPEN_TARGETS`].",
            "type": [
              "string",
              "null"
            ]
          },
          "say": {
            "description": "What the step tells the user, at most 400 characters.",
            "type": "string"
          },
          "title": {
            "description": "The step's heading, at most 60 characters.",
            "type": "string"
          },
          "wait_s": {
            "default": null,
            "description": "Seconds the step waits on someone else, at most [`MAX_WAIT_S`]; never on a form's first step.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "yours": {
            "default": false,
            "description": "Whether the user's own hand is required, never an agent's.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "title",
          "say",
          "open",
          "fails",
          "yours",
          "wait_s"
        ],
        "type": "object"
      },
      "LinkUnit": {
        "description": "What a linked offset is counted in.",
        "enum": [
          "value",
          "percent",
          "tick"
        ],
        "type": "string"
      },
      "Linked": {
        "description": "A link ceremony's success on `link`, a frame of its own.",
        "properties": {
          "path": {
            "const": "link",
            "description": "`link`.",
            "type": "string"
          },
          "record": {
            "description": "The record the ceremony sealed, so links in flight together never answer each other's wait.",
            "type": "string"
          },
          "seq": {
            "description": "The change this frame is.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "changed",
            "description": "`changed`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "seq",
          "path",
          "record"
        ],
        "type": "object"
      },
      "LinkedAccount": {
        "description": "An account this device has linked.",
        "properties": {
          "alias": {
            "description": "What the user reads the account as, renamed whenever they like; nothing routes by it.",
            "type": "string"
          },
          "allocated_usd": {
            "description": "The capital allocated to seats on the row, summed, whole dollars as a decimal string.",
            "type": "string"
          },
          "approvals": {
            "description": "Whether the `agent` token's trading verbs that can send an order on the row wait for the user's approval (`link/accounts/<handle>/approvals`).",
            "type": "boolean"
          },
          "approved": {
            "description": "Whether the router may choose the row for an order that names no account (`link/accounts/<handle>/approve`).",
            "type": "boolean"
          },
          "arm": {
            "$ref": "#/components/schemas/ArmWord"
          },
          "bound": {
            "description": "Whether `state` is `bound`.",
            "type": "boolean"
          },
          "brokerage": {
            "description": "The venue's own word, `sim` for the in-process book.",
            "type": "string"
          },
          "classes": {
            "description": "The classes the row's own bound adapter declares it trades, `equity`, `option`, `future`, `crypto`, `future_option`; empty on a row the root did not bring up.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The handle, `<venue>_<paper|live>_<last four>` lowercase (`taji_sim` for the in-process book), minted once at link; what `trading/<acct>/…` and a seat's gate name.",
            "type": "string"
          },
          "kind": {
            "description": "The venue's own word for the kind of account (`margin`, `futures`), empty where it has none.",
            "type": "string"
          },
          "linked_at": {
            "description": "When the account was linked, an ISO 8601 UTC time.",
            "type": "string"
          },
          "live": {
            "description": "Whether it is a live account, not a paper one.",
            "type": "boolean"
          },
          "reason": {
            "description": "Why the row is not bound, one line (`connecting to <brokerage>`, `vault locked: unlock in Taji's window`, `no credential`, `bind: …; retries after <UTC second>`, `journal: <path> line <n>: <why>`, `reconcile: …`, `boot: …`); `null` when it is.",
            "type": [
              "string",
              "null"
            ]
          },
          "record": {
            "description": "The vault record holding its credential, empty for the sim.",
            "type": "string"
          },
          "settling": {
            "description": "True on a bound row the root it replaces held while a carry reboot flies: its reads answer off its model, then its rendered book, and every other verb on it is 409 `settling`.",
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/AccountState"
          },
          "tail": {
            "description": "The last four of the venue's own account number, which is all of it this device keeps.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "brokerage",
          "live",
          "alias",
          "tail",
          "kind",
          "record",
          "linked_at",
          "arm",
          "state",
          "bound",
          "settling",
          "classes",
          "reason",
          "approved",
          "allocated_usd",
          "approvals"
        ],
        "type": "object"
      },
      "LinkedSource": {
        "description": "A data source this device has linked, as `link.data` keys it by the provider's word.",
        "properties": {
          "enabled": {
            "description": "Whether Taji reads its data (`data.<provider>`, `ui/settings/set`); off leaves its accounts linked and tradable.",
            "type": "boolean"
          },
          "expired": {
            "description": "Whether its sign-in was refused as spent, which only a new link repairs; `false` for a key.",
            "type": "boolean"
          },
          "tier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tier"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the link buys: the provider's own tier word, else each class's access where its plan decides any, else `null`."
          }
        },
        "required": [
          "enabled",
          "tier",
          "expired"
        ],
        "type": "object"
      },
      "LinkedVenue": {
        "description": "A venue this device has linked, as the `link` node keys it by the venue's own word.",
        "properties": {
          "expired": {
            "description": "Whether a refresh was refused as spent.",
            "type": "boolean"
          },
          "method": {
            "description": "How it was linked: `key` (a pasted key pair) or `oauth` (a sign-in this device holds a refresh token for).",
            "type": "string"
          },
          "provider": {
            "description": "The venue's own word.",
            "type": "string"
          },
          "refresh_by_utc": {
            "description": "The Unix second the sign-in dies, 7 days after the code exchange, `null` without a marker.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "relink": {
            "description": "True from a day before that, or once a refresh was refused as dead, when `taji-link <venue>` signs in again.",
            "type": "boolean"
          },
          "rotated": {
            "description": "Whether a refresh this run answered a new refresh token.",
            "type": "boolean"
          },
          "sealed": {
            "$ref": "#/components/schemas/Sealed",
            "description": "Whether each env's record is sealed."
          },
          "source": {
            "description": "Where its record is held, `vault` or `env`, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "tier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tier"
              },
              {
                "type": "null"
              }
            ],
            "description": "The plan a key buys or what a sign-in serves, `null` until detected or probed."
          }
        },
        "required": [
          "provider",
          "method",
          "source",
          "sealed",
          "tier"
        ],
        "type": "object"
      },
      "ListDisplay": {
        "additionalProperties": false,
        "description": "How every list shows; at least one member.",
        "properties": {
          "columns": {
            "default": null,
            "description": "The figures each row shows after its symbol, kept in the standard order.",
            "items": {
              "$ref": "#/components/schemas/WatchColumn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "logo": {
            "default": null,
            "description": "Whether the symbol's logo disc is shown.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "show": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SymbolDisplay"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the symbol cell reads, `symbol` or `name`."
          }
        },
        "type": "object"
      },
      "ListName": {
        "additionalProperties": false,
        "description": "A list by name: `create` makes it active, `pick` makes another list active, `delete` drops one not active (409 with a sentence the active one).",
        "properties": {
          "name": {
            "description": "The list's name, 1 to 128 characters.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "ListRename": {
        "additionalProperties": false,
        "description": "A list's new name: `rename` renames it, `copy` copies it under the name.",
        "properties": {
          "list": {
            "default": null,
            "description": "The list of that name (404 one there is not); absent, the active list. A copy of another list leaves the active list active.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The name the list takes, 1 to 128 characters; `copy` makes the active list's copy active.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "ListSummary": {
        "description": "One list's name and how many symbols it holds.",
        "properties": {
          "name": {
            "description": "The list's name.",
            "type": "string"
          },
          "symbols": {
            "description": "Its symbol rows, sections not counted.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "name",
          "symbols"
        ],
        "type": "object"
      },
      "Listed": {
        "description": "One watchlist row, its own key: an item, or a `###<name>`\nsection row. Held as `{\"symbol\": \"<item>\"}` or `{\"symbol\": \"###<name>\"}`.",
        "properties": {
          "symbol": {
            "description": "The item, `kind:key`, or `###<name>` for a section row.",
            "type": "string"
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "Listing": {
        "additionalProperties": false,
        "description": "A row to unlist, from the active list.",
        "properties": {
          "symbol": {
            "description": "The item, `kind:key`, or `###<name>` a section row.",
            "type": "string"
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "ListingFlag": {
        "additionalProperties": false,
        "description": "A symbol's flag.",
        "properties": {
          "flag": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Flag"
              },
              {
                "type": "null"
              }
            ],
            "description": "A colour, or `null` to unflag."
          },
          "symbol": {
            "description": "A symbol listed in any list (404 one not listed); a section row is 400.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "flag"
        ],
        "type": "object"
      },
      "Liveness": {
        "description": "Whether the feed is up, folded off `data/hub`: the worst state any upstream\nis in, and the newest instant any of them delivered. Staleness is the\nreader's subtraction, not a classification made here.",
        "properties": {
          "last_tick_utc": {
            "description": "The newest wall second any upstream delivered, `null` for none.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/FeedState",
            "description": "The worst state any upstream is in: `lapsed`, else `dialing`, else `live`, and `none` with no upstream."
          },
          "upstreams": {
            "items": {
              "$ref": "#/components/schemas/Fed"
            },
            "type": "array"
          }
        },
        "required": [
          "state",
          "last_tick_utc",
          "upstreams"
        ],
        "type": "object"
      },
      "LockAfter": {
        "additionalProperties": false,
        "description": "The absolute lock after an unlock.",
        "properties": {
          "hours": {
            "description": "`12` locks 12 hours after an unlock, `null` never; any other is 400 `hours`.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "hours"
        ],
        "type": "object"
      },
      "LoginRateLimits": {
        "description": "One login's rate scopes.",
        "properties": {
          "limits": {
            "description": "Empty for a keyless source.",
            "items": {
              "$ref": "#/components/schemas/RateLimit"
            },
            "type": "array"
          },
          "login": {
            "description": "A key's or app's last four, a gateway session's `host:port/client_id`, a futures venue user's name, or `process` for a scope every login shares.",
            "type": "string"
          },
          "provider": {
            "description": "The provider's wire word.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "login",
          "limits"
        ],
        "type": "object"
      },
      "Margin": {
        "description": "The venue's own margin and liquidation state, decimal TEXT as [`Money`]'s.\nA figure the venue did not send is `None`, never `\"0\"`.",
        "properties": {
          "admin_action": {
            "description": "The venue's risk desk's last action on the account, its own word.",
            "type": [
              "string",
              "null"
            ]
          },
          "asof_utc": {
            "description": "When the venue answered, Unix seconds.",
            "format": "int64",
            "type": "integer"
          },
          "auto_liq_level": {
            "description": "Net liquidating value at which the venue liquidates the account.",
            "type": [
              "string",
              "null"
            ]
          },
          "initial": {
            "description": "The venue's initial margin requirement (Tradovate's `initialMargin`); Schwab states none.",
            "type": [
              "string",
              "null"
            ]
          },
          "limits": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoLiq"
              },
              {
                "type": "null"
              }
            ]
          },
          "liq_only_level": {
            "description": "Net liquidating value at which the venue allows closing trades only.",
            "type": [
              "string",
              "null"
            ]
          },
          "liquidation_only": {
            "description": "The account may only reduce positions.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "maintenance": {
            "description": "The venue's maintenance margin requirement (Tradovate's `maintenanceMargin`, Schwab's `maintenanceRequirement`).",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "description": "The margin the venue holds against open positions (Tradovate's `positionMargin`); Schwab states none.",
            "type": [
              "string",
              "null"
            ]
          },
          "used": {
            "description": "The venue's margin-in-use figure (Tradovate's `totalUsedMargin`, Schwab's `marginBalance`).",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "initial",
          "maintenance",
          "used",
          "position",
          "auto_liq_level",
          "liq_only_level",
          "liquidation_only",
          "admin_action",
          "limits",
          "asof_utc"
        ],
        "type": "object"
      },
      "MarginRule": {
        "description": "The account's margin cushion against `cushion`, 0 to 100 percent. Its own\nkey, so a change rule missing its symbol never reads as one.",
        "properties": {
          "cushion": {
            "description": "What the account's margin cushion is compared with, 0 to 100.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          }
        },
        "required": [
          "predicate",
          "cushion",
          "join"
        ],
        "type": "object"
      },
      "MarginRuleAsk": {
        "additionalProperties": false,
        "description": "The account's margin cushion against `cushion`, 0 to 100 percent. Its own\nkey, so a change rule missing its symbol never reads as one.",
        "properties": {
          "cushion": {
            "description": "What the account's margin cushion is compared with, 0 to 100.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          }
        },
        "required": [
          "predicate",
          "cushion"
        ],
        "type": "object"
      },
      "Mark": {
        "additionalProperties": false,
        "description": "The `do` step a flow last passed.",
        "properties": {
          "flow": {
            "description": "The flow's id, as `GET /read/flows` serves it.",
            "minLength": 1,
            "type": "string"
          },
          "step": {
            "description": "The step's id, or `null` for none.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "flow",
          "step"
        ],
        "type": "object"
      },
      "MarkState": {
        "description": "How live a mark is.",
        "oneOf": [
          {
            "enum": [
              "live",
              "delayed",
              "stale",
              "disconnected"
            ],
            "type": "string"
          },
          {
            "const": "historical",
            "description": "The market is closed: a healthy source, no live tape expected.",
            "type": "string"
          },
          {
            "const": "not_connected",
            "description": "No source is attached.",
            "type": "string"
          }
        ]
      },
      "MarketOrder": {
        "additionalProperties": false,
        "description": "A market order from the account: `qty` of `symbol` now, opening, adding to\nor reducing a position.",
        "properties": {
          "intent_id": {
            "default": null,
            "description": "A UUIDv7 the sender mints (RFC 9562 §5.7): the order goes out under it, and a repeat places nothing. Omitted, the kernel mints one.",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "qty": {
            "description": "Shares or contracts.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "side": {
            "$ref": "#/components/schemas/SideWord"
          },
          "symbol": {
            "description": "An item as `draft/stage` takes it (`equity:AAPL`).",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "side",
          "qty"
        ],
        "type": "object"
      },
      "Mention": {
        "additionalProperties": false,
        "description": "One of the desk's things a question names.",
        "properties": {
          "name": {
            "description": "What the chip shows; not empty.",
            "type": "string"
          },
          "text": {
            "description": "Its text, 32 KiB at most.",
            "type": "string"
          },
          "uri": {
            "description": "`taji://<tree path>`.",
            "type": "string"
          }
        },
        "required": [
          "uri",
          "name",
          "text"
        ],
        "type": "object"
      },
      "Meta": {
        "description": "A Desk's own record, its `desk.json`.",
        "properties": {
          "capital_allocation": {
            "description": "The risk the Desk may take, dollars as a decimal string.",
            "type": "string"
          },
          "created_at": {
            "description": "When the Desk was made, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "description": "The Desk's id.",
            "type": "string"
          },
          "last_active": {
            "description": "Its last genuine activity, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "description": "The name the user gave it, `null` until one is given.",
            "type": [
              "string",
              "null"
            ]
          },
          "series": {
            "description": "The registered columns drawn on its panes; absent with none.",
            "items": {
              "$ref": "#/components/schemas/SeriesRecord"
            },
            "type": "array"
          },
          "symbol_notes": {
            "description": "The Desk's Symbol notes, newest edit first; absent with none.",
            "items": {
              "$ref": "#/components/schemas/SymbolNote"
            },
            "type": "array"
          },
          "watches": {
            "description": "The alerts it holds, fired ones included, as the file keeps them; absent with none.",
            "items": {
              "$ref": "#/components/schemas/Watch"
            },
            "type": "array"
          },
          "watchlist": {
            "description": "The active watchlist's rows; absent with none.",
            "items": {
              "$ref": "#/components/schemas/Listed"
            },
            "type": "array"
          },
          "watchlists": {
            "$ref": "#/components/schemas/Watchlists",
            "description": "The watchlist's other lists and how every list shows; absent at the defaults."
          }
        },
        "required": [
          "id",
          "name",
          "created_at",
          "last_active",
          "capital_allocation"
        ],
        "type": "object"
      },
      "Method": {
        "description": "An HTTP method of the wire's routes.",
        "enum": [
          "GET",
          "POST"
        ],
        "type": "string"
      },
      "Money": {
        "description": "The venue's own money on an account, verbatim: decimal TEXT as it was sent,\nnever parsed and never summed. Nothing here is derived, so nothing here can\ndisagree with the venue about what a figure means.\n\nOnly `equity` is required, because it is the one figure every venue in scope\nreports. A venue that does not publish the others answers `None` rather than\nan empty string or a locally derived stand-in.",
        "properties": {
          "asof_utc": {
            "description": "When the venue answered, Unix seconds.",
            "format": "int64",
            "type": "integer"
          },
          "buying_power": {
            "description": "The venue's general buying power; the route weighs an order against it unless a narrower figure below applies.",
            "type": [
              "string",
              "null"
            ]
          },
          "cash": {
            "description": "The venue's cash balance.",
            "type": [
              "string",
              "null"
            ]
          },
          "equity": {
            "description": "The account's net liquidating value, the one figure every venue states.",
            "type": "string"
          },
          "maintenance_margin": {
            "description": "The venue's maintenance margin requirement across the account.",
            "type": [
              "string",
              "null"
            ]
          },
          "non_marginable_buying_power": {
            "description": "The key-and-secret venue's alone; the route weighs crypto against it, falling back to `buying_power`.",
            "type": [
              "string",
              "null"
            ]
          },
          "options_buying_power": {
            "description": "The key-and-secret venue's alone; the route weighs an option against it, falling back to `buying_power`.",
            "type": [
              "string",
              "null"
            ]
          },
          "options_level": {
            "description": "The venue's approval level for options, such as `AccountDetail.OptionApprovalLevel` or an `option_level` digit, off the account listing at bind; the route refuses an option on `no options level` and `options level under spreads`.",
            "type": [
              "string",
              "null"
            ]
          },
          "regt_buying_power": {
            "description": "The key-and-secret venue's alone.",
            "type": [
              "string",
              "null"
            ]
          },
          "shorting_enabled": {
            "description": "The venue's own flag beside its money: the account may sell short, `false` on a cash account, which the route weighs as `shorting disabled`.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "cash",
          "equity",
          "buying_power",
          "regt_buying_power",
          "options_buying_power",
          "non_marginable_buying_power",
          "maintenance_margin",
          "options_level",
          "shorting_enabled",
          "asof_utc"
        ],
        "type": "object"
      },
      "Moneyness": {
        "description": "Where a candidate's centre strike sits: `atm` the strike nearest spot, else\n`itm` or `otm` as its first option leg's right reads there.",
        "enum": [
          "otm",
          "atm",
          "itm"
        ],
        "type": "string"
      },
      "NativeBracket": {
        "description": "Does the venue hold a bracket/OCO construct of its own? Independent of\nwhether it will hold a standalone resting stop — collapsing the two\nsilently supervises a stop the broker would have held.",
        "oneOf": [
          {
            "enum": [
              "BracketNative",
              "None",
              "NotApplicable",
              "Unverified"
            ],
            "type": "string"
          },
          {
            "const": "PairOnPosition",
            "description": "The venue holds an OCO pair over a HELD POSITION and attaches no pair to\nan entry. A Position-anchored plan seats against `bracket_depth` as\n`BracketNative` does; an Order-anchored one seats nothing, so its entry\nis plain ([`crate::residency::compile`]).",
            "type": "string"
          }
        ]
      },
      "Need": {
        "additionalProperties": false,
        "description": "Whether the step an agent is doing on a flow waits on the user's own hand.",
        "properties": {
          "flow": {
            "description": "The flow's id, as `GET /read/flows` serves it.",
            "minLength": 1,
            "type": "string"
          },
          "need": {
            "description": "`true` while the step waits on the user; `false` clears it.",
            "type": "boolean"
          }
        },
        "required": [
          "flow",
          "need"
        ],
        "type": "object"
      },
      "NetGreeks": {
        "description": "Σ sign·ratio·figure over the legs (a buy +, a sell −), `None` where any\nleg's figure is.",
        "properties": {
          "delta": {
            "description": "The legs' net delta per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "gamma": {
            "description": "The legs' net gamma per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "rho": {
            "description": "The legs' net rho per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "theta": {
            "description": "The legs' net theta per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "vega": {
            "description": "The legs' net vega per share.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "delta",
          "gamma",
          "theta",
          "vega",
          "rho"
        ],
        "type": "object"
      },
      "NetPrice": {
        "description": "A spread's net price: a credit it receives or a debit it pays, each a\npositive amount, or even.",
        "oneOf": [
          {
            "enum": [
              "Even"
            ],
            "type": "string"
          },
          {
            "properties": {
              "Credit": {
                "description": "The amount received, > 0.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Credit"
            ],
            "type": "object"
          },
          {
            "properties": {
              "Debit": {
                "description": "The amount paid, > 0.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Debit"
            ],
            "type": "object"
          }
        ]
      },
      "NetPriceAsk": {
        "description": "A spread's net price: a credit it receives or a debit it pays, each a\npositive amount, or even.",
        "oneOf": [
          {
            "enum": [
              "Even"
            ],
            "type": "string"
          },
          {
            "additionalProperties": false,
            "properties": {
              "Credit": {
                "description": "The amount received, > 0.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Credit"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "Debit": {
                "description": "The amount paid, > 0.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Debit"
            ],
            "type": "object"
          }
        ]
      },
      "NetPrices": {
        "description": "A spread's prices: its net, and no pairs.",
        "properties": {
          "entry": {
            "description": "The combo's net price, signed; `null` while the draft has none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "pairs": {
            "description": "Always empty.",
            "items": {
              "$ref": "#/components/schemas/PairFigures"
            },
            "type": "array"
          }
        },
        "required": [
          "entry",
          "pairs"
        ],
        "type": "object"
      },
      "NetQuote": {
        "description": "A leg set's net market, per combo: each buy leg adds its bid and ask, each sell leg takes its ask from the bid and its bid from the ask. Negative is a credit.",
        "properties": {
          "ask": {
            "description": "The net the legs can be bought at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "bid": {
            "description": "The net the legs can be sold at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "mid": {
            "description": "Halfway between `bid` and `ask`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "ts": {
            "description": "The oldest of the legs' quote times.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "bid",
          "ask",
          "mid",
          "ts"
        ],
        "type": "object"
      },
      "NewAnnotation": {
        "additionalProperties": false,
        "description": "A drawing added to a chart pane.",
        "properties": {
          "label": {
            "description": "Optional short caption shown next to the annotation (e.g. \"resistance\"). Trade-plan levels MUST be labeled with which level they are — \"entry\", \"stop\", \"T1\", \"T2\" — and colored semantically (stop red, entry amber/orange, targets green) so the plan reads off the chart at a glance. Omit for no label.",
            "type": [
              "string",
              "null"
            ]
          },
          "pane_id": {
            "description": "The numeric id of the chart pane to draw on, as learned from the chart read model. This selects which pane (and thus which symbol's chart) the annotation is added to.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "primitive": {
            "$ref": "#/components/schemas/AnnotationPrimitive",
            "description": "The shape to draw and its anchor geometry. Pick `horizontal` (one price level), `trendline` (a segment between two time/price points), or `rectangle` (a box between two corners)."
          },
          "scope": {
            "$ref": "#/components/schemas/AnnotationScope",
            "description": "How widely the annotation is shared — `desk` (default; this desk's panes), `global`, or a single `pane`."
          },
          "style": {
            "$ref": "#/components/schemas/AgentStyle",
            "description": "How the annotation looks: color, opacity, line thickness, and dash pattern."
          }
        },
        "required": [
          "primitive",
          "style",
          "scope"
        ],
        "type": "object"
      },
      "NewIndicator": {
        "additionalProperties": false,
        "description": "A catalog indicator bound to a chart pane.",
        "properties": {
          "definition": {
            "description": "The indicator's catalog definition, `name` or `name@version` (e.g. `macd`, `macd@1`). `name` binds the current version.",
            "type": "string"
          },
          "pane_id": {
            "description": "The numeric id of the chart pane to add the indicator to, as learned from the chart read model.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "params": {
            "description": "The indicator's parameters as a JSON object (e.g. {\"period\": 20}). Must satisfy the indicator's parameter schema; a violation is rejected with a structured `invalid_params` error naming the offending field."
          }
        },
        "required": [
          "definition",
          "params"
        ],
        "type": "object"
      },
      "NewLayout": {
        "description": "What `layouts/add` and `layouts/copy` answer: the layout opened.",
        "properties": {
          "id": {
            "description": "The new layout's number.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "node": {
            "description": "The path of the Desk's layouts.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "node"
        ],
        "type": "object"
      },
      "NewListing": {
        "additionalProperties": false,
        "description": "A row to list.",
        "properties": {
          "at": {
            "default": null,
            "description": "The row index it goes at; absent, the list's end.",
            "format": "uint",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "list": {
            "default": null,
            "description": "The list of that name (404 one there is not); absent, the active list.",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "The item, `kind:key` (`equity:AAPL`; bare text is 400, naming `equity:<it>`), or `###<name>` a section row kept as written.",
            "type": "string"
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "NewNote": {
        "description": "What `notes/add` answers: the Desk's notes, counted.",
        "properties": {
          "count": {
            "description": "How many notes the Desk holds now.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "node": {
            "description": "The path of the Desk's notes.",
            "type": "string"
          }
        },
        "required": [
          "count",
          "node"
        ],
        "type": "object"
      },
      "NewPane": {
        "additionalProperties": false,
        "description": "A pane added beside an anchor pane.",
        "properties": {
          "anchor_pane_id": {
            "default": null,
            "description": "The numeric id of the EXISTING pane the new pane is placed against, as the layout read gives it. Omit for the focused pane.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "kind": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentPaneKind"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the new pane shows; omitted = `chart`."
          },
          "position": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentPanePosition"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Placement against the anchor; omitted = `right`."
          },
          "symbol": {
            "default": null,
            "description": "A chart pane's item, `kind:text`: e.g. `equity:AAPL`, `index:SPX`, `continuous:@MNQ`, `option:AAPL261218C00300000`, or a spread of 2-4 legs, `spread:buy:1:<OCC>,sell:1:<OCC>`; omitted, the focused chart's (with none, the desk's last).",
            "maxLength": 160,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "timeframe": {
            "default": null,
            "description": "A chart pane's timeframe, as `set_timeframe` takes it (`5m`, `3h`, `D`); omitted, the focused chart's (with none, the desk's last).",
            "pattern": "^(1[mh]|([2-9]|[1-9][0-9]{1,3})[mhDWM]|[DWMY])$",
            "type": "string"
          },
          "window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentWindow"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional frozen historical window — makes the new pane a static evidence exhibit of [start_utc, end_utc]. Omit for an ordinary live pane."
          }
        },
        "type": "object"
      },
      "NewSeriesBinding": {
        "description": "What `series/add` answers: the binding made.",
        "properties": {
          "aligned": {
            "description": "How many of the pane's bars the series has a value at.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "The new binding's id, a UUID.",
            "type": "string"
          },
          "node": {
            "description": "The indicator node it reads its values at.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "node",
          "aligned"
        ],
        "type": "object"
      },
      "NewSound": {
        "additionalProperties": false,
        "description": "A sound to keep.",
        "properties": {
          "base64": {
            "description": "The file's bytes in base64, 1 MiB at most.",
            "type": "string"
          },
          "file": {
            "description": "The picked file's own name, read for its kind alone (`.wav`, `.mp3`, `.ogg`).",
            "type": "string"
          },
          "name": {
            "description": "1 to 40 characters; stored as its lowercased slug, a name already held replaced.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "file",
          "base64"
        ],
        "type": "object"
      },
      "NewSymbolNote": {
        "description": "What `symbol_notes/add` answers: the new note.",
        "properties": {
          "id": {
            "description": "The new note's id.",
            "type": "string"
          },
          "node": {
            "description": "The path of the notes it joined.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "node"
        ],
        "type": "object"
      },
      "NewWatch": {
        "description": "What `watches/add` answers: the watch made, and what its feed and level say now.",
        "properties": {
          "id": {
            "description": "The new watch's id, a UUID.",
            "type": "string"
          },
          "level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Level"
              },
              {
                "type": "null"
              }
            ],
            "description": "A drawing or indicator condition's level at the bar now, `null` before one is read."
          },
          "node": {
            "description": "The path of the watch.",
            "type": "string"
          },
          "refused": {
            "description": "Why no provider streams it, `null` while one does.",
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "description": "The provider word streaming its symbol, `null` while none does.",
            "type": [
              "string",
              "null"
            ]
          },
          "waiting": {
            "description": "Why a move, a drawing or an indicator cannot be judged yet, `null` when it can.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "node",
          "source",
          "refused",
          "level",
          "waiting"
        ],
        "type": "object"
      },
      "Node": {
        "description": "What a read of any node answers: its body, whose type that node's own route declares."
      },
      "NotCancelled": {
        "description": "An order a cancel did not end, and why.",
        "properties": {
          "id": {
            "description": "The order's id.",
            "format": "uuid",
            "type": "string"
          },
          "reason": {
            "description": "Why the cancel did not end it: the venue's or the book's words.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "reason"
        ],
        "type": "object"
      },
      "Note": {
        "description": "One note left on a Desk, by whoever left it: an external agent through\n`desk/<id>/notes/add`, or a client that named itself something else.",
        "properties": {
          "at_utc": {
            "description": "When it was written, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "author": {
            "description": "Who wrote it — the MCP client's own name (`claude-code`), or `wire` for\na caller that named nobody.",
            "type": "string"
          },
          "text": {
            "description": "The note verbatim.",
            "type": "string"
          }
        },
        "required": [
          "at_utc",
          "author",
          "text"
        ],
        "type": "object"
      },
      "Notes": {
        "description": "What was written on a Desk, oldest first.",
        "items": {
          "$ref": "#/components/schemas/Note"
        },
        "type": "array"
      },
      "Nothing": {
        "additionalProperties": false,
        "description": "The body of a verb that takes no member: `{}` or none.",
        "type": "object"
      },
      "Notify": {
        "description": "Who hears a fire: the window's toast and sound (`sound_secs` how long it\nplays, 0 once), only inside `schedule`.",
        "properties": {
          "schedule": {
            "$ref": "#/components/schemas/Schedule",
            "default": "24/7"
          },
          "sound": {
            "default": true,
            "description": "Whether the window plays a sound on a fire.",
            "type": "boolean"
          },
          "sound_secs": {
            "default": 0,
            "description": "How long the sound plays, in seconds: 0 (once), 3, 5, 10, 30 or 60.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "toast": {
            "default": true,
            "description": "Whether the window shows a toast on a fire.",
            "type": "boolean"
          }
        },
        "required": [
          "toast",
          "sound",
          "sound_secs",
          "schedule"
        ],
        "type": "object"
      },
      "NotifyKeys": {
        "additionalProperties": false,
        "description": "The members of an alert's notification a body names; an `add` takes the\ndefault for the rest, an `edit` the watch's own.",
        "properties": {
          "schedule": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Schedule"
              },
              {
                "type": "null"
              }
            ],
            "description": "`24/7` (the default), `weekdays`, `working` (Mo-Fr 09:00-18:00) or `{days, from, to}`: `days` some of `mo`..`su`, `from` and `to` `HH:MM` in the display timezone. A fire outside it still fires, notes and logs, `muted`."
          },
          "sound": {
            "description": "Play the sound; default `true`.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "sound_secs": {
            "description": "How long the sound plays: `0` once (the default), else `3`, `5`, `10`, `30` or `60`.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "toast": {
            "description": "Show the window's toast; default `true`.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "NumberedAnswered": {
        "description": "A `get`'s answer from a product that answers JSON.",
        "properties": {
          "body": {
            "description": "The read's body, as `GET /get/<product>` answers it."
          },
          "id": {
            "description": "The client's id for the `get`.",
            "type": "string"
          },
          "seq": {
            "description": "This socket's count of the frames it sent before this one: `hello` 0, then one more a frame.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "json",
            "description": "`json`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "body",
          "seq"
        ],
        "type": "object"
      },
      "NumberedDropped": {
        "description": "An indicators stream's binding gone, or about to be resent whole: no row held for it stays.",
        "properties": {
          "binding": {
            "description": "The binding's object id.",
            "type": "string"
          },
          "id": {
            "description": "The client's id for the stream.",
            "type": "string"
          },
          "seq": {
            "description": "This socket's count of the frames it sent before this one: `hello` 0, then one more a frame.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "dropped",
            "description": "`dropped`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "binding",
          "seq"
        ],
        "type": "object"
      },
      "NumberedGreeting": {
        "description": "`/ws/market`'s, `/ws/agent`'s and `/ws/voice`'s first frame, once the token is let in, `seq` 0.",
        "properties": {
          "seq": {
            "description": "This socket's count of the frames it sent before this one: `hello` 0, then one more a frame.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "hello",
            "description": "`hello`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "seq"
        ],
        "type": "object"
      },
      "NumberedRefused": {
        "description": "A refusal: of a subscription, which ends, or of a `get`.",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Refusal",
            "description": "The refusal's body, as the HTTP read answers it."
          },
          "id": {
            "description": "The client's id for the subscription or `get`.",
            "type": "string"
          },
          "seq": {
            "description": "This socket's count of the frames it sent before this one: `hello` 0, then one more a frame.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "status": {
            "description": "The HTTP status the read answers it with.",
            "format": "uint16",
            "maximum": 65535,
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "error",
            "description": "`error`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "status",
          "error",
          "seq"
        ],
        "type": "object"
      },
      "NumberedRows": {
        "description": "A subscription's or a `get`'s rows, as Arrow IPC after the header; a view's in `rows`, with none.",
        "properties": {
          "binding": {
            "description": "An indicators stream's: the binding's object id; the frame's rows replace every row held for it at or after their first `start_dt`. Else absent.",
            "type": "string"
          },
          "cursor": {
            "description": "A `get`'s: the Arrow page's `cursor` metadata, `null` where it has none; absent on a stream's.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "A styled stream's live rows: the row they replace from, at which the client truncates, then appends them (none: truncate only). Else absent.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "history": {
            "description": "A bars or tick stream's: `true` history, oldest first in frames of at most 4,096 rows, merged by bucket (a styled stream's the whole series, in place of the client's rows); `false` live rows. Else absent.",
            "type": "boolean"
          },
          "id": {
            "description": "The client's id for the subscription or `get`.",
            "type": "string"
          },
          "load": {
            "description": "`true` on a load's first frame, whether its first or one afresh (a relink, a reload, a joiner's greet): it replaces whatever rows the client held. Else absent.",
            "type": "boolean"
          },
          "rows": {
            "description": "A view stream's rows: first every row, then only those a mark or an account change touched, the latest per row id. Else absent.",
            "items": {
              "$ref": "#/components/schemas/ViewRow"
            },
            "type": "array"
          },
          "seq": {
            "description": "This socket's count of the frames it sent before this one: `hello` 0, then one more a frame.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "rows",
            "description": "`rows`.",
            "type": "string"
          },
          "view": {
            "description": "A view stream's view, `positions`; else absent.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "seq"
        ],
        "type": "object"
      },
      "NumberedStatus": {
        "description": "A subscription's source and liveness as they stand: a bars stream's whenever one of them changes, a tick stream's per symbol.",
        "properties": {
          "adjusted": {
            "description": "`true` off a venue fetch; `null` off the store, which does not say, and until a load stamps it.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "code": {
            "description": "The refusal's `ReadError` tag (`not_served`, `not_listed`, `fetch_first`, …); `null` while none.",
            "type": [
              "string",
              "null"
            ]
          },
          "delay_s": {
            "description": "How many seconds late a `delayed` feed's rows arrive; `null` unless `delayed`.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "draws": {
            "description": "A bars stream's: the rate limits the series spends, every login's of each provider that answered it; absent on a tick stream's.",
            "items": {
              "$ref": "#/components/schemas/Draw"
            },
            "type": "array"
          },
          "error": {
            "description": "A refused load's, a refused symbol's or a lapsed upstream's reason, the hub's words; `null` while none.",
            "type": [
              "string",
              "null"
            ]
          },
          "gaps": {
            "description": "The `[from_utc, to_utc)` spans inside the history no source vouches for, each asked to fill; absent when none.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "format": "int64",
                  "type": "integer"
                },
                {
                  "format": "int64",
                  "type": "integer"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "id": {
            "description": "The client's id for the subscription.",
            "type": "string"
          },
          "last_tick_utc": {
            "description": "When the last load or live bar arrived, a UTC second; `null` before one.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "liveness": {
            "description": "`live`, `delayed`, `stale`, `disconnected` (a lapsed upstream, a source shut for its hours, a dead pipeline), `historical` or `not_connected`.",
            "type": "string"
          },
          "native": {
            "description": "A spread's tick status: whether its provider streams it as one instrument; else absent.",
            "type": "boolean"
          },
          "older": {
            "description": "`none` once a read before the first row found nothing (a client stops asking), `refused` once one was refused; absent while older bars may exist.",
            "type": "string"
          },
          "older_error": {
            "description": "The hub's words for the refused older read; absent but with `older` `refused`.",
            "type": "string"
          },
          "partial": {
            "description": "`true` while a daily equity bar's forming day carries no vendor day bar (its volume the regular-session minutes summed); absent otherwise.",
            "type": "boolean"
          },
          "pin": {
            "description": "A bars stream's: the ask's `provider` pin, `null` with none; absent on a tick stream's.",
            "type": [
              "string",
              "null"
            ]
          },
          "prev_close": {
            "description": "The close of the trading day before the newest bar's (a tick stream's: its symbol's `get/quotes` `prev_close`) exactly as the vendor serves it; `null` on D, W and M bars, until read and where none is served.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "provider": {
            "description": "The provider of the newest rows (a bars history's load until a live upstream delivers, then that upstream's), `store` off the store, `failed` where refused, a row could not be carried or the pipeline died; `null` until a load says.",
            "type": [
              "string",
              "null"
            ]
          },
          "providers": {
            "description": "A bars stream's: every provider reading the class's bars, those serving the item first in the hub's order, then the rest; absent on a tick stream's.",
            "items": {
              "$ref": "#/components/schemas/ProviderCandidate"
            },
            "type": "array"
          },
          "segments": {
            "description": "Which provider answers each stretch of a composed history, as `get/bars`' `segments`; absent when one series answers.",
            "items": {
              "$ref": "#/components/schemas/Segment"
            },
            "type": "array"
          },
          "seq": {
            "description": "This socket's count of the frames it sent before this one: `hello` 0, then one more a frame.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "session": {
            "description": "The session word the loaded bars cover, from what the load did; `null` until a load stamps it.",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "The item it is of, `kind:text`.",
            "type": "string"
          },
          "type": {
            "const": "status",
            "description": "`status`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "symbol",
          "provider",
          "liveness",
          "delay_s",
          "last_tick_utc",
          "session",
          "adjusted",
          "prev_close",
          "error",
          "code",
          "seq"
        ],
        "type": "object"
      },
      "ObjectDeletion": {
        "additionalProperties": false,
        "description": "A drawing or an indicator deleted.",
        "properties": {
          "id": {
            "description": "The id of the object to remove, as learned from the chart read model. Must be a live object.",
            "format": "uuid",
            "type": "string"
          },
          "pane_id": {
            "description": "The numeric id of the chart pane the object lives on, as learned from the chart read model. This selects which pane (and thus which annotation set / indicator state) the deletion is resolved against.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "OcaMode": {
        "description": "What a fill of one member of an exit pair does to the other: cancels it,\nor cuts it by the filled qty; \"block\" routes one member at a time, so the\npair never fills twice.",
        "enum": [
          "cancel_with_block",
          "reduce_with_block",
          "reduce_non_block"
        ],
        "type": "string"
      },
      "Offer": {
        "description": "One plugin a registry offers.",
        "properties": {
          "added": {
            "description": "The lines the installed one does not hold: every line with none, or from another publisher.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "digest": {
            "description": "`hex(sha256(<lines as a JSON array> + \"\\n\" + <the artifact's sha256>))`, the consent `plugins/install` takes.",
            "type": "string"
          },
          "id": {
            "description": "The plugin's id, which `plugins/install` takes.",
            "type": "string"
          },
          "installed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Installation"
              },
              {
                "type": "null"
              }
            ],
            "description": "The installed record of it; `null` if none."
          },
          "layers": {
            "description": "Its manifest's `[[ui.layers]]`, each with its readiness, as a `GET /read/plugins` row's.",
            "items": {
              "$ref": "#/components/schemas/PluginLayer"
            },
            "type": "array"
          },
          "lines": {
            "description": "What installing it lets it do, one sentence each: its manifest's own\nwords only after \"it says:\", a line naming the installed version or\npublisher first where one is installed.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "description": "Its manifest's name.",
            "type": "string"
          },
          "panes": {
            "description": "Its manifest's `[[ui.panes]]` labels.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "publisher": {
            "description": "The publisher its index entry names.",
            "type": "string"
          },
          "refused": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OfferRefusal"
              },
              {
                "type": "null"
              }
            ],
            "description": "What `plugins/install` would refuse it with; `null` if nothing."
          },
          "ui": {
            "description": "Its manifest's `[[ui.panes]]`, each with its readiness; absent with none.",
            "properties": {
              "panes": {
                "items": {
                  "$ref": "#/components/schemas/PluginPane"
                },
                "type": "array"
              }
            },
            "required": [
              "panes"
            ],
            "type": "object"
          },
          "version": {
            "description": "The version its index entry offers.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "version",
          "publisher",
          "panes",
          "lines",
          "added",
          "digest",
          "refused",
          "installed",
          "layers"
        ],
        "type": "object"
      },
      "OfferRefusal": {
        "description": "What `plugins/install` refuses an offer with.",
        "properties": {
          "error": {
            "description": "A code (`^[a-z_]+$`).",
            "type": "string"
          },
          "reason": {
            "description": "The words that say what to change.",
            "type": "string"
          }
        },
        "required": [
          "error",
          "reason"
        ],
        "type": "object"
      },
      "OfferedData": {
        "description": "What the vendor's own spec offers for a provider and class.",
        "properties": {
          "as_of": {
            "description": "The day it was read.",
            "type": "string"
          },
          "history": {
            "description": "Products asked for a span.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "live": {
            "description": "Products streamed.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "more": {
            "description": "History asks beyond the product rows, as the word that would ask them (an order constraint or `bars session=24h`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "note": {
            "description": "Why the vendor's other data is not offered.",
            "type": [
              "string",
              "null"
            ]
          },
          "realtime": {
            "description": "Products answered live on request, not streamed.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "description": "The vendor spec that says so.",
            "type": "string"
          }
        },
        "required": [
          "history",
          "live",
          "realtime",
          "more",
          "source",
          "as_of",
          "note"
        ],
        "type": "object"
      },
      "OfferedOrders": {
        "description": "What the vendor's own spec offers a venue to order in a class.",
        "properties": {
          "as_of": {
            "description": "The day it was read.",
            "type": "string"
          },
          "constraints": {
            "description": "The order constraint words it offers.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fractional": {
            "description": "Whether it offers fractional share quantities.",
            "type": "boolean"
          },
          "kinds": {
            "description": "The order words it offers, as `VenueCoverage.order_kinds` says them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "notional": {
            "description": "Whether it offers dollar-sized orders.",
            "type": "boolean"
          },
          "sessions": {
            "description": "The sessions it offers, as `VenueCoverage.sessions` says them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "short": {
            "description": "`null` where unverified.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "source": {
            "description": "The vendor spec that says so.",
            "type": "string"
          },
          "tifs": {
            "description": "The time-in-force words it offers, as `VenueCoverage.tif` says them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "kinds",
          "tifs",
          "sessions",
          "notional",
          "constraints",
          "fractional",
          "short",
          "source",
          "as_of"
        ],
        "type": "object"
      },
      "Offers": {
        "description": "The plugins a registry offers, one per entry of its signed index.",
        "items": {
          "$ref": "#/components/schemas/Offer"
        },
        "type": "array"
      },
      "Offset": {
        "description": "A peg's offset. Its own type beside [`Trail`]: a trail and an offset are\ndifferent facts.",
        "oneOf": [
          {
            "properties": {
              "Amount": {
                "description": "A price amount.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Amount"
            ],
            "type": "object"
          },
          {
            "properties": {
              "Percent": {
                "description": "A percent of the price, `2` for 2 %.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Percent"
            ],
            "type": "object"
          }
        ]
      },
      "OffsetAsk": {
        "description": "A peg's offset. Its own type beside [`Trail`]: a trail and an offset are\ndifferent facts.",
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "Amount": {
                "description": "A price amount.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Amount"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "Percent": {
                "description": "A percent of the price, `2` for 2 %.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Percent"
            ],
            "type": "object"
          }
        ]
      },
      "On": {
        "description": "Another symbol's stream a stop is judged on; `Tranche.stop` is then in\n`symbol`'s points and the direction is `predicate`'s, never derived.",
        "properties": {
          "judge": {
            "$ref": "#/components/schemas/Judge"
          },
          "predicate": {
            "$ref": "#/components/schemas/OnPredicate"
          },
          "symbol": {
            "description": "The item as a read spells it, `equity:AAPL`.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "judge",
          "predicate"
        ],
        "type": "object"
      },
      "OnLevel": {
        "additionalProperties": false,
        "description": "A stop judged on another symbol's stream, in its points, held by Taji alone.",
        "properties": {
          "ge": {
            "default": null,
            "description": "The stop at or over this price.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "judge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JudgeAsk"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What is judged: `tick` (absent) or a quote's side."
          },
          "le": {
            "default": null,
            "description": "The stop at or under this price; exactly one of `le` and `ge`, above zero.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "on": {
            "description": "The item judged (`index:SPX`).",
            "type": "string"
          }
        },
        "required": [
          "on"
        ],
        "type": "object"
      },
      "OnPredicate": {
        "description": "How the judged price is compared with the level: `le` reaches it at or below, `ge` at or above.",
        "enum": [
          "le",
          "ge"
        ],
        "type": "string"
      },
      "OneClick": {
        "additionalProperties": false,
        "description": "The body of a trading verb that takes nothing of its own.",
        "properties": {
          "one_click": {
            "default": null,
            "description": "`true`: the user was shown no confirmation (One-click trading), refused 409 `one_click_off` before the verb while the setting is off; absent or `false` a confirmed send.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Open": {
        "description": "A step's place to open, as the sheet's button.",
        "properties": {
          "label": {
            "description": "\"Open System Settings\", \"Open Messages\" or \"Open <host>\".",
            "type": "string"
          },
          "to": {
            "description": "An `https://` URL or one of the kernel's places (`taji_plugin::OPEN_TARGETS`).",
            "type": "string"
          }
        },
        "required": [
          "to",
          "label"
        ],
        "type": "object"
      },
      "Opening": {
        "additionalProperties": false,
        "description": "The step of a flow whose `open` target is opened.",
        "properties": {
          "flow": {
            "description": "The flow's id, as `GET /read/flows` serves it.",
            "minLength": 1,
            "type": "string"
          },
          "step": {
            "description": "The step's id, which must carry an `open`, or `after` for the flow's `after_open`.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "flow",
          "step"
        ],
        "type": "object"
      },
      "Operand": {
        "anyOf": [
          {
            "format": "double",
            "type": "number"
          },
          {
            "$ref": "#/components/schemas/Spot"
          },
          {
            "properties": {
              "indicator": {
                "$ref": "#/components/schemas/Plot"
              }
            },
            "required": [
              "indicator"
            ],
            "type": "object"
          }
        ],
        "description": "One side of an indicator condition: a number, the spot, or an indicator's\nplot, its name pinned at add ([`Plot`])."
      },
      "OperandAsk": {
        "anyOf": [
          {
            "format": "double",
            "type": "number"
          },
          {
            "$ref": "#/components/schemas/Spot"
          },
          {
            "properties": {
              "indicator": {
                "$ref": "#/components/schemas/PlotAsk"
              }
            },
            "required": [
              "indicator"
            ],
            "type": "object"
          }
        ],
        "description": "One side of an indicator condition: a number, the spot, or an indicator's\nplot, its name pinned at add ([`Plot`])."
      },
      "OptionPick": {
        "additionalProperties": false,
        "description": "One of a chat's options set.",
        "properties": {
          "id": {
            "description": "The option's id among the chat's `config`.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "value": {
            "$ref": "#/components/schemas/OptionValue",
            "description": "One its options hold, or a boolean for a boolean option."
          }
        },
        "required": [
          "session",
          "id",
          "value"
        ],
        "type": "object"
      },
      "OptionRight": {
        "description": "What an option gives its holder: a `Call` the right to buy the underlying\nat the strike, a `Put` the right to sell it.",
        "enum": [
          "Call",
          "Put"
        ],
        "type": "string"
      },
      "OptionValue": {
        "anyOf": [
          {
            "type": "boolean"
          },
          {
            "type": "string"
          }
        ],
        "description": "A chat option's value: a boolean option's, or one of a select option's values."
      },
      "Order": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PlacedOrder"
          },
          {
            "$ref": "#/components/schemas/HeldOrder"
          },
          {
            "$ref": "#/components/schemas/VenueOrder"
          }
        ],
        "description": "One row of an account's `orders`: an order of ours, one Taji holds until\nits `activate` rule passes, or one the venue holds that Taji did not place."
      },
      "OrderCoverage": {
        "description": "The orders an adapter's `place_order` sends for one class without\n`Unsupported` today — nothing wider. Empty is \"sends none\", the default of\na declaration that names none.",
        "properties": {
          "constraints": {
            "default": [],
            "description": "The `intent::Constraints` fields the adapter sends; empty sends none.",
            "items": {
              "$ref": "#/components/schemas/ConstraintWord"
            },
            "type": "array"
          },
          "fractional": {
            "default": false,
            "description": "Fractional share quantities.",
            "type": "boolean"
          },
          "kinds": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/OrderWord"
            },
            "type": "array"
          },
          "notional": {
            "default": false,
            "description": "Dollar-sized orders.",
            "type": "boolean"
          },
          "sessions": {
            "$ref": "#/components/schemas/SessionSet",
            "default": {
              "24h": false,
              "extended": false,
              "post": false,
              "pre": false,
              "regular": false
            },
            "description": "The sessions an order may be sent to execute in."
          },
          "short": {
            "$ref": "#/components/schemas/Tri",
            "default": "Unverified",
            "description": "Whether this credential may open a short."
          },
          "tifs": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/TifWord"
            },
            "type": "array"
          }
        },
        "required": [
          "kinds",
          "tifs",
          "sessions",
          "notional",
          "fractional",
          "short",
          "constraints"
        ],
        "type": "object"
      },
      "OrderIntent": {
        "description": "End-to-end order intent: the ONLY shape any order source may submit.\n`intent_id` is the idempotency key mapped to broker-side dedupe keys\n(a brokerage's `ref_id` or `client_order_id`) by adapters.",
        "properties": {
          "account": {
            "description": "Broker account number (opaque).",
            "type": "string"
          },
          "hedge_ref": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HedgeRef"
              },
              {
                "type": "null"
              }
            ],
            "description": "The underlying's price a hedged option order ([`OrderKind::hedged`])\nis gated at: the hedge bounded at delta 1. Required on a hedged order,\nabsent on every other."
          },
          "intent_id": {
            "description": "UUIDv7 — construct with `Uuid::now_v7()` at every construction site\n(monotonic-ish, sortable by creation time; NOT `Uuid::new_v4()`).",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/OrderKind"
          },
          "ref_price": {
            "description": "Reference price for the risk gate's notional math. REQUIRED: the\ngate never prices from a feed, so a symbol with no feed cannot skip\nthe cap. An option's, one contract or a spread, is per share; the\ngate applies the multiplier.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "ref_price_asof": {
            "description": "As-of instant of `ref_price`. The stadium risk gate loud-fails when\n`now - ref_price_asof > max_ref_price_age` (the staleness rule,\nunimplementable without this field). Set at every construction site to\nthe quote/snapshot instant the price came from.",
            "format": "date-time",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/OrderSource"
          }
        },
        "required": [
          "intent_id",
          "account",
          "source",
          "ref_price",
          "ref_price_asof",
          "kind"
        ],
        "type": "object"
      },
      "OrderKind": {
        "description": "Deliberately exhaustive, same rationale as `OrderSource`. Two shapes: one\ninstrument with an optional entry and its exits, or a net-priced spread.\nThe order's word ([`OrderKind::word`]) is derived from the shape, never\nstored.\n\n`deny_unknown_fields` here closes a gap `OrderIntent`'s own\n`deny_unknown_fields` does NOT cover: the outer attribute only guards\n`OrderIntent`'s top-level keys, not the fields nested inside whichever\n`OrderKind` variant `kind` deserializes into. `OrderIntent` is journal-\nbound (persisted to stadium's event-sourced journal), so a corrupted or\npartially-renamed row must loud-fail here too, not silently drop a field.",
        "oneOf": [
          {
            "description": "One instrument with an optional entry and its exits.",
            "properties": {
              "Order": {
                "properties": {
                  "chase": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Chase"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A reprice walk on a working limit entry."
                  },
                  "constraints": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Constraints"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effect": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/PositionIntentEffect"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "`None` = the venue infers it; `Open` on a `Sell` is a short, `Close`\non a `Buy` a cover."
                  },
                  "entry": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Exec"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "`None`: an exit pair over a held position (an OCO)."
                  },
                  "exits": {
                    "description": "One tranche is a bracket (or an OTO without a take), several a\nmultibracket; each exits its own `qty` on the closing side.",
                    "items": {
                      "$ref": "#/components/schemas/Tranche"
                    },
                    "type": "array"
                  },
                  "instrument": {
                    "$ref": "#/components/schemas/Instrument"
                  },
                  "notional": {
                    "description": "Dollars instead of shares, an equity or a pair with no exits.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "qty": {
                    "description": "Shares or contracts; 0 beside `notional`.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "session": {
                    "$ref": "#/components/schemas/EquitySession",
                    "description": "Off `regular`, a limit only, on an equity or an option."
                  },
                  "side": {
                    "$ref": "#/components/schemas/Side",
                    "description": "The entry's; with no entry the exits' (the side that closes)."
                  },
                  "tif": {
                    "$ref": "#/components/schemas/Tif"
                  }
                },
                "required": [
                  "instrument",
                  "side",
                  "qty",
                  "tif"
                ],
                "type": "object"
              }
            },
            "required": [
              "Order"
            ],
            "type": "object"
          },
          {
            "description": "Legs of one class as one venue order at a net price: options on one\nunderlying (1..=4), or dated futures on one root (2..=4, both sides).",
            "properties": {
              "Spread": {
                "properties": {
                  "chase": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Chase"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A reprice walk on the net."
                  },
                  "constraints": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Constraints"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "exits": {
                    "description": "Tranches Taji supervises on the net from the entry's first fill\n(`fill::Model::SpreadStop`), closing with the reversed spread at\nits natural. `take` and `stop.price` are positive amounts in the\nentry's word: a credit's stop above it and take below, a debit's\nthe other way.",
                    "items": {
                      "$ref": "#/components/schemas/Tranche"
                    },
                    "type": "array"
                  },
                  "legs": {
                    "items": {
                      "$ref": "#/components/schemas/Leg"
                    },
                    "type": "array"
                  },
                  "net": {
                    "$ref": "#/components/schemas/NetPrice",
                    "description": "The spread's price as a net credit or debit."
                  },
                  "qty": {
                    "description": "Combos.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "session": {
                    "$ref": "#/components/schemas/EquitySession",
                    "description": "`extended` is the venue's curb session and `24h` is curb plus the\nnight; a limit only."
                  },
                  "tif": {
                    "$ref": "#/components/schemas/Tif"
                  }
                },
                "required": [
                  "legs",
                  "qty",
                  "net",
                  "tif"
                ],
                "type": "object"
              }
            },
            "required": [
              "Spread"
            ],
            "type": "object"
          }
        ]
      },
      "OrderKindAsk": {
        "description": "Deliberately exhaustive, same rationale as `OrderSource`. Two shapes: one\ninstrument with an optional entry and its exits, or a net-priced spread.\nThe order's word ([`OrderKind::word`]) is derived from the shape, never\nstored.\n\n`deny_unknown_fields` here closes a gap `OrderIntent`'s own\n`deny_unknown_fields` does NOT cover: the outer attribute only guards\n`OrderIntent`'s top-level keys, not the fields nested inside whichever\n`OrderKind` variant `kind` deserializes into. `OrderIntent` is journal-\nbound (persisted to stadium's event-sourced journal), so a corrupted or\npartially-renamed row must loud-fail here too, not silently drop a field.",
        "oneOf": [
          {
            "additionalProperties": false,
            "description": "One instrument with an optional entry and its exits.",
            "properties": {
              "Order": {
                "additionalProperties": false,
                "properties": {
                  "chase": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ChaseAsk"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A reprice walk on a working limit entry."
                  },
                  "constraints": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ConstraintsAsk"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effect": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/PositionIntentEffect"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "`None` = the venue infers it; `Open` on a `Sell` is a short, `Close`\non a `Buy` a cover."
                  },
                  "entry": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ExecAsk"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "`None`: an exit pair over a held position (an OCO)."
                  },
                  "exits": {
                    "description": "One tranche is a bracket (or an OTO without a take), several a\nmultibracket; each exits its own `qty` on the closing side.",
                    "items": {
                      "$ref": "#/components/schemas/TrancheAsk"
                    },
                    "type": "array"
                  },
                  "instrument": {
                    "$ref": "#/components/schemas/InstrumentAsk"
                  },
                  "notional": {
                    "description": "Dollars instead of shares, an equity or a pair with no exits.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number",
                      "null"
                    ]
                  },
                  "qty": {
                    "description": "Shares or contracts; 0 beside `notional`.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "session": {
                    "$ref": "#/components/schemas/EquitySession",
                    "description": "Off `regular`, a limit only, on an equity or an option."
                  },
                  "side": {
                    "$ref": "#/components/schemas/Side",
                    "description": "The entry's; with no entry the exits' (the side that closes)."
                  },
                  "tif": {
                    "$ref": "#/components/schemas/TifAsk"
                  }
                },
                "required": [
                  "instrument",
                  "side",
                  "qty",
                  "tif"
                ],
                "type": "object"
              }
            },
            "required": [
              "Order"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "Legs of one class as one venue order at a net price: options on one\nunderlying (1..=4), or dated futures on one root (2..=4, both sides).",
            "properties": {
              "Spread": {
                "additionalProperties": false,
                "properties": {
                  "chase": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ChaseAsk"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "A reprice walk on the net."
                  },
                  "constraints": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/ConstraintsAsk"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "exits": {
                    "description": "Tranches Taji supervises on the net from the entry's first fill\n(`fill::Model::SpreadStop`), closing with the reversed spread at\nits natural. `take` and `stop.price` are positive amounts in the\nentry's word: a credit's stop above it and take below, a debit's\nthe other way.",
                    "items": {
                      "$ref": "#/components/schemas/TrancheAsk"
                    },
                    "type": "array"
                  },
                  "legs": {
                    "items": {
                      "$ref": "#/components/schemas/LegAsk"
                    },
                    "type": "array"
                  },
                  "net": {
                    "$ref": "#/components/schemas/NetPriceAsk",
                    "description": "The spread's price as a net credit or debit."
                  },
                  "qty": {
                    "description": "Combos.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "session": {
                    "$ref": "#/components/schemas/EquitySession",
                    "description": "`extended` is the venue's curb session and `24h` is curb plus the\nnight; a limit only."
                  },
                  "tif": {
                    "$ref": "#/components/schemas/TifAsk"
                  }
                },
                "required": [
                  "legs",
                  "qty",
                  "net",
                  "tif"
                ],
                "type": "object"
              }
            },
            "required": [
              "Spread"
            ],
            "type": "object"
          }
        ]
      },
      "OrderPlacing": {
        "additionalProperties": false,
        "description": "An order at a class's door, routed by the kernel unless `account` names the row.",
        "properties": {
          "account": {
            "default": null,
            "description": "A handle off `link.accounts`: the row to route to; refused where it does not trade the class or its venue certainly refuses the order.",
            "type": [
              "string",
              "null"
            ]
          },
          "intent_id": {
            "default": null,
            "description": "A UUIDv7 the sender mints (RFC 9562 §5.7): the order goes out under it, and a repeat places nothing. Omitted, the kernel mints one.",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/OrderKindAsk",
            "description": "`OrderKind` as its serde JSON, externally tagged, its class its instrument's and this door's: `{\"Order\": {…}}` or `{\"Spread\": {…}}`, a spread leg's `instrument` its item (`option:SPY261016P00500000`)."
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "ref_price": {
            "default": null,
            "description": "The risk gate's price, above zero: an option's, one contract or a `Spread`, per share (a 1.00 debit costs $100 a combo); omitted, a spread's is its max loss per share, a close's its net, one contract's the price the order names (an OCO's highest), else the contract's own quote, a buy at the higher of its ask and last and a sell at its last.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "OrderPreview": {
        "description": "A venue's own estimate of an order it was shown and did not place. `raw` is\nthe venue's body verbatim; the typed fields are what it states, `None` where\nit states nothing.",
        "properties": {
          "commission": {
            "description": "The commission the venue states for the order.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "estimated_cost": {
            "description": "The cost the venue estimates for the order.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "estimated_price": {
            "description": "The price the venue estimates the order fills at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "raw": {
            "description": "The venue's own preview document; on the refresh-token venue's option row `{risk_reward, request}`, its `riskreward` answer for the legs at the signed price the order would carry (a limit only; one expiry)."
          },
          "warnings": {
            "description": "The venue's own warning lines, verbatim.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "estimated_price",
          "estimated_cost",
          "commission",
          "warnings",
          "raw"
        ],
        "type": "object"
      },
      "OrderRoute": {
        "description": "Where the order goes, and what decided it.",
        "properties": {
          "account": {
            "description": "The chosen row's handle.",
            "type": "string"
          },
          "alias": {
            "description": "The user's own name for the chosen row.",
            "type": "string"
          },
          "fee": {
            "description": "The estimated cost of this order on this row, `null` for a venue whose\nfee is not measured.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "live": {
            "description": "Whether the chosen row trades real money.",
            "type": "boolean"
          },
          "rows": {
            "description": "Every bound row, the chosen one included, in link order.",
            "items": {
              "$ref": "#/components/schemas/RouteVerdict"
            },
            "type": "array"
          },
          "rule": {
            "$ref": "#/components/schemas/RouteRule"
          },
          "why": {
            "description": "The deciding rule's words alone.",
            "type": "string"
          }
        },
        "required": [
          "account",
          "alias",
          "live",
          "rule",
          "why",
          "fee",
          "rows"
        ],
        "type": "object"
      },
      "OrderRouted": {
        "description": "What `orders/<class>/place` answers: the routed row's orders node, and the row and rule the route chose.",
        "properties": {
          "account": {
            "description": "The handle of the row the route chose.",
            "type": "string"
          },
          "intent_id": {
            "description": "The id the order goes out under, whatever comes of it: one refused after the 202 reads at `orders/<intent_id>`, and a close that sends nothing frames `failed` there. A modify the venue replaces keeps the replaced order's, and a reverse's is its closing order's.",
            "format": "uuid",
            "type": "string"
          },
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "rule": {
            "$ref": "#/components/schemas/RouteRule"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "node",
          "intent_id",
          "account",
          "rule"
        ],
        "type": "object"
      },
      "OrderRoutedOrAwaiting": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OrderRouted"
          },
          {
            "$ref": "#/components/schemas/Awaiting"
          }
        ],
        "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
      },
      "OrderSide": {
        "description": "An order's side, lowercase.",
        "enum": [
          "buy",
          "sell"
        ],
        "type": "string"
      },
      "OrderSource": {
        "description": "Deliberately exhaustive (no `#[non_exhaustive]`): stadium's risk gate\nmatches on this; adding a source must break that match at compile time.",
        "oneOf": [
          {
            "enum": [
              "Human",
              "EodFlatten",
              "EmergencyFlatten",
              "Reconciler"
            ],
            "type": "string"
          },
          {
            "properties": {
              "Seat": {
                "description": "The seat's id, `<desk_id>/<name>`.",
                "type": "string"
              }
            },
            "required": [
              "Seat"
            ],
            "type": "object"
          },
          {
            "properties": {
              "Agent": {
                "description": "The agent's name.",
                "type": "string"
              }
            },
            "required": [
              "Agent"
            ],
            "type": "object"
          },
          {
            "description": "An exit Taji worked on behalf of the owner (`Human`, `Agent`,\n`Seat`): a held leg no venue holds, or a protective a fired rule\nmoved. Risk-reducing on the owner's own position, so the gate passes it\nat the source lookup, and attribution resolves through to the owner.",
            "properties": {
              "Exit": {
                "$ref": "#/components/schemas/OrderSource"
              }
            },
            "required": [
              "Exit"
            ],
            "type": "object"
          }
        ]
      },
      "OrderState": {
        "description": "The lifecycle position of one order, as resolved by the fold.\n\n- `PendingIntent`: the intent is written; no broker order has materialized.\n- `Acked`: the venue acknowledged an order id; no fills yet.\n- `PartiallyFilled`: at least one execution, not all legs at target.\n- `Filled` / `Canceled` / `Rejected` / `Expired` / `TerminalPartial`:\n  terminal.\n- `Unknown`: the wire outcome is indeterminate -- the reconciler owns\n  resolution. Deliberately NOT terminal (see [`OrderState::is_terminal`]).",
        "oneOf": [
          {
            "enum": [
              "PendingIntent",
              "Acked",
              "Filled",
              "Canceled",
              "Rejected",
              "Expired",
              "Unknown"
            ],
            "type": "string"
          },
          {
            "const": "PartiallyFilled",
            "description": "Some legs have executions and NO terminal claim is installed: the order\nis still WORKING. Contrast [`Self::TerminalPartial`].",
            "type": "string"
          },
          {
            "const": "TerminalPartial",
            "description": "A `TerminalState::PartiallyFilled` claim is installed: the venue is DONE\nand executed part of the order.\n\nDistinct from [`Self::PartiallyFilled`], which the fold derives from\nleg progress alone and which means the OPPOSITE thing about whether more\nis coming. Collapsing the two would make\n`stadium::lifecycle::OrderLifecycle::is_terminal` either false for a\nsettled order or true for a working one, and it is consulted as \"may\nthis order still change\".",
            "type": "string"
          }
        ]
      },
      "OrderTicket": {
        "description": "A one-instrument draft's face.",
        "properties": {
          "account": {
            "description": "`routed: <acct>`, the handle alone beside a refused route.",
            "type": "string"
          },
          "actor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Proposal"
              },
              {
                "type": "null"
              }
            ],
            "description": "An agent's proposal; `null` on the hand's."
          },
          "can_send": {
            "description": "False while `drops` is not `null`, once the gate refused, and while `route` is a refusal.",
            "type": "boolean"
          },
          "class": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InstrumentClass"
              },
              {
                "type": "null"
              }
            ]
          },
          "controls": {
            "$ref": "#/components/schemas/Controls"
          },
          "discard": {
            "description": "The word on the button that drops the draft: `Discard`.",
            "type": "string"
          },
          "disposition": {
            "$ref": "#/components/schemas/Disposition"
          },
          "drops": {
            "description": "`null`, or the words why this row cannot send the pairs (`<acct> does not send a crypto bracket`, `<acct> does not send bracket`, `a bracket's entry is market, limit, stop or stop limit`, `a bracket is day or gtc`, the extended-hours words, `a bracket rides an entry on a flat <symbol>` over shares the row holds; first true wins).",
            "type": [
              "string",
              "null"
            ]
          },
          "gate": {
            "description": "The rows the risk gate answered: `[label, value, the row's key or \"\"]`; a spread's a row per tranche `exits` `<n> combo[s] · stop <stop> <word> · take <take> <word>` (no take, no ` · take`); under a `notice` its `session` row `regular — bracket works from <open>` (`notice`'s `<open>`).",
            "items": {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "header": {
            "description": "`<symbol> · <BUY|SELL> · <TYPE> <price>`, the price at the instrument's precision; a spread's `<symbol> · SPREAD · <DEBIT|CREDIT|EVEN> <net>`.",
            "type": "string"
          },
          "instrument": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InstrumentSpec"
              },
              {
                "type": "null"
              }
            ],
            "description": "The symbol's tick and multiplier, as the chart's `view` carries them."
          },
          "kind": {
            "$ref": "#/components/schemas/OrderKind",
            "description": "The order `draft/place` sends, which the window's live Confirm previews at `trading/orders/<class>/preview`."
          },
          "legs": {
            "description": "The bracket row, and what the click actually sends; a spread's `+1 <contract> · −1 <contract>`.",
            "type": "string"
          },
          "limit_against": {
            "description": "A stop limit's limit the same way; `null` off a stop limit.",
            "type": [
              "string",
              "null"
            ]
          },
          "notice": {
            "description": "While the clock is outside the regular session, `<open>` the next regular open as `Mon 09:30 ET` (the date beside the weekday when it is more than six days away, `Mon Dec 28 09:30 ET`): for an extended-hours entry carrying pairs, which goes in the regular session, `<venue> can't attach take-profit/stop-loss to extended-hours orders. This bracket goes live at the open, <open>.`; for a stop or a stop limit on an equity or an option sent in the regular session, `<venue> holds this stop until the open, <open>; it can't trigger before then.`; for a limit, a market or a spread sent there, `<venue> takes this order in the regular session only. It queues for the open, <open>.`, or `It queues for the open, <open>.` alone where the draft chose the regular session. Then, while the account's journal and its venue disagree on the drafted instrument (an open break, a crypto fee's excepted), after a space, `Taji shows <expected> <symbol>, <venue> shows <actual>. Your order still goes to <venue>; the position and P&L shown here may be off until they agree.` (an order break's: `Taji's book and <venue> disagree on <symbol>. Your order still goes to <venue>; ...`). Else `null`. A spread's is the session one, then, with exits, after a space, `Taji holds this spread's exits itself, at every venue, and only while Taji runs; <venue> rests the entry only.`",
            "type": [
              "string",
              "null"
            ]
          },
          "order_type": {
            "$ref": "#/components/schemas/OrderType",
            "description": "The entry's word; a spread's `limit`."
          },
          "price_against": {
            "description": "`prices.entry` against the side of `quote` the order trades at, a buy's ask and a sell's bid, in whole ticks of the instrument's ladder between them: `Ask`, `Ask − 34`, `Bid + 2`; `null` without a `quote` or a tick Taji knows.",
            "type": [
              "string",
              "null"
            ]
          },
          "prices": {
            "$ref": "#/components/schemas/Figures",
            "description": "The header's own numbers unformatted (what a drag needs) and the ticket's figures beside them, `null` unknown."
          },
          "quote": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NetQuote"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instrument's bid, ask and mid at `ts`, its quotes stream's newest two-sided row, re-pushed as it ticks; `null` before that row or while its source is shut."
          },
          "rev": {
            "description": "The staged draft's, which its Send names to `draft/place`.",
            "format": "uuid",
            "type": "string"
          },
          "route": {
            "$ref": "#/components/schemas/TicketRoute",
            "description": "What `trading/orders/<class>/route` answers for this draft named to this row over the facts the last evaluation read from its venue, or its refusal: the live-intent rule and the venue's certain refusals (a price at or under 0, an off-tick price, an off-step or under-minimum qty, an order under the minimum, a time in force the class does not take, fractional on a whole-share name) read before the click."
          },
          "send": {
            "description": "What the click sends: `Send bracket — <Buy|Sell> <qty> <symbol> <type> <price> · TP <take> · SL <stop>` (`· <n> exits` for several pairs, `· from <open>` under a `notice`, `notice`'s `<open>`), `Send — <qty> <symbol> <TYPE>` without pairs, `Replace — …` in place of either for a draft that `replaces` an order (`Replace — <Buy|Sell> <qty> <symbol> <TYPE>` without pairs), `Cannot send — <drops>; clear the pairs` while `drops` is not `null`; a spread's `Send — <n> combo[s] <symbol> <debit|credit|even> <net>`, suffixed ` · SL <stop>` and ` · TP <take>` for one tranche, ` · <n> exits` for several.",
            "type": "string"
          },
          "spread": {
            "description": "`quote`'s ask − bid; `null` without a `quote`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "staged": {
            "description": "`true`.",
            "type": "boolean"
          },
          "stats": {
            "description": "Every figure with the basis it was derived from: `Quantity`; `Risk to stop` Σ qtyᵢ·|anchor − stopᵢ| (a spread's Σ qtyᵢ·|stopᵢ − net|·multiplier in dollars, none without a multiplier); `Reward to take`; `R multiple`; `Cost` qty × price × point value (none without a point value; a future's is `Notional`, no margin guessed; a pair's names its dollars); `Breakeven` a single leg's strike ± premium; `Tick` dollars per tick at the anchor's rung, per contract or share; `Notional` an equity's at the price seen. A pair's units print as the draft carries them.",
            "items": {
              "$ref": "#/components/schemas/Stat"
            },
            "type": "array"
          },
          "trail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TrailFace"
              },
              {
                "type": "null"
              }
            ],
            "description": "A trailing stop's trail as stated and `line`, its trigger at the spot; `null` otherwise."
          }
        },
        "required": [
          "staged",
          "rev",
          "header",
          "class",
          "kind",
          "order_type",
          "trail",
          "account",
          "route",
          "actor",
          "controls",
          "stats",
          "gate",
          "disposition",
          "legs",
          "notice",
          "send",
          "drops",
          "discard",
          "can_send",
          "instrument",
          "prices",
          "quote",
          "spread",
          "price_against",
          "limit_against"
        ],
        "type": "object"
      },
      "OrderType": {
        "description": "The entry's shape a draft states, overruling the quadrant.",
        "oneOf": [
          {
            "enum": [
              "limit",
              "stop",
              "stop_limit",
              "market",
              "moo",
              "moc",
              "loo",
              "loc"
            ],
            "type": "string"
          },
          {
            "const": "trailing_stop",
            "description": "With `trail`.",
            "type": "string"
          }
        ]
      },
      "OrderWord": {
        "description": "The one spelling of an order's shape that coverage, routing and refusals\nshare.",
        "oneOf": [
          {
            "enum": [
              "market",
              "limit",
              "stop",
              "stop_limit",
              "trailing_stop",
              "moc",
              "moo",
              "loo",
              "loc",
              "bracket",
              "oto",
              "oco",
              "multi_leg",
              "trailing_stop_limit",
              "mit",
              "lit",
              "mtl",
              "auction",
              "vol"
            ],
            "type": "string"
          },
          {
            "const": "multi_bracket",
            "description": "Several brackets on one entry, as one venue order.",
            "type": "string"
          },
          {
            "const": "spread_stop",
            "description": "A spread's exit tranche, held by Taji on the net and never sent.",
            "type": "string"
          }
        ]
      },
      "Orders": {
        "description": "An account's orders, cut to a `limit`.",
        "properties": {
          "rows": {
            "items": {
              "$ref": "#/components/schemas/Order"
            },
            "type": "array"
          },
          "rows_total": {
            "description": "How many there were before the cut.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "rows",
          "rows_total"
        ],
        "type": "object"
      },
      "Outlook": {
        "enum": [
          "bullish",
          "slightly_bullish",
          "bearish",
          "slightly_bearish",
          "either_direction",
          "range_bound",
          "near_strike"
        ],
        "type": "string"
      },
      "OwnSound": {
        "description": "One own sound, as `sounds/add` and the read answer it.",
        "properties": {
          "file": {
            "description": "Its file under `<state dir>/sounds/`, served at `GET /app/sounds/<file>`.",
            "type": "string"
          },
          "name": {
            "description": "Its name in every pick.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "file"
        ],
        "type": "object"
      },
      "OwnSounds": {
        "description": "What `GET /read/ui/sounds` answers: the user's own sounds, `[]` with none.",
        "items": {
          "$ref": "#/components/schemas/OwnSound"
        },
        "type": "array"
      },
      "PageOpened": {
        "description": "The page a nonce opens.",
        "properties": {
          "url": {
            "description": "`http://127.0.0.1:<port>/app/[sheet/]?n=<nonce>[&gl=1]`; the nonce lives 60 s and is single use.",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "PageOpening": {
        "additionalProperties": false,
        "description": "The web UI's address, asked for by the window's main process or a script.",
        "properties": {
          "gl": {
            "default": null,
            "description": "`true` forces the page's WebGL2 backend.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "key": {
            "description": "This run's window key: the nonce then buys the by-hand token.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          }
        },
        "type": "object"
      },
      "PairDrawing": {
        "additionalProperties": false,
        "description": "One pair drawn onto an item's plan, on `plans/legs/create`: at least one of `take` and `stop`.",
        "properties": {
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "stop": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StopPoint"
              },
              {
                "type": "null"
              }
            ],
            "description": "The stop: a price, or a level on another symbol as `plans/open`'s."
          },
          "symbol": {
            "description": "An item as `draft/stage` takes it.",
            "type": "string"
          },
          "take": {
            "default": null,
            "description": "The take's price.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "PairFigures": {
        "description": "One exit pair's prices and share after the split, and its figures.",
        "properties": {
          "qty": {
            "description": "The pair's share of the draft's quantity.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "reward_risk": {
            "description": "|take − anchor| ÷ |anchor − stop|, two decimals; `null` a runner's.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "stop": {
            "description": "The stop price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "stop_by": {
            "$ref": "#/components/schemas/ExitBy"
          },
          "take": {
            "description": "The take price; `null` for a runner, a pair with no take.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "take_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExitBy"
              },
              {
                "type": "null"
              }
            ],
            "description": "Off the anchor: whole ticks, the rest two decimals, `usd` over the pair's share."
          }
        },
        "required": [
          "take",
          "stop",
          "qty",
          "reward_risk",
          "take_by",
          "stop_by"
        ],
        "type": "object"
      },
      "PairPoints": {
        "additionalProperties": false,
        "description": "One exit pair: a take (none: the stop-only runner) and a stop.",
        "properties": {
          "stop": {
            "$ref": "#/components/schemas/StopPoint"
          },
          "take": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExitPoint"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "stop"
        ],
        "type": "object"
      },
      "PaneClosing": {
        "additionalProperties": false,
        "description": "The pane a user's ⌘W closes.",
        "properties": {
          "pane_id": {
            "description": "The pane's id, as `RemovePaneCmd.pane_id` is.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "pane_id"
        ],
        "type": "object"
      },
      "PaneFocus": {
        "additionalProperties": false,
        "description": "A pane focused.",
        "properties": {
          "pane_id": {
            "description": "The numeric id of the pane to focus, as learned from the chart read model.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "pane_id"
        ],
        "type": "object"
      },
      "PaneKindRecord": {
        "anyOf": [
          {
            "enum": [
              "chart",
              "ladder",
              "book",
              "watchlist",
              "alerts",
              "notes",
              "calendar",
              "screener"
            ],
            "type": "string"
          },
          {
            "const": "details",
            "description": "Details and news on the watchlist's picked row.",
            "type": "string"
          },
          {
            "const": "chain",
            "description": "The option chain.",
            "type": "string"
          },
          {
            "const": "ticket",
            "description": "The order ticket.",
            "type": "string"
          },
          {
            "const": "table",
            "description": "The data table.",
            "type": "string"
          },
          {
            "const": "news",
            "description": "Headlines for a symbol.",
            "type": "string"
          },
          {
            "const": "financials",
            "description": "Statements, ratios and executives.",
            "type": "string"
          },
          {
            "const": "filings",
            "description": "SEC filings, holdings, stakes and insiders.",
            "type": "string"
          },
          {
            "const": "agent",
            "description": "The Agent's conversation.",
            "type": "string"
          },
          {
            "description": "A plugin's pane kind, `<plugin id>.<word>`: any word not above. Kept\nas written whether or not its plugin is enabled.",
            "type": "string"
          }
        ],
        "description": "What a grid cell shows. Only `Chart` carries engine state; the window\ndraws the others' bodies off the chart they follow (their link group's,\nelse the desk's focused chart) and the stage."
      },
      "PaneLink": {
        "additionalProperties": false,
        "description": "The link group `set_link` puts a pane in.",
        "properties": {
          "link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SyncGroup"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The group; `null` or absent leaves the one it is in."
          },
          "pane_id": {
            "description": "The pane's id, a pane of the active layout, the popup included, of any kind.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "pane_id"
        ],
        "type": "object"
      },
      "PaneMove": {
        "additionalProperties": false,
        "description": "A pane moved beside, or into, another's stack.",
        "properties": {
          "anchor_pane_id": {
            "default": null,
            "description": "The numeric id of the pane it lands against, as the layout read gives it, of `layout`'s stacks when given. Omit for the focused pane, or with `layout` for that layout's default place.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "layout": {
            "default": null,
            "description": "The id of the Desk's layout it lands in, as `desk/<id>/layouts` lists it; the pane may be in any of the Desk's layouts, and that layout becomes the active one. Omit to move it within its own layout. With no `anchor_pane_id` it lands where `add_pane` places a pane given none.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "pane_id": {
            "description": "The numeric id of the pane to move, as the layout read gives it.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "position": {
            "$ref": "#/components/schemas/AgentPanePosition"
          }
        },
        "required": [
          "pane_id",
          "position"
        ],
        "type": "object"
      },
      "PanePopup": {
        "additionalProperties": false,
        "description": "A pane of a kind brought up, else popped up over the canvas.",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/AgentPaneKind"
          },
          "rect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PopupRectAsk"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The layout's popup rectangle, kept for this layout across popups and launches and read back as the layout's `popup_rect`. Omit to leave it."
          },
          "symbol": {
            "default": null,
            "description": "To `chart` only: a new popup's item, `kind:text`, as `equity:AAPL`. Omit to take the focused chart's.",
            "maxLength": 160,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "timeframe": {
            "default": null,
            "description": "To `chart` only: a new popup's timeframe, as `set_timeframe` takes it (`5m`, `3h`, `D`). Omit to take the focused chart's.",
            "pattern": "^(1[mh]|([2-9]|[1-9][0-9]{1,3})[mhDWM]|[DWMY])$",
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "PaneRekind": {
        "additionalProperties": false,
        "description": "A pane rekinded in place.",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/AgentPaneKind"
          },
          "pane_id": {
            "description": "The numeric id of the pane, as the layout read gives it.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "symbol": {
            "default": null,
            "description": "To `chart` only: the item, `kind:text`, as `equity:AAPL`. Omit to take the focused chart's.",
            "maxLength": 160,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "timeframe": {
            "default": null,
            "description": "To `chart` only: the timeframe, as `set_timeframe` takes it (`5m`, `3h`, `D`). Omit to take the focused chart's.",
            "pattern": "^(1[mh]|([2-9]|[1-9][0-9]{1,3})[mhDWM]|[DWMY])$",
            "type": "string"
          }
        },
        "required": [
          "pane_id",
          "kind"
        ],
        "type": "object"
      },
      "PaneRemoval": {
        "additionalProperties": false,
        "description": "A pane the agent created, removed.",
        "properties": {
          "pane_id": {
            "description": "The numeric id of the pane to remove, as learned from the chart read model. Must be a pane this agent created, and not the currently-active pane.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "pane_id"
        ],
        "type": "object"
      },
      "PanelServe": {
        "description": "A product a provider answers for a panel.",
        "properties": {
          "ahead": {
            "description": "The linked providers the hub asks before it for that product in the first of `classes`, in winning order (empty first or alone), so linking a provider moves it into another's `ahead`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "classes": {
            "description": "The classes of that panel's read it serves, empty for the class-less `economic`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "panel": {
            "description": "The window panel's id.",
            "type": "string"
          },
          "product": {
            "description": "The data product it answers for the panel, as the bridge's `data_<product>` tools name it.",
            "type": "string"
          },
          "provider": {
            "description": "The provider's word.",
            "type": "string"
          },
          "title": {
            "description": "The panel's short title on the provider's page.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "panel",
          "title",
          "product",
          "classes",
          "ahead"
        ],
        "type": "object"
      },
      "Panels": {
        "description": "What a provider's page in Connections lists.",
        "properties": {
          "providers": {
            "description": "Every provider with its one-sentence `about`, in the build's board order.",
            "items": {
              "$ref": "#/components/schemas/ProviderLine"
            },
            "type": "array"
          },
          "serves": {
            "description": "One row per (provider, panel, product) it answers, the panels and their short `title`s those `PANELS` puts on the page, off the routing `docs/reference/coverage/panels.md` states.",
            "items": {
              "$ref": "#/components/schemas/PanelServe"
            },
            "type": "array"
          }
        },
        "required": [
          "providers",
          "serves"
        ],
        "type": "object"
      },
      "Panes": {
        "description": "What a layout verb answers: the node, and the panes the apply returned.",
        "properties": {
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "pane_ids": {
            "description": "The layout's panes in slot order for `set_layout`, the new pane for `add_pane`, the pane answered for `popup`, empty otherwise.",
            "items": {
              "format": "uint32",
              "minimum": 0,
              "type": "integer"
            },
            "type": "array"
          }
        },
        "required": [
          "node",
          "pane_ids"
        ],
        "type": "object"
      },
      "Passing": {
        "additionalProperties": false,
        "description": "A hand-off passed from one flow to another.",
        "properties": {
          "flow": {
            "description": "The flow holding the hand-off.",
            "type": "string"
          },
          "to": {
            "description": "The flow to move it onto.",
            "type": "string"
          }
        },
        "required": [
          "flow",
          "to"
        ],
        "type": "object"
      },
      "PasswordProof": {
        "additionalProperties": false,
        "description": "The backup password, proven against the open vault's password slot.",
        "properties": {
          "password": {
            "description": "Blank is 400; absent or `null` is 409 `wrong password`.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          }
        },
        "type": "object"
      },
      "PathChange": {
        "description": "One changed path, with its node's body where the kernel holds it current and it is under 8 KB.",
        "properties": {
          "node": {
            "description": "`link` or `ui`, the node `value` is the body of: carried on `link`, `ui/display_tz` and `ui/stage`; else absent.",
            "type": "string"
          },
          "path": {
            "description": "The changed node's path.",
            "type": "string"
          },
          "value": {
            "$ref": "#/components/schemas/Node",
            "description": "The `node`'s body as its read answers it; absent with `node`."
          }
        },
        "required": [
          "path"
        ],
        "type": "object"
      },
      "Payoff": {
        "description": "A spread's dollars at expiry for its qty: `None` on a side where it is\nunbounded. `max_loss` is the loss as a positive figure. `vertices` is the\ncurve as `[underlying, dollars]`, ascending: each strike, plus one point a\nwidth (the strikes' span, a tenth of the strike for one) past each end,\nthe low one at no less than zero; straight lines between them are exact.\nThe rest is [`Payoff::model`]'s, empty and `None` until it runs.",
        "properties": {
          "breakevens": {
            "description": "The underlying prices, ascending, at which the expiry dollars cross zero.",
            "items": {
              "pattern": "^-?\\d+(\\.\\d+)?$",
              "type": "string"
            },
            "type": "array"
          },
          "collateral": {
            "default": null,
            "description": "The cash a venue sets aside to open it, as a broker's options\ncollateral states it: a lone short put its strike's shares; a credit\n(or even) structure with a bounded loss that loss, a defined-risk\nspread's width less its credit. `None` where it is a debit, its loss is\nunbounded (a naked call), or it is otherwise the venue's margin call.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "current": {
            "default": [],
            "description": "`[underlying, dollars]` now, sampled across the vertices' span.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "greek": {
            "description": "[`Payoff::greeks`]' `[underlying, the position's greek]` at `current`'s\npoints.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "greeks": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Greeks"
              },
              {
                "type": "null"
              }
            ],
            "description": "[`Payoff::greeks`]' position greeks at spot."
          },
          "max_gain": {
            "description": "The best expiry result in dollars; `null` where unbounded.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "max_loss": {
            "description": "The worst expiry result in dollars, as a positive figure; `null` where unbounded.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "premium": {
            "default": "0",
            "description": "The net in dollars for its qty: a credit received positive, a debit\npaid negative (Legend's \"Estimated credit\" and \"Estimated cost\").",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "probability": {
            "default": [],
            "description": "`[underlying, P(finishing below it)]` at expiry, at `current`'s points.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "probability_above": {
            "default": [],
            "description": "`[underlying, P(finishing above it)]`, one less `probability`'s at its points.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "vertices": {
            "description": "The expiry curve as `[underlying, dollars]`, ascending by underlying.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "what_ifs": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/WhatIfCurve"
            },
            "type": "array"
          },
          "win_rate": {
            "default": null,
            "description": "P(the expiry dollars are above zero).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "max_gain",
          "max_loss",
          "collateral",
          "premium",
          "breakevens",
          "vertices",
          "current",
          "what_ifs",
          "probability",
          "probability_above",
          "win_rate"
        ],
        "type": "object"
      },
      "Peg": {
        "description": "The unit pegs keep their strings (`\"best\"`); `bench` is tagged\n(`{\"bench\": {…}}`).",
        "oneOf": [
          {
            "const": "best",
            "description": "The same side's best, more aggressive by the offset.",
            "type": "string"
          },
          {
            "const": "mid",
            "description": "The midpoint.",
            "type": "string"
          },
          {
            "const": "market",
            "description": "The other side's best, less aggressive by the offset.",
            "type": "string"
          },
          {
            "const": "best_passive",
            "description": "The same side's best, less aggressive by the offset.",
            "type": "string"
          },
          {
            "description": "Starts at `start` and moves `change` for every `reference_change`\n`symbol` moves off `reference`, down with it when `decrease`.",
            "properties": {
              "bench": {
                "properties": {
                  "change": {
                    "description": "How far the peg moves for each `reference_change`.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "decrease": {
                    "default": false,
                    "description": "The pegged price decreases by `change` instead of increasing.",
                    "type": "boolean"
                  },
                  "reference": {
                    "description": "The benchmark's price the moves are measured from.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "reference_change": {
                    "description": "The benchmark's move that moves the peg by `change`.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "start": {
                    "description": "The peg's starting price.",
                    "pattern": "^-?\\d+(\\.\\d+)?$",
                    "type": "string"
                  },
                  "symbol": {
                    "description": "The benchmark the peg follows.",
                    "type": "string"
                  }
                },
                "required": [
                  "symbol",
                  "start",
                  "reference",
                  "change",
                  "reference_change",
                  "decrease"
                ],
                "type": "object"
              }
            },
            "required": [
              "bench"
            ],
            "type": "object"
          }
        ]
      },
      "PegAsk": {
        "description": "The unit pegs keep their strings (`\"best\"`); `bench` is tagged\n(`{\"bench\": {…}}`).",
        "oneOf": [
          {
            "const": "best",
            "description": "The same side's best, more aggressive by the offset.",
            "type": "string"
          },
          {
            "const": "mid",
            "description": "The midpoint.",
            "type": "string"
          },
          {
            "const": "market",
            "description": "The other side's best, less aggressive by the offset.",
            "type": "string"
          },
          {
            "const": "best_passive",
            "description": "The same side's best, less aggressive by the offset.",
            "type": "string"
          },
          {
            "additionalProperties": false,
            "description": "Starts at `start` and moves `change` for every `reference_change`\n`symbol` moves off `reference`, down with it when `decrease`.",
            "properties": {
              "bench": {
                "additionalProperties": false,
                "properties": {
                  "change": {
                    "description": "How far the peg moves for each `reference_change`.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "decrease": {
                    "default": false,
                    "description": "The pegged price decreases by `change` instead of increasing.",
                    "type": "boolean"
                  },
                  "reference": {
                    "description": "The benchmark's price the moves are measured from.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "reference_change": {
                    "description": "The benchmark's move that moves the peg by `change`.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "start": {
                    "description": "The peg's starting price.",
                    "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "symbol": {
                    "description": "The benchmark the peg follows.",
                    "type": "string"
                  }
                },
                "required": [
                  "symbol",
                  "start",
                  "reference",
                  "change",
                  "reference_change"
                ],
                "type": "object"
              }
            },
            "required": [
              "bench"
            ],
            "type": "object"
          }
        ]
      },
      "Picture": {
        "additionalProperties": false,
        "description": "An image a question carries.",
        "properties": {
          "data": {
            "description": "Its bytes in base64.",
            "type": "string"
          },
          "mimeType": {
            "$ref": "#/components/schemas/PictureType",
            "description": "Its media type."
          }
        },
        "required": [
          "mimeType",
          "data"
        ],
        "type": "object"
      },
      "PictureType": {
        "description": "The image types both agents read.",
        "enum": [
          "image/png",
          "image/jpeg",
          "image/gif",
          "image/webp"
        ],
        "type": "string"
      },
      "Pinning": {
        "additionalProperties": false,
        "description": "A chart pane's bars pinned to one provider, kept with the pane's view (`view`'s `pin`); the pane loads again on it.",
        "properties": {
          "pane_id": {
            "default": null,
            "description": "The chart pane's id, the path's where it names one; absent, the path's, else the Desk's chart pane.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "provider": {
            "description": "A provider or an account handle, linked and on; `null` returns to the hub's ranking.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "Placed": {
        "description": "The legs one owner placed.",
        "properties": {
          "by": {
            "description": "`seat:<desk>/<name>`, `manual` or `venue`.",
            "type": "string"
          },
          "desk_id": {
            "description": "The seat's desk, `null` on `manual` and `venue`.",
            "type": [
              "string",
              "null"
            ]
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/PlacedLeg"
            },
            "type": "array"
          },
          "realized_today": {
            "description": "What that owner's closing fills today booked.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "unrealized": {
            "description": "`null` where any leg's is.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "desk_id",
          "by",
          "legs",
          "unrealized",
          "realized_today"
        ],
        "type": "object"
      },
      "PlacedLeg": {
        "description": "A position leg under the owner that placed it.",
        "properties": {
          "account": {
            "description": "The handle of the row holding it.",
            "type": "string"
          },
          "item": {
            "description": "The item, `<kind>:<key>`.",
            "type": "string"
          },
          "net": {
            "description": "Signed, long positive.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "symbol": {
            "description": "The instrument's id, the book's key for marks and feeds.",
            "type": "string"
          }
        },
        "required": [
          "item",
          "symbol",
          "account",
          "net"
        ],
        "type": "object"
      },
      "PlacedOrder": {
        "description": "An order of ours: the body of `orders/<intent_id>`, placed through the\ngate or refused before it.",
        "properties": {
          "account": {
            "description": "The handle of the row it was placed on.",
            "type": "string"
          },
          "acked_utc": {
            "description": "When the venue acked it, UTC seconds; `null` until then.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "adopted": {
            "description": "Whether the venue held it before Taji did: placed outside Taji, adopted by its first reprice or cancel.",
            "type": "boolean"
          },
          "answer": {
            "description": "The venue's answer to the place; a market order sent while it waits for the next regular open is `QUEUED <SIDE> MKT · <open>` (`QUEUED SELL MKT · Mon 09:30 ET`).",
            "type": [
              "string",
              "null"
            ]
          },
          "at_utc": {
            "description": "When the journal received its intent, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "avg_fill_price": {
            "description": "Quantity-weighted over its entry's fills, a bracket's exits out; `null`\nwith none or across a spread's legs.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "chase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChaseState"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its chase while one walks it, `null` on an order no chase walks."
          },
          "ended": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderState"
              },
              {
                "type": "null"
              }
            ],
            "description": "The venue's word on an order `state` reads `TerminalPartial`: `Canceled`\nor `Expired`, which ended it with part filled; `null` on any other."
          },
          "ended_utc": {
            "description": "The terminal that ended it, UTC seconds, the gate's refusal included (a\nplace refused before the venue its receipt); `null` until then.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "exits": {
            "description": "A spread's exit tranches, `null` on any other order.",
            "items": {
              "$ref": "#/components/schemas/SpreadTranche"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fees": {
            "description": "Every fill's stated fee plus its fee in kind at its price, exits in; `null` when none states either.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "filled_qty": {
            "description": "How much of it has executed.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "held": {
            "description": "The exit legs the venue holds against it, `null` with none.",
            "items": {
              "$ref": "#/components/schemas/HeldLeg"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "intent": {
            "$ref": "#/components/schemas/Intent"
          },
          "intent_id": {
            "description": "The id the intent was journaled under.",
            "type": "string"
          },
          "item": {
            "description": "What it trades: its instrument, or a spread's `spread:` legs, as an item.",
            "type": "string"
          },
          "limit_now": {
            "description": "The price a replace moved it to, `null` until one did.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "line_state": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineState"
              },
              {
                "type": "null"
              }
            ],
            "description": "What its line renders as; `null` on one that is no line (terminal, or a\ncomposite whose entry filled)."
          },
          "live": {
            "description": "Whether that row trades real money.",
            "type": "boolean"
          },
          "price_now": {
            "description": "The price it rests at, `null` on one that rests at none (a market order).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "replaced_utc": {
            "description": "Each replace, oldest first, UTC seconds; a retired replace's excluded.",
            "items": {
              "format": "int64",
              "type": "integer"
            },
            "type": "array"
          },
          "resting_qty": {
            "description": "What still rests, `null` on one that is no line.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "route_why": {
            "description": "Why the router chose the account, `null` on an order that named it.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/OrderState"
          },
          "stop_now": {
            "description": "The stop a replace moved it to, `null` until one did.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "successor": {
            "description": "The id of the order now working where a reprice placed it anew.",
            "type": [
              "string",
              "null"
            ]
          },
          "why": {
            "description": "The venue's own words on the terminal that ended it.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "intent_id",
          "item",
          "at_utc",
          "intent",
          "state",
          "ended",
          "line_state",
          "filled_qty",
          "limit_now",
          "stop_now",
          "price_now",
          "resting_qty",
          "held",
          "answer",
          "why",
          "acked_utc",
          "replaced_utc",
          "ended_utc",
          "adopted",
          "chase",
          "exits",
          "account",
          "live",
          "route_why",
          "successor",
          "avg_fill_price",
          "fees"
        ],
        "type": "object"
      },
      "PlanDrafting": {
        "additionalProperties": false,
        "description": "The model's own plan over an item, on `plans/draft`.",
        "properties": {
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "runner": {
            "default": null,
            "description": "A stop-only pair beside the takes; absent `true`, `false` puts every share on the takes so each rides its own venue bracket.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "symbol": {
            "description": "An item as `draft/stage` takes it, echoed on the plan node.",
            "type": "string"
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "PlanItem": {
        "additionalProperties": false,
        "description": "One management's item, on `plans/{disarm,discard}`.",
        "properties": {
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "symbol": {
            "description": "An item as `draft/stage` takes it (`equity:AAPL`).",
            "type": "string"
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "PlanOpening": {
        "additionalProperties": false,
        "description": "A plan written by hand, on `plans/open`: `pairs`, or the sugar `stop`, `takes` and `runner`.",
        "properties": {
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "pairs": {
            "description": "The pairs in prices; a distance is 400 `a plan's pairs are prices`.",
            "items": {
              "$ref": "#/components/schemas/PairPoints"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "runner": {
            "default": null,
            "description": "The sugar's stop-only runner beside the takes; absent `true`.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "stop": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StopPoint"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sugar's stop, a price or a level on another symbol: alone one stop-only pair, with `takes` one pair per take at it."
          },
          "symbol": {
            "description": "An item as `draft/stage` takes it, echoed on the plan node.",
            "type": "string"
          },
          "takes": {
            "default": null,
            "description": "The sugar's takes, prices.",
            "items": {
              "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
              "type": [
                "string",
                "number"
              ]
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "Platform": {
        "description": "An agent platform `taji-register list` finds on this machine.",
        "properties": {
          "command": {
            "description": "What its entry runs, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "config": {
            "description": "The file its entry lives in (`~`-shortened).",
            "type": "string"
          },
          "current": {
            "default": false,
            "description": "Whether `command` runs `bridge`; the list itself does not say.",
            "type": "boolean"
          },
          "id": {
            "description": "add-mcp's word for it.",
            "type": "string"
          },
          "name": {
            "description": "The platform as add-mcp spells it for a person.",
            "type": "string"
          },
          "registered": {
            "description": "Whether the platform's config holds a `taji` entry.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "config",
          "registered",
          "command",
          "current"
        ],
        "type": "object"
      },
      "PlatformPick": {
        "additionalProperties": false,
        "description": "The platforms a `connect` or `disconnect` acts on.",
        "properties": {
          "platforms": {
            "default": null,
            "description": "Ids `agent.platforms` names, at least one; absent, every platform found.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Plot": {
        "description": "An indicator's plot: a built-in, else an installed plugin's script (bare or\nat its plugin's semver version), else the Desk's custom (bare or at an\ninteger `@N`); a plugin's layer draws no plot and is refused. The name is pinned at add (`rsi@1`, a custom's\n`name@N`, a plugin's script `name@<its plugin's version>`, refused once\nthat version is no longer installed), the pane's parameters when the alert\nwas made (a later pane edit leaves it), and the series.",
        "properties": {
          "name": {
            "description": "The indicator, `rsi@1`, a custom's `name@N` or a plugin's script\n`name@<its plugin's version>`.",
            "type": "string"
          },
          "params": {
            "description": "The pane's parameters for the indicator when the alert was made."
          },
          "plot": {
            "description": "The indicator's series read.",
            "type": "string"
          },
          "title": {
            "description": "The legend's words for it, as the window names it.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "params",
          "plot"
        ],
        "type": "object"
      },
      "PlotAsk": {
        "additionalProperties": false,
        "description": "An indicator's plot: a built-in, else an installed plugin's script (bare or\nat its plugin's semver version), else the Desk's custom (bare or at an\ninteger `@N`); a plugin's layer draws no plot and is refused. The name is pinned at add (`rsi@1`, a custom's\n`name@N`, a plugin's script `name@<its plugin's version>`, refused once\nthat version is no longer installed), the pane's parameters when the alert\nwas made (a later pane edit leaves it), and the series.",
        "properties": {
          "name": {
            "description": "The indicator, `rsi@1`, a custom's `name@N` or a plugin's script\n`name@<its plugin's version>`.",
            "type": "string"
          },
          "params": {
            "description": "The pane's parameters for the indicator when the alert was made."
          },
          "plot": {
            "description": "The indicator's series read.",
            "type": "string"
          },
          "title": {
            "description": "The legend's words for it, as the window names it.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "params",
          "plot"
        ],
        "type": "object"
      },
      "PlotKind": {
        "description": "What an output draws as.",
        "enum": [
          "line",
          "line_breaks",
          "step",
          "step_breaks",
          "step_diamonds",
          "histogram",
          "cross",
          "area",
          "area_breaks",
          "columns",
          "circles",
          "char",
          "arrow",
          "candle",
          "bar",
          "bgcolor",
          "barcolor",
          "marker",
          "levels"
        ],
        "type": "string"
      },
      "PlotStats": {
        "description": "`first` is the time of the first bar not na; `last` the last bar's value, None when na.",
        "properties": {
          "first": {
            "description": "The time of the first bar where the plot is not na; `null` if none.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "last": {
            "description": "The last bar's value; `null` when it is na.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "max": {
            "description": "The greatest value over the bars; `null` when every bar is na.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "min": {
            "description": "The least value over the bars; `null` when every bar is na.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "na": {
            "description": "Bars where the plot is na.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "description": "The plot's name.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "na",
          "first",
          "min",
          "max",
          "last"
        ],
        "type": "object"
      },
      "Plugin": {
        "description": "A plugin (`crate::plugin`, the registry of the one seam), seated or\nrefused.",
        "properties": {
          "claims": {
            "description": "The paths it claims.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "enabled": {
            "description": "Read per request.",
            "type": "boolean"
          },
          "free": {
            "description": "Whether its data costs nothing.",
            "type": "boolean"
          },
          "id": {
            "description": "Its manifest's id.",
            "type": "string"
          },
          "indicators": {
            "description": "The names of its indicators.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kind": {
            "$ref": "#/components/schemas/PluginKind"
          },
          "layers": {
            "description": "Its `[[ui.layers]]`: chart layers, each a definition `add_indicator`\ntakes.",
            "items": {
              "$ref": "#/components/schemas/PluginLayer"
            },
            "type": "array"
          },
          "mark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginMark"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its logo; `null` without one."
          },
          "name": {
            "description": "Its manifest's name.",
            "type": "string"
          },
          "nodes": {
            "description": "The paths of its nodes.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "products": {
            "description": "A process plugin's own data products.",
            "items": {
              "$ref": "#/components/schemas/PluginProduct"
            },
            "type": "array"
          },
          "publisher": {
            "description": "Who published it, on an installed one.",
            "type": "string"
          },
          "reason": {
            "description": "Why it is not enabled; `null` while it is.",
            "type": [
              "string",
              "null"
            ]
          },
          "sandbox": {
            "description": "The sandbox its process runs in, on a process plugin.",
            "type": "string"
          },
          "skill": {
            "description": "Its skill fragments.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "$ref": "#/components/schemas/PluginSource"
          },
          "terms": {
            "description": "Its vendor's terms, where its manifest states them.",
            "type": "string"
          },
          "ui": {
            "$ref": "#/components/schemas/PluginUi",
            "description": "Present where its manifest declares `[ui]`."
          },
          "verbs": {
            "items": {
              "$ref": "#/components/schemas/PluginVerb"
            },
            "type": "array"
          },
          "version": {
            "description": "Its manifest's version.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "version",
          "free",
          "kind",
          "mark",
          "source",
          "enabled",
          "reason",
          "claims",
          "verbs",
          "nodes",
          "skill",
          "indicators",
          "products",
          "layers"
        ],
        "type": "object"
      },
      "PluginInstall": {
        "additionalProperties": false,
        "description": "A registry offer the user consents to install.",
        "properties": {
          "consent": {
            "description": "The offer's `digest`, the user's consent to its lines.",
            "type": "string"
          },
          "id": {
            "description": "The offer's plugin id.",
            "type": "string"
          },
          "version": {
            "description": "The offer's version.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "version",
          "consent"
        ],
        "type": "object"
      },
      "PluginKind": {
        "description": "What a plugin is for.",
        "oneOf": [
          {
            "const": "venue",
            "description": "It registers an execution arm.",
            "type": "string"
          },
          {
            "const": "data",
            "description": "Any other.",
            "type": "string"
          }
        ]
      },
      "PluginLayer": {
        "description": "A `[[ui.layers]]` row as declared, and what it needs on each class.",
        "properties": {
          "id": {
            "description": "The layer's full word, `<plugin id>.<word>`.",
            "type": "string"
          },
          "label": {
            "description": "Its name in the chart's layer list, 1 to 40 characters.",
            "type": "string"
          },
          "product": {
            "description": "One of its plugin's products with a `shape`, `<plugin id>.<name>`.",
            "type": "string"
          },
          "readiness": {
            "description": "One entry per class its product is read on, `missing` what no linked, on provider serves there; a class absent, not for it.",
            "items": {
              "description": "One class a plugin reads, and its needs no linked, on provider serves there.",
              "properties": {
                "class": {
                  "description": "The chart's instrument class.",
                  "type": "string"
                },
                "missing": {
                  "description": "Each need no linked, on provider serves at its span; empty, it is ready.",
                  "items": {
                    "description": "A need no linked, on provider serves.",
                    "properties": {
                      "product": {
                        "description": "A core product's word, or a plugin's `<id>.<name>`.",
                        "type": "string"
                      },
                      "providers": {
                        "description": "The providers that would serve it, unlinked or linked with their data off, by id; empty, none would.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "span": {
                        "description": "`history`, `live` or `now`.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "product",
                      "span",
                      "providers"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "class",
                "missing"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "renderer": {
            "description": "A stock renderer of the product's shape, or `ui/<name>.js`.",
            "type": "string"
          },
          "shader": {
            "description": "`ui/<name>.wgsl`.",
            "type": [
              "string",
              "null"
            ]
          },
          "slot": {
            "$ref": "#/components/schemas/LayerSlot",
            "default": "above",
            "description": "Where it draws."
          },
          "style": {
            "description": "Its settings, held to a product word's rules.",
            "items": {
              "$ref": "#/components/schemas/Word"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "label",
          "product",
          "renderer",
          "slot",
          "readiness"
        ],
        "type": "object"
      },
      "PluginMark": {
        "description": "A plugin's logo.",
        "properties": {
          "optical": {
            "description": "A scale that sits it level with the others; `null` for none.",
            "type": [
              "number",
              "null"
            ]
          },
          "src": {
            "description": "Its `GET /plugin/<id>/mark` path, the declared image: no token, and on\nthe phone's door its session's frame key.",
            "type": "string"
          }
        },
        "required": [
          "src",
          "optical"
        ],
        "type": "object"
      },
      "PluginPane": {
        "description": "A pane kind of a plugin.",
        "properties": {
          "icon": {
            "description": "Its icon's `GET /plugin/<id>/ui/<file>` path; `null` for none, and on an offer.",
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "description": "`<id>.<word>`.",
            "type": "string"
          },
          "label": {
            "description": "The text the window shows for it.",
            "type": "string"
          },
          "readiness": {
            "description": "One entry per class its `reads` routes' products are read on, `missing` what no linked, on provider serves there; a class absent, not for it.",
            "items": {
              "description": "One class a plugin reads, and its needs no linked, on provider serves there.",
              "properties": {
                "class": {
                  "description": "The chart's instrument class.",
                  "type": "string"
                },
                "missing": {
                  "description": "Each need no linked, on provider serves at its span; empty, it is ready.",
                  "items": {
                    "description": "A need no linked, on provider serves.",
                    "properties": {
                      "product": {
                        "description": "A core product's word, or a plugin's `<id>.<name>`.",
                        "type": "string"
                      },
                      "providers": {
                        "description": "The providers that would serve it, unlinked or linked with their data off, by id; empty, none would.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "span": {
                        "description": "`history`, `live` or `now`.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "product",
                      "span",
                      "providers"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "class",
                "missing"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "kind",
          "label",
          "icon",
          "readiness"
        ],
        "type": "object"
      },
      "PluginProduct": {
        "description": "A data product a process plugin adds, read as `GET /get/<id>.<name>`.",
        "properties": {
          "columns": {
            "description": "The columns of its rows.",
            "items": {
              "$ref": "#/components/schemas/ColumnDecl"
            },
            "type": "array"
          },
          "description": {
            "description": "What its rows hold, as its manifest says.",
            "type": "string"
          },
          "model": {
            "description": "How its `estimated` columns are computed.",
            "type": "string"
          },
          "product": {
            "description": "`<id>.<name>`.",
            "type": "string"
          },
          "shape": {
            "$ref": "#/components/schemas/ProductShape",
            "description": "Present on a feature product: what one row is."
          },
          "spans": {
            "description": "The spans its sources read it at.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "words": {
            "description": "The query words it takes beyond `symbols`, `from`, `to`, `limit`, `provider`.",
            "items": {
              "$ref": "#/components/schemas/Word"
            },
            "type": "array"
          }
        },
        "required": [
          "product",
          "description",
          "words",
          "columns",
          "spans"
        ],
        "type": "object"
      },
      "PluginRefusal": {
        "description": "A plugin's refusal, a verb's or a node's: its own code and status.",
        "properties": {
          "error": {
            "description": "What was refused, in the plugin's own code.",
            "pattern": "^[a-z_]+$",
            "type": "string"
          },
          "plugin": {
            "description": "The id of the plugin that refused.",
            "type": "string"
          },
          "reason": {
            "description": "The words that say what to change.",
            "type": "string"
          }
        },
        "required": [
          "error",
          "reason",
          "plugin"
        ],
        "type": "object"
      },
      "PluginSignIn": {
        "additionalProperties": false,
        "description": "A process plugin's OAuth sign-in on the user's own app.",
        "properties": {
          "client_id": {
            "description": "The user's app's client id.",
            "type": "string",
            "writeOnly": true
          },
          "client_secret": {
            "description": "The user's app's client secret.",
            "type": "string",
            "writeOnly": true
          },
          "plugin": {
            "description": "A plugin whose `[sign_in]` is `oauth`.",
            "type": "string"
          }
        },
        "required": [
          "plugin",
          "client_id",
          "client_secret"
        ],
        "type": "object"
      },
      "PluginSignedIn": {
        "description": "What `link/plugin/oauth` answers once a plugin's sign-in is sealed.",
        "properties": {
          "provider": {
            "description": "The plugin's provider word.",
            "type": "string"
          },
          "record": {
            "description": "The record the sign-in is sealed under, the plugin's id.",
            "type": "string"
          }
        },
        "required": [
          "record",
          "provider"
        ],
        "type": "object"
      },
      "PluginSource": {
        "description": "How a plugin came to be seated.",
        "oneOf": [
          {
            "const": "build",
            "description": "Added by this build.",
            "type": "string"
          },
          {
            "const": "dev",
            "description": "A `TAJI_PLUGINS` one.",
            "type": "string"
          },
          {
            "const": "installed",
            "description": "Installed from the registry.",
            "type": "string"
          }
        ]
      },
      "PluginUi": {
        "description": "What a plugin's window half adds.",
        "properties": {
          "frame": {
            "description": "Its document's path.",
            "type": "string"
          },
          "items": {
            "description": "Rows in a host menu.",
            "items": {
              "$ref": "#/components/schemas/UiItem"
            },
            "type": "array"
          },
          "name": {
            "description": "Its manifest's name.",
            "type": "string"
          },
          "panes": {
            "description": "Its `[[ui.panes]]`.",
            "items": {
              "$ref": "#/components/schemas/PluginPane"
            },
            "type": "array"
          },
          "reads": {
            "description": "The products its frames may get and stream: its own, then its `[grants] reads`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "frame",
          "name",
          "panes",
          "items",
          "reads"
        ],
        "type": "object"
      },
      "PluginVerb": {
        "description": "A route a plugin adds.",
        "properties": {
          "answers": {
            "$ref": "#/components/schemas/Answers",
            "description": "`direct` its 200 holds the answer; `changes` a 202 names the node whose `changed` frame carries it."
          },
          "description": {
            "description": "What it does, as its manifest says.",
            "type": "string"
          },
          "held": {
            "description": "Waits out a trading boot in flight before it runs; present only when true.",
            "type": "boolean"
          },
          "name": {
            "description": "The tool the bridge derives; absent, a route with no agent tool.",
            "type": "string"
          },
          "route": {
            "description": "Its segments under the plugin's claims; `{name}` binds one.",
            "type": "string"
          },
          "schema": {
            "$ref": "#/components/schemas/Schema",
            "description": "The JSON Schema of its body."
          },
          "scopes": {
            "description": "The tokens that may call it.",
            "items": {
              "$ref": "#/components/schemas/Scope"
            },
            "type": "array"
          }
        },
        "required": [
          "route",
          "description",
          "schema",
          "answers",
          "scopes"
        ],
        "type": "object"
      },
      "Plugins": {
        "description": "Every plugin, seated or refused, in the build's board order.",
        "items": {
          "$ref": "#/components/schemas/Plugin"
        },
        "type": "array"
      },
      "Point": {
        "description": "One point of the cumulative `pnl` curve.",
        "properties": {
          "at": {
            "description": "UTC seconds of the closed trade.",
            "format": "int64",
            "type": "integer"
          },
          "pnl": {
            "description": "The cumulative `pnl` through that trade.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "at",
          "pnl"
        ],
        "type": "object"
      },
      "Pointer": {
        "description": "The mark the agent asked the window to draw, at that bar and price for 30 s after `at_utc`: every member `null` until one is posted, once cleared, or once its Desk is deleted. Never recorded.",
        "properties": {
          "at_utc": {
            "description": "When it was posted, UTC seconds.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "desk": {
            "description": "The Desk's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "description": "What the mark says.",
            "type": [
              "string",
              "null"
            ]
          },
          "pane": {
            "description": "The pane it is drawn on.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price": {
            "description": "The price pointed at.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "time": {
            "description": "The bar's time, UTC seconds.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "desk",
          "pane",
          "time",
          "price",
          "label",
          "at_utc"
        ],
        "type": "object"
      },
      "Pointing": {
        "additionalProperties": false,
        "description": "Where the agent points on the user's chart; it replaces the last point.\nWith no member sent it clears the point; otherwise `desk`, `time` and\n`price` are required.",
        "properties": {
          "desk": {
            "default": null,
            "description": "The Desk's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "default": null,
            "description": "At most 80 characters.",
            "maxLength": 80,
            "type": [
              "string",
              "null"
            ]
          },
          "pane": {
            "default": null,
            "description": "The pane's id; absent is the Desk's chart pane.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "price": {
            "default": null,
            "description": "The price pointed at.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "time": {
            "default": null,
            "description": "UTC seconds.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PopupRect": {
        "description": "The popup's rectangle over the canvas in px: its left `x` and top `y` from the canvas's corner, its width `w` and height `h`. The window holds it inside the canvas when it draws it.",
        "properties": {
          "h": {
            "description": "The height.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "w": {
            "description": "The width.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "x": {
            "description": "From the canvas's left edge.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "y": {
            "description": "From the canvas's top edge.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "x",
          "y",
          "w",
          "h"
        ],
        "type": "object"
      },
      "PopupRectAsk": {
        "additionalProperties": false,
        "description": "The popup's rectangle over the canvas in px: its left `x` and top `y` from the canvas's corner, its width `w` and height `h`. The window holds it inside the canvas when it draws it.",
        "properties": {
          "h": {
            "description": "The height.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "w": {
            "description": "The width.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "x": {
            "description": "From the canvas's left edge.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "y": {
            "description": "From the canvas's top edge.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "x",
          "y",
          "w",
          "h"
        ],
        "type": "object"
      },
      "Position": {
        "description": "One row of the book: a symbol held, its cost and what it is worth.",
        "properties": {
          "as_of": {
            "description": "When `mark` is as of, an ISO 8601 UTC time: a closed bar's end, a forming bar's start, the store's newest bar with no live feed, or the venue read or quote that priced it. `null` with no mark.",
            "type": [
              "string",
              "null"
            ]
          },
          "basis": {
            "description": "What the open position cost; `null` on a lot whose basis Taji cannot state (see `day.unpriced`).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "day_pnl": {
            "description": "The row's part of `day.pnl`: what today's executions on the symbol `closed`, what the row made today, and today's `fee_rows` naming the symbol. `null` where the row has no mark or multiplier, or a part held into the day has no prior close; a symbol closed flat today has no row, so its part is in `day.pnl` alone. A coin's today starts at 16:00 ET of the previous NYSE session's date.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "desk_id": {
            "description": "The Desk whose seat owns it; `null` on a human, agent or venue-held row.",
            "type": [
              "string",
              "null"
            ]
          },
          "item": {
            "description": "The instrument as an item (`equity:AAPL`).",
            "type": "string"
          },
          "liveness": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarkState"
              },
              {
                "type": "null"
              }
            ],
            "description": "`delayed` off a feed that states a lag, the venue's position read or the refresh pass's quote; `stale` five minutes past a feed's lag or off the store; else `live`."
          },
          "mark": {
            "description": "A held non-option symbol's newest 1m close off the hub whether or not a pane shows it, or a held option's mid off the newest uncrossed tick of its contract's `quotes` stream (the one side quoted, else), while it is not `stale`; else the venue's current price off its last position read; else a held option's mid off the refresh pass's quote; else that stale close. Never a fill's price; `null` where nothing priced it.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "net": {
            "description": "Signed, long positive.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "option": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeldOption"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` off an option contract (a future option's included)."
          },
          "owner": {
            "description": "Who opened it: `human`, `agent:<id>` or `seat:<desk>/<name>`; a seat's claim, else the order of the first fill of ours since the row was last flat or flipped. `null` on a venue-held row or one no fill of ours opened.",
            "type": [
              "string",
              "null"
            ]
          },
          "pct": {
            "description": "`(mark − basis) / basis × 100`, signed by the side held.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "pnl_per_point": {
            "description": "`net × multiplier`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "stopped": {
            "description": "The quantity its stops cover, never above `net`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "stops": {
            "description": "Every stop over it: each working stop or stop-limit on the closing side, ours or one the venue works that Taji did not place, each stop leg of a bracket of ours whose entry filled and whose exits the venue holds, and each stop level Taji holds itself.",
            "items": {
              "$ref": "#/components/schemas/Stop"
            },
            "type": "array"
          },
          "symbol": {
            "description": "The instrument's id, the book's key for marks and feeds.",
            "type": "string"
          },
          "tick": {
            "description": "The increment at the mark off Taji's table; `null` where it states none (a coin's).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "ticks": {
            "description": "`(mark − basis) / tick`, signed by the side held.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "unconfirmed": {
            "description": "A venue-held row an unresolved order or intent of Taji's names (an order lost while Taji was down, its fill not tied back); `false` once it is tied back, the venue lists that order finished unfilled, or the claim lapses at the next session open.",
            "type": "boolean"
          },
          "unrealized": {
            "description": "In dollars on the fills' multiplier; `null` where it is not known.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "venue_held": {
            "description": "The venue holds it and Taji did not place it.",
            "type": "boolean"
          }
        },
        "required": [
          "symbol",
          "item",
          "net",
          "basis",
          "venue_held",
          "unconfirmed",
          "mark",
          "unrealized",
          "day_pnl",
          "pct",
          "ticks",
          "pnl_per_point",
          "tick",
          "as_of",
          "liveness",
          "desk_id",
          "owner",
          "stopped",
          "stops",
          "option"
        ],
        "type": "object"
      },
      "PositionAct": {
        "additionalProperties": false,
        "description": "What `positions/<symbol>/{close,reverse}`'s sender says of the act.",
        "properties": {
          "expect": {
            "default": null,
            "description": "The signed net the sender was shown (`100` long 100, `-1` short 1): 409 `moved`, `<symbol> on <acct> is now <net>, not <expect> as shown; nothing was sent`, when the position's is not it as the act is sent (after any approval), nothing withdrawn. The agent's act parked for approval with none is parked with the net as it reads then.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "expires_at": {
            "default": null,
            "description": "As [`DraftPlacing`]'s.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PositionGroup": {
        "description": "One group of an account's positions.",
        "properties": {
          "cost": {
            "description": "Dollars: each member's basis × qty × multiplier, summed; `null` where any member's input is.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "day_pnl": {
            "description": "Dollars: each member's row's `day_pnl` pro rata to the part it holds; `null` where any member's input is.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "greeks": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Greeks"
              },
              {
                "type": "null"
              }
            ],
            "description": "Each option member's per-share greeks × qty × multiplier, a share member's qty in delta; `null` where any option member's is."
          },
          "id": {
            "description": "Names the group until its next change.",
            "type": "string"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/GroupMember"
            },
            "type": "array"
          },
          "name": {
            "description": "The preset's name, else `Custom`.",
            "type": "string"
          },
          "preset": {
            "description": "The strategy preset the members are `qty` copies of; `null` where none is.",
            "type": [
              "string",
              "null"
            ]
          },
          "qty": {
            "description": "Combos of the preset; `null` without a preset.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "underlying": {
            "description": "The members' underlying as an item (`equity:SPY`).",
            "type": "string"
          },
          "unrealized": {
            "description": "`value − cost`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "value": {
            "description": "Dollars: each member's mark × qty × multiplier, summed; `null` where any member's input is.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "underlying",
          "preset",
          "name",
          "qty",
          "members",
          "cost",
          "value",
          "unrealized",
          "day_pnl",
          "greeks"
        ],
        "type": "object"
      },
      "PositionIntentEffect": {
        "description": "Whether an order opens a position or closes one: `Open` on a sell is a\nshort, `Close` on a buy a cover.",
        "enum": [
          "Open",
          "Close"
        ],
        "type": "string"
      },
      "PositionSide": {
        "description": "`long` profits above the entry (target above, stop below); `short` profits below it (target below, stop above).",
        "enum": [
          "long",
          "short"
        ],
        "type": "string"
      },
      "PositionV1": {
        "additionalProperties": false,
        "description": "Long or short position — `entry` is [`Anchor::TimePrice`], `end` is\n[`Anchor::TimeOnly`] (the box's right edge).",
        "properties": {
          "end": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The box's right edge, as a time-only anchor (`{\"kind\":\"time_only\",\"time\":<utc_seconds>}`), later than `entry`'s time."
          },
          "entry": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The box's left edge and the entry price, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`)."
          },
          "side": {
            "$ref": "#/components/schemas/PositionSide",
            "description": "`long` or `short`; fixed once drawn."
          },
          "stop": {
            "description": "The stop price, in the symbol's quote currency: below the entry for a long, above it for a short.",
            "format": "double",
            "type": "number"
          },
          "target": {
            "description": "The target price, in the symbol's quote currency: above the entry for a long, below it for a short.",
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "side",
          "entry",
          "end",
          "stop",
          "target"
        ],
        "type": "object"
      },
      "Predicate": {
        "description": "How a rule compares the watched value with its threshold: `Lt` below,\n`Lte` at or below, `Gt` above, `Gte` at or above.",
        "enum": [
          "Lt",
          "Lte",
          "Gt",
          "Gte"
        ],
        "type": "string"
      },
      "Prefer": {
        "description": "The standing answer to \"which account, which provider\", as `link/prefer` writes it.",
        "properties": {
          "data": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "description": "Each data class (`equity`, `option`, `future`, `index`) and the user's order of sources, each a provider's word or a handle; `[]` leaves it to the hub's rule.",
            "type": "object"
          },
          "orders": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Each orderable class and its account: `intelligent` (the router's rule) or a handle off `link.accounts`.",
            "type": "object"
          },
          "routing": {
            "$ref": "#/components/schemas/Routing"
          }
        },
        "required": [
          "data",
          "orders",
          "routing"
        ],
        "type": "object"
      },
      "Preference": {
        "additionalProperties": false,
        "description": "The standing per-class answer to \"which account, which provider\", or\nwhether the router may choose at all.",
        "properties": {
          "class": {
            "default": null,
            "description": "A class word, that half's (`orders` has no `index`); read for every `kind` but `routing`.",
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "description": "`orders`, `data` or `routing`; any other is 409 `kind`.",
            "type": "string"
          },
          "value": {
            "$ref": "#/components/schemas/PreferenceValue",
            "description": "What the class, or the router, is set to."
          }
        },
        "required": [
          "kind",
          "value"
        ],
        "type": "object"
      },
      "PreferenceValue": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ],
        "description": "For `orders` `\"intelligent\"` or a handle off `link.accounts`; for `data` a\nlist, each a data provider's wire word or a handle, `[]` the hub's rule\nalone; for `routing` `auto` or `explicit`."
      },
      "Preferred": {
        "description": "What `link/prefer` answers: the node and the preference as it stands.",
        "properties": {
          "node": {
            "description": "The path of the node the verb acted on.",
            "type": "string"
          },
          "prefer": {
            "$ref": "#/components/schemas/Prefer"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the verb sent, absent where it sent none: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "node",
          "prefer"
        ],
        "type": "object"
      },
      "Preset": {
        "description": "One ready-made option setup of the Strategy builder.",
        "properties": {
          "finder": {
            "description": "One of the Strategy finder's types.",
            "type": "boolean"
          },
          "group": {
            "$ref": "#/components/schemas/Group",
            "description": "The builder's group: `directional`, `income`, `volatility`, `neutral` or `hedging`."
          },
          "id": {
            "description": "The preset's key, `long_call`.",
            "type": "string"
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/TemplateLeg"
            },
            "type": "array"
          },
          "name": {
            "description": "The builder's label, `Long Call`.",
            "type": "string"
          },
          "outlook": {
            "$ref": "#/components/schemas/Outlook",
            "description": "The view it expresses: `bullish`, `slightly_bullish`, `bearish`, `slightly_bearish`, `either_direction`, `range_bound` or `near_strike`."
          }
        },
        "required": [
          "id",
          "name",
          "group",
          "outlook",
          "finder",
          "legs"
        ],
        "type": "object"
      },
      "PresetList": {
        "description": "A ready-made setup alone, with no chain to lay it on.",
        "properties": {
          "presets": {
            "description": "Every ready-made setup, as leg templates in widths from the strike nearest spot.",
            "items": {
              "$ref": "#/components/schemas/Preset"
            },
            "type": "array"
          }
        },
        "required": [
          "presets"
        ],
        "type": "object"
      },
      "Presets": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PresetList"
          },
          {
            "$ref": "#/components/schemas/LaidPresets"
          }
        ],
        "description": "The ready-made option setups: bare, or with `symbols` laid on a chain."
      },
      "Preview": {
        "description": "One preview: the venue's estimate, and Taji's — the fill [`fill::judge`]\nreads, the spread's net and natural (what crosses it), its payoff at\nexpiry, the contract's facts, and `notional` the order's size at the last\nclose. `warnings` are the venue's lines verbatim, then Taji's.",
        "properties": {
          "contract": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Facts"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's facts as `chains` rows carry them, `Facts::table`'s under the multiplier the venue states (a spread's its legs' one stated multiplier, and the earliest leg's `expiry`)."
          },
          "feed": {
            "default": null,
            "description": "Which of the provider's feeds quoted `net`, as a `spread:` quote names it; `null` for a provider with\none feed, or no quote.",
            "type": [
              "string",
              "null"
            ]
          },
          "fill": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FillPreview"
              },
              {
                "type": "null"
              }
            ],
            "description": "How [`fill::judge`], the rule the sim fills by, reads the order on the newest closed 1m bar as if placed at its open (the store's, else the bars `get/bars` would answer); `null` for an OCO or where no provider answers bars, a fact beside the venue's and never a refusal."
          },
          "greeks": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpreadGreeks"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A spread's legs' figures off their quoted rows; `null` on one contract\nor a refused net. Taji models no greek, theoretical value or probability."
          },
          "natural": {
            "description": "`net`'s `ask`, what crosses it now.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "net": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NetQuote"
              },
              {
                "type": "null"
              }
            ],
            "description": "The legs' net as a `spread:` quote answers it."
          },
          "notional": {
            "description": "The order's size at the last close.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "payoff": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Payoff"
              },
              {
                "type": "null"
              }
            ],
            "description": "At expiry in dollars for the order's `qty`, a lone option's at its limit as one leg; `current`, `what_ifs`, `probability` and `win_rate` as `options/payoff` answers them at its three default what-ifs, empty and `null` with no spot or a leg's IV; `null` where the legs' multiplier is unstated (only where Taji's table holds none: an adjusted root), or over more than one expiry."
          },
          "venue": {
            "$ref": "#/components/schemas/VenuePreview",
            "description": "The routed row's own estimate."
          },
          "warnings": {
            "description": "The venue's lines verbatim, then Taji's sentences (`multiplier unstated by <provider>: no payoff`, `no provider answers 1m bars for <symbol>: no fill`, `no net quote: <why>`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "venue",
          "fill",
          "net",
          "natural",
          "payoff",
          "contract",
          "notional",
          "warnings",
          "greeks",
          "feed"
        ],
        "type": "object"
      },
      "PreviewRefusal": {
        "description": "Why the last evaluation answered no preview.",
        "properties": {
          "error": {
            "description": "The preview route's own refusal words.",
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "Previewed": {
        "description": "What `orders/<class>/preview` answers: the route, and the routed row's preview beside it.",
        "properties": {
          "account": {
            "description": "The chosen row's handle.",
            "type": "string"
          },
          "alias": {
            "description": "The user's own name for the chosen row.",
            "type": "string"
          },
          "contract": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Facts"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's facts as `chains` rows carry them, `Facts::table`'s under the multiplier the venue states (a spread's its legs' one stated multiplier, and the earliest leg's `expiry`)."
          },
          "fee": {
            "description": "The estimated cost of this order on this row, `null` for a venue whose\nfee is not measured.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "feed": {
            "default": null,
            "description": "Which of the provider's feeds quoted `net`, as a `spread:` quote names it; `null` for a provider with\none feed, or no quote.",
            "type": [
              "string",
              "null"
            ]
          },
          "fill": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FillPreview"
              },
              {
                "type": "null"
              }
            ],
            "description": "How [`fill::judge`], the rule the sim fills by, reads the order on the newest closed 1m bar as if placed at its open (the store's, else the bars `get/bars` would answer); `null` for an OCO or where no provider answers bars, a fact beside the venue's and never a refusal."
          },
          "greeks": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpreadGreeks"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A spread's legs' figures off their quoted rows; `null` on one contract\nor a refused net. Taji models no greek, theoretical value or probability."
          },
          "held_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivateHolder"
              },
              {
                "type": "null"
              }
            ],
            "description": "`taji` for a rule naming `judge`, else the row's `capability.activate` for the order; `null` beside `refusal`."
          },
          "live": {
            "description": "Whether the chosen row trades real money.",
            "type": "boolean"
          },
          "natural": {
            "description": "`net`'s `ask`, what crosses it now.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "net": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NetQuote"
              },
              {
                "type": "null"
              }
            ],
            "description": "The legs' net as a `spread:` quote answers it."
          },
          "notional": {
            "description": "The order's size at the last close.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "payoff": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Payoff"
              },
              {
                "type": "null"
              }
            ],
            "description": "At expiry in dollars for the order's `qty`, a lone option's at its limit as one leg; `current`, `what_ifs`, `probability` and `win_rate` as `options/payoff` answers them at its three default what-ifs, empty and `null` with no spot or a leg's IV; `null` where the legs' multiplier is unstated (only where Taji's table holds none: an adjusted root), or over more than one expiry."
          },
          "refusal": {
            "description": "`<acct> does not hold <words>`; absent where the row holds them.",
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "description": "Every bound row, the chosen one included, in link order.",
            "items": {
              "$ref": "#/components/schemas/RouteVerdict"
            },
            "type": "array"
          },
          "rule": {
            "$ref": "#/components/schemas/RouteRule"
          },
          "venue": {
            "$ref": "#/components/schemas/VenuePreview",
            "description": "The routed row's own estimate."
          },
          "warnings": {
            "description": "The venue's lines verbatim, then Taji's sentences (`multiplier unstated by <provider>: no payoff`, `no provider answers 1m bars for <symbol>: no fill`, `no net quote: <why>`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "why": {
            "description": "The deciding rule's words alone.",
            "type": "string"
          }
        },
        "required": [
          "account",
          "alias",
          "live",
          "rule",
          "why",
          "fee",
          "rows",
          "venue",
          "fill",
          "net",
          "natural",
          "payoff",
          "contract",
          "notional",
          "warnings",
          "greeks",
          "feed"
        ],
        "type": "object"
      },
      "PriceLink": {
        "description": "A price set as an offset from `basis`, counted in `unit`.",
        "properties": {
          "basis": {
            "$ref": "#/components/schemas/LinkBasis"
          },
          "unit": {
            "$ref": "#/components/schemas/LinkUnit"
          }
        },
        "required": [
          "basis",
          "unit"
        ],
        "type": "object"
      },
      "PriceLinkAsk": {
        "additionalProperties": false,
        "description": "A price set as an offset from `basis`, counted in `unit`.",
        "properties": {
          "basis": {
            "$ref": "#/components/schemas/LinkBasis"
          },
          "unit": {
            "$ref": "#/components/schemas/LinkUnit"
          }
        },
        "required": [
          "basis",
          "unit"
        ],
        "type": "object"
      },
      "PriceRange": {
        "description": "The low and high of a span of bars.",
        "properties": {
          "high": {
            "description": "The highest high over the bars.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "low": {
            "description": "The lowest low over the bars.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "low",
          "high"
        ],
        "type": "object"
      },
      "PriceRule": {
        "description": "The symbol's price against `price`; `trigger` names what prices it (the\nvenue's default when `None`).",
        "properties": {
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "judge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Judge"
              },
              {
                "type": "null"
              }
            ],
            "description": "Taji's judge, as an `on` stop's: set, Taji holds the rule on any venue and never sends it."
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          },
          "price": {
            "description": "What the symbol's price is compared with.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "symbol": {
            "description": "The symbol whose price is watched.",
            "type": "string"
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trigger"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "symbol",
          "predicate",
          "price",
          "join"
        ],
        "type": "object"
      },
      "PriceRuleAsk": {
        "additionalProperties": false,
        "description": "The symbol's price against `price`; `trigger` names what prices it (the\nvenue's default when `None`).",
        "properties": {
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "judge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JudgeAsk"
              },
              {
                "type": "null"
              }
            ],
            "description": "Taji's judge, as an `on` stop's: set, Taji holds the rule on any venue and never sends it."
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          },
          "price": {
            "description": "What the symbol's price is compared with.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "symbol": {
            "description": "The symbol whose price is watched.",
            "type": "string"
          },
          "trigger": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trigger"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "symbol",
          "predicate",
          "price"
        ],
        "type": "object"
      },
      "PriceScale": {
        "oneOf": [
          {
            "enum": [
              "linear",
              "log",
              "percent"
            ],
            "type": "string"
          },
          {
            "const": "indexed",
            "description": "The first visible bar's close is 100.",
            "type": "string"
          }
        ]
      },
      "PricedBars": {
        "description": "A bars dry run's price of one uncovered item. Members in name order, as [`PricedProduct`]'s.",
        "properties": {
          "budget_usd": {
            "description": "The device's data budget.",
            "type": "string"
          },
          "cached": {
            "description": "Always `false`: no stored span covers the ask.",
            "type": "boolean"
          },
          "cost_usd": {
            "description": "What the provider quotes for this item.",
            "type": "string"
          },
          "dataset_id": {
            "description": "The series a buy would write.",
            "type": "string"
          },
          "provider": {
            "description": "The provider that would answer.",
            "type": "string"
          },
          "spent_usd": {
            "description": "What the pull log and the buys held before this one have spent.",
            "type": "string"
          }
        },
        "required": [
          "budget_usd",
          "cached",
          "cost_usd",
          "dataset_id",
          "provider",
          "spent_usd"
        ],
        "type": "object"
      },
      "PricedProduct": {
        "description": "A dry run's price of a product but bars. Members are in name order, as\nthe JSON map it replaced printed them.",
        "properties": {
          "budget_usd": {
            "description": "The device's data budget.",
            "type": "string"
          },
          "bytes": {
            "description": "A `holdings` quote's download size in bytes, the sum of its sets'; absent on any other product.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "class": {
            "description": "The instrument class asked, its wire word.",
            "type": [
              "string",
              "null"
            ]
          },
          "cost_usd": {
            "description": "What the provider quotes for the ask.",
            "type": "string"
          },
          "product": {
            "description": "The product word.",
            "type": "string"
          },
          "provider": {
            "description": "The provider that would answer.",
            "type": [
              "string",
              "null"
            ]
          },
          "sets": {
            "description": "A `holdings` quote's 13F sets not yet held; absent on any other product.",
            "items": {
              "$ref": "#/components/schemas/SetBytes"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "spent_usd": {
            "description": "What the pull log and the buys held before this one have spent.",
            "type": "string"
          }
        },
        "required": [
          "budget_usd",
          "class",
          "cost_usd",
          "product",
          "provider",
          "spent_usd"
        ],
        "type": "object"
      },
      "PricedSpread": {
        "description": "A `spread:` item of 1 to 4 legs of one expiry, priced and valued at expiry\nand, off Taji's option model, before it.",
        "properties": {
          "feed": {
            "description": "Which of the provider's feeds quoted the legs.",
            "type": [
              "string",
              "null"
            ]
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/QuotedLeg"
            },
            "type": "array"
          },
          "multiplier": {
            "description": "The shares one contract covers: what turns a per-share price into dollars.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "net": {
            "description": "The signed per-share price the payoff is bought at (`net`, default the\nmid); a credit is negative.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "net_cost": {
            "description": "`net` x `qty` x `multiplier` in dollars; a credit is negative.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "payoff": {
            "$ref": "#/components/schemas/Payoff"
          },
          "provider": {
            "description": "Who quoted the legs.",
            "type": "string"
          },
          "qty": {
            "description": "Combos.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "quote": {
            "$ref": "#/components/schemas/SpreadQuote"
          },
          "spot": {
            "description": "The underlying's last trade the legs were modelled at; `null` where\nnothing printed one.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider",
          "feed",
          "spot",
          "quote",
          "net",
          "net_cost",
          "qty",
          "multiplier",
          "legs",
          "payoff"
        ],
        "type": "object"
      },
      "Probability": {
        "description": "A contract's vendor probabilities of finishing in the money, out of it and\npast breakeven at expiry, off historical volatility and (`_iv`) implied.",
        "properties": {
          "be": {
            "description": "Chance of finishing past breakeven at expiry, off historical volatility.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "be_iv": {
            "description": "Chance of finishing past breakeven at expiry, off implied volatility.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "itm": {
            "description": "Chance of finishing in the money at expiry, off historical volatility.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "itm_iv": {
            "description": "Chance of finishing in the money at expiry, off implied volatility.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "otm": {
            "description": "Chance of finishing out of the money at expiry, off historical volatility.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "otm_iv": {
            "description": "Chance of finishing out of the money at expiry, off implied volatility.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "itm",
          "otm",
          "be",
          "itm_iv",
          "otm_iv",
          "be_iv"
        ],
        "type": "object"
      },
      "ProductAccess": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Access"
          },
          {
            "properties": {
              "delayed": {
                "description": "The lag in seconds.",
                "format": "int64",
                "type": "integer"
              }
            },
            "required": [
              "delayed"
            ],
            "type": "object"
          }
        ],
        "description": "A product's access: the class's words, or `{\"delayed\": late_s}` where it is late."
      },
      "ProductShape": {
        "description": "A feature product's shape: what one row is and which columns it needs.",
        "oneOf": [
          {
            "const": "values",
            "description": "Scalars at an instant.",
            "type": "string"
          },
          {
            "const": "profile",
            "description": "A by-price distribution at an instant.",
            "type": "string"
          },
          {
            "const": "cells",
            "description": "One time column of a price grid.",
            "type": "string"
          },
          {
            "const": "marks",
            "description": "One event.",
            "type": "string"
          }
        ]
      },
      "ProductSlot": {
        "description": "A plugin's own product, <id>.<name>",
        "pattern": "^[a-z0-9_-]+\\.[a-z0-9_]+$",
        "type": "string"
      },
      "Prompted": {
        "description": "What `agent/prompt` did with the question: ran it, steered the running turn with it, or queued it.",
        "properties": {
          "id": {
            "description": "The queued message's id.",
            "type": [
              "string",
              "null"
            ]
          },
          "queued": {
            "description": "`true` when it waits for the turn's end.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "steer": {
            "description": "`true` when the running turn took it as a steer.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "session"
        ],
        "type": "object"
      },
      "Proposal": {
        "description": "An agent draft's provenance line.",
        "properties": {
          "chip": {
            "description": "`PROPOSAL · agent`.",
            "type": "string"
          },
          "rationale": {
            "description": "The reason the agent gave.",
            "type": "string"
          },
          "verbatim": {
            "description": "The fixed line shown under an agent draft, not paraphrased.",
            "type": "string"
          }
        },
        "required": [
          "chip",
          "rationale",
          "verbatim"
        ],
        "type": "object"
      },
      "Protection": {
        "description": "How an unfilled bracket's second leg rests, in the words a surface may say: `unverified` is nobody asked, `supervised` a measured refusal.",
        "enum": [
          "native_pair",
          "resting_only",
          "supervised",
          "unverified"
        ],
        "type": "string"
      },
      "ProtectionCapability": {
        "description": "The protection axis, per asset class -- the facts the residency tier\nderivation reads, plus the one the supervision loop will. Declared, never\nprobed.\n`BracketNative` beside `bracket_depth` None/Some(0) is a MALFORMED declaration:\nrepresentable on purpose -- [`crate::residency::tier`]'s ordered match\ncompiles it to SUPERVISED-ONLY rendering Unverified. No validation here.",
        "properties": {
          "bracket_depth": {
            "default": null,
            "description": "Native protective pairs per position; a FLOOR where the ceiling is\nunverified — under-declaring supervises more, the safe direction.\nRead for POSITION-anchored plans only: an Order-anchored plan's pairs are\nper entry order, one each, so there is no per-position ceiling to\nexhaust ([`crate::residency::compile`]).",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "duplicate_protective_ok": {
            "$ref": "#/components/schemas/Tri",
            "default": "Unverified",
            "description": "May two protective orders over the same shares coexist, briefly -- the\nfact a supervision loop needs before it routes an exit under a\nfull-quantity resident stop."
          },
          "native_bracket": {
            "$ref": "#/components/schemas/NativeBracket",
            "default": "Unverified"
          },
          "oco": {
            "default": false,
            "description": "Does a fill on one leg cancel the other, AT THE VENUE.",
            "type": "boolean"
          },
          "resting_protective": {
            "$ref": "#/components/schemas/RestingProtective",
            "default": "Unverified",
            "description": "Will the venue hold a standalone resting protective? `Yes` asserts\nUNCONDITIONAL support: every position of this asset class -- every\nstructure (single- or multi-leg), every direction (long or short),\nevery session the venue trades, affirmatively established. A venue whose\nsupport is conditional declares `Scoped` and says in what, which the\nresidency compiler resolves per tranche; a venue nobody asked stays\n`Unverified`. Declaring a qualified `Yes` here makes the residency\ncompiler seat protectives the venue refuses, and the honesty surface lie\nabout crash protection."
          }
        },
        "required": [
          "native_bracket",
          "bracket_depth",
          "oco",
          "resting_protective",
          "duplicate_protective_ok"
        ],
        "type": "object"
      },
      "ProtectiveScope": {
        "description": "The four condition axes venues were measured to differ on -- a CLOSED set.\nNO `Default` impl, NO `#[non_exhaustive]`, NO `#[serde(default)]` on any\nfield. That is the enforcement mechanism: a new condition axis is a new\nfield, every declaration literal fails to compile, every venue re-attests.\nA partial scope on the wire fails deserialization loudly rather than\nwidening a `Yes`.",
        "properties": {
          "direction": {
            "$ref": "#/components/schemas/DirectionScope"
          },
          "entry_window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EntryWindowEt"
              },
              {
                "type": "null"
              }
            ],
            "description": "`None` = new protectives may be entered any time the venue is open."
          },
          "sessions": {
            "$ref": "#/components/schemas/SessionSet",
            "description": "Sessions in which a SEATED **standalone** protective is executable at\nthe venue. Gates executability, never seating (a dormant stop rests).\nNative-pair seats do NOT read this field -- a bracket's session rule is\na property of the ORDER CLASS, and they take the residency compiler's\nregular-only floor instead."
          },
          "structure": {
            "$ref": "#/components/schemas/StructureScope"
          }
        },
        "required": [
          "direction",
          "structure",
          "sessions",
          "entry_window"
        ],
        "type": "object"
      },
      "ProvenanceRow": {
        "anyOf": [
          {
            "description": "A series the hub bought off a provider.",
            "properties": {
              "cost_usd": {
                "description": "What its pulls cost, dollars as a decimal string.",
                "type": "string"
              },
              "dataset_id": {
                "description": "The catalog id: `bars:<provider>:<SYMBOL>:<1m|D>:<adjustment>`.",
                "type": "string"
              },
              "fetched_at_utc": {
                "description": "The newest pull's UTC second.",
                "format": "int64",
                "type": "integer"
              },
              "fetches": {
                "description": "Each answered pull, with its cost.",
                "items": {
                  "$ref": "#/components/schemas/Fetch"
                },
                "type": "array"
              },
              "origin": {
                "const": "provider",
                "description": "`provider`.",
                "type": "string"
              },
              "provider": {
                "description": "The provider's wire word.",
                "pattern": "^[a-z0-9_-]+$",
                "type": "string"
              },
              "tier": {
                "description": "Which tier the price came off, `plan` or `usage`; `null` where the provider has none or its probe never answered.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "vendor_dataset": {
                "description": "The provider's own name for the dataset, `null` where it has none.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "cost_usd",
              "dataset_id",
              "fetched_at_utc",
              "fetches",
              "origin",
              "provider",
              "tier",
              "vendor_dataset"
            ],
            "type": "object"
          },
          {
            "description": "What `data/register` declared.",
            "properties": {
              "available": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Available"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "When a row becomes knowable, `null` for a `file`."
              },
              "columns": {
                "description": "The value columns in the input's order; empty for a `file`.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "cost_usd": {
                "description": "Zero: a registration costs nothing, as a decimal string.",
                "type": "string"
              },
              "dataset_id": {
                "description": "`series:<name>@<N>`.",
                "type": "string"
              },
              "fetched_at_utc": {
                "description": "The UTC second it was registered.",
                "format": "int64",
                "type": "integer"
              },
              "how": {
                "description": "How it was made, a word recorded and never executed; `null` where not given.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "kind": {
                "$ref": "#/components/schemas/DatasetKind"
              },
              "name": {
                "description": "The name it was registered under, the `<name>` of `series:<name>`.",
                "type": "string"
              },
              "origin": {
                "const": "custom",
                "description": "`custom`.",
                "type": "string"
              },
              "sha256": {
                "description": "The input file's own hash.",
                "type": "string"
              },
              "source": {
                "description": "Where the data came from, a word recorded and never executed.",
                "type": "string"
              },
              "url": {
                "description": "Where it was fetched from, a word recorded and never executed; `null` where not given.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "description": "The registration's version; the same bytes re-declared are the next.",
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "available",
              "columns",
              "cost_usd",
              "dataset_id",
              "fetched_at_utc",
              "how",
              "kind",
              "name",
              "origin",
              "sha256",
              "source",
              "url",
              "version"
            ],
            "type": "object"
          }
        ],
        "description": "A held series' provenance as a cached `fetch` answers it: the provider that\nwas paid, or the registration that was declared. Members in name order, as\nthe JSON map it replaced printed them."
      },
      "ProviderCandidate": {
        "description": "One provider that reads an item's class of bars, as a bars `status` names it.",
        "properties": {
          "basis": {
            "description": "The adjustment it answers on, a `get/bars` word.",
            "type": "string"
          },
          "provider": {
            "description": "The provider's word.",
            "type": "string"
          },
          "reason": {
            "description": "Where it does not serve: the hub's word (`not_linked`, `vault_locked`, the basis it lacks, `delayed`, `not_served`); else absent.",
            "type": "string"
          },
          "serves": {
            "description": "Whether it serves the item, timeframe and adjustment asked.",
            "type": "boolean"
          },
          "tier": {
            "description": "Its plan's access to the class's bars: `realtime`, `delayed`, `history`, `refused` or `unknown`.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "serves",
          "tier",
          "basis"
        ],
        "type": "object"
      },
      "ProviderLine": {
        "description": "A provider's line on its page.",
        "properties": {
          "about": {
            "description": "One sentence, its manifest's `about`.",
            "type": "string"
          },
          "provider": {
            "description": "The id its manifest declares.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "about"
        ],
        "type": "object"
      },
      "QuestionAction": {
        "description": "How a question is answered.",
        "oneOf": [
          {
            "const": "accept",
            "description": "Answered with `content`.",
            "type": "string"
          },
          {
            "const": "decline",
            "description": "Skipped.",
            "type": "string"
          },
          {
            "const": "cancel",
            "description": "The agent's tool aborted.",
            "type": "string"
          }
        ]
      },
      "QuestionAnswered": {
        "description": "The answer a question was given.",
        "properties": {
          "action": {
            "$ref": "#/components/schemas/QuestionAction"
          },
          "content": {
            "additionalProperties": true,
            "description": "With `accept`: the answer, keyed by the question's properties.",
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "action"
        ],
        "type": "object"
      },
      "QuestionEdit": {
        "additionalProperties": false,
        "description": "A past question asked again, the chat going on from before it.",
        "properties": {
          "at": {
            "description": "The question, 0-based, as `/ws/agent`'s `prompt`s and replayed `user_message_chunk` runs count them.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "mentions": {
            "description": "As `prompt`'s.",
            "items": {
              "$ref": "#/components/schemas/Mention"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          },
          "text": {
            "description": "The question asked again; not blank.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "at",
          "text"
        ],
        "type": "object"
      },
      "QuestionTiming": {
        "description": "When a question asked mid-turn lands.",
        "enum": [
          "now",
          "next"
        ],
        "type": "string"
      },
      "QueuedMessage": {
        "additionalProperties": false,
        "description": "A queued message of a chat.",
        "properties": {
          "id": {
            "description": "The queued message's id, as `prompt` and the `queue` frame name it.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "id"
        ],
        "type": "object"
      },
      "QuitAsk": {
        "additionalProperties": false,
        "description": "The body of `ui/quit`.",
        "properties": {
          "stop_exits": {
            "default": null,
            "description": "Stop what `GET /read/busy` reads `held` too; absent `false`, 409\n`holds_exits` while anything is. The `agent` token's is 403 `scope`.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Quitting": {
        "description": "What `ui/quit` answers before the process ends.",
        "properties": {
          "quit": {
            "description": "Always `true`.",
            "type": "boolean"
          }
        },
        "required": [
          "quit"
        ],
        "type": "object"
      },
      "QuoteSide": {
        "description": "The side of a quote a judge reads: `bid`, `ask` or `mid`, halfway between them.",
        "enum": [
          "bid",
          "ask",
          "mid"
        ],
        "type": "string"
      },
      "QuotedLeg": {
        "description": "One leg of a priced spread: its quoted chain row.",
        "properties": {
          "instrument": {
            "$ref": "#/components/schemas/Instrument"
          },
          "ratio": {
            "description": "How many of this leg one spread holds, the item's `buy:<ratio>:`.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "row": {
            "$ref": "#/components/schemas/ChainRow"
          },
          "side": {
            "$ref": "#/components/schemas/Side"
          },
          "spread_pct": {
            "description": "(ask - bid) / mid x 100 as a chain row's, at its column's 10 places;\n`null` without both sides.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "instrument",
          "side",
          "ratio",
          "row",
          "spread_pct"
        ],
        "type": "object"
      },
      "RangePick": {
        "additionalProperties": false,
        "description": "A chart pane's visible window, beside the window's own `pan`.",
        "properties": {
          "from": {
            "description": "The window's start time in UTC seconds (inclusive). Must be at or after the first loaded bar's time.",
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          },
          "pan": {
            "default": false,
            "description": "Whether the window's last move was a pan, the one move older history is read on: within a viewport of the oldest bar.",
            "type": "boolean"
          },
          "pane_id": {
            "description": "The numeric id of the chart pane to navigate, as learned from the chart read model.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "to": {
            "description": "The window's end time in UTC seconds (inclusive). Must be at or after `from` and at or before the last loaded bar's time. Equal to `from` shows a single bar.",
            "format": "int64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "RangeProfile": {
        "description": "A pane's volume profile over a range of its bars.",
        "properties": {
          "from": {
            "description": "The first bar's time in the range, UTC seconds; `null` over none.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VolumeProfile"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` with no bars or no volume."
          },
          "to": {
            "description": "The last bar's time in the range, UTC seconds; `null` over none.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "from",
          "to",
          "profile"
        ],
        "type": "object"
      },
      "RateLimit": {
        "description": "A rate limit: a login's requests per window, or its open streams.",
        "properties": {
          "basis": {
            "description": "Where the quota comes from: `venue` (a reply's counters seat it), `published` (the seeded quota), `learned` (a quota set at runtime on a scope seeded with none), `unbounded` or `failed_only` (only failed requests count).",
            "type": "string"
          },
          "clears_utc": {
            "description": "The Unix second `used` reaches 0, `null` at 0 and for a `cap` or `symbols`.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "debt": {
            "description": "Writes charged past the quota, so `used` may exceed `quota`.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "draws": {
            "description": "What the scope serves: `bars`, `quotes`, `depth`, `chains`, `orders`, `account`, ...",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "frees_utc": {
            "description": "The Unix second one more request is admitted, `null` when now.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "held_until_utc": {
            "description": "The Unix second the venue's hold (a 429) ends, else `null`.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "kind": {
            "description": "`rate` (a sliding window of `window_s` seconds), `cap` (streams or symbols open at once) or `symbols` (one multiplexed stream's distinct symbols now).",
            "type": "string"
          },
          "name": {
            "description": "The scope's own name, the vendor's word for the budget or cap (`quotes`, `orders`).",
            "type": "string"
          },
          "quota": {
            "description": "`null` where nothing bounds it now.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "used": {
            "description": "Requests spent in the window for a `rate`; streams or symbols open now for a `cap` or `symbols`.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "window_s": {
            "description": "Seconds in a `rate` window, `null` for a `cap` or `symbols`.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "kind",
          "draws",
          "used",
          "quota",
          "window_s",
          "basis",
          "frees_utc",
          "clears_utc",
          "held_until_utc",
          "debt"
        ],
        "type": "object"
      },
      "RateLimits": {
        "description": "Every login's rate scopes.",
        "properties": {
          "logins": {
            "description": "One row per login holding a rate scope this run, by provider then login; a key unlinked this run stays listed until a restart.",
            "items": {
              "$ref": "#/components/schemas/LoginRateLimits"
            },
            "type": "array"
          }
        },
        "required": [
          "logins"
        ],
        "type": "object"
      },
      "RateLimitsChanged": {
        "description": "`/ws/live`'s `rate_limits`, compared once a second: the first lists every login, each later one only the logins whose rows changed and a login gone as its row with `limits: []`.",
        "properties": {
          "logins": {
            "description": "Every login on the socket's first, then those whose rows changed or went.",
            "items": {
              "$ref": "#/components/schemas/LoginRateLimits"
            },
            "type": "array"
          },
          "type": {
            "const": "rate_limits",
            "description": "`rate_limits`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "logins"
        ],
        "type": "object"
      },
      "Reads": {
        "description": "The data products Taji reads today, off each source's `READS`.",
        "properties": {
          "history": {
            "description": "Products Taji asks of it for a span.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "live": {
            "description": "Products Taji streams from it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "more": {
            "description": "The `more` words it sends.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "realtime": {
            "description": "A now ask, answered on request.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "history",
          "live",
          "realtime",
          "more"
        ],
        "type": "object"
      },
      "Recorded": {
        "description": "The recording `ui/snapshot` wrote.",
        "properties": {
          "dir": {
            "description": "The directory it went in.",
            "type": "string"
          },
          "files": {
            "description": "What it wrote there, relative to `dir`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "dir",
          "files"
        ],
        "type": "object"
      },
      "Recording": {
        "additionalProperties": false,
        "description": "Where the app's state is recorded.",
        "properties": {
          "dir": {
            "description": "An absolute path, created if it is not there: the recording goes in it. The client is not in the app's working directory, so a relative path would land somewhere neither named.",
            "type": "string"
          }
        },
        "required": [
          "dir"
        ],
        "type": "object"
      },
      "RectangleV1": {
        "additionalProperties": false,
        "description": "Rectangle — an axis-aligned box spanning two opposite corners. `a` / `b` are\n[`Anchor::TimePrice`]; the box is the min/max bounds of the two.",
        "properties": {
          "a": {
            "$ref": "#/components/schemas/Anchor",
            "description": "One corner, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`). The rectangle is the axis-aligned bounding box of the two corners, so corner order does not matter."
          },
          "b": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The opposite corner, as a time/price anchor (same shape as `a`)."
          }
        },
        "required": [
          "a",
          "b"
        ],
        "type": "object"
      },
      "RedirectHanded": {
        "description": "What `link/venue/redirect` answers: the pasted URL was handed to the sign-in in flight.",
        "properties": {
          "redirect": {
            "description": "Always `true`.",
            "type": "boolean"
          }
        },
        "required": [
          "redirect"
        ],
        "type": "object"
      },
      "RefreshFailure": {
        "description": "A refresh of the venue's state that failed.",
        "properties": {
          "at": {
            "description": "An ISO 8601 UTC time.",
            "type": "string"
          },
          "why": {
            "description": "The failure's words.",
            "type": "string"
          }
        },
        "required": [
          "at",
          "why"
        ],
        "type": "object"
      },
      "Refusal": {
        "description": "Every refusal's body: further members are the ones its row names.",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Code",
            "description": "What was refused, as a code."
          },
          "reason": {
            "description": "The words that say what to change.",
            "type": "string"
          }
        },
        "required": [
          "error",
          "reason"
        ],
        "type": "object"
      },
      "RefusalCode": {
        "description": "One refusal a route may answer.",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/Code",
            "description": "Its `error`."
          },
          "status": {
            "description": "Its HTTP status.",
            "format": "uint16",
            "maximum": 65535,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "status",
          "code"
        ],
        "type": "object"
      },
      "RefusedRows": {
        "anyOf": [
          {
            "items": {
              "$ref": "#/components/schemas/RouteVerdict"
            },
            "type": "array"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ],
        "description": "The rows a route's refusal names."
      },
      "Registered": {
        "description": "What the register answers, the same for a fresh write and for bytes already\nheld: the id a reader pins, and the span it covers.",
        "properties": {
          "dataset_id": {
            "description": "The id a reader pins.",
            "type": "string"
          },
          "from_utc": {
            "description": "The first row's time, UTC seconds.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "rows": {
            "description": "Rows held.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "sha256": {
            "description": "The content's hash.",
            "type": [
              "string",
              "null"
            ]
          },
          "to_utc": {
            "description": "The last row's time, UTC seconds.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "version": {
            "description": "The name's version; a changed content takes the next.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "dataset_id",
          "sha256",
          "rows",
          "from_utc",
          "to_utc",
          "version"
        ],
        "type": "object"
      },
      "Registration": {
        "additionalProperties": false,
        "description": "A table or a file the agent declares as its own data.",
        "properties": {
          "available": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AvailableAsk"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When a row becomes knowable; required for `bars` and `series`, with no default."
          },
          "columns": {
            "default": null,
            "description": "The value columns to keep, else every column but the timestamp and the availability one.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "desk_id": {
            "description": "The Desk the registration is made against: a relative `path` is read from its directory.",
            "type": "string"
          },
          "how": {
            "default": null,
            "description": "How it was made, a word: recorded, never executed.",
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/DatasetKind",
            "description": "What the dataset is: `bars` (the five bar columns), `series` (any numbers) or a `file`, hashed and never served."
          },
          "name": {
            "description": "The dataset's name, 1 to 64 of `[a-z0-9_-]`; the `series:<name>` item.",
            "type": "string"
          },
          "path": {
            "description": "The file: absolute, or relative to the desk (one that climbs out is refused).",
            "type": "string"
          },
          "source": {
            "description": "Where the data came from, a word: recorded, never executed.",
            "type": "string"
          },
          "url": {
            "default": null,
            "description": "Where it was fetched from, a word: recorded, never executed.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "desk_id",
          "name",
          "kind",
          "path",
          "source"
        ],
        "type": "object"
      },
      "Regrouped": {
        "description": "What `groups/{create,update,split,merge}` answer once the holder has.",
        "properties": {
          "ids": {
            "description": "The ids of the groups the edit left; `[]` where it left none.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "Rekeying": {
        "additionalProperties": false,
        "description": "Every record re-sealed under a new backup password.",
        "properties": {
          "current": {
            "description": "The backup password now; blank is 400, absent or `null` 409 `wrong password`.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          },
          "password": {
            "description": "The new backup password; blank is 400.",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "password"
        ],
        "type": "object"
      },
      "Relayed": {
        "description": "Another route's answer, relayed as that route gave it: its own row declares its type."
      },
      "Release": {
        "description": "A newer release than this kernel, as the update page names it.",
        "properties": {
          "version": {
            "description": "Its version, three dotted numbers.",
            "type": "string"
          }
        },
        "required": [
          "version"
        ],
        "type": "object"
      },
      "RemoteDevice": {
        "description": "A phone a passkey paired.",
        "properties": {
          "id": {
            "description": "The kernel's id for it, 16 hex characters.",
            "type": "string"
          },
          "name": {
            "description": "The name the phone gave.",
            "type": "string"
          },
          "paired_utc": {
            "description": "UTC seconds it paired at.",
            "format": "int64",
            "type": "integer"
          },
          "seen_utc": {
            "description": "UTC seconds of its passkey's last sign-in.",
            "format": "int64",
            "type": "integer"
          },
          "sessions": {
            "description": "Its open sessions, newest sign-in first.",
            "items": {
              "$ref": "#/components/schemas/RemoteSession"
            },
            "type": "array"
          },
          "synced": {
            "description": "The passkey's BS flag: it also opens Taji from that account's other devices.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "paired_utc",
          "seen_utc",
          "synced",
          "sessions"
        ],
        "type": "object"
      },
      "RemoteForget": {
        "additionalProperties": false,
        "description": "`POST /verb/remote/forget`'s body.",
        "properties": {
          "device": {
            "description": "The phone's id, as `GET /read/remote` lists it.",
            "type": "string"
          }
        },
        "required": [
          "device"
        ],
        "type": "object"
      },
      "RemoteNode": {
        "description": "`GET /read/remote`: the arm and the phones paired through it; never a code.",
        "properties": {
          "devices": {
            "items": {
              "$ref": "#/components/schemas/RemoteDevice"
            },
            "type": "array"
          },
          "error": {
            "description": "Why the arm last failed, its sentence or else its refusal word; `null` once it links.",
            "type": [
              "string",
              "null"
            ]
          },
          "expires_utc": {
            "description": "UTC seconds the arm's sign-in lapses at, where it does.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "host": {
            "description": "The public host the phone opens, once linked.",
            "type": [
              "string",
              "null"
            ]
          },
          "open": {
            "description": "A page the user opens to go on linking (a sign-in, a consent), while `linking`.",
            "type": [
              "string",
              "null"
            ]
          },
          "owner": {
            "description": "The account the arm signed in as, once linked.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "Where the arm stands: `unset` before any link, `linking`, `on` serving the\nphone's door, `reconnecting` while the arm starts its serving again (the\ndoor kept open, `error` why), `off` once its serving ended.",
            "enum": [
              "unset",
              "linking",
              "off",
              "on",
              "reconnecting"
            ],
            "type": "string"
          },
          "via": {
            "description": "The arm's name (`Tailscale`).",
            "type": "string"
          }
        },
        "required": [
          "state",
          "via",
          "error",
          "host",
          "owner",
          "expires_utc",
          "open",
          "devices"
        ],
        "type": "object"
      },
      "RemotePairCode": {
        "description": "What `POST /verb/remote/link` answers, as `channels/link` does: the live\ncode, and the QR's URL carrying it in its fragment so no log holds it.",
        "properties": {
          "hint": {
            "description": "`https://<host>/app/#pair=<code>`, what the QR carries.",
            "type": "string"
          },
          "pair": {
            "description": "The code a person types on the pairing page.",
            "type": "string"
          }
        },
        "required": [
          "pair",
          "hint"
        ],
        "type": "object"
      },
      "RemoteSession": {
        "description": "One sign-in's chain of device tokens, each step-up's inheriting it; listed while one is live.",
        "properties": {
          "agent": {
            "description": "Its sign-in's `User-Agent`, at most 256 bytes; `null` where none was sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "app": {
            "description": "It signed in from a Home Screen app, not a browser tab.",
            "type": "boolean"
          },
          "current": {
            "description": "It is the session of the token this read came with, on the phone's door; on the window's, never.",
            "type": "boolean"
          },
          "id": {
            "description": "The kernel's id for it, 16 hex characters; never a token.",
            "type": "string"
          },
          "ip": {
            "description": "Its last request's source address, as the arm told it; `null` where it told none.",
            "type": [
              "string",
              "null"
            ]
          },
          "seen_utc": {
            "description": "UTC seconds of its last request.",
            "format": "int64",
            "type": "integer"
          },
          "signed_in_utc": {
            "description": "UTC seconds of the pairing or sign-in that opened it.",
            "format": "int64",
            "type": "integer"
          },
          "via": {
            "description": "How its last request came; `null` where the arm told none.",
            "enum": [
              "internet",
              "tailnet",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "signed_in_utc",
          "seen_utc",
          "ip",
          "via",
          "app",
          "agent",
          "current"
        ],
        "type": "object"
      },
      "RemoteSignOut": {
        "additionalProperties": false,
        "description": "`POST /verb/remote/sign_out`'s body.",
        "properties": {
          "session": {
            "description": "The session's id, as `GET /read/remote` lists it.",
            "type": "string"
          }
        },
        "required": [
          "session"
        ],
        "type": "object"
      },
      "Repeat": {
        "description": "The Trigger: Once only, or Every time (at most once a minute\nwhile the condition holds).",
        "enum": [
          "once",
          "every"
        ],
        "type": "string"
      },
      "Replace": {
        "description": "Whether the venue re-prices a working equity order of each shape in place.",
        "properties": {
          "lmt": {
            "$ref": "#/components/schemas/Tri",
            "description": "A limit."
          },
          "stp": {
            "$ref": "#/components/schemas/Tri",
            "description": "A stop, `No` where no standalone stop rests at the venue."
          }
        },
        "required": [
          "lmt",
          "stp"
        ],
        "type": "object"
      },
      "Report": {
        "additionalProperties": false,
        "description": "The user's words and the agent's diagnosis of a problem or a wish.",
        "properties": {
          "desk_id": {
            "default": null,
            "description": "The Desk `tree/` is of, by its id on `GET /read/desks`; else the active one.",
            "type": [
              "string",
              "null"
            ]
          },
          "diagnosis": {
            "default": null,
            "description": "The agent's diagnosis, labelled as its own in the report.",
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/ReportKind",
            "description": "Whether the report is a problem or a wish."
          },
          "words": {
            "description": "The user's own words, verbatim; blank is 400.",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "words"
        ],
        "type": "object"
      },
      "ReportAccount": {
        "description": "One linked account as a report names it.",
        "properties": {
          "bound": {
            "description": "Whether the account's state is `bound`.",
            "type": "boolean"
          },
          "handle": {
            "description": "The account's handle, `<venue>_<paper|live>_<last four>` (`taji_sim` for the in-process book).",
            "type": "string"
          },
          "reason": {
            "description": "Why it is not bound, `null` while it is.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "handle",
          "bound",
          "reason"
        ],
        "type": "object"
      },
      "ReportEntry": {
        "description": "One row of the report list.",
        "properties": {
          "at_utc": {
            "description": "When it was written, RFC 3339 UTC.",
            "type": "string"
          },
          "bytes": {
            "description": "What its directory holds.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "The report's id, its directory's name.",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/ReportKind"
          },
          "receipt": {
            "description": "The site's receipt, `null` until `report/send` lands it.",
            "type": [
              "string",
              "null"
            ]
          },
          "sent_at": {
            "description": "When the site took it, `null` until `report/send` lands it.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "at_utc",
          "bytes",
          "sent_at",
          "receipt"
        ],
        "type": "object"
      },
      "ReportKind": {
        "description": "What a report is.",
        "enum": [
          "issue",
          "suggestion"
        ],
        "type": "string"
      },
      "ReportRecord": {
        "description": "One report as read: its `report.json` and whether it was sent.",
        "properties": {
          "accounts": {
            "description": "Each linked account's handle, whether it is bound and why not, never a secret.",
            "items": {
              "$ref": "#/components/schemas/ReportAccount"
            },
            "type": "array"
          },
          "at_utc": {
            "description": "When it was written, RFC 3339 UTC to the millisecond.",
            "type": "string"
          },
          "booted_at": {
            "description": "When this process took `taji.lock`, `null` before it has.",
            "type": [
              "string",
              "null"
            ]
          },
          "desk_id": {
            "description": "The Desk `tree/` is of, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "diagnosis": {
            "description": "The agent's diagnosis, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The report's id, its directory's name: the time it was written and three random bytes.",
            "type": "string"
          },
          "install_id": {
            "description": "This install's id, minted on first need and never rewritten.",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/ReportKind"
          },
          "os": {
            "description": "The operating system and architecture.",
            "type": "string"
          },
          "receipt": {
            "default": null,
            "description": "The site's receipt.",
            "type": [
              "string",
              "null"
            ]
          },
          "sent_at": {
            "default": null,
            "description": "When the site took it, RFC 3339 UTC to the millisecond.",
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "description": "The kernel's version.",
            "type": "string"
          },
          "words": {
            "description": "The user's own words, verbatim.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "kind",
          "at_utc",
          "words",
          "diagnosis",
          "version",
          "os",
          "install_id",
          "desk_id",
          "accounts",
          "booted_at",
          "sent_at",
          "receipt"
        ],
        "type": "object"
      },
      "ReportWritten": {
        "description": "A report written.",
        "properties": {
          "bytes": {
            "description": "Its size in bytes.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "files": {
            "description": "What it holds, relative to `path`, `report.json` first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "`<at_utc>-<6 hex>`, the directory's name under `reports/`.",
            "type": "string"
          },
          "path": {
            "description": "The directory, absolute.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "path",
          "bytes",
          "files"
        ],
        "type": "object"
      },
      "Reports": {
        "description": "Every report under the state dir, newest first, `[]` with none.",
        "items": {
          "$ref": "#/components/schemas/ReportEntry"
        },
        "type": "array"
      },
      "Repricing": {
        "additionalProperties": false,
        "description": "A working order re-priced: its entry, or with `leg` that exit of `tranche`.",
        "properties": {
          "leg": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExitKind"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "`take` or `stop`: that exit moves, absent the entry. A plan leg's order ignores it."
          },
          "live": {
            "default": null,
            "description": "The live-intent rule, per order: `true` acts on a live account, 409 `not_live` on a paper or sim one; absent or `null` is `false`, 409 `live_intent` on a live one.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "one_click": {
            "default": null,
            "description": "As [`OneClick`]'s.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "price": {
            "description": "The new price.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "tranche": {
            "default": null,
            "description": "Whose leg, absent 0; without `leg` 400 `tranche names a leg's; add leg`. A plan leg's order ignores it.",
            "format": "uint",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "price"
        ],
        "type": "object"
      },
      "RestingProtective": {
        "description": "Will the venue hold a standalone resting protective, and under what\nconditions. The scope is a variant PAYLOAD rather than a field beside the\nanswer, so \"a `Yes` without its scope\" is unrepresentable and the two can\nnever drift apart.",
        "oneOf": [
          {
            "enum": [
              "No",
              "Unverified"
            ],
            "type": "string"
          },
          {
            "const": "Yes",
            "description": "UNCONDITIONAL: every structure, every direction, every session\nAFFIRMATIVELY established, any time of day. If the session dimension is\nmerely unstated by the vendor, this is NOT `Yes` -- declare `Scoped`\nwith a session floor.",
            "type": "string"
          },
          {
            "description": "Verified support INSIDE the scope; verified refusal outside it. A scope\nnarrower than the evidence is permitted (under-claiming supervises more,\nwhich is the safe direction); wider is forbidden.",
            "properties": {
              "Scoped": {
                "$ref": "#/components/schemas/ProtectiveScope"
              }
            },
            "required": [
              "Scoped"
            ],
            "type": "object"
          }
        ]
      },
      "Retained": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/RetentionQuote"
          },
          {
            "$ref": "#/components/schemas/Handle"
          }
        ],
        "description": "What `data/cache/set` answered: the quote of a dry run, else the handle with its target written."
      },
      "Retention": {
        "additionalProperties": false,
        "description": "How far back a handle is kept.",
        "properties": {
          "dry_run": {
            "default": null,
            "description": "Answer what reaching back to `target_from` would take and write nothing.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "id": {
            "description": "A handle's `id` off `data/cache`.",
            "type": "string"
          },
          "target_from": {
            "description": "The first day to keep, `YYYY-MM-DD`: not after the handle's `held_from`, not before its `reach_from`.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "target_from"
        ],
        "type": "object"
      },
      "RetentionQuote": {
        "description": "What reaching back to `target_from` would take, nothing written.",
        "properties": {
          "bytes": {
            "description": "`sessions` x `symbols` x the rows a session takes, at the measured bytes a stored row takes.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "The handle's `id`.",
            "type": "string"
          },
          "minutes": {
            "description": "The slowest linked free source's requests to fetch that many rows; `null` where none is.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "sessions": {
            "description": "The weekdays from `target_from` to `held_from`; holidays fall inside the estimate.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "symbols": {
            "description": "The symbols the handle holds.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "symbols",
          "sessions",
          "bytes",
          "minutes"
        ],
        "type": "object"
      },
      "RiskAversion": {
        "description": "How far an algo trades price for speed.",
        "enum": [
          "get_done",
          "aggressive",
          "neutral",
          "passive"
        ],
        "type": "string"
      },
      "Root": {
        "additionalProperties": true,
        "description": "What `GET /` answers. [`RootSource::root_reply`] writes it piece by piece,\nwith no [`Value`] of the whole, so this type is its schema alone, held to\nthose bytes by `conforms`.",
        "properties": {
          "active": {
            "description": "The active Desk's id, `null` with no Desk.",
            "type": [
              "string",
              "null"
            ]
          },
          "agent": {
            "$ref": "#/components/schemas/AgentRegistration",
            "description": "`GET /read/agent` less `hands`."
          },
          "busy": {
            "$ref": "#/components/schemas/Running",
            "description": "As `GET /read/busy` reads it."
          },
          "data": {
            "$ref": "#/components/schemas/Data",
            "description": "What history is reachable."
          },
          "desk": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Node"
              },
              {
                "type": "null"
              }
            ],
            "description": "The active Desk's whole tree ([`Tree::snapshot`]), `null` with no Desk."
          },
          "desks": {
            "$ref": "#/components/schemas/Desks"
          },
          "link": {
            "$ref": "#/components/schemas/Link",
            "description": "What is linked."
          },
          "plugins": {
            "$ref": "#/components/schemas/Plugins",
            "description": "As `GET /read/plugins` reads it."
          },
          "trading": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Node"
            },
            "description": "One node per bound account keyed by handle (`taji_sim` among them), each\n`{account, orders, draft, plans, capability, fills, ticket}` as its\n`read/trading/<acct>/<path>` answers; `null` with no book and never a\ndefault row (a client picks a handle off `link.accounts`).",
            "type": [
              "object",
              "null"
            ]
          },
          "ui": {
            "$ref": "#/components/schemas/WindowState",
            "description": "The window's own state."
          },
          "update": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Release"
              },
              {
                "type": "null"
              }
            ],
            "description": "A newer release while the update page names one (three dotted numbers\ncompared as numbers; asked at boot and every 24 h, sending nothing about\nthe user, and never under `TAJI_NO_UPDATE_CHECK=1`), else `null`; framed\n`changed update` when it moves and read alone at `GET /read/update`."
          },
          "version": {
            "description": "This kernel's own (`taji::VERSION`), which every answer's head also\ncarries as `x-taji-version`.",
            "type": "string"
          }
        },
        "required": [
          "active",
          "desks",
          "ui",
          "link",
          "data",
          "trading",
          "agent",
          "desk",
          "version",
          "update",
          "busy",
          "plugins"
        ],
        "type": "object"
      },
      "RoundTrip": {
        "description": "One round trip. Decimals as text.",
        "properties": {
          "closed_at": {
            "description": "`None` while open.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "desk_id": {
            "description": "The desk of `owner`'s seat; `None` on any other owner.",
            "type": [
              "string",
              "null"
            ]
          },
          "entry_price": {
            "description": "Quantity-weighted, `None` when any part of the side is unpriced.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "exit_price": {
            "description": "Quantity-weighted over the exit side; `null` while open or when any part of the side is unpriced.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fees": {
            "description": "Σ the fills' stated fees, a positive cost, a flip's split by quantity\nbetween its two trades; `None` when none states one.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "fills": {
            "description": "Execution ids, oldest first; a flip's fill is in both trades.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The first fill's execution id; `seed:<instrument>:<at>` for a trade\nthat opened on a lot no fill moved (the anchor's seed, an adoption).",
            "type": "string"
          },
          "instrument": {
            "$ref": "#/components/schemas/Instrument"
          },
          "last_at": {
            "description": "UTC seconds of the last write to the trade's lot.",
            "format": "int64",
            "type": "integer"
          },
          "opened_at": {
            "description": "`None` on a trade opened by a lot older than the journal.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "owner": {
            "default": null,
            "description": "Who placed the first of its fills an owner is known for, as\n`projection::source_key` spells one (`human`, `agent:<id>`,\n`seat:<desk>/<name>`); `None` on a trade the venue's own fills\nalone make (placed outside Taji) and on a seed's.",
            "type": [
              "string",
              "null"
            ]
          },
          "pnl": {
            "description": "Gross, as `realized` is; `None` when a closing fill booked none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "qty": {
            "description": "The entry side's quantity.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "return_pct": {
            "description": "Percent move from `entry_price` to `exit_price`, signed so a profit is positive on a `short` too; `null` without either price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "description": "`long` or `short`.",
            "type": "string"
          },
          "symbol": {
            "description": "The instrument's id: the symbol, or the OCC-21 compact id of an option.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "symbol",
          "instrument",
          "side",
          "desk_id",
          "owner",
          "qty",
          "entry_price",
          "exit_price",
          "opened_at",
          "closed_at",
          "last_at",
          "pnl",
          "fees",
          "return_pct",
          "fills"
        ],
        "type": "object"
      },
      "RoundTrips": {
        "description": "An account's round trips, newest first by `last_at`, cut to a `limit`.",
        "properties": {
          "rows": {
            "items": {
              "$ref": "#/components/schemas/RoundTrip"
            },
            "type": "array"
          },
          "rows_total": {
            "description": "How many there were before the cut.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "rows",
          "rows_total"
        ],
        "type": "object"
      },
      "Route": {
        "description": "One route an agent can find, as `GET /read/routes` lists it.",
        "properties": {
          "doc": {
            "description": "The header cell's Answer verbatim; a chart `<tool>` row's is the tool's description, a newline, the cell's Answer; a data product's or a plugin product's then a line `Columns: <name> <type>, …`, `?` after a nullable one.",
            "type": "string"
          },
          "effect": {
            "$ref": "#/components/schemas/Effect",
            "description": "Which tool calls it; absent on a `GET` under `/ws/`, `/app/` or `/plugin/`, which no tool calls."
          },
          "method": {
            "$ref": "#/components/schemas/Method"
          },
          "plugin": {
            "description": "The id of the plugin that adds it.",
            "type": "string"
          },
          "refusals": {
            "description": "The refusals its header row names; any route may also answer the `Catalog`'s `refusals`.",
            "items": {
              "$ref": "#/components/schemas/RefusalCode"
            },
            "type": "array"
          },
          "route": {
            "description": "The path as the header table spells it (`<x>` binds a segment); a plugin verb's `{x}` is spelled `<x>`.",
            "type": "string"
          },
          "schema": {
            "$ref": "#/components/schemas/Schema",
            "description": "The input schema: a core `POST`'s JSON body with `$ref`s to `#/components/schemas/<Name>` in `GET /read/openapi`; a plugin verb's; a core data read's typed query words; a plugin product's `{symbols, from, to, limit, provider}` and its words, each `{}`."
          },
          "scopes": {
            "description": "The tokens the route admits.",
            "items": {
              "$ref": "#/components/schemas/Scope"
            },
            "type": "array"
          },
          "summary": {
            "description": "Its first clause, at most 160 chars.",
            "type": "string"
          }
        },
        "required": [
          "method",
          "route",
          "scopes",
          "summary",
          "doc",
          "refusals"
        ],
        "type": "object"
      },
      "RouteAnswer": {
        "description": "What `orders/<class>/route` answers: where the order would land, and who\non that row holds its `activate` rules.",
        "properties": {
          "account": {
            "description": "The chosen row's handle.",
            "type": "string"
          },
          "alias": {
            "description": "The user's own name for the chosen row.",
            "type": "string"
          },
          "fee": {
            "description": "The estimated cost of this order on this row, `null` for a venue whose\nfee is not measured.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "held_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivateHolder"
              },
              {
                "type": "null"
              }
            ],
            "description": "`taji` for a rule naming `judge`, else the row's `capability.activate` for the order; `null` beside `refusal`."
          },
          "live": {
            "description": "Whether the chosen row trades real money.",
            "type": "boolean"
          },
          "refusal": {
            "description": "`<acct> does not hold <words>`; absent where the row holds them.",
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "description": "Every bound row, the chosen one included, in link order.",
            "items": {
              "$ref": "#/components/schemas/RouteVerdict"
            },
            "type": "array"
          },
          "rule": {
            "$ref": "#/components/schemas/RouteRule"
          },
          "why": {
            "description": "The deciding rule's words alone.",
            "type": "string"
          }
        },
        "required": [
          "account",
          "alias",
          "live",
          "rule",
          "why",
          "fee",
          "rows"
        ],
        "type": "object"
      },
      "RouteRefusal": {
        "description": "A route's refusal as its body reads, beyond the envelope.",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Code",
            "description": "The refusal's code, such as `account`, `not_bound`, `ambiguous`, `no_route` or `account_required`."
          },
          "holders": {
            "description": "`ambiguous`'s two holders.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "reason": {
            "description": "The refusal in a sentence.",
            "type": "string"
          },
          "rows": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RefusedRows"
              },
              {
                "type": "null"
              }
            ],
            "description": "`no_route`'s verdict per row, or `account_required`'s bound handles."
          }
        },
        "required": [
          "error",
          "reason"
        ],
        "type": "object"
      },
      "RouteRule": {
        "description": "Which rule decided a route.",
        "oneOf": [
          {
            "const": "named",
            "description": "The order's `account`.",
            "type": "string"
          },
          {
            "const": "owner",
            "description": "The row that holds the order's instrument.",
            "type": "string"
          },
          {
            "const": "prefer",
            "description": "`link.prefer.orders` for the class.",
            "type": "string"
          },
          {
            "const": "auto",
            "description": "The lowest measured fee.",
            "type": "string"
          },
          {
            "const": "explicit",
            "description": "Under `link.prefer.routing: explicit`, where the choice would be the router's.",
            "type": "string"
          }
        ]
      },
      "RouteStanding": {
        "description": "A row's part in a route.",
        "oneOf": [
          {
            "enum": [
              "chosen"
            ],
            "type": "string"
          },
          {
            "const": "passed",
            "description": "It qualified and lost; `reason` says to what.",
            "type": "string"
          },
          {
            "const": "skipped",
            "description": "It cannot take the order; `reason` says why.",
            "type": "string"
          }
        ]
      },
      "RouteVerdict": {
        "description": "One bound row's part in a route: `chosen`, `passed` (it qualified and\nlost; `reason` says to what) or `skipped` (it cannot take the order;\n`reason` says why). `fee` is the row's estimate, `None` on a skipped row or\none whose fee is not measured.",
        "properties": {
          "account": {
            "description": "The row's handle.",
            "type": "string"
          },
          "alias": {
            "description": "The user's own name for the row.",
            "type": "string"
          },
          "fee": {
            "description": "The estimated cost of this order on this row, `null` on a skipped row or one whose fee is not measured.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "description": "`null` on the chosen row; a passed row's what it lost to (`account named: <acct>`, `<acct> owns it`, `link.prefer names <acct>`, `fee $0 tie: link order`, `fee $0.65 > $0`, `fee not measured`, `the sim row only when nothing else is`), a skipped row's why it cannot take the order.",
            "type": [
              "string",
              "null"
            ]
          },
          "verdict": {
            "$ref": "#/components/schemas/RouteStanding"
          }
        },
        "required": [
          "account",
          "alias",
          "verdict",
          "reason",
          "fee"
        ],
        "type": "object"
      },
      "Routing": {
        "description": "Whether the router may choose an account.",
        "oneOf": [
          {
            "const": "auto",
            "description": "The router chooses among approved rows.",
            "type": "string"
          },
          {
            "const": "explicit",
            "description": "Every unnamed choice is `account_required`.",
            "type": "string"
          }
        ]
      },
      "RoutingConsent": {
        "additionalProperties": false,
        "description": "Whether the router may choose a live row for an order that names no account.",
        "properties": {
          "approved": {
            "description": "The click is the consent; a paper or sim row takes it and stays approved.",
            "type": "boolean"
          }
        },
        "required": [
          "approved"
        ],
        "type": "object"
      },
      "Rule": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PriceRule"
          },
          {
            "$ref": "#/components/schemas/VolumeRule"
          },
          {
            "$ref": "#/components/schemas/ChangeRule"
          },
          {
            "$ref": "#/components/schemas/MarginRule"
          },
          {
            "$ref": "#/components/schemas/FillRule"
          }
        ],
        "description": "One activation rule. Untagged: its keys pick its kind, so a price rule\nwritten before the others reads as one; no kind's keys are a subset of\nanother's, so a rule missing a key is an error, never another kind."
      },
      "RuleAsk": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PriceRuleAsk"
          },
          {
            "$ref": "#/components/schemas/VolumeRuleAsk"
          },
          {
            "$ref": "#/components/schemas/ChangeRuleAsk"
          },
          {
            "$ref": "#/components/schemas/MarginRuleAsk"
          },
          {
            "$ref": "#/components/schemas/FillRuleAsk"
          }
        ],
        "description": "One activation rule. Untagged: its keys pick its kind, so a price rule\nwritten before the others reads as one; no kind's keys are a subset of\nanother's, so a rule missing a key is an error, never another kind."
      },
      "Rung": {
        "description": "The increment a price moves in from `from` up.",
        "properties": {
          "from": {
            "description": "The price from which `increment` applies, up to the next rung's.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "increment": {
            "description": "The tick: the step a price moves in on this rung.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "from",
          "increment"
        ],
        "type": "object"
      },
      "Running": {
        "description": "What Quit would stop; each `[]` with none.",
        "properties": {
          "held": {
            "description": "One line per exit, held order and walking chase Taji works itself,\nwhich stop until Taji is open again: `AAPL stop 182.50 on rh-main`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "running": {
            "description": "One name per running thing as its plugin names it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "running",
          "held"
        ],
        "type": "object"
      },
      "Scale": {
        "description": "A scale ladder: `level_size` shares at the limit, then each next level\n`increment` further off; the other fields are the venue's extended scale.",
        "properties": {
          "adjust_interval_secs": {
            "description": "Seconds between price adjustments.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "adjust_value": {
            "description": "The amount the ladder's price adjusts by every `adjust_interval_secs`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_reset": {
            "description": "The ladder restarts once all of it has filled and been taken off.",
            "type": "boolean"
          },
          "increment": {
            "description": "How far each level is from the one before it.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "init_fill_qty": {
            "description": "The initial quantity to fill, in shares.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "init_position": {
            "description": "The ladder's initial position, in shares.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "level_size": {
            "description": "Shares at the first level.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "profit_offset": {
            "description": "A filled level's profit-taking order this far off its price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "random_percent": {
            "description": "The venue adjusts the position by a random percent.",
            "type": "boolean"
          },
          "sub_level_size": {
            "description": "Each level after the first; `level_size` when `None`.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "level_size",
          "increment"
        ],
        "type": "object"
      },
      "ScaleAsk": {
        "additionalProperties": false,
        "description": "A scale ladder: `level_size` shares at the limit, then each next level\n`increment` further off; the other fields are the venue's extended scale.",
        "properties": {
          "adjust_interval_secs": {
            "description": "Seconds between price adjustments.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "adjust_value": {
            "description": "The amount the ladder's price adjusts by every `adjust_interval_secs`.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "auto_reset": {
            "description": "The ladder restarts once all of it has filled and been taken off.",
            "type": "boolean"
          },
          "increment": {
            "description": "How far each level is from the one before it.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "init_fill_qty": {
            "description": "The initial quantity to fill, in shares.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "init_position": {
            "description": "The ladder's initial position, in shares.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "level_size": {
            "description": "Shares at the first level.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "profit_offset": {
            "description": "A filled level's profit-taking order this far off its price.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "random_percent": {
            "description": "The venue adjusts the position by a random percent.",
            "type": "boolean"
          },
          "sub_level_size": {
            "description": "Each level after the first; `level_size` when `None`.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "level_size",
          "increment"
        ],
        "type": "object"
      },
      "Schedule": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Hours"
          },
          {
            "properties": {
              "days": {
                "items": {
                  "$ref": "#/components/schemas/Weekday"
                },
                "type": "array"
              },
              "from": {
                "description": "The span's start, `HH:MM`.",
                "type": "string"
              },
              "to": {
                "description": "The span's end, `HH:MM`; before `from` it runs past midnight.",
                "type": "string"
              }
            },
            "required": [
              "days",
              "from",
              "to"
            ],
            "type": "object"
          }
        ],
        "description": "The Notification schedule, in the display timezone (`ui/display_tz`): `24/7`,\n`weekdays`, `working` (Mo-Fr 09:00-18:00), or days and a `HH:MM` span (one\npast midnight when `to` is before `from`, the whole day when equal)."
      },
      "Schema": {
        "type": [
          "object",
          "boolean"
        ]
      },
      "Scope": {
        "description": "Who is calling, one per-launch token each: `local` the window's main\nprocess, `taji-link` and scripts, `agent` the MCP bridge, `page` the\nwindow's page, `sheet` its sheet.",
        "enum": [
          "local",
          "agent",
          "page",
          "sheet"
        ],
        "type": "string"
      },
      "Sealed": {
        "description": "Which env records of a venue are held.",
        "properties": {
          "live": {
            "description": "Whether the live env's record is sealed.",
            "type": "boolean"
          },
          "paper": {
            "description": "Whether the paper env's record is sealed.",
            "type": "boolean"
          }
        },
        "required": [
          "paper",
          "live"
        ],
        "type": "object"
      },
      "SealedAccount": {
        "description": "An account row a link just sealed, as `link.accounts` reads it now.",
        "properties": {
          "bound": {
            "description": "Whether `state` is `bound`.",
            "type": "boolean"
          },
          "id": {
            "description": "The handle, as `link.accounts` names the row.",
            "type": "string"
          },
          "reason": {
            "description": "Why the row is not bound, one line; `null` when it is.",
            "type": [
              "string",
              "null"
            ]
          },
          "settling": {
            "description": "True on a bound row the root it replaces held while a carry reboot flies.",
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/AccountState"
          }
        },
        "required": [
          "id",
          "state",
          "bound",
          "reason",
          "settling"
        ],
        "type": "object"
      },
      "Sealing": {
        "additionalProperties": false,
        "description": "A vault sealed for the first time.",
        "properties": {
          "device": {
            "default": false,
            "description": "`true` seals a device slot too, the kernel asking the device first.",
            "type": "boolean"
          },
          "password": {
            "description": "The backup password to seal under; absent or `null` mints one. Blank is 400.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          }
        },
        "type": "object"
      },
      "Seasonals": {
        "description": "One symbol's seasonals: each year's closes against the share of the year gone.",
        "properties": {
          "symbol": {
            "description": "The item as `get/bars` takes it (`equity:AAPL`).",
            "type": "string"
          },
          "years": {
            "description": "Newest first; empty with no bars.",
            "items": {
              "$ref": "#/components/schemas/Year"
            },
            "type": "array"
          }
        },
        "required": [
          "symbol",
          "years"
        ],
        "type": "object"
      },
      "Segment": {
        "description": "One provider's stretch of a stitched part (composed bars, a tick span over\ndays), `[from_utc, to_utc)`.",
        "properties": {
          "from_utc": {
            "description": "The stretch's start, Unix seconds, inclusive.",
            "format": "int64",
            "type": "integer"
          },
          "provider": {
            "description": "Who answered this stretch.",
            "pattern": "^[a-z0-9_-]+$",
            "type": "string"
          },
          "to_utc": {
            "description": "The stretch's end, Unix seconds, exclusive.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "provider",
          "from_utc",
          "to_utc"
        ],
        "type": "object"
      },
      "Sending": {
        "additionalProperties": false,
        "description": "The report to send off the machine.",
        "properties": {
          "id": {
            "description": "The report's id, as `GET /read/reports` serves it.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "SeriesAddition": {
        "additionalProperties": false,
        "description": "A registered `series:<name>` column bound to a chart pane as an indicator.",
        "properties": {
          "column": {
            "default": null,
            "description": "The table's column to draw; may be left out only where the table carries one.",
            "type": [
              "string",
              "null"
            ]
          },
          "dataset": {
            "description": "The registered series dataset, `series:<name>`.",
            "type": "string"
          },
          "pane_id": {
            "description": "The chart pane's numeric id.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "pane_id",
          "dataset"
        ],
        "type": "object"
      },
      "SeriesBinding": {
        "description": "A registered column drawn on a pane as an indicator.",
        "properties": {
          "column": {
            "description": "The column drawn.",
            "type": "string"
          },
          "dataset": {
            "description": "`series:<name>`.",
            "type": "string"
          },
          "dataset_id": {
            "description": "The dataset version the last bind resolved, which moves when the name is registered again.",
            "type": "string"
          },
          "id": {
            "description": "The binding's id, a UUID.",
            "type": "string"
          },
          "node": {
            "description": "The indicator node it reads its values at, so `get/indicators` carries it like any other binding.",
            "type": "string"
          },
          "pane_id": {
            "description": "The pane it is drawn on.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "node",
          "pane_id",
          "dataset",
          "column",
          "dataset_id"
        ],
        "type": "object"
      },
      "SeriesBindings": {
        "description": "A Desk's bound registered columns.",
        "items": {
          "$ref": "#/components/schemas/SeriesBinding"
        },
        "type": "array"
      },
      "SeriesRecord": {
        "description": "One registered column bound to a pane, as `desk.json` holds it: what to\ndraw and where. The dataset is named, never pinned by id — a re-registration\nof the same name is the row's new version.",
        "properties": {
          "column": {
            "description": "The dataset's column drawn.",
            "type": "string"
          },
          "dataset": {
            "description": "`series:<name>`.",
            "type": "string"
          },
          "id": {
            "description": "The binding's id, a UUID.",
            "type": "string"
          },
          "pane_id": {
            "description": "The pane the column is drawn in.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "pane_id",
          "dataset",
          "column"
        ],
        "type": "object"
      },
      "SeriesRemoval": {
        "additionalProperties": false,
        "description": "A bound series row to remove from a Desk.",
        "properties": {
          "id": {
            "description": "The bound row's own UUID.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "SessionCalendar": {
        "description": "Which venue's session calendar a seat's time alerts schedule against.\n\n# What the CME arm differs by\n\nCME **trades on seven NYSE holidays**: MLK Day, Presidents' Day, Memorial Day, Juneteenth,\nIndependence Day, Labor Day and Thanksgiving all run a shortened RTH to 13:00 ET while NYSE is\nshut. Under the NYSE calendar those dates are not session days at all, so `next_fire` scans\nPAST them — a futures seat holding a position on Memorial Day would receive no flatten\nalert that day.\n\n| NYSE says | CME RTH |\n|---|---|\n| `FullSession` | 09:30-16:15 ET |\n| `EarlyClose` (13:00) | 13:15 ET |\n| `Holiday`, one of the seven above | TRADES, shortened to 13:00 ET |\n| `Holiday`: New Year's Day / Good Friday / Christmas | closed |\n| `Holiday`: a one-off national closure | closed |\n| `Weekend` | closed |\n\n# Where each figure comes from\n\nThe holiday transform is measured, not assumed: a day-by-day measurement of NQ continuous\n1-minute bars, 2017-04-03..2026-06-11, joined against the NYSE holiday fixture. The full\nday's 16:15 ET close (08:30-15:15 CT) is the `us_regular` session on ES, YM, ZN, 6E, CL, GC\nand CME:BTC1!.\n\nA `MarketDay` variant this module has not measured REFUSES rather than picking a plausible\ntreatment: the CME arm returns `None`/`false` only for days it knows are closed.",
        "oneOf": [
          {
            "const": "us-equities",
            "description": "NYSE / NASDAQ. Every US-equities seat.",
            "type": "string"
          },
          {
            "const": "cme-equity-index-futures",
            "description": "CME equity-index futures RTH (NQ/ES). Derived from NYSE by the measured transform above.",
            "type": "string"
          },
          {
            "const": "cme-globex",
            "description": "CME energy, metals, rates and FX: as [`Self::CmeEquityIndexFutures`]. Its own variant\nbecause those products' CME holiday schedules differ from equity index's (unmodelled).",
            "type": "string"
          },
          {
            "const": "cme-grains",
            "description": "CME grains (ZC ZS ZW): RTH 09:30-14:20 ET. Holidays unmeasured: closed on\n[`CME_FULL_CLOSURE_HOLIDAYS`], a full session every other weekday.",
            "type": "string"
          },
          {
            "const": "cme-crypto",
            "description": "CME bitcoin (BTC MBT): RTH 09:30-16:15 ET, Globex through the weekend. Holidays as\n[`Self::CmeGrains`].",
            "type": "string"
          },
          {
            "const": "cme-livestock",
            "description": "CME livestock (LE): one session, 09:30-14:05 ET (0830-1305 Chicago), no\nextended one; shut every rule-based NYSE holiday, early on [`LIVESTOCK_EARLY_CLOSES`].",
            "type": "string"
          }
        ]
      },
      "SessionDay": {
        "description": "One session day.",
        "properties": {
          "close_utc": {
            "description": "The regular session's close, a UTC second.",
            "format": "int64",
            "type": "integer"
          },
          "date": {
            "description": "`yyyy-mm-dd`.",
            "type": "string"
          },
          "early": {
            "description": "A close before the calendar's full day's.",
            "type": "boolean"
          },
          "ext_close_utc": {
            "description": "The extended session's close; `null` where `ext_open_utc` is.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "ext_open_utc": {
            "description": "The extended session's open (on CME the Globex day); `null` for an index, an\noption and a one-session root.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "open_utc": {
            "description": "The regular session's open, a UTC second.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "date",
          "open_utc",
          "close_utc",
          "ext_open_utc",
          "ext_close_utc",
          "early"
        ],
        "type": "object"
      },
      "SessionSet": {
        "description": "Which of the five sessions a fact holds in. A bool per session rather than\na set type: the axis is closed, so a field per session is the whole\nvocabulary and a missing one fails to compile at every declaration site.",
        "properties": {
          "24h": {
            "description": "Holds in the `24h` session: every hour of the 24/5 week.",
            "type": "boolean"
          },
          "extended": {
            "description": "Holds in the `extended` session.",
            "type": "boolean"
          },
          "post": {
            "description": "Holds in the post-market alone, 16:00-20:00 ET.",
            "type": "boolean"
          },
          "pre": {
            "description": "Holds in the pre-market alone, 08:00-09:30 ET.",
            "type": "boolean"
          },
          "regular": {
            "description": "Holds in the `regular` session.",
            "type": "boolean"
          }
        },
        "required": [
          "regular",
          "extended",
          "24h",
          "pre",
          "post"
        ],
        "type": "object"
      },
      "SessionSpan": {
        "description": "One held `[from, to)` and the session whose minutes it holds, `None` on a\nchain or a span held in no one session. An extended span covers the regular,\nbut on 1h and 4h, where the regular session's bars start at 09:30 and the\nothers' on the clock, a span covers only its own grid.",
        "properties": {
          "from": {
            "description": "UTC seconds the span starts at, inclusive.",
            "format": "int64",
            "type": "integer"
          },
          "session": {
            "description": "The session whose minutes the span holds: `regular`, `extended`, `24h`, `pre` or `post`; `null` on a chain or a span held in no one session.",
            "type": [
              "string",
              "null"
            ]
          },
          "to": {
            "description": "UTC seconds the span ends at, exclusive.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "from",
          "to",
          "session"
        ],
        "type": "object"
      },
      "Sessions": {
        "description": "The session days a class, a futures root or an option series trades on.",
        "properties": {
          "calendar": {
            "$ref": "#/components/schemas/SessionCalendar"
          },
          "sessions": {
            "items": {
              "$ref": "#/components/schemas/SessionDay"
            },
            "type": "array"
          }
        },
        "required": [
          "calendar",
          "sessions"
        ],
        "type": "object"
      },
      "SetBytes": {
        "description": "One 13F set a `holdings` buy would download.",
        "properties": {
          "bytes": {
            "description": "Its `Content-Length`, `null` where SEC states none.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "description": "The set's name.",
            "type": "string"
          }
        },
        "required": [
          "bytes",
          "name"
        ],
        "type": "object"
      },
      "SetLayoutSlot": {
        "additionalProperties": false,
        "description": "One slot assignment: which of the preset's stacks to bind, and what to show there. Omit `symbol`/`timeframe` to keep/inherit; supply `window` to freeze the slot to a historical range.",
        "properties": {
          "kind": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentPaneKind"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "What the slot shows; omitted = an existing pane keeps its kind, a new one is a chart."
          },
          "slot": {
            "description": "The preset's stack, 0-based in reading order (e.g. quad_grid slots are 0..3: top-left, top-right, bottom-left, bottom-right).",
            "format": "uint32",
            "maximum": 15.0,
            "minimum": 0,
            "type": "integer"
          },
          "symbol": {
            "default": null,
            "description": "The item for this slot, `kind:symbol`: e.g. `equity:AAPL`, `index:SPX` or `continuous:@MNQ`. Omit to keep the slot's current symbol (or inherit the active pane's for a newly-created slot).",
            "maxLength": 160,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "timeframe": {
            "default": null,
            "description": "The timeframe for this slot, as `set_timeframe` takes it (`5m`, `3h`, `D`). Omit to keep/inherit.",
            "pattern": "^(1[mh]|([2-9]|[1-9][0-9]{1,3})[mhDWM]|[DWMY])$",
            "type": "string"
          },
          "window": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AgentWindow"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional frozen historical window — makes this slot a static evidence exhibit of [start_utc, end_utc]. Omit for an ordinary live pane."
          }
        },
        "required": [
          "slot"
        ],
        "type": "object"
      },
      "Setting": {
        "additionalProperties": false,
        "description": "One window setting to set.",
        "properties": {
          "key": {
            "description": "The setting's name.",
            "pattern": "^[a-z0-9._-]{1,128}$",
            "type": "string"
          },
          "value": {
            "description": "Any JSON; `null` removes the key."
          }
        },
        "required": [
          "key",
          "value"
        ],
        "type": "object"
      },
      "SettingSet": {
        "description": "What `ui/settings/set` answers: the key set.",
        "properties": {
          "key": {
            "description": "The key set or, for a `null` value, removed.",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` number of the last frame the write sent, which shows it.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "key",
          "seq"
        ],
        "type": "object"
      },
      "SettingValues": {
        "additionalProperties": true,
        "description": "The window's settings, key to value, `{}` on a fresh state dir.",
        "type": "object"
      },
      "Settlement": {
        "enum": [
          "am",
          "pm"
        ],
        "type": "string"
      },
      "Shape": {
        "description": "The drawings an alert is set on.",
        "enum": [
          "trend_line",
          "ray",
          "extended_line",
          "horizontal_line",
          "horizontal_ray",
          "parallel_channel",
          "rectangle",
          "vertical_line"
        ],
        "type": "string"
      },
      "SheetOpening": {
        "additionalProperties": false,
        "description": "The link sheet's address, asked for by the window's main process or a script.",
        "properties": {
          "key": {
            "description": "This run's window key: the nonce then buys the by-hand sheet token.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          }
        },
        "type": "object"
      },
      "ShelvedList": {
        "description": "A list not shown: its name and rows.",
        "properties": {
          "name": {
            "description": "The list's name.",
            "type": "string"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/Listed"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "rows"
        ],
        "type": "object"
      },
      "Shown": {
        "description": "When a group of the chart's buttons shows.",
        "enum": [
          "hover",
          "always",
          "never"
        ],
        "type": "string"
      },
      "Side": {
        "description": "Which way an order or one of a spread's legs trades.",
        "enum": [
          "Buy",
          "Sell"
        ],
        "type": "string"
      },
      "SideWord": {
        "description": "`buy` or `sell`, in any case.",
        "pattern": "^([bB][uU][yY]|[sS][eE][lL][lL])$",
        "type": "string"
      },
      "SignInRedirect": {
        "additionalProperties": false,
        "description": "The address an OAuth sign-in's browser stopped on.",
        "properties": {
          "url": {
            "description": "The address bar's URL after the sign-in, its `https://127.0.0.1` page\nnever loaded; it carries the code, so it is never echoed or logged.",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "SignInStart": {
        "additionalProperties": false,
        "description": "The sign-in a browser hands over unasked.",
        "properties": {
          "venue": {
            "description": "A venue that signs in as a public client, or a provider whose sign-in\nis captured off the user's browser.",
            "type": "string"
          }
        },
        "required": [
          "venue"
        ],
        "type": "object"
      },
      "SliceOrder": {
        "description": "The order an algo's slice goes out as.",
        "enum": [
          "limit",
          "market",
          "relative"
        ],
        "type": "string"
      },
      "Smile": {
        "description": "One expiry's `[strike, iv]`, ascending, each strike's out-of-the-money\ncontract's IV (the call at or above spot, the put below), the other's\nwhere it has none.",
        "properties": {
          "dte": {
            "description": "Calendar days from today to the expiry; 0 on the day.",
            "format": "int32",
            "type": "integer"
          },
          "expiry": {
            "description": "Expiry date, `YYYY-MM-DD`.",
            "format": "date",
            "type": "string"
          },
          "points": {
            "description": "`[strike, iv]` pairs, ascending by strike; `iv` a fraction (0.21 is 21%).",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "root": {
            "description": "The OCC series root (`SPX` beside `SPXW`).",
            "type": "string"
          }
        },
        "required": [
          "expiry",
          "root",
          "dte",
          "points"
        ],
        "type": "object"
      },
      "SoundName": {
        "additionalProperties": false,
        "description": "The sound to remove.",
        "properties": {
          "name": {
            "description": "The name it was added under.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "Source": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OrderSource"
          },
          {
            "$ref": "#/components/schemas/Actor"
          }
        ],
        "description": "Who sent an order: an order's source, or the actor who moved a plan's leg."
      },
      "SourceCoverage": {
        "description": "What one provider serves of one class, on the linked key's plan, rendered as `docs/reference/coverage/<provider>.md`.",
        "properties": {
          "adjustments": {
            "description": "The bars adjustments it takes, least to most adjusted.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "class": {
            "description": "One of `classes`.",
            "type": "string"
          },
          "cost": {
            "$ref": "#/components/schemas/Cost"
          },
          "depth": {
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/BarsDepth"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": "How far back its bars reach per served interval (`1m`, `D`), the one declaration routing reads too, narrowed by the linked key's plan; `null` where unmeasured. `{}` where it serves the class no bars.",
            "type": "object"
          },
          "fills": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "description": "Per product it reads of the class, the optional columns of its rows the provider fills (a chain's `iv` and greeks, a print's `aggressor`), as its code declares and its tests hold; `[]` fills none, and a product absent is not declared yet.",
            "type": "object"
          },
          "grant": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Grant"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the linked key's plan grants the class; `null` unlinked or where Taji models no plan for the provider and class."
          },
          "intervals": {
            "description": "The bars intervals it serves for the class, empty where it serves no bars.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kinds": {
            "description": "The `fundamentals` kinds it serves for the class, whether linked or not; empty where it reads none.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "linked": {
            "description": "Whether the provider is linked on this device.",
            "type": "boolean"
          },
          "live_1m": {
            "description": "Whether its stream closed a 1m bar for the class, as its vendor doc's dated line measured it; `null` unmeasured.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "measured": {
            "description": "The `plugins/<provider>/README.md` its measured facts come from, or `not measured`.",
            "type": "string"
          },
          "offered_data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OfferedData"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the vendor's own spec offers; `null` where unaudited."
          },
          "provider": {
            "description": "The provider's word, as a read's `provider` takes it.",
            "type": "string"
          },
          "quotes": {
            "description": "Whether it serves quotes for the class, as its vendor doc measured; `null` unmeasured.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "rate_per_min": {
            "description": "Requests a minute its bars row allows.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "reads": {
            "$ref": "#/components/schemas/Reads",
            "description": "The data products Taji reads today."
          },
          "serves": {
            "description": "Whether Taji reads any product of the class off the source (its `reads`), bars or not.",
            "type": "boolean"
          },
          "unseated": {
            "description": "Why a source whose data is on did not seat (`<provider> is not running: <why>`, the words a read of it is refused 501 in); `null` where it seated or was never asked.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "provider",
          "class",
          "serves",
          "linked",
          "unseated",
          "grant",
          "intervals",
          "adjustments",
          "depth",
          "live_1m",
          "quotes",
          "cost",
          "rate_per_min",
          "measured",
          "kinds",
          "offered_data",
          "reads",
          "fills"
        ],
        "type": "object"
      },
      "Sources": {
        "additionalProperties": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/LinkedSource"
            },
            {
              "type": "null"
            }
          ]
        },
        "description": "Each provider that links a record of its own, `null` with none held; any other linked provider is here only while its data is switched off.",
        "type": "object"
      },
      "SplitNode": {
        "oneOf": [
          {
            "description": "`at` is the boundary's absolute canvas line along `dir`.",
            "properties": {
              "split": {
                "properties": {
                  "a": {
                    "$ref": "#/components/schemas/SplitNode",
                    "description": "Left of `b` in a `row`, above it in a `col`."
                  },
                  "at": {
                    "description": "The boundary's canvas line along `dir`, of the 24.",
                    "format": "uint8",
                    "maximum": 255,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "b": {
                    "$ref": "#/components/schemas/SplitNode",
                    "description": "Right of `a` in a `row`, below it in a `col`."
                  },
                  "dir": {
                    "$ref": "#/components/schemas/Dir"
                  },
                  "id": {
                    "description": "The split's id, from the desk's pane-id counter.",
                    "format": "uint32",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "id",
                  "dir",
                  "at",
                  "a",
                  "b"
                ],
                "type": "object"
              }
            },
            "required": [
              "split"
            ],
            "type": "object"
          },
          {
            "description": "Tabs; `active` is the one drawn.",
            "properties": {
              "stack": {
                "properties": {
                  "active": {
                    "description": "The tab drawn, one of `panes`.",
                    "format": "uint32",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "panes": {
                    "description": "The tabs' panes, in tab order.",
                    "items": {
                      "format": "uint32",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "panes",
                  "active"
                ],
                "type": "object"
              }
            },
            "required": [
              "stack"
            ],
            "type": "object"
          }
        ]
      },
      "SplitResize": {
        "additionalProperties": false,
        "description": "A split's line moved.",
        "properties": {
          "at": {
            "description": "The canvas line, 0 to 24, along the split's direction: from the left for a `row` split, from the top for a `col` one.",
            "format": "uint8",
            "maximum": 24,
            "minimum": 0,
            "type": "integer"
          },
          "split": {
            "description": "The split's id, as the layout read gives it.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "split",
          "at"
        ],
        "type": "object"
      },
      "Spot": {
        "enum": [
          "price"
        ],
        "type": "string"
      },
      "SpreadGreeks": {
        "description": "Each leg's figures off its quoted row, in the legs' order, and their net per\ncombo. Per share, never times the multiplier.",
        "properties": {
          "legs": {
            "description": "In the order's leg order, verbatim off the rows a `spread:` quote answers.",
            "items": {
              "$ref": "#/components/schemas/LegGreeks"
            },
            "type": "array"
          },
          "net": {
            "$ref": "#/components/schemas/NetGreeks"
          },
          "provider": {
            "description": "The provider that quoted the legs' rows.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "legs",
          "net"
        ],
        "type": "object"
      },
      "SpreadLeg": {
        "description": "One leg of a spread item.",
        "properties": {
          "contract": {
            "description": "The leg's contract, its instrument's id.",
            "type": "string"
          },
          "ratio": {
            "description": "How many units of the leg make one unit of the spread; at least 1.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "side": {
            "description": "`buy` or `sell`.",
            "type": "string"
          }
        },
        "required": [
          "side",
          "ratio",
          "contract"
        ],
        "type": "object"
      },
      "SpreadQuote": {
        "description": "A spread's net market: its legs' net `bid`/`ask`/`mid` at `ts`.",
        "properties": {
          "ask": {
            "description": "The net the legs can be bought at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "bid": {
            "description": "The net the legs can be sold at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "mid": {
            "description": "Halfway between `bid` and `ask`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "theo": {
            "description": "The legs' summed `theo`, sold legs negative, to the cent a half away\nfrom zero; `null` where a leg has none.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "ts": {
            "description": "The oldest of the legs' quote times.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "bid",
          "ask",
          "mid",
          "ts",
          "theo"
        ],
        "type": "object"
      },
      "SpreadTicket": {
        "description": "A spread draft's face: one combo price, the legs in place of pairs, no budget or bracket.",
        "properties": {
          "account": {
            "description": "`routed: <acct>`, the handle alone beside a refused route.",
            "type": "string"
          },
          "actor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Proposal"
              },
              {
                "type": "null"
              }
            ],
            "description": "An agent's proposal; `null` on the hand's."
          },
          "can_send": {
            "description": "False while `drops` is not `null`, once the gate refused, and while `route` is a refusal.",
            "type": "boolean"
          },
          "class": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InstrumentClass"
              },
              {
                "type": "null"
              }
            ]
          },
          "controls": {
            "$ref": "#/components/schemas/Controls"
          },
          "discard": {
            "description": "The word on the button that drops the draft: `Discard`.",
            "type": "string"
          },
          "disposition": {
            "$ref": "#/components/schemas/Disposition"
          },
          "drops": {
            "description": "`null`, or the words why this row cannot send the pairs (`<acct> does not send a crypto bracket`, `<acct> does not send bracket`, `a bracket's entry is market, limit, stop or stop limit`, `a bracket is day or gtc`, the extended-hours words, `a bracket rides an entry on a flat <symbol>` over shares the row holds; first true wins).",
            "type": [
              "string",
              "null"
            ]
          },
          "gate": {
            "description": "The rows the risk gate answered: `[label, value, the row's key or \"\"]`; a spread's a row per tranche `exits` `<n> combo[s] · stop <stop> <word> · take <take> <word>` (no take, no ` · take`); under a `notice` its `session` row `regular — bracket works from <open>` (`notice`'s `<open>`).",
            "items": {
              "maxItems": 3,
              "minItems": 3,
              "prefixItems": [
                {
                  "type": "string"
                },
                {
                  "type": "string"
                },
                {
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "header": {
            "description": "`<symbol> · <BUY|SELL> · <TYPE> <price>`, the price at the instrument's precision; a spread's `<symbol> · SPREAD · <DEBIT|CREDIT|EVEN> <net>`.",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/OrderKind",
            "description": "The order `draft/place` sends, which the window's live Confirm previews at `trading/orders/<class>/preview`."
          },
          "legs": {
            "description": "The bracket row, and what the click actually sends; a spread's `+1 <contract> · −1 <contract>`.",
            "type": "string"
          },
          "notice": {
            "description": "While the clock is outside the regular session, `<open>` the next regular open as `Mon 09:30 ET` (the date beside the weekday when it is more than six days away, `Mon Dec 28 09:30 ET`): for an extended-hours entry carrying pairs, which goes in the regular session, `<venue> can't attach take-profit/stop-loss to extended-hours orders. This bracket goes live at the open, <open>.`; for a stop or a stop limit on an equity or an option sent in the regular session, `<venue> holds this stop until the open, <open>; it can't trigger before then.`; for a limit, a market or a spread sent there, `<venue> takes this order in the regular session only. It queues for the open, <open>.`, or `It queues for the open, <open>.` alone where the draft chose the regular session. Then, while the account's journal and its venue disagree on the drafted instrument (an open break, a crypto fee's excepted), after a space, `Taji shows <expected> <symbol>, <venue> shows <actual>. Your order still goes to <venue>; the position and P&L shown here may be off until they agree.` (an order break's: `Taji's book and <venue> disagree on <symbol>. Your order still goes to <venue>; ...`). Else `null`. A spread's is the session one, then, with exits, after a space, `Taji holds this spread's exits itself, at every venue, and only while Taji runs; <venue> rests the entry only.`",
            "type": [
              "string",
              "null"
            ]
          },
          "order_type": {
            "$ref": "#/components/schemas/OrderType",
            "description": "The entry's word; a spread's `limit`."
          },
          "preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TicketPreview"
              },
              {
                "type": "null"
              }
            ],
            "description": "What `orders/option/preview` previews of the draft at the last evaluation (with no quote, `payoff` off the draft's net and Taji's multiplier), its refusal, or `null` until it lands; a re-quote re-sets `net`, `natural` and `fill`."
          },
          "prices": {
            "$ref": "#/components/schemas/NetPrices"
          },
          "rev": {
            "description": "The staged draft's, which its Send names to `draft/place`.",
            "format": "uuid",
            "type": "string"
          },
          "route": {
            "$ref": "#/components/schemas/TicketRoute",
            "description": "What `trading/orders/<class>/route` answers for this draft named to this row over the facts the last evaluation read from its venue, or its refusal: the live-intent rule and the venue's certain refusals (a price at or under 0, an off-tick price, an off-step or under-minimum qty, an order under the minimum, a time in force the class does not take, fractional on a whole-share name) read before the click."
          },
          "send": {
            "description": "What the click sends: `Send bracket — <Buy|Sell> <qty> <symbol> <type> <price> · TP <take> · SL <stop>` (`· <n> exits` for several pairs, `· from <open>` under a `notice`, `notice`'s `<open>`), `Send — <qty> <symbol> <TYPE>` without pairs, `Replace — …` in place of either for a draft that `replaces` an order (`Replace — <Buy|Sell> <qty> <symbol> <TYPE>` without pairs), `Cannot send — <drops>; clear the pairs` while `drops` is not `null`; a spread's `Send — <n> combo[s] <symbol> <debit|credit|even> <net>`, suffixed ` · SL <stop>` and ` · TP <take>` for one tranche, ` · <n> exits` for several.",
            "type": "string"
          },
          "staged": {
            "description": "`true`.",
            "type": "boolean"
          },
          "stats": {
            "description": "Every figure with the basis it was derived from: `Quantity`; `Risk to stop` Σ qtyᵢ·|anchor − stopᵢ| (a spread's Σ qtyᵢ·|stopᵢ − net|·multiplier in dollars, none without a multiplier); `Reward to take`; `R multiple`; `Cost` qty × price × point value (none without a point value; a future's is `Notional`, no margin guessed; a pair's names its dollars); `Breakeven` a single leg's strike ± premium; `Tick` dollars per tick at the anchor's rung, per contract or share; `Notional` an equity's at the price seen. A pair's units print as the draft carries them.",
            "items": {
              "$ref": "#/components/schemas/Stat"
            },
            "type": "array"
          },
          "trail": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TrailFace"
              },
              {
                "type": "null"
              }
            ],
            "description": "A trailing stop's trail as stated and `line`, its trigger at the spot; `null` otherwise."
          }
        },
        "required": [
          "staged",
          "rev",
          "header",
          "class",
          "kind",
          "order_type",
          "trail",
          "account",
          "route",
          "actor",
          "controls",
          "stats",
          "gate",
          "disposition",
          "legs",
          "notice",
          "send",
          "drops",
          "discard",
          "can_send",
          "prices",
          "preview"
        ],
        "type": "object"
      },
      "SpreadTranche": {
        "description": "One exit tranche of a spread as `orders/<id>` shows it: `take` and `stop`\nin the entry's word, `net` the spread's quote last judged, `sent` the\nreversed spread's intent id.",
        "properties": {
          "net": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NetQuote"
              },
              {
                "type": "null"
              }
            ],
            "description": "The spread's quote last judged; `null` before one."
          },
          "note": {
            "description": "Why it was suspended, failed or ended, or why no quote judged it; `null` otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "qty": {
            "description": "The combos it exits.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "sent": {
            "description": "The intent id of the reversed spread it sent; `null` until it sends.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/TrancheState"
          },
          "stop": {
            "description": "The stop net price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "take": {
            "description": "The take net price; `null` on a runner.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "tranche": {
            "description": "Its index among the spread's tranches.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "tranche",
          "qty",
          "take",
          "stop",
          "state",
          "net",
          "sent",
          "note"
        ],
        "type": "object"
      },
      "StackedPane": {
        "additionalProperties": false,
        "description": "One pane of a chart's stack, top to bottom: the price's (`main`) or indicators' own, each with its price axis. `ViewPane` as a body, whose absent members default.",
        "properties": {
          "collapsed": {
            "default": false,
            "description": "Collapsed; the price pane never is, and some pane stays open.",
            "type": "boolean"
          },
          "indicators": {
            "default": [],
            "description": "The indicator ids drawn in it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "log": {
            "default": false,
            "description": "An indicator pane's own log scale (its axis foot's `L`); the price pane's is `scale`.",
            "type": "boolean"
          },
          "main": {
            "default": false,
            "description": "The price's own pane.",
            "type": "boolean"
          },
          "maximized": {
            "default": false,
            "description": "Drawn alone, filling the stack; at most one pane is.",
            "type": "boolean"
          },
          "share": {
            "description": "Its height against the others' (its stretch factor), > 0.",
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "share"
        ],
        "type": "object"
      },
      "Stage": {
        "description": "Which accounts a book spans: `paper` every row that is not live, the sim's\nincluded. No stage spans both: paper money never adds to live.",
        "enum": [
          "live",
          "paper"
        ],
        "type": "string"
      },
      "StageChoice": {
        "additionalProperties": false,
        "description": "Which accounts the window's Book and ticket show.",
        "properties": {
          "stage": {
            "$ref": "#/components/schemas/Stage",
            "description": "`paper` or `live`."
          }
        },
        "required": [
          "stage"
        ],
        "type": "object"
      },
      "StageSet": {
        "description": "The stage now set.",
        "properties": {
          "stage": {
            "$ref": "#/components/schemas/Stage"
          }
        },
        "required": [
          "stage"
        ],
        "type": "object"
      },
      "Standing": {
        "description": "Where a flow stands.",
        "properties": {
          "detail": {
            "description": "`link.last.reason`, the vendor's own words, on a `link.last` refusal; else `null`.",
            "type": [
              "string",
              "null"
            ]
          },
          "say": {
            "description": "The sentence for `word`: the form's `refusals` (`relink` for `due`), else the kernel's for the\nlink vocabulary, else the word as written.",
            "type": [
              "string",
              "null"
            ]
          },
          "step": {
            "description": "The step it stands on.",
            "type": "string"
          },
          "until_utc": {
            "description": "The second it is worth trying again or looking: a `link.last` refusal's plus the form's\n`holds[err]`, a `due` sign-in's `refresh_by_utc`, a mark's `at_utc` plus the next step's\n`wait_s`; else `null`.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "word": {
            "description": "The refusal word that put it there: a kept refusal's, `link.last.err`, a lapsed sign-in's `due`\nor `expired`, the agent flow's `move_first`; else `null`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "step",
          "word",
          "say",
          "detail",
          "until_utc"
        ],
        "type": "object"
      },
      "Stat": {
        "description": "One figure, its value and what it was derived from.",
        "properties": {
          "basis": {
            "description": "What the figure was derived from, in words.",
            "type": "string"
          },
          "label": {
            "$ref": "#/components/schemas/StatLabel"
          },
          "value": {
            "description": "The figure formatted for display: dollars, points, `<n>R` or a count.",
            "type": "string"
          }
        },
        "required": [
          "label",
          "value",
          "basis"
        ],
        "type": "object"
      },
      "StatLabel": {
        "description": "Which figure a stat row is.",
        "oneOf": [
          {
            "enum": [
              "Quantity",
              "Risk to stop",
              "Reward to take",
              "R multiple",
              "Cost"
            ],
            "type": "string"
          },
          {
            "const": "Notional",
            "description": "A future's in place of `Cost`, and an equity's at the price seen.",
            "type": "string"
          },
          {
            "const": "Tick",
            "description": "Dollars per tick at the anchor's rung, per contract or share.",
            "type": "string"
          },
          {
            "const": "Breakeven",
            "description": "A single leg's strike ± premium.",
            "type": "string"
          }
        ]
      },
      "Step": {
        "description": "One step of a flow.",
        "oneOf": [
          {
            "description": "Sealing or unlocking the vault, the user's own.",
            "properties": {
              "kind": {
                "const": "vault",
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          {
            "description": "A step the form's manifest declares.",
            "properties": {
              "fields": {
                "description": "The form's `on` fields that name the step, `[]` when none: they are no `type`, no vault\nand not in `brief.fields`.",
                "items": {
                  "$ref": "#/components/schemas/StepField"
                },
                "type": "array"
              },
              "kind": {
                "const": "do",
                "type": "string"
              }
            },
            "required": [
              "kind",
              "fields"
            ],
            "type": "object"
          },
          {
            "description": "Typing the form's fields (`brief.fields`).",
            "properties": {
              "kind": {
                "const": "type",
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          {
            "description": "Sending the code Taji shows to the bot from the owner's own account, or pairing a phone by its QR.",
            "properties": {
              "kind": {
                "const": "pair",
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          {
            "description": "Signing in to the venue in the browser.",
            "properties": {
              "kind": {
                "const": "sign_in",
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          }
        ],
        "properties": {
          "done": {
            "description": "Whether the flow is past it: a step before `at` is, and with no `at` every step is as the flow.",
            "type": "boolean"
          },
          "fails": {
            "description": "The refusal words that land on the step.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The step's id, unique within its flow; `at.step` names one.",
            "type": "string"
          },
          "open": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Open"
              },
              {
                "type": "null"
              }
            ],
            "description": "The place `flow/open` opens for the step, else `null`."
          },
          "say": {
            "description": "The sentence the sheet shows under the heading.",
            "type": "string"
          },
          "title": {
            "description": "The step's heading in the sheet.",
            "type": "string"
          },
          "yours": {
            "description": "Whether the user's own hand is required: the manifest's on `do`; `true` on `vault`,\n`sign_in` and `pair`; `false` on `type`.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "title",
          "say",
          "open",
          "fails",
          "yours",
          "done"
        ],
        "type": "object"
      },
      "StepField": {
        "description": "A field a `do` step asks aside.",
        "properties": {
          "help": {
            "description": "The manifest's line under it, `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "description": "What the sheet calls it.",
            "type": "string"
          },
          "name": {
            "description": "The name its value is posted under.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "label",
          "help"
        ],
        "type": "object"
      },
      "StockRange": {
        "description": "The underlying's range a [`Exec::Vol`] works inside, `0 < lower <\nupper`.",
        "properties": {
          "lower": {
            "description": "The range's floor, > 0.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "upper": {
            "description": "The range's ceiling.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "lower",
          "upper"
        ],
        "type": "object"
      },
      "StockRangeAsk": {
        "additionalProperties": false,
        "description": "The underlying's range a [`Exec::Vol`] works inside, `0 < lower <\nupper`.",
        "properties": {
          "lower": {
            "description": "The range's floor, > 0.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "upper": {
            "description": "The range's ceiling.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          }
        },
        "required": [
          "lower",
          "upper"
        ],
        "type": "object"
      },
      "Stop": {
        "description": "A stop covering a position: an order the venue works, or a level Taji holds.",
        "properties": {
          "held": {
            "$ref": "#/components/schemas/StopHolder"
          },
          "order_id": {
            "description": "The intent id of an order of ours, the venue's own id on one it holds that Taji did not place, `null` on a level Taji holds.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "description": "The stop's trigger price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "qty": {
            "description": "The quantity it covers.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "price",
          "qty",
          "held",
          "order_id"
        ],
        "type": "object"
      },
      "StopHolder": {
        "description": "Who works a stop.",
        "oneOf": [
          {
            "const": "venue",
            "description": "An order the venue works.",
            "type": "string"
          },
          {
            "const": "taji",
            "description": "A level Taji holds and sends at market when a print reaches it.",
            "type": "string"
          }
        ]
      },
      "StopPoint": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ExitPoint"
          },
          {
            "$ref": "#/components/schemas/OnLevel"
          }
        ],
        "description": "A stop: a price, a distance off the anchor, or a level on another symbol."
      },
      "Stream": {
        "additionalProperties": {
          "type": "string"
        },
        "description": "A client's subscription under its own `id`; a `stream` under an open id replaces it.",
        "properties": {
          "accounts": {
            "default": null,
            "description": "A `positions` stream's account handles, each once.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "adjustment": {
            "default": null,
            "description": "A bars stream's basis, one of `get/bars`' four; absent the provider's own.",
            "type": [
              "string",
              "null"
            ]
          },
          "box": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StyleWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "The style's box size, as `get/bars` takes it."
          },
          "chart": {
            "default": null,
            "description": "An `indicators` stream's chart, `desk/<id>/chart[/<pane>]`.",
            "type": [
              "string",
              "null"
            ]
          },
          "every": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StyleWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "A feature product's fold step in seconds, 0.25 to 3600, as `get/<product>`'s `every`: a `cells` product's columns, a `values` or `profile` product's last row a slice (the newest `forming`), a `marks` product's sizes summed by price and side a slice (each sent once, closed)."
          },
          "expiry": {
            "default": null,
            "description": "A `chains` stream's expiry, `YYYY-MM-DD`, as the live `get/chains` takes it.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "default": null,
            "description": "A bars stream's reach: the first load goes back to this UTC second.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "id": {
            "description": "The client's own id for the subscription.",
            "type": "string"
          },
          "levels": {
            "default": null,
            "description": "A `depth` stream's best rows a side, 1 to 1000, as `get/depth` takes it.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "lines": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StyleWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "Line break's line count, as `get/bars` takes it."
          },
          "one_step_back": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StyleWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "Point & figure's one-step-back, as `get/bars` takes it."
          },
          "product": {
            "description": "`bars`, `indicators`, `positions`, `quotes`, `depth`, `trades`, `status`, `imbalance`, `statistics`, `chains` or a plugin's product, `<id>.<name>`.",
            "type": "string"
          },
          "provider": {
            "default": null,
            "description": "A pin as a read's: a provider word or an account handle, linked and on; absent none.",
            "type": [
              "string",
              "null"
            ]
          },
          "reversal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StyleWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "Point & figure's reversal count, as `get/bars` takes it."
          },
          "right": {
            "default": null,
            "description": "A `chains` stream's `call` or `put`; absent both.",
            "type": [
              "string",
              "null"
            ]
          },
          "session": {
            "default": null,
            "description": "`regular`, `extended`, `24h`, `pre` or `post`: required of an equity's bars, `quotes`, `trades` and `depth`; a `timeframe` fold's bars' session, absent the item's bars default.",
            "type": [
              "string",
              "null"
            ]
          },
          "strike_max": {
            "default": null,
            "description": "A `chains` stream's highest strike, decimal text.",
            "type": [
              "string",
              "null"
            ]
          },
          "strike_min": {
            "default": null,
            "description": "A `chains` stream's lowest strike, decimal text.",
            "type": [
              "string",
              "null"
            ]
          },
          "style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StyleWord"
              },
              {
                "type": "null"
              }
            ],
            "description": "A styled bars stream's style, as `get/bars` takes it."
          },
          "symbols": {
            "default": null,
            "description": "Each item `kind:text` as a read's, once: one subscription per item under the `id`. Every product's but `indicators`' and `positions`'.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "ticks": {
            "default": null,
            "description": "A `depth` stream's rows of this many ticks, 1 to 1000, as `get/depth` takes it.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "timeframe": {
            "default": null,
            "description": "A bars stream's timeframe word, as `get/bars` takes it; on a feature product with a shape, an intraday one folds its rows onto that chart's bars instead of `every`, as `get/<product>`'s `timeframe`.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "const": "stream",
            "description": "`stream`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "product"
        ],
        "type": "object"
      },
      "StructureScope": {
        "description": "Which position structures the venue will hold a protective over.",
        "enum": [
          "Any",
          "SingleLegOnly"
        ],
        "type": "string"
      },
      "Style": {
        "enum": [
          "american",
          "european"
        ],
        "type": "string"
      },
      "StyleWord": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ],
        "description": "A style word's value, read as its text."
      },
      "SymbolDisplay": {
        "description": "What a row's first column reads: the ticker or the instrument's name.",
        "enum": [
          "symbol",
          "name"
        ],
        "type": "string"
      },
      "SymbolNote": {
        "description": "A Symbol note; `symbol: None` is a \"Non-symbol\nrelated note\".",
        "properties": {
          "created_utc": {
            "description": "When it was made, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "edited_utc": {
            "description": "When it was last edited, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "id": {
            "description": "The note's id, a UUID.",
            "type": "string"
          },
          "symbol": {
            "description": "The item the note is on, `null` on a note on no symbol.",
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "description": "The note verbatim.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "symbol",
          "text",
          "created_utc",
          "edited_utc"
        ],
        "type": "object"
      },
      "SymbolNoteDraft": {
        "additionalProperties": false,
        "description": "A symbol note added to a Desk.",
        "properties": {
          "symbol": {
            "default": null,
            "description": "An item as a watchlist row spells it (`equity:AAPL`), or `null` for a note on no symbol.",
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "description": "The note's text; blank is 400.",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "SymbolNoteEdit": {
        "additionalProperties": false,
        "description": "An edit to an existing symbol note.",
        "properties": {
          "id": {
            "description": "The note's id.",
            "type": "string"
          },
          "text": {
            "description": "The note's new text, made newest; blank is 400.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "type": "object"
      },
      "SymbolNoteId": {
        "additionalProperties": false,
        "description": "A symbol note to remove.",
        "properties": {
          "id": {
            "description": "The note's id.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "SymbolNotes": {
        "description": "The Desk's Symbol notes, newest edit first.",
        "items": {
          "$ref": "#/components/schemas/SymbolNote"
        },
        "type": "array"
      },
      "SymbolPick": {
        "additionalProperties": false,
        "description": "A chart pane's symbol.",
        "properties": {
          "pane_id": {
            "description": "The numeric id of the chart pane to switch, as learned from the chart read model.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "symbol": {
            "description": "The item to show, `kind:symbol`: e.g. `equity:AAPL`, `index:SPX`, `continuous:@MNQ`, `option:AAPL261218C00300000`, or a spread of 2-4 legs, `spread:buy:1:<OCC>,sell:1:<OCC>`.",
            "maxLength": 160,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "symbol"
        ],
        "type": "object"
      },
      "Sync": {
        "description": "Per-layout pane sync, the layout toggles: a symbol or interval\nchange on one chart pane moves the others; the crosshair is drawn on every\npane at the hovered time; `time` and `date_range` are the window's to\napply across its charts.",
        "properties": {
          "crosshair": {
            "description": "The crosshair is drawn on every pane at the hovered time.",
            "type": "boolean"
          },
          "date_range": {
            "default": false,
            "description": "The window applies one date range across its charts.",
            "type": "boolean"
          },
          "interval": {
            "description": "An interval change on one chart pane moves the others.",
            "type": "boolean"
          },
          "symbol": {
            "description": "A symbol change on one chart pane moves the others.",
            "type": "boolean"
          },
          "time": {
            "default": false,
            "description": "The window applies one time across its charts.",
            "type": "boolean"
          }
        },
        "required": [
          "symbol",
          "interval",
          "crosshair",
          "time",
          "date_range"
        ],
        "type": "object"
      },
      "SyncGroup": {
        "description": "The five chart-syncing groups, by their emoji: 🔶 🍀 💧 ❤ 💩.",
        "enum": [
          "rhomb",
          "leaf",
          "drop",
          "heart",
          "poo"
        ],
        "type": "string"
      },
      "SyncPatch": {
        "additionalProperties": false,
        "description": "`set_sync`'s toggles, the active layout's, at least one; an absent one keeps its value.",
        "properties": {
          "crosshair": {
            "default": null,
            "description": "The hovered time draws on every pane in the window.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "date_range": {
            "default": null,
            "description": "The others take a preset's or zoom's visible dates (the window's).",
            "type": [
              "boolean",
              "null"
            ]
          },
          "interval": {
            "default": null,
            "description": "A `set_timeframe` on one chart pane moves the others too, each keeping its own symbol.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "symbol": {
            "default": null,
            "description": "A `set_symbol` on one chart pane moves the Desk's other chart panes too, each keeping its own interval.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "time": {
            "default": null,
            "description": "The others scroll to a scrolled chart's right-edge time (the window's).",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Taking": {
        "additionalProperties": false,
        "description": "A flow taken back from its chat.",
        "properties": {
          "flow": {
            "description": "The flow's id, as `GET /read/flows` serves it.",
            "type": "string"
          }
        },
        "required": [
          "flow"
        ],
        "type": "object"
      },
      "TaxLot": {
        "description": "Which lots a closing order sells.",
        "enum": [
          "fifo",
          "lifo",
          "high_cost",
          "low_cost",
          "average_cost",
          "specific_lot",
          "loss_harvester"
        ],
        "type": "string"
      },
      "TemplateLeg": {
        "description": "One leg of a template: `right` `None` is the underlying's shares (one\nmultiplier of them per ratio), `offset` in widths from the strike nearest\nthe spot.",
        "properties": {
          "offset": {
            "description": "Widths from the strike nearest the spot; negative is below it.",
            "format": "int32",
            "type": "integer"
          },
          "ratio": {
            "description": "The leg's multiple of the combo's quantity.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "right": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OptionRight"
              },
              {
                "type": "null"
              }
            ],
            "description": "`call` or `put`; `null` is the underlying's shares."
          },
          "side": {
            "$ref": "#/components/schemas/Side",
            "description": "`buy` or `sell`."
          }
        },
        "required": [
          "right",
          "side",
          "ratio",
          "offset"
        ],
        "type": "object"
      },
      "Tenor": {
        "description": "A tenor's ATM IV, straight in total variance (σ²·days) between the listed\nexpiries around it, which `from` names (one where one lists on the day);\n`None` and no `from` outside the listed expiries: never extrapolated.",
        "properties": {
          "days": {
            "description": "The tenor in calendar days.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "from": {
            "description": "The listed expiries the IV is read from: one where one lists on the day, two where it is straight between them, none where `iv` is `null`.",
            "items": {
              "format": "date",
              "type": "string"
            },
            "type": "array"
          },
          "iv": {
            "description": "Implied volatility as a fraction (0.21 is 21%); `null` outside the listed expiries.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "tenor": {
            "description": "The tenor's label: `1W`, `2W`, `1M`, `2M`, `3M`, `6M`, `9M` or `1Y`.",
            "type": "string"
          }
        },
        "required": [
          "tenor",
          "days",
          "iv",
          "from"
        ],
        "type": "object"
      },
      "TestResult": {
        "properties": {
          "message": {
            "description": "Why it failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The test's name; `compile` when the author's suite failed to compile.",
            "type": "string"
          },
          "ok": {
            "description": "Whether the test passed.",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "ok",
          "message"
        ],
        "type": "object"
      },
      "TextStyle": {
        "additionalProperties": false,
        "description": "A note's or callout's text settings, as the Note and Callout dialogs set them. Colors are `#RRGGBB` or `#RRGGBBAA` hex.",
        "properties": {
          "background": {
            "default": null,
            "description": "The label's background color, or null for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "bold": {
            "default": false,
            "description": "Bold words; false when absent.",
            "type": "boolean"
          },
          "border": {
            "default": null,
            "description": "The label's border color, or null for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "border_width": {
            "default": 2,
            "description": "The border's thickness, 1 to 4.",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": "integer"
          },
          "color": {
            "description": "The words' color.",
            "type": "string"
          },
          "italic": {
            "default": false,
            "description": "Italic words; false when absent.",
            "type": "boolean"
          },
          "size": {
            "description": "Font size in px: 8, 10, 11, 12, 14, 16, 18, 20, 22, 24, 28, 32 or 40.",
            "format": "uint8",
            "maximum": 255,
            "minimum": 0,
            "type": "integer"
          },
          "title": {
            "default": null,
            "description": "The drawing's own name, or null for the tool's.",
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Visibility"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The intervals it shows on, or null for all."
          },
          "wrap": {
            "default": false,
            "description": "Wrap the words (a callout's Text wrap).",
            "type": "boolean"
          }
        },
        "required": [
          "color",
          "size"
        ],
        "type": "object"
      },
      "TextV1": {
        "additionalProperties": false,
        "description": "Text note — one point; the content is [`Annotation::label`].",
        "properties": {
          "anchor": {
            "$ref": "#/components/schemas/Anchor",
            "description": "Where the note sits, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`)."
          }
        },
        "required": [
          "anchor"
        ],
        "type": "object"
      },
      "Ticket": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OrderTicket"
          },
          {
            "$ref": "#/components/schemas/SpreadTicket"
          },
          {
            "$ref": "#/components/schemas/Unstaged"
          }
        ],
        "description": "What `trading/<acct>/ticket` reads: the staged draft's face, what the\nwindow's ticket draws, or nothing staged."
      },
      "TicketPreview": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Preview"
          },
          {
            "$ref": "#/components/schemas/PreviewRefusal"
          }
        ],
        "description": "A spread draft's last evaluated preview, or why there is none."
      },
      "TicketRoute": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OrderRoute"
          },
          {
            "$ref": "#/components/schemas/RouteRefusal"
          }
        ],
        "description": "What the ticket's `route` carries: the route, or its refusal."
      },
      "Ticks": {
        "description": "A tick ladder, `from` ascending and the first at 0. Built through [`Ticks::one`]\nor [`Facts::table`]: an empty ladder is a bug.",
        "items": {
          "$ref": "#/components/schemas/Rung"
        },
        "type": "array"
      },
      "Tier": {
        "anyOf": [
          {
            "description": "The tier word: a venue's off its Sources marker (`basic`, `atp`), a source's its own (`Source::link_tier`).",
            "type": "string"
          },
          {
            "additionalProperties": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Access"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": "Each class the venue serves bars of and its access, `null` until its bind probe says.",
            "type": "object"
          }
        ],
        "description": "What a venue's link buys: its plan, or per class what its sign-in lets it read."
      },
      "Tif": {
        "description": "**`Tif` is the time dimension of CONTINUOUS-market shapes only. Auction\nparticipation is a SHAPE, never a duration** -- it is spelled\n[`Exec::Moc`] / [`Exec::Moo`] / [`Exec::Loo`] / [`Exec::Loc`], and the adapter that talks to a\nvenue owns the mapping onto whatever field that venue happens to carry it in\n(one brokerage puts it in `time_in_force=cls|opg`, which is exactly the coincidence\nthis rule exists to stop the model from inheriting).\n\nAdding\n`Tif::Cls`/`Tif::Opg` would create a SECOND spelling of one wire fact\n(`Moc` would equal `Market` + `Tif::Cls`), and one of the two spellings would\nthen have to be refused everywhere it appeared. Redundant encodings of a single\nwire fact are how divergence starts. The consequence, enforced by that\nadapter and testable there: an auction exec stamped with a non-`Day` `Tif` is\nREFUSED loudly rather than silently ignored, because a stamped-then-dropped\nfield is dead data that reads as meaningful.",
        "oneOf": [
          {
            "enum": [
              "Day",
              "Gtc",
              "Ioc",
              "Fok"
            ],
            "type": "string"
          },
          {
            "properties": {
              "Gtd": {
                "$ref": "#/components/schemas/GoodTill"
              }
            },
            "required": [
              "Gtd"
            ],
            "type": "object"
          },
          {
            "const": "Dtc",
            "description": "Day till cancelled: a day order the venue deactivates, not cancels, at\nthe close.",
            "type": "string"
          },
          {
            "const": "Gtx",
            "description": "Good till crossing.",
            "type": "string"
          },
          {
            "const": "Minutes",
            "description": "The gateway venue's crypto limit life: cancelled unfilled after five minutes.",
            "type": "string"
          },
          {
            "const": "EndOfWeek",
            "description": "A brokerage's: good till the week's close.",
            "type": "string"
          },
          {
            "const": "EndOfMonth",
            "description": "A brokerage's: good till the month's close.",
            "type": "string"
          },
          {
            "const": "NextEndOfMonth",
            "description": "A brokerage's: good till the next month's close.",
            "type": "string"
          }
        ]
      },
      "TifAsk": {
        "description": "**`Tif` is the time dimension of CONTINUOUS-market shapes only. Auction\nparticipation is a SHAPE, never a duration** -- it is spelled\n[`Exec::Moc`] / [`Exec::Moo`] / [`Exec::Loo`] / [`Exec::Loc`], and the adapter that talks to a\nvenue owns the mapping onto whatever field that venue happens to carry it in\n(one brokerage puts it in `time_in_force=cls|opg`, which is exactly the coincidence\nthis rule exists to stop the model from inheriting).\n\nAdding\n`Tif::Cls`/`Tif::Opg` would create a SECOND spelling of one wire fact\n(`Moc` would equal `Market` + `Tif::Cls`), and one of the two spellings would\nthen have to be refused everywhere it appeared. Redundant encodings of a single\nwire fact are how divergence starts. The consequence, enforced by that\nadapter and testable there: an auction exec stamped with a non-`Day` `Tif` is\nREFUSED loudly rather than silently ignored, because a stamped-then-dropped\nfield is dead data that reads as meaningful.",
        "oneOf": [
          {
            "enum": [
              "Day",
              "Gtc",
              "Ioc",
              "Fok"
            ],
            "type": "string"
          },
          {
            "additionalProperties": false,
            "properties": {
              "Gtd": {
                "$ref": "#/components/schemas/GoodTill"
              }
            },
            "required": [
              "Gtd"
            ],
            "type": "object"
          },
          {
            "const": "Dtc",
            "description": "Day till cancelled: a day order the venue deactivates, not cancels, at\nthe close.",
            "type": "string"
          },
          {
            "const": "Gtx",
            "description": "Good till crossing.",
            "type": "string"
          },
          {
            "const": "Minutes",
            "description": "The gateway venue's crypto limit life: cancelled unfilled after five minutes.",
            "type": "string"
          },
          {
            "const": "EndOfWeek",
            "description": "A brokerage's: good till the week's close.",
            "type": "string"
          },
          {
            "const": "EndOfMonth",
            "description": "A brokerage's: good till the month's close.",
            "type": "string"
          },
          {
            "const": "NextEndOfMonth",
            "description": "A brokerage's: good till the next month's close.",
            "type": "string"
          }
        ]
      },
      "TifChip": {
        "description": "A TIF a draft arms, as the ticket's chips spell it.",
        "enum": [
          "DAY",
          "GTC",
          "IOC",
          "FOK"
        ],
        "type": "string"
      },
      "TifWord": {
        "description": "[`Tif`] with the `Gtd` end erased.",
        "enum": [
          "day",
          "gtc",
          "gtd",
          "ioc",
          "fok",
          "dtc",
          "gtx",
          "minutes",
          "end_of_week",
          "end_of_month",
          "next_end_of_month"
        ],
        "type": "string"
      },
      "TimeframePick": {
        "additionalProperties": false,
        "description": "A chart pane's timeframe.",
        "properties": {
          "pane_id": {
            "description": "The numeric id of the chart pane to switch, as learned from the chart read model.",
            "format": "uint32",
            "maximum": 4294967295.0,
            "minimum": 0,
            "type": "integer"
          },
          "timeframe": {
            "description": "The chart timeframe, one bar's duration, in the words the chart node writes back: Nm minutes (1-1439, no whole hour), Nh (1-24), D or ND (2-365), W or NW (2-52), M or NM (2-12), Y; no seconds. `7m`, `3h`, `2D`, `D`.",
            "pattern": "^(1[mh]|([2-9]|[1-9][0-9]{1,3})[mhDWM]|[DWMY])$",
            "type": "string"
          }
        },
        "required": [
          "timeframe"
        ],
        "type": "object"
      },
      "TitleSource": {
        "description": "What the legend's title reads.",
        "enum": [
          "description",
          "ticker"
        ],
        "type": "string"
      },
      "Toggle": {
        "description": "A control that is on or off with a reason.",
        "properties": {
          "disabled": {
            "description": "Whether the take and stop cannot be switched on.",
            "type": "boolean"
          },
          "reason": {
            "description": "Why it is disabled.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "disabled"
        ],
        "type": "object"
      },
      "Tone": {
        "description": "How the gate's chip reads.",
        "enum": [
          "mute",
          "bad",
          "ok"
        ],
        "type": "string"
      },
      "Trades": {
        "description": "Every account's round trips, newest first by `last_at`.",
        "properties": {
          "rows": {
            "description": "Cut to `limit`.",
            "items": {
              "$ref": "#/components/schemas/BookTrade"
            },
            "type": "array"
          },
          "rows_total": {
            "description": "How many matched, before the cut.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "rows",
          "rows_total"
        ],
        "type": "object"
      },
      "Trail": {
        "description": "How far a trailing stop trails the market: a price amount, a percent or a\nnumber of ticks.",
        "oneOf": [
          {
            "properties": {
              "Amount": {
                "description": "A price amount.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Amount"
            ],
            "type": "object"
          },
          {
            "properties": {
              "Percent": {
                "description": "A percent of the price, `2` for 2 %.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Percent"
            ],
            "type": "object"
          },
          {
            "description": "A whole number of the instrument's ticks (a brokerage's `TICK`).",
            "properties": {
              "Ticks": {
                "description": "The tick count.",
                "pattern": "^-?\\d+(\\.\\d+)?$",
                "type": "string"
              }
            },
            "required": [
              "Ticks"
            ],
            "type": "object"
          }
        ]
      },
      "TrailAsk": {
        "description": "How far a trailing stop trails the market: a price amount, a percent or a\nnumber of ticks.",
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "Amount": {
                "description": "A price amount.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Amount"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "Percent": {
                "description": "A percent of the price, `2` for 2 %.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Percent"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A whole number of the instrument's ticks (a brokerage's `TICK`).",
            "properties": {
              "Ticks": {
                "description": "The tick count.",
                "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
                "type": [
                  "string",
                  "number"
                ]
              }
            },
            "required": [
              "Ticks"
            ],
            "type": "object"
          }
        ]
      },
      "TrailFace": {
        "description": "A trailing stop's trail: `amount` or `percent`, as stated.",
        "properties": {
          "amount": {
            "description": "The trail in price units; absent when it was stated as a percent.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "line": {
            "description": "The trigger's price at the spot, `null` where it cannot be placed.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "percent": {
            "description": "The trail in percent; absent when it was stated as an amount.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "line"
        ],
        "type": "object"
      },
      "Tranche": {
        "description": "One exit of an [`OrderKind::Order`]: the qty it exits, a take-profit limit\nand a stop, both on the closing side. Prices are venue prices; the venue\nmints the leg orders.",
        "properties": {
          "oca": {
            "$ref": "#/components/schemas/OcaMode",
            "description": "What a fill of one exit does to the other."
          },
          "qty": {
            "description": "What this exit closes, in the order's units.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "stop": {
            "$ref": "#/components/schemas/TrancheStop"
          },
          "take": {
            "description": "The take-profit limit price; `None` is a stop alone.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "qty",
          "stop"
        ],
        "type": "object"
      },
      "TrancheAsk": {
        "additionalProperties": false,
        "description": "One exit of an [`OrderKind::Order`]: the qty it exits, a take-profit limit\nand a stop, both on the closing side. Prices are venue prices; the venue\nmints the leg orders.",
        "properties": {
          "oca": {
            "$ref": "#/components/schemas/OcaMode",
            "description": "What a fill of one exit does to the other."
          },
          "qty": {
            "description": "What this exit closes, in the order's units.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          },
          "stop": {
            "$ref": "#/components/schemas/TrancheStopAsk"
          },
          "take": {
            "description": "The take-profit limit price; `None` is a stop alone.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          }
        },
        "required": [
          "qty",
          "stop"
        ],
        "type": "object"
      },
      "TrancheState": {
        "description": "Where an exit tranche of a spread stands.",
        "oneOf": [
          {
            "enum": [
              "supervised",
              "sent",
              "failed",
              "ended"
            ],
            "type": "string"
          },
          {
            "const": "suspended",
            "description": "Its net was past an exit when Taji began watching again, or a leg's\nequity has a split, reverse split or symbol change ex today (`note`\nsays which): never judged again, held until its position ends.",
            "type": "string"
          }
        ]
      },
      "TrancheStop": {
        "description": "A tranche's stop: a stop, or a stop-limit with `limit`.",
        "properties": {
          "adjust": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Adjust"
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "description": "Makes the stop a stop-limit: once triggered it rests at this limit.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "description": "The price the stop triggers at.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "price"
        ],
        "type": "object"
      },
      "TrancheStopAsk": {
        "additionalProperties": false,
        "description": "A tranche's stop: a stop, or a stop-limit with `limit`.",
        "properties": {
          "adjust": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdjustAsk"
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "description": "Makes the stop a stop-limit: once triggered it rests at this limit.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number",
              "null"
            ]
          },
          "price": {
            "description": "The price the stop triggers at.",
            "pattern": "^-?\\d+(\\.\\d+)?([eE]\\d+)?$",
            "type": [
              "string",
              "number"
            ]
          }
        },
        "required": [
          "price"
        ],
        "type": "object"
      },
      "Tree": {
        "description": "The canvas's split tree and the pane that holds focus.",
        "properties": {
          "focused": {
            "description": "The pane that holds focus; one of the tree's panes.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "root": {
            "$ref": "#/components/schemas/SplitNode",
            "description": "The canvas's outermost split, or its only stack."
          }
        },
        "required": [
          "root",
          "focused"
        ],
        "type": "object"
      },
      "TrendlineV1": {
        "additionalProperties": false,
        "description": "Trendline — a segment between two anchors, optionally extended past either\nendpoint to the viewport edge. `a` / `b` are [`Anchor::TimePrice`].",
        "properties": {
          "a": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The first endpoint, as a time/price anchor (`{\"kind\":\"time_price\",\"time\":<utc_seconds>,\"price\":<price>}`). `time` is UTC seconds; `price` is in the symbol's quote currency."
          },
          "b": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The second endpoint, as a time/price anchor (same shape as `a`)."
          },
          "extend_left": {
            "description": "When true, project the line past the earlier-time endpoint to the left chart edge. Default false (segment stops at the anchor).",
            "type": "boolean"
          },
          "extend_right": {
            "description": "When true, project the line past the later-time endpoint to the right chart edge. Default false.",
            "type": "boolean"
          }
        },
        "required": [
          "a",
          "b",
          "extend_left",
          "extend_right"
        ],
        "type": "object"
      },
      "Tri": {
        "description": "A declared fact with an explicit \"not established\" value. `Unverified` is\nnever a `No` in disguise: it renders as `Unverified` rather than degrading\nsilently to the safe path, which is also why two states\nwill not do — an undeclared venue has to read as something other than `No`.",
        "enum": [
          "Yes",
          "No",
          "Unverified"
        ],
        "type": "string"
      },
      "Trigger": {
        "description": "What prices a stop or a price rule: the last print or the quote, once or\ntwice in a row, or the midpoint.",
        "enum": [
          "double_bid_ask",
          "last",
          "double_last",
          "bid_ask",
          "last_or_bid_ask",
          "midpoint"
        ],
        "type": "string"
      },
      "TwapPricing": {
        "description": "The price a TWAP's slices take.",
        "enum": [
          "marketable",
          "matching_midpoint",
          "matching_same_side",
          "matching_last"
        ],
        "type": "string"
      },
      "UiItem": {
        "description": "`[[ui.items]]`: a row in a host menu, `slot` its `<name>@<n>`; a slot the\nwindow does not know stays dormant.",
        "properties": {
          "hint": {
            "description": "A second line under the row, at most 200 characters; a `composer.command@1`\nrow's, what its argument is.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The row's full word, `<plugin id>.<word>`.",
            "type": "string"
          },
          "label": {
            "description": "The row's text, 1 to 40 characters.",
            "type": "string"
          },
          "order": {
            "description": "Position among the rows, lowest first.",
            "format": "int32",
            "type": "integer"
          },
          "slot": {
            "description": "The menu slot the row joins, `<name>@<n>`.",
            "type": "string"
          }
        },
        "required": [
          "slot",
          "id",
          "label",
          "order"
        ],
        "type": "object"
      },
      "UnadaptedCoverage": {
        "description": "What each vendor with no adapter offers, in the built rows' `offered_*` shapes; every row reads `not measured`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/UnadaptedSource"
            },
            "type": "array"
          },
          "execution": {
            "items": {
              "$ref": "#/components/schemas/UnadaptedVenue"
            },
            "type": "array"
          }
        },
        "required": [
          "data",
          "execution"
        ],
        "type": "object"
      },
      "UnadaptedSource": {
        "description": "One data vendor with no adapter, for one class.",
        "properties": {
          "class": {
            "description": "One of `classes`.",
            "type": "string"
          },
          "measured": {
            "description": "Always `not measured`: no doc of ours measures a vendor with no adapter.",
            "type": "string"
          },
          "offered_data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OfferedData"
              },
              {
                "type": "null"
              }
            ]
          },
          "provider": {
            "description": "The vendor's word, which is no `ProviderId`.",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "class",
          "measured",
          "offered_data"
        ],
        "type": "object"
      },
      "UnadaptedVenue": {
        "description": "One venue with no adapter, for one class.",
        "properties": {
          "class": {
            "description": "One of `classes`.",
            "type": "string"
          },
          "measured": {
            "description": "Always `not measured`: no doc of ours measures a vendor with no adapter.",
            "type": "string"
          },
          "offered_multi_leg": {
            "description": "Whether the vendor takes multi-leg options, per its spec; `null` unaudited.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "offered_orders": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OfferedOrders"
              },
              {
                "type": "null"
              }
            ]
          },
          "venue": {
            "description": "The vendor's word, which is no `Venue`.",
            "type": "string"
          }
        },
        "required": [
          "venue",
          "class",
          "measured",
          "offered_multi_leg",
          "offered_orders"
        ],
        "type": "object"
      },
      "Unclassed": {
        "description": "An item with no class (a registered series): its spelling alone.",
        "properties": {
          "class": {
            "description": "Always `null`.",
            "type": "null"
          },
          "item": {
            "description": "The item, `kind:key`.",
            "type": "string"
          }
        },
        "required": [
          "item",
          "class"
        ],
        "type": "object"
      },
      "Undo": {
        "description": "A desk write's place in the Desk's undo stack.",
        "properties": {
          "desk": {
            "description": "The desk written.",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` frame of `desk/<desk>/undo`.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "desk",
          "seq"
        ],
        "type": "object"
      },
      "UndoAct": {
        "description": "A chart step in the words `chart/undo` and `chart/redo` answer it with.",
        "enum": [
          "add indicator",
          "edit indicator",
          "remove indicator",
          "add drawing",
          "restyle drawing",
          "move drawing",
          "delete drawing",
          "copy drawing",
          "show",
          "hide",
          "lock",
          "unlock",
          "reorder",
          "move pane",
          "move indicator",
          "log scale",
          "resize pane",
          "collapse pane",
          "maximize pane",
          "restore pane",
          "edit settings"
        ],
        "type": "string"
      },
      "UndoStep": {
        "description": "A chart step undone or redone.",
        "properties": {
          "act": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UndoAct"
              },
              {
                "type": "null"
              }
            ],
            "description": "The change in words; `null` when there was nothing to step."
          },
          "node": {
            "description": "The node it changed: `desk/<id>/chart`.",
            "type": "string"
          }
        },
        "required": [
          "node",
          "act"
        ],
        "type": "object"
      },
      "Undoable": {
        "description": "Whether the next `chart/undo` and `chart/redo` would act.",
        "properties": {
          "redo": {
            "description": "By the same arbitration, for `chart/redo`.",
            "type": "boolean"
          },
          "undo": {
            "description": "By the same arbitration over the same last-interacted pane.",
            "type": "boolean"
          }
        },
        "required": [
          "undo",
          "redo"
        ],
        "type": "object"
      },
      "Unit": {
        "description": "What a column's numbers count.",
        "oneOf": [
          {
            "const": "price",
            "description": "A price in the item's quote currency.",
            "type": "string"
          },
          {
            "const": "usd",
            "description": "US dollars.",
            "type": "string"
          },
          {
            "const": "shares",
            "description": "Shares.",
            "type": "string"
          },
          {
            "const": "contracts",
            "description": "Contracts.",
            "type": "string"
          },
          {
            "const": "ratio",
            "description": "A ratio of two figures.",
            "type": "string"
          },
          {
            "const": "percent",
            "description": "A percentage.",
            "type": "string"
          },
          {
            "const": "count",
            "description": "A count.",
            "type": "string"
          }
        ]
      },
      "Unlisted": {
        "description": "What `watchlist/remove` answers: the row it unlisted.",
        "properties": {
          "removed": {
            "description": "The row as listed: the item, or `###<name>` for a section.",
            "type": "string"
          },
          "seq": {
            "description": "The `/ws/live` number of the frame the verb sent: a frame at or past it covers the change.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "removed",
          "seq"
        ],
        "type": "object"
      },
      "Unlocking": {
        "additionalProperties": false,
        "description": "The backup password that opens the vault.",
        "properties": {
          "password": {
            "description": "Blank is 400.",
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "password"
        ],
        "type": "object"
      },
      "Unmeasured": {
        "description": "The word a cell reads where no doc measures it.",
        "enum": [
          "not measured"
        ],
        "type": "string"
      },
      "Unplugged": {
        "description": "What `plugins/uninstall` answers: the plugin taken out.",
        "properties": {
          "id": {
            "description": "The plugin's id.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "Unqueued": {
        "description": "A queued message removed.",
        "properties": {
          "id": {
            "description": "The removed message's id.",
            "type": "string"
          },
          "session": {
            "description": "The chat's id.",
            "type": "string"
          }
        },
        "required": [
          "session",
          "id"
        ],
        "type": "object"
      },
      "Unsounded": {
        "description": "What `sounds/remove` answers: the name of the sound removed.",
        "properties": {
          "name": {
            "description": "The name removed.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "Unstaged": {
        "description": "A row with nothing staged.",
        "properties": {
          "staged": {
            "description": "`false`.",
            "type": "boolean"
          }
        },
        "required": [
          "staged"
        ],
        "type": "object"
      },
      "Unstated": {
        "description": "The handles each total leaves out.",
        "properties": {
          "cash": {
            "description": "The rows `totals.cash` sums none of.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "day_pnl": {
            "description": "The rows `totals.day_pnl` sums none of.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "equity": {
            "description": "The rows `totals.equity` sums none of.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "open_risk": {
            "description": "The rows `totals.open_risk` sums none of.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "realized_today": {
            "description": "The rows `totals.realized_today` sums none of.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "unrealized": {
            "description": "A row with a position that states none.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "equity",
          "cash",
          "day_pnl",
          "open_risk",
          "realized_today",
          "unrealized"
        ],
        "type": "object"
      },
      "Unsubscribe": {
        "additionalProperties": false,
        "description": "A client's end of its subscription `id`.",
        "properties": {
          "id": {
            "description": "The client's id for the subscription.",
            "type": "string"
          },
          "type": {
            "const": "unsubscribe",
            "description": "`unsubscribe`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "type": "object"
      },
      "Unwatched": {
        "description": "What `watches/remove` answers: the id of the watch removed.",
        "properties": {
          "removed": {
            "description": "The removed watch's id.",
            "type": "string"
          }
        },
        "required": [
          "removed"
        ],
        "type": "object"
      },
      "UnwordedClass": {
        "description": "A class `classes` has no word for, per vendor: whether it trades or serves it.",
        "properties": {
          "as_of": {
            "description": "The day it was read.",
            "type": "string"
          },
          "class": {
            "description": "The vendor's own word for the class (`cfd`).",
            "type": "string"
          },
          "note": {
            "description": "What it offers short of trading (`outside the US; metals too`), else `null`.",
            "type": [
              "string",
              "null"
            ]
          },
          "offered": {
            "description": "Whether the vendor trades or serves it.",
            "type": "boolean"
          },
          "source": {
            "description": "The vendor spec that says so.",
            "type": "string"
          },
          "venue": {
            "description": "The vendor's word, a venue's or a data provider's.",
            "type": "string"
          }
        },
        "required": [
          "class",
          "venue",
          "offered",
          "note",
          "source",
          "as_of"
        ],
        "type": "object"
      },
      "Upstream": {
        "description": "One open vendor upstream, one per (provider, symbol, timeframe) however many seats want it.",
        "properties": {
          "bars": {
            "description": "The closed bars this upstream has fanned out: a socket that subscribed and delivered nothing reads 0.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "consumers": {
            "description": "How many consumers hold it; the last to let go closes it.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "last_bar_utc": {
            "description": "The newest fanned-out bar's minute, `null` for none.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "last_tick_utc": {
            "description": "The wall second anything last arrived, a forming minute included, `null` for none.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "provider": {
            "description": "The provider's wire word.",
            "type": "string"
          },
          "since": {
            "description": "When it opened, an ISO 8601 UTC time.",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/UpstreamStatus"
          },
          "symbol": {
            "description": "The item as a read spells it, `equity:AAPL`.",
            "type": "string"
          },
          "timeframe": {
            "description": "The bar timeframe it streams.",
            "enum": [
              "1m",
              "5m",
              "15m",
              "30m",
              "1h",
              "4h",
              "D",
              "W",
              "M",
              "Y"
            ],
            "type": "string"
          }
        },
        "required": [
          "provider",
          "symbol",
          "timeframe",
          "consumers",
          "since",
          "bars",
          "last_bar_utc",
          "last_tick_utc",
          "status"
        ],
        "type": "object"
      },
      "UpstreamStatus": {
        "description": "Where an upstream's socket is.",
        "oneOf": [
          {
            "const": "live",
            "description": "Delivering.",
            "type": "string"
          },
          {
            "const": "dialing",
            "description": "Being re-dialed: no bar can arrive until it lands.",
            "type": "string"
          },
          {
            "const": "lapsed",
            "description": "Lost.",
            "type": "string"
          }
        ]
      },
      "Upstreams": {
        "description": "The open vendor upstreams, one row each, sorted by provider, symbol and timeframe; empty until something subscribes.",
        "items": {
          "$ref": "#/components/schemas/Upstream"
        },
        "type": "array"
      },
      "Vault": {
        "description": "The vault as the `link` node reads it.",
        "properties": {
          "device": {
            "$ref": "#/components/schemas/VaultDevice"
          },
          "locks_at": {
            "description": "The Unix second the open vault locks, `null` when locked or the TTL is off.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/VaultState"
          },
          "ttl_hours": {
            "description": "Hours the vault stays open after an unlock, never extended: `12` or `null` for none (`vault/ttl`).",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "state",
          "locks_at",
          "device",
          "ttl_hours"
        ],
        "type": "object"
      },
      "VaultDevice": {
        "description": "The device slot of the vault.",
        "properties": {
          "bound": {
            "description": "Whether this build's device slot is bound to Taji's signature.",
            "type": "boolean"
          },
          "enrolled": {
            "description": "Whether the vault holds a device slot, read without a prompt.",
            "type": "boolean"
          },
          "kind": {
            "description": "`touchid` where this device's sensor can seal and open the vault (probed once at boot), `null` before then, with no sensor or no `taji-unlock` beside the kernel binary.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "kind",
          "enrolled",
          "bound"
        ],
        "type": "object"
      },
      "VaultMinted": {
        "description": "What `vault/mint` answers: the backup password, the one answer that ever carries a secret.",
        "properties": {
          "password": {
            "description": "The password the vault is sealed under, shown once.",
            "type": "string"
          }
        },
        "required": [
          "password"
        ],
        "type": "object"
      },
      "VaultStanding": {
        "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands.",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/VaultState"
          }
        },
        "required": [
          "state"
        ],
        "type": "object"
      },
      "VaultState": {
        "description": "Whether this device has a vault and whether this run holds it open.",
        "oneOf": [
          {
            "const": "unsealed",
            "description": "No Taji-sealed vault on this device yet — the surface offers to mint.",
            "type": "string"
          },
          {
            "const": "locked",
            "description": "Sealed, and this run holds no open vault.",
            "type": "string"
          },
          {
            "const": "unlocked",
            "description": "Sealed, and this run holds it open.",
            "type": "string"
          }
        ]
      },
      "VaultTtl": {
        "description": "What `vault/ttl` answers: the absolute lock after an unlock.",
        "properties": {
          "ttl_hours": {
            "description": "`12`, or `null` for none.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "ttl_hours"
        ],
        "type": "object"
      },
      "VendorRow": {
        "additionalProperties": true,
        "description": "A buy of a product but bars, `chains`, `quotes` and `trades`: the vendor's own row, as given.",
        "type": "object"
      },
      "VenueClock": {
        "description": "Whether the venue is open, and when it next is — the venue's clock, not the\nmachine's. `next_open`/`next_close` are RFC-3339 as sent, at the venue's own\noffset.",
        "properties": {
          "asof_utc": {
            "description": "When the venue answered, Unix seconds.",
            "format": "int64",
            "type": "integer"
          },
          "is_open": {
            "description": "Whether the venue's market is open now.",
            "type": "boolean"
          },
          "next_close": {
            "description": "The next close, RFC-3339.",
            "type": "string"
          },
          "next_open": {
            "description": "The next open, RFC-3339.",
            "type": "string"
          }
        },
        "required": [
          "is_open",
          "next_open",
          "next_close",
          "asof_utc"
        ],
        "type": "object"
      },
      "VenueCoverage": {
        "description": "What one venue trades of one class, off what its adapters declare.",
        "properties": {
          "approved": {
            "description": "The handles of the venue's `link.accounts` rows reading `approved: true`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "class": {
            "description": "One of `classes`.",
            "type": "string"
          },
          "constraints": {
            "description": "The order constraint words the adapter sends.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "data": {
            "description": "Whether the adapter reads data.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "fees": {
            "$ref": "#/components/schemas/Fees",
            "description": "`not measured` where no doc states them."
          },
          "fractional": {
            "description": "Whether it takes fractional share quantities.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "index_underlyings": {
            "description": "Whether options on an index underlying are sent.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "linked": {
            "description": "Whether the venue is linked on this device.",
            "type": "boolean"
          },
          "live": {
            "description": "Whether this build holds a live credential record.",
            "type": "boolean"
          },
          "measured": {
            "description": "The `plugins/<venue>/README.md` its measured facts come from, or `not measured`.",
            "type": "string"
          },
          "multi_leg": {
            "description": "Whether the adapter sends multi-leg options.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "notional": {
            "description": "Whether it takes dollar-sized orders.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "offered": {
            "description": "Whether the venue itself trades the class, per its doc's `## Trades`; `null` unaudited.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "offered_multi_leg": {
            "description": "Whether the venue itself takes multi-leg options, per the same.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "offered_orders": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OfferedOrders"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the vendor's own spec offers; `null` where unaudited."
          },
          "order_kinds": {
            "description": "The words `orders/<class>/place` sends: `market`, `limit`, `stop`, `stop_limit`, `trailing_stop`, `moc`, `moo`, `loo`, `loc`, `bracket`, `oto`, `oco`, `multi_leg`.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "paper": {
            "description": "Whether this build holds a paper credential record.",
            "type": "boolean"
          },
          "protection": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Protection"
              },
              {
                "type": "null"
              }
            ],
            "description": "Off the declaration `trading/<acct>/capability` reads."
          },
          "sessions": {
            "description": "`regular`, `extended`, `24h`.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "short": {
            "description": "Whether the credential may open a short; `null` where unverified.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "tif": {
            "description": "`day`, `gtc`, `gtd`, `ioc`, `fok`.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "trade": {
            "description": "What Taji's adapter sends; `null` on the `index` row, which routes no order, as is every cell that reads the declaration.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "venue": {
            "description": "The venue's word.",
            "type": "string"
          }
        },
        "required": [
          "venue",
          "class",
          "linked",
          "paper",
          "live",
          "approved",
          "trade",
          "data",
          "multi_leg",
          "offered",
          "offered_multi_leg",
          "short",
          "notional",
          "constraints",
          "fractional",
          "fees",
          "index_underlyings",
          "protection",
          "order_kinds",
          "tif",
          "sessions",
          "measured",
          "offered_orders"
        ],
        "type": "object"
      },
      "VenueLink": {
        "additionalProperties": {
          "type": "string",
          "writeOnly": true
        },
        "description": "A venue's credential, sealed under its record for `env`.",
        "properties": {
          "env": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkEnv"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Absent: `paper` where the venue has a paper account, else `live`; on the\nagentic venue it is live either way."
          },
          "key": {
            "description": "The API key; a gateway's scripted `host:port`, the agentic venue's\nrefresh token. Absent with `secret` on a gateway: the ceremony finds it.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          },
          "live": {
            "default": null,
            "description": "A gateway venue's the live-intent rule: `true` is the user's yes to a live link, and\nrefused on paper.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "secret": {
            "description": "The API secret; a gateway's client id, the agentic venue's DCR client id.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          },
          "venue": {
            "description": "A venue this build links, as `link.venues` keys it.",
            "type": "string"
          }
        },
        "required": [
          "venue"
        ],
        "type": "object"
      },
      "VenueLinked": {
        "description": "What `link/venue/{link,oauth,start,redetect}` answer once the record is sealed and its rows minted, before the boot that binds them.",
        "properties": {
          "accounts": {
            "description": "The rows that record seals.",
            "items": {
              "$ref": "#/components/schemas/SealedAccount"
            },
            "type": "array"
          },
          "record": {
            "description": "The record sealed.",
            "type": "string"
          },
          "tier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tier"
              },
              {
                "type": "null"
              }
            ],
            "description": "The plan or per-class access `link.venues` reads for the venue, `null` until detected or probed."
          },
          "venue": {
            "description": "The venue's word.",
            "type": "string"
          }
        },
        "required": [
          "record",
          "venue",
          "accounts",
          "tier"
        ],
        "type": "object"
      },
      "VenueOrder": {
        "description": "An order the venue holds that Taji did not place: the body of\n`orders/<venue order_id>`. Everything it was asked for is `null` where the\nadapter could not say (an mleg parent, a notional order).",
        "properties": {
          "cancelable": {
            "description": "Whether the venue still holds it to cancel.",
            "type": "boolean"
          },
          "exec": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Glyph"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stop limit's `STP LMT`, its `price` its stop."
          },
          "group": {
            "description": "The other orders of its venue group, `[]` for a plain order.",
            "items": {
              "$ref": "#/components/schemas/GroupLink"
            },
            "type": "array"
          },
          "item": {
            "description": "`symbol` as an item.",
            "type": [
              "string",
              "null"
            ]
          },
          "limit": {
            "description": "A stop limit's limit price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "order_id": {
            "description": "The venue's own id: no intent names it.",
            "type": "string"
          },
          "price": {
            "description": "The price it rests at; a stop limit's its stop.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "qty": {
            "description": "The quantity it was asked for.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "side": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Side"
              },
              {
                "type": "null"
              }
            ],
            "description": "The side it was asked on."
          },
          "state": {
            "description": "The venue's own word.",
            "type": "string"
          },
          "stop": {
            "description": "A stop limit's stop price.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "The venue's symbol for it.",
            "type": [
              "string",
              "null"
            ]
          },
          "tif": {
            "description": "Its time in force as Taji spells a `Tif`'s variant.",
            "type": [
              "string",
              "null"
            ]
          },
          "venue_held": {
            "description": "Always `true`: the flag a reader forks on.",
            "type": "boolean"
          }
        },
        "required": [
          "order_id",
          "venue_held",
          "symbol",
          "item",
          "side",
          "exec",
          "price",
          "limit",
          "stop",
          "qty",
          "tif",
          "state",
          "cancelable",
          "group"
        ],
        "type": "object"
      },
      "VenuePreview": {
        "anyOf": [
          {
            "description": "`<handle> has no preview`, where its adapter has none (the sim included).",
            "properties": {
              "unsupported": {
                "description": "The sentence itself, `<handle> has no preview`.",
                "type": "string"
              }
            },
            "required": [
              "unsupported"
            ],
            "type": "object"
          },
          {
            "description": "The venue's words.",
            "properties": {
              "error": {
                "description": "What the venue said in refusing the preview, verbatim.",
                "type": "string"
              }
            },
            "required": [
              "error"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/OrderPreview"
          }
        ],
        "description": "The venue's half, a sentence where it has none."
      },
      "VenueRoute": {
        "description": "One route the venue lists, as sent: `id` is the word an order names.",
        "properties": {
          "asset_types": {
            "description": "The asset types the route takes, in the venue's words.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The word an order names to take this route.",
            "type": "string"
          },
          "name": {
            "description": "The route's display name, as the venue lists it.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "asset_types"
        ],
        "type": "object"
      },
      "VenueSignIn": {
        "additionalProperties": false,
        "description": "The user's own app on an OAuth venue, signed in in the browser.",
        "properties": {
          "callback": {
            "default": null,
            "description": "The callback registered with the user's app, `https://127.0.0.1:<port>`\nand an optional path, on a venue that takes one (default\n`https://127.0.0.1:8182`).",
            "type": [
              "string",
              "null"
            ]
          },
          "key": {
            "description": "The user's API key, the sign-in's `client_id`. Absent with `secret` on\na venue that bounds a sign-in's life: the sealed record's key, secret\nand callback sign in again.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          },
          "refresh_token": {
            "description": "A refresh token the user already holds, on the venue that takes one:\nthe sign-in page and the loopback are skipped.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          },
          "secret": {
            "description": "The user's API secret, the sign-in's `client_secret`.",
            "type": [
              "string",
              "null"
            ],
            "writeOnly": true
          },
          "venue": {
            "description": "A venue this build signs in by OAuth, as `link.venues` keys it.",
            "type": "string"
          }
        },
        "required": [
          "venue"
        ],
        "type": "object"
      },
      "VenueStart": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/VenueLinked"
          },
          {
            "$ref": "#/components/schemas/WebStarted"
          }
        ],
        "description": "What `link/venue/start` answers: a public client's sign-in sealed as `link/venue/link` seals a record, or a captured provider's `taji-link` running."
      },
      "VenueUnlink": {
        "additionalProperties": false,
        "description": "A venue's credential to take out of the vault.",
        "properties": {
          "env": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LinkEnv"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "That env's record alone; absent, every env's."
          },
          "venue": {
            "description": "A `link.venues` key.",
            "type": "string"
          }
        },
        "required": [
          "venue"
        ],
        "type": "object"
      },
      "VenueUnlinked": {
        "description": "What `link/venue/unlink` answers.",
        "properties": {
          "venue": {
            "description": "Always `null`: the key has left the vault.",
            "type": "null"
          }
        },
        "required": [
          "venue"
        ],
        "type": "object"
      },
      "Venues": {
        "additionalProperties": {
          "$ref": "#/components/schemas/LinkedVenue"
        },
        "description": "The venues this device has linked, by the venue's own word.",
        "type": "object"
      },
      "VerticalV1": {
        "additionalProperties": false,
        "description": "Vertical time line — spans the full visible price range at a fixed time.\n`anchor` is an [`Anchor::TimeOnly`].",
        "properties": {
          "anchor": {
            "$ref": "#/components/schemas/Anchor",
            "description": "The moment the line sits at, as a time-only anchor (`{\"kind\":\"time_only\",\"time\":<utc_seconds>}`). The line spans the full visible price range."
          }
        },
        "required": [
          "anchor"
        ],
        "type": "object"
      },
      "ViewPane": {
        "description": "One pane of a chart's stack, top to bottom:\nthe price's (`main`) or indicators' own, each with its price axis.",
        "properties": {
          "collapsed": {
            "default": false,
            "description": "Collapsed; the price pane never is, and some pane stays open.",
            "type": "boolean"
          },
          "indicators": {
            "default": [],
            "description": "The indicator ids drawn in it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "log": {
            "default": false,
            "description": "An indicator pane's own log scale (its axis foot's `L`); the price pane's is `PaneView::scale`.",
            "type": "boolean"
          },
          "main": {
            "default": false,
            "description": "Whether it is the price pane.",
            "type": "boolean"
          },
          "maximized": {
            "default": false,
            "description": "Drawn alone, filling the stack; at most one pane is.",
            "type": "boolean"
          },
          "share": {
            "description": "Its height against the others' (its stretch factor).",
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "main",
          "indicators",
          "share",
          "collapsed",
          "maximized",
          "log"
        ],
        "type": "object"
      },
      "ViewPicks": {
        "additionalProperties": false,
        "description": "A pane's view picks, the `view` node's words: at least one. An absent one keeps its value.",
        "properties": {
          "adjust_dividends": {
            "default": null,
            "description": "A stock's bars on the provider's dividend-adjusted basis (`split-dividend-spinoff`, stored apart; Taji computes none; another class keeps its provider's own); the pane loads again. Refused on a frozen window pane.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "axis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Axis"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The side of the price axis."
          },
          "box": {
            "default": null,
            "description": "A renko, kagi or point-and-figure box size, > 0; `null` returns to the ATR box.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "compare": {
            "default": null,
            "description": "Items compared on the pane, at most 3, replacing the list whole (`[]` clears); not the pane's own symbol.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "invert": {
            "default": null,
            "description": "The price axis inverted.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "legs": {
            "default": null,
            "description": "A spread's legs drawn apart; a pane that is not a spread refuses it.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SyncGroup"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The pane's link group; `null` leaves it."
          },
          "panes": {
            "description": "The stack of panes, replaced whole (`[]` the default stack): exactly one `main`, each `share` > 0, at most one `maximized`, no indicator id twice, `log` off the main pane.",
            "items": {
              "$ref": "#/components/schemas/StackedPane"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "profile": {
            "default": null,
            "description": "The volume profile.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "ratio": {
            "default": null,
            "description": "The price-to-bar ratio, > 0; `null` unlocks it.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "scale": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PriceScale"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The price scale."
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EquitySession"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The bars' session, as `/ws/market` reads it; the pane loads again. Refused on a pane that is not an intraday stock's or future's, or a frozen window."
          },
          "settings": {
            "additionalProperties": true,
            "default": null,
            "description": "The pane settings' own fields to set, each at its own words; the rest keep their values. One undo step (`edit settings`).",
            "type": [
              "object",
              "null"
            ]
          },
          "style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChartStyle"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The chart style; the tick styles (`volume_footprint`, `tpo`, `session_volume_profile`) are refused, Taji charts 1m and up."
          }
        },
        "type": "object"
      },
      "ViewRow": {
        "description": "One row of a view stream.",
        "properties": {
          "body": {
            "description": "The row as `…/account`'s `positions` row (the totals `{unrealized, day}`), the view's own figures; `null` a row closed."
          },
          "id": {
            "description": "`<account>/<symbol>`, or `<account>/*` the account's totals.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "body"
        ],
        "type": "object"
      },
      "Visibility": {
        "additionalProperties": false,
        "description": "The intervals a drawing shows on: per unit an inclusive `[from, to]` count, or null to hide it on that unit.",
        "properties": {
          "days": {
            "description": "Days, 1 to 366.",
            "items": {
              "format": "uint16",
              "maximum": 65535,
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": [
              "array",
              "null"
            ]
          },
          "hours": {
            "description": "Hours, 1 to 24.",
            "items": {
              "format": "uint16",
              "maximum": 65535,
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": [
              "array",
              "null"
            ]
          },
          "minutes": {
            "description": "Minutes, 1 to 59.",
            "items": {
              "format": "uint16",
              "maximum": 65535,
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": [
              "array",
              "null"
            ]
          },
          "months": {
            "description": "Months, 1 to 12.",
            "items": {
              "format": "uint16",
              "maximum": 65535,
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": [
              "array",
              "null"
            ]
          },
          "ranges": {
            "description": "Whether it shows on range intervals; Taji has none.",
            "type": "boolean"
          },
          "seconds": {
            "description": "Seconds, 1 to 59.",
            "items": {
              "format": "uint16",
              "maximum": 65535,
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": [
              "array",
              "null"
            ]
          },
          "ticks": {
            "description": "Whether it shows on tick intervals; Taji has none.",
            "type": "boolean"
          },
          "weeks": {
            "description": "Weeks, 1 to 52.",
            "items": {
              "format": "uint16",
              "maximum": 65535,
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "ticks",
          "ranges"
        ],
        "type": "object"
      },
      "VisibleRange": {
        "description": "A span of bar times, UTC seconds.",
        "properties": {
          "end_utc": {
            "description": "The last visible bar's time, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "start_utc": {
            "description": "The first visible bar's time, UTC seconds.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "start_utc",
          "end_utc"
        ],
        "type": "object"
      },
      "VisibleRangeRecord": {
        "description": "Mirror of [`VisibleRangeSnapshot`](taji_chart_objects::VisibleRangeSnapshot)\n(`start_utc` / `end_utc`, both `i64` UTC seconds).",
        "properties": {
          "endUtc": {
            "description": "Window end, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "startUtc": {
            "description": "Window start, UTC seconds.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "startUtc",
          "endUtc"
        ],
        "type": "object"
      },
      "VoiceAudio": {
        "description": "The voice's speech: this header, then PCM s16le mono at `ready.output_hz`.",
        "properties": {
          "id": {
            "description": "The `caption` id of the utterance the audio belongs to.",
            "type": "string"
          },
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "audio",
            "description": "`audio`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "seq"
        ],
        "type": "object"
      },
      "VoiceCaption": {
        "description": "One utterance so far; a later caption with the same `id` replaces it.",
        "properties": {
          "from": {
            "description": "The agent's name on an `agent` caption, else null.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The utterance's id on this socket.",
            "type": "string"
          },
          "role": {
            "description": "`you` the user's speech, `voice` the voice's, `agent` what Taji told the voice.",
            "enum": [
              "you",
              "voice",
              "agent"
            ],
            "type": "string"
          },
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "text": {
            "description": "The utterance whole so far.",
            "type": "string"
          },
          "type": {
            "const": "caption",
            "description": "`caption`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "role",
          "text",
          "from",
          "seq"
        ],
        "type": "object"
      },
      "VoiceCut": {
        "description": "The user began to speak over the voice, or the kernel cut a stuck turn: the\nclient stops what is playing and drops what is queued; every `audio` after\nthis frame is a later turn's.",
        "properties": {
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "cut",
            "description": "`cut`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "seq"
        ],
        "type": "object"
      },
      "VoiceEnded": {
        "description": "The session's end; the socket closes after it.",
        "properties": {
          "reason": {
            "description": "`not_linked` no voice provider linked (or not the one named), `vault_locked` its key\nsealed in a vault this session has not opened, `no_agent` no conversation to bind,\n`replaced` a newer `start` on another socket, `provider` the provider ended it, `hung_up`\nthe user hung up, `idle` the call was quiet too long, `voice` the provider lists no such voice.",
            "enum": [
              "not_linked",
              "vault_locked",
              "no_agent",
              "replaced",
              "provider",
              "hung_up",
              "idle",
              "voice"
            ],
            "type": "string"
          },
          "say": {
            "description": "The sentence for the user.",
            "type": "string"
          },
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "ended",
            "description": "`ended`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "reason",
          "say",
          "seq"
        ],
        "type": "object"
      },
      "VoiceHeard": {
        "additionalProperties": false,
        "description": "A `/ws/voice` client's `audio` header: binary, in the kernel's frame layout,\nthen PCM s16le mono at `ready.input_hz`: the open microphone, heard from\n`ready` to the socket's end.",
        "properties": {
          "type": {
            "const": "audio",
            "description": "`audio`.",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "VoiceLink": {
        "additionalProperties": {
          "type": "string",
          "writeOnly": true
        },
        "description": "A voice provider linked by its row's fields. Beside `provider`: the row's\n`fields`, each a non-empty string, and no other key.",
        "properties": {
          "provider": {
            "description": "The voice provider's id, as `GET /read/voice` serves it.",
            "type": "string"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "VoiceLinked": {
        "description": "What `voice/link` answers: the voice provider linked.",
        "properties": {
          "provider": {
            "description": "The voice provider's id.",
            "type": "string"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "VoiceList": {
        "description": "What `GET /read/voice` answers: one [`VoiceProvider`] per voice provider this build holds.",
        "items": {
          "$ref": "#/components/schemas/VoiceProvider"
        },
        "type": "array"
      },
      "VoiceName": {
        "additionalProperties": false,
        "description": "A voice provider, by its id.",
        "properties": {
          "provider": {
            "description": "The voice provider's id, as `GET /read/voice` serves it.",
            "type": "string"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "VoicePlayed": {
        "additionalProperties": false,
        "description": "How much of a cut utterance the client played, sent after a `cut`; one naming\nanother utterance than the one the last cut ended is ignored.",
        "properties": {
          "id": {
            "description": "The `caption` id of the utterance the cut ended.",
            "type": "string"
          },
          "ms": {
            "description": "Milliseconds of its audio the client played.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "const": "played",
            "description": "`played`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id",
          "ms"
        ],
        "type": "object"
      },
      "VoicePreset": {
        "description": "A voice a provider offers.",
        "properties": {
          "id": {
            "description": "The provider's word for the voice, what `start`'s `voice` names.",
            "type": "string"
          },
          "name": {
            "description": "The voice's display name.",
            "type": "string"
          },
          "tone": {
            "description": "The provider's own descriptor of the voice, where it publishes one.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "tone"
        ],
        "type": "object"
      },
      "VoiceProvider": {
        "description": "A voice provider.",
        "properties": {
          "error": {
            "description": "The arm's last sentence, `null` once a link lands.",
            "type": [
              "string",
              "null"
            ]
          },
          "fields": {
            "description": "The secret fields its link takes.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The wire word (`openai`), what `voice/*` verbs name it by.",
            "type": "string"
          },
          "name": {
            "description": "The provider as a person writes it (`OpenAI`).",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/VoiceState"
          },
          "voices": {
            "description": "The voices a session can speak in, the provider's recommended one first.",
            "items": {
              "$ref": "#/components/schemas/VoicePreset"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "fields",
          "state",
          "error",
          "voices"
        ],
        "type": "object"
      },
      "VoiceReady": {
        "description": "The voice session bound: on `start`, and again on each re-bind.",
        "properties": {
          "desk": {
            "description": "The desk whose conversation the voice speaks for.",
            "type": "string"
          },
          "input_hz": {
            "description": "The PCM s16le mono rate the client's `audio` is sent at, in hertz.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "description": "The voice provider as a person writes it.",
            "type": "string"
          },
          "output_hz": {
            "description": "The PCM s16le mono rate of the kernel's `audio`, in hertz.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "provider": {
            "description": "The voice provider's id.",
            "type": "string"
          },
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "session": {
            "description": "That conversation's chat.",
            "type": "string"
          },
          "type": {
            "const": "ready",
            "description": "`ready`.",
            "type": "string"
          },
          "voice": {
            "description": "The voice in use, one of the provider's `voices` ids.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "provider",
          "name",
          "voice",
          "desk",
          "session",
          "input_hz",
          "output_hz",
          "seq"
        ],
        "type": "object"
      },
      "VoiceStart": {
        "additionalProperties": false,
        "description": "A `/ws/voice` client's `start`: the voice session on `desk`'s conversation; sent\nagain, it re-binds to that desk with no new provider session.",
        "properties": {
          "desk": {
            "description": "The desk whose conversation the voice speaks for.",
            "type": "string"
          },
          "provider": {
            "default": null,
            "description": "A voice provider's id, as `GET /read/voice` serves it; absent, the first linked one.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "const": "start",
            "description": "`start`.",
            "type": "string"
          },
          "voice": {
            "default": null,
            "description": "One of that provider's `voices` ids; absent, its first. Read on the first `start` only.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "type",
          "desk"
        ],
        "type": "object"
      },
      "VoiceState": {
        "description": "Where a voice provider's link stands: `unlinked`; `locked` (linked, its secret sealed under\nvault record `voice_<id>` in a vault this session has not opened); `linked`.",
        "enum": [
          "unlinked",
          "locked",
          "linked"
        ],
        "type": "string"
      },
      "VoiceStatus": {
        "description": "The provider's connection: `reconnecting` while the arm has none, `listening` once it is back.",
        "properties": {
          "cut": {
            "description": "A reply was cut by the reconnect, framed `cut` just before.",
            "type": "boolean"
          },
          "seq": {
            "description": "This frame's number on the socket, counting from 1.",
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "state": {
            "description": "`reconnecting` while the arm has no connection, `listening` once it is back.",
            "enum": [
              "reconnecting",
              "listening"
            ],
            "type": "string"
          },
          "type": {
            "const": "status",
            "description": "`status`.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "state",
          "cut",
          "seq"
        ],
        "type": "object"
      },
      "VoiceUnlinked": {
        "description": "What `voice/unlink` answers: the voice provider unlinked.",
        "properties": {
          "provider": {
            "description": "The voice provider's id.",
            "type": "string"
          }
        },
        "required": [
          "provider"
        ],
        "type": "object"
      },
      "VolHedge": {
        "description": "The delta-neutral order a [`Exec::Vol`] fill sends on the underlying.",
        "properties": {
          "exec": {
            "$ref": "#/components/schemas/Exec",
            "description": "A `Market` or a `Limit`."
          }
        },
        "required": [
          "exec"
        ],
        "type": "object"
      },
      "VolHedgeAsk": {
        "additionalProperties": false,
        "description": "The delta-neutral order a [`Exec::Vol`] fill sends on the underlying.",
        "properties": {
          "exec": {
            "$ref": "#/components/schemas/ExecAsk",
            "description": "A `Market` or a `Limit`."
          }
        },
        "required": [
          "exec"
        ],
        "type": "object"
      },
      "VolPer": {
        "description": "What a [`Exec::Vol`]'s volatility is per.",
        "enum": [
          "daily",
          "annual"
        ],
        "type": "string"
      },
      "VolReference": {
        "description": "The underlying's price a [`Exec::Vol`] is computed off: the NBBO's\naverage or its own side's.",
        "enum": [
          "nbbo_average",
          "nbbo"
        ],
        "type": "string"
      },
      "VolatilitySurface": {
        "description": "One underlying's volatility and volume off one chain read.",
        "properties": {
          "as_of": {
            "description": "When the chain read's figures stood, its `snapshot_dt`: its newest\nrow's quote time, else when it was fetched; `null` where it holds no row.",
            "type": [
              "string",
              "null"
            ]
          },
          "atm": {
            "items": {
              "$ref": "#/components/schemas/Atm"
            },
            "type": "array"
          },
          "feed": {
            "description": "Which of the provider's feeds quoted the chain.",
            "type": [
              "string",
              "null"
            ]
          },
          "provider": {
            "description": "Who answered the chain.",
            "type": [
              "string",
              "null"
            ]
          },
          "smiles": {
            "items": {
              "$ref": "#/components/schemas/Smile"
            },
            "type": "array"
          },
          "spot": {
            "description": "The underlying's last trade the chain read states.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          },
          "tenors": {
            "items": {
              "$ref": "#/components/schemas/Tenor"
            },
            "type": "array"
          },
          "underlying": {
            "description": "The chain's underlying, bare (`SPX` for `$SPX.X`).",
            "type": "string"
          },
          "volume": {
            "description": "Calls' and puts' volume by expiry and strike.",
            "items": {
              "$ref": "#/components/schemas/Volume"
            },
            "type": "array"
          }
        },
        "required": [
          "underlying",
          "provider",
          "feed",
          "spot",
          "as_of",
          "smiles",
          "atm",
          "tenors",
          "volume"
        ],
        "type": "object"
      },
      "Volume": {
        "description": "One strike's traded contracts on one expiry, by right.",
        "properties": {
          "calls": {
            "description": "The call's volume in contracts; `null` where the vendor states none or the strike has no call.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "expiry": {
            "description": "Expiry date, `YYYY-MM-DD`.",
            "format": "date",
            "type": "string"
          },
          "puts": {
            "description": "The put's volume in contracts; `null` where the vendor states none or the strike has no put.",
            "format": "uint64",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "root": {
            "description": "The OCC series root (`SPX` beside `SPXW`).",
            "type": "string"
          },
          "strike": {
            "description": "Strike price, shared by the call and the put.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "expiry",
          "root",
          "strike",
          "calls",
          "puts"
        ],
        "type": "object"
      },
      "VolumeProfile": {
        "description": "A volume profile: row `k` spans `low + k·row_height` to `low + (k+1)·row_height`.",
        "properties": {
          "down": {
            "description": "Each row's volume from bars that closed below their open.",
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": "array"
          },
          "low": {
            "description": "The price at row 0's bottom, `null` where it is not finite.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "poc": {
            "description": "The busiest row.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "poc_price": {
            "description": "The busiest row's middle.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "row_height": {
            "description": "Each row's height in price, `null` where it is not finite.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "up": {
            "description": "Each row's volume from bars that closed at or above their open.",
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": "array"
          },
          "vah": {
            "description": "The value area's high edge.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "val": {
            "description": "The value area's low edge.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "value_area": {
            "description": "The value area's first and last rows.",
            "items": {
              "format": "uint",
              "minimum": 0,
              "type": "integer"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          }
        },
        "required": [
          "low",
          "row_height",
          "up",
          "down",
          "poc",
          "poc_price",
          "value_area",
          "val",
          "vah"
        ],
        "type": "object"
      },
      "VolumeRule": {
        "description": "The symbol's volume today against `volume` shares.",
        "properties": {
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          },
          "symbol": {
            "description": "The symbol whose volume is watched.",
            "type": "string"
          },
          "volume": {
            "description": "What the symbol's volume is compared with, in shares.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "symbol",
          "predicate",
          "volume",
          "join"
        ],
        "type": "object"
      },
      "VolumeRuleAsk": {
        "additionalProperties": false,
        "description": "The symbol's volume today against `volume` shares.",
        "properties": {
          "join": {
            "$ref": "#/components/schemas/Join",
            "default": "And"
          },
          "predicate": {
            "$ref": "#/components/schemas/Predicate"
          },
          "symbol": {
            "description": "The symbol whose volume is watched.",
            "type": "string"
          },
          "volume": {
            "description": "What the symbol's volume is compared with, in shares.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "symbol",
          "predicate",
          "volume"
        ],
        "type": "object"
      },
      "Was": {
        "description": "What a modified order rested at before.",
        "properties": {
          "price": {
            "description": "Its resting price; a decimal string.",
            "type": [
              "string",
              "null"
            ]
          },
          "stop": {
            "description": "Its stop; a decimal string.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "price",
          "stop"
        ],
        "type": "object"
      },
      "Watch": {
        "anyOf": [
          {
            "anyOf": [
              {
                "properties": {
                  "bars": {
                    "description": "Closed bars back the move is measured from, for a moving `when`; `None` otherwise.",
                    "format": "uint32",
                    "minimum": 0,
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "of": {
                    "$ref": "#/components/schemas/Operand"
                  },
                  "price": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Operand"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "upper": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Operand"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "value": {
                    "description": "The size of the move, for a moving `when`; `None` otherwise.",
                    "format": "double",
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "when": {
                    "$ref": "#/components/schemas/When"
                  }
                },
                "required": [
                  "when",
                  "of"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "price": {
                    "description": "The price compared with; a channel's one bound, `upper` its other.",
                    "format": "double",
                    "type": "number"
                  },
                  "upper": {
                    "description": "A channel's second price; `None` for a level.",
                    "format": "double",
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "when": {
                    "$ref": "#/components/schemas/When"
                  }
                },
                "required": [
                  "when",
                  "price"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "bars": {
                    "description": "Closed bars back the move is measured from, 1 to 300.",
                    "format": "uint32",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "value": {
                    "description": "The move that trips it: price units, or percent of the close `bars` back for a `_pct` `when`.",
                    "format": "double",
                    "type": "number"
                  },
                  "when": {
                    "$ref": "#/components/schemas/When"
                  }
                },
                "required": [
                  "when",
                  "value",
                  "bars"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "drawing": {
                    "description": "The annotation's id, a UUID.",
                    "type": "string"
                  },
                  "shape": {
                    "$ref": "#/components/schemas/Shape",
                    "description": "The drawing's kind, as its extend flags now make it."
                  },
                  "when": {
                    "$ref": "#/components/schemas/When"
                  }
                },
                "required": [
                  "when",
                  "drawing",
                  "shape"
                ],
                "type": "object"
              }
            ],
            "description": "One condition on the spot: against a price (a channel's second price is\n`upper`), a move over the last `bars` closed bars, `value` in price\nunits, or percent of the close `bars` back for a `_pct` word; or against\nthe annotation `drawing` on the watch's symbol, its level computed each\npoll; or, `Indicator`, one whose source (`of`) or a bound is a built-in\nindicator's plot, computed each poll over its chart's bars. First, so a\nrow holding `of` is never read as a price or a move.",
            "properties": {
              "and": {
                "description": "At most one.",
                "items": {
                  "$ref": "#/components/schemas/Condition"
                },
                "type": "array"
              },
              "interval": {
                "description": "The interval word a move is counted in bars of, `None` with no move.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "session": {
                "$ref": "#/components/schemas/BarSession",
                "description": "The alert's one session: its spot's ticks, and a drawing's or an\nindicator's bars."
              },
              "symbol": {
                "description": "The item watched, `kind:key`.",
                "type": "string"
              }
            },
            "required": [
              "symbol",
              "session"
            ],
            "type": "object"
          },
          {
            "properties": {
              "calendar": {
                "$ref": "#/components/schemas/SessionCalendar"
              },
              "fire": {
                "$ref": "#/components/schemas/AlertFire"
              }
            },
            "required": [
              "fire",
              "calendar"
            ],
            "type": "object"
          }
        ],
        "description": "One alert the Desk holds: a level or an instant, its\n[`Alert`] options, its [`State`] and every fire. Each fire is also a desk note.",
        "properties": {
          "added_utc": {
            "description": "When the alert was made, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "expires_utc": {
            "default": null,
            "description": "`None` is Open-ended.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "fires": {
            "items": {
              "$ref": "#/components/schemas/Fired"
            },
            "type": "array"
          },
          "id": {
            "description": "The watch's id, a UUID.",
            "type": "string"
          },
          "message": {
            "default": "",
            "description": "Empty is [`Watch::message`]'s default.",
            "type": "string"
          },
          "name": {
            "default": null,
            "description": "The alert's own name, `None` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "notify": {
            "$ref": "#/components/schemas/Notify",
            "default": {
              "schedule": "24/7",
              "sound": true,
              "sound_secs": 0,
              "toast": true
            }
          },
          "state": {
            "$ref": "#/components/schemas/WatchState"
          },
          "trigger": {
            "$ref": "#/components/schemas/Repeat",
            "default": "once"
          }
        },
        "required": [
          "id",
          "trigger",
          "expires_utc",
          "message",
          "name",
          "notify",
          "added_utc",
          "state",
          "fires"
        ],
        "type": "object"
      },
      "WatchColumn": {
        "description": "A watchlist column after the symbol, declared in the standard order.",
        "oneOf": [
          {
            "enum": [
              "last",
              "change",
              "change_pct",
              "volume"
            ],
            "type": "string"
          },
          {
            "const": "ext",
            "description": "The extended-hours change, percent.",
            "type": "string"
          }
        ]
      },
      "WatchFires": {
        "additionalProperties": false,
        "description": "The fires to mark read.",
        "properties": {
          "at_utc": {
            "default": null,
            "description": "With exactly one id, only that watch's fire at this UTC second (a log row clicked).",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "ids": {
            "default": null,
            "description": "The watches whose fires are read; absent, every watch's.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "WatchId": {
        "additionalProperties": false,
        "description": "One watch.",
        "properties": {
          "id": {
            "description": "The watch's id, a UUID.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "WatchIds": {
        "additionalProperties": false,
        "description": "The watches to copy.",
        "properties": {
          "ids": {
            "description": "The watches' ids, at least one: a new `active` watch per id, with its source's trigger and options and no fires, whatever the source's state.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "WatchRow": {
        "description": "An alert a Desk holds, as the Alerts list reads it: what it fires on, its options, its state and what the last poll saw.",
        "properties": {
          "added_utc": {
            "description": "When it was added, UTC seconds.",
            "format": "int64",
            "type": "integer"
          },
          "and": {
            "description": "The second condition, `[]` with none.",
            "items": {
              "$ref": "#/components/schemas/Condition"
            },
            "type": "array"
          },
          "bars": {
            "description": "How many closed bars back a move counts.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "calendar": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionCalendar"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session calendar an instant fires on."
          },
          "drawing": {
            "description": "A drawing condition's annotation id.",
            "type": [
              "string",
              "null"
            ]
          },
          "expires_utc": {
            "description": "When it expires, UTC seconds; `null` is open-ended.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "fire": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AlertFire"
              },
              {
                "type": "null"
              }
            ],
            "description": "When an instant fires."
          },
          "fired": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Fired"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last fire, `null` with none."
          },
          "fires": {
            "description": "Every fire, oldest first.",
            "items": {
              "$ref": "#/components/schemas/Fired"
            },
            "type": "array"
          },
          "id": {
            "description": "The watch's id, a UUID.",
            "type": "string"
          },
          "interval": {
            "description": "The interval word a move is counted in bars of.",
            "type": [
              "string",
              "null"
            ]
          },
          "level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Level"
              },
              {
                "type": "null"
              }
            ],
            "description": "A drawing or indicator condition's level at the open of the bar now this poll; `null` while `waiting` or `refused` says why, and on a price."
          },
          "message": {
            "description": "What a fire says; its default is built from the condition.",
            "type": "string"
          },
          "name": {
            "description": "The alert's own name, `null` with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "next_utc": {
            "description": "The first instant an active instant lands on, UTC seconds; `null` on a level or a stopped watch.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "node": {
            "description": "The path of the watch, `desk/<id>/watches/<watch>`.",
            "type": "string"
          },
          "notify": {
            "$ref": "#/components/schemas/Notify",
            "description": "Who hears a fire."
          },
          "of": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Operand"
              },
              {
                "type": "null"
              }
            ],
            "description": "An indicator condition's source."
          },
          "of_value": {
            "description": "The source's value this poll, the spot for `price`.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Operand"
              },
              {
                "type": "null"
              }
            ],
            "description": "A price condition's price (a channel's lower), or an indicator condition's bound."
          },
          "refused": {
            "description": "Why no provider streams it, `null` while one does.",
            "type": [
              "string",
              "null"
            ]
          },
          "schedule_tz": {
            "description": "The display timezone `notify.schedule`'s hours are read in.",
            "type": "string"
          },
          "session": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BarSession"
              },
              {
                "type": "null"
              }
            ],
            "description": "The session its spot, a drawing's or an indicator's bars read in, `null` on an instant."
          },
          "shape": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Shape"
              },
              {
                "type": "null"
              }
            ],
            "description": "A drawing condition's kind, as its extend flags now make it."
          },
          "source": {
            "description": "The provider word streaming the symbol, `null` while none does.",
            "type": [
              "string",
              "null"
            ]
          },
          "spot": {
            "description": "The newest price the feed answered.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/WatchState",
            "description": "Only an `active` watch is polled."
          },
          "symbol": {
            "description": "The item watched, `null` on an instant.",
            "type": [
              "string",
              "null"
            ]
          },
          "trigger": {
            "$ref": "#/components/schemas/Repeat",
            "description": "How often it fires."
          },
          "upper": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Operand"
              },
              {
                "type": "null"
              }
            ],
            "description": "A channel's other price or bound."
          },
          "value": {
            "description": "A move's size in price units, or percent for a `_pct` word.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "waiting": {
            "description": "Why a move cannot be judged yet, `null` while it can.",
            "type": [
              "string",
              "null"
            ]
          },
          "when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/When"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition's word, `null` on an instant."
          }
        },
        "required": [
          "id",
          "node",
          "symbol",
          "when",
          "drawing",
          "shape",
          "session",
          "level",
          "of",
          "of_value",
          "price",
          "upper",
          "value",
          "bars",
          "interval",
          "and",
          "fire",
          "calendar",
          "trigger",
          "expires_utc",
          "message",
          "name",
          "notify",
          "schedule_tz",
          "state",
          "next_utc",
          "added_utc",
          "fires",
          "fired",
          "spot",
          "source",
          "refused",
          "waiting"
        ],
        "type": "object"
      },
      "WatchState": {
        "description": "Only an `Active` watch is polled; the rest wait for an edit to re-arm them.",
        "enum": [
          "active",
          "paused",
          "triggered",
          "expired"
        ],
        "type": "string"
      },
      "Watches": {
        "description": "A Desk's alerts, in the order they were added.",
        "items": {
          "$ref": "#/components/schemas/WatchRow"
        },
        "type": "array"
      },
      "Watchlist": {
        "description": "A Desk's watchlist: the active list's rows, every list, and how rows show.",
        "properties": {
          "columns": {
            "description": "The figures every list shows after the symbol, in the standard order; default `last`, `change`, `change_pct`.",
            "items": {
              "$ref": "#/components/schemas/WatchColumn"
            },
            "type": "array"
          },
          "flags": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Flag"
            },
            "description": "The Desk's flag per item across every list (`{\"equity:NFLX\": \"green\"}`), a flag dropped with its symbol's last row.",
            "type": "object"
          },
          "lists": {
            "description": "Every list, the active first.",
            "items": {
              "$ref": "#/components/schemas/ListSummary"
            },
            "type": "array"
          },
          "logo": {
            "description": "Whether the symbol's logo disc is shown, default `true`.",
            "type": "boolean"
          },
          "name": {
            "description": "The active list's name, `Watchlist` until renamed.",
            "type": "string"
          },
          "rows": {
            "description": "The active list in its order.",
            "items": {
              "$ref": "#/components/schemas/WatchlistRow"
            },
            "type": "array"
          },
          "show": {
            "$ref": "#/components/schemas/SymbolDisplay",
            "description": "What the symbol cell reads, `symbol` or `name`."
          }
        },
        "required": [
          "name",
          "lists",
          "flags",
          "columns",
          "logo",
          "show",
          "rows"
        ],
        "type": "object"
      },
      "WatchlistRow": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/WatchlistSection"
          },
          {
            "$ref": "#/components/schemas/WatchlistSymbol"
          }
        ],
        "description": "One row of the active list."
      },
      "WatchlistSection": {
        "description": "A section row.",
        "properties": {
          "section": {
            "description": "The section's name.",
            "type": "string"
          },
          "symbol": {
            "description": "`###<name>`.",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "section"
        ],
        "type": "object"
      },
      "WatchlistSymbol": {
        "description": "A symbol row.",
        "properties": {
          "change": {
            "description": "`session_close` (else `last`) less `prev_close`.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "change_pct": {
            "description": "`change` in percent.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "class": {
            "description": "The symbol's class word, `null` for an item with none.",
            "type": [
              "string",
              "null"
            ]
          },
          "ext_change": {
            "description": "`last - session_close` where the symbol trades past that close (an equity or option: an index has one session).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "ext_change_pct": {
            "description": "`ext_change` in percent.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "instrument": {
            "$ref": "#/components/schemas/InstrumentSpec",
            "description": "What the chart node's `view` carries as `instrument`."
          },
          "last": {
            "description": "The newest price off the hub's quote upstream on the symbol (the watches' one).",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "prev_close": {
            "description": "The quote day's previous close, as `get/quotes` serves it: the trading day before's daily bar.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "refused": {
            "description": "Why no provider streams it, `null` while one does.",
            "type": [
              "string",
              "null"
            ]
          },
          "session_close": {
            "description": "The session's regular close once it ended, an equity's, option's or index's alone.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "description": "The provider word streaming the symbol, `null` while none does.",
            "type": [
              "string",
              "null"
            ]
          },
          "symbol": {
            "description": "The item, `kind:key`.",
            "type": "string"
          },
          "volume": {
            "description": "The session's minutes' so far, else the latest daily bar's through `get/bars`, none bought.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "symbol",
          "class",
          "instrument",
          "last",
          "prev_close",
          "change",
          "change_pct",
          "volume",
          "session_close",
          "ext_change",
          "ext_change_pct",
          "source",
          "refused"
        ],
        "type": "object"
      },
      "Watchlists": {
        "description": "What the watchlist keeps beside the active list's rows. Every field\ndefaults to the standard set, so a `desk.json` written before it reads as it\nwas.",
        "properties": {
          "columns": {
            "default": [
              "last",
              "change",
              "change_pct",
              "ext"
            ],
            "description": "The figures each row shows after its symbol, in the standard order.",
            "items": {
              "$ref": "#/components/schemas/WatchColumn"
            },
            "type": "array"
          },
          "flags": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Flag"
            },
            "description": "The Desk's flag per item, across every list; the flagged lists are\nread off it.",
            "type": "object"
          },
          "logo": {
            "default": true,
            "description": "Whether each row shows the item's logo.",
            "type": "boolean"
          },
          "name": {
            "description": "The active list's; `None` reads `Watchlist`.",
            "type": [
              "string",
              "null"
            ]
          },
          "shelved": {
            "description": "The other lists, in the order made.",
            "items": {
              "$ref": "#/components/schemas/ShelvedList"
            },
            "type": "array"
          },
          "show": {
            "$ref": "#/components/schemas/SymbolDisplay",
            "default": "symbol"
          }
        },
        "required": [
          "columns",
          "logo",
          "show"
        ],
        "type": "object"
      },
      "WebStarted": {
        "description": "A captured provider's `taji-link`, running.",
        "properties": {
          "started": {
            "description": "The provider's word.",
            "type": "string"
          }
        },
        "required": [
          "started"
        ],
        "type": "object"
      },
      "Weekday": {
        "description": "Monday first, as the schedule's chips are.",
        "enum": [
          "mo",
          "tu",
          "we",
          "th",
          "fr",
          "sa",
          "su"
        ],
        "type": "string"
      },
      "WhatIfCurve": {
        "description": "One what-if's curve, at `current`'s points.",
        "properties": {
          "curve": {
            "description": "`[underlying, dollars]` at the payoff's `current` points.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                },
                {
                  "pattern": "^-?\\d+(\\.\\d+)?$",
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "days": {
            "description": "Days from now the legs are valued at.",
            "format": "double",
            "type": "number"
          },
          "iv_shift_pct": {
            "description": "Points added to each leg's IV (`10` is 0.25 to 0.35), floored at zero; negative lowers it.",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "type": "string"
          }
        },
        "required": [
          "days",
          "iv_shift_pct",
          "curve"
        ],
        "type": "object"
      },
      "When": {
        "description": "How a level [`Watch`] compares the spot with its price, the\nconditions in menu order.",
        "enum": [
          "crosses",
          "crosses_up",
          "crosses_down",
          "above",
          "below",
          "entering_channel",
          "exiting_channel",
          "inside_channel",
          "outside_channel",
          "moving_up",
          "moving_down",
          "moving_up_pct",
          "moving_down_pct"
        ],
        "type": "string"
      },
      "Width": {
        "additionalProperties": false,
        "description": "A pane's measure, posted when the pane is measured and on resize: kept with the pane's view, it sizes the pane's later loads (a first paint one viewport + 100 bars, the reach and a scroll-back three viewports each; 300 bars a viewport while no window has said).",
        "properties": {
          "spacing": {
            "description": "The default frame's px a bar, > 0.",
            "format": "double",
            "type": "number"
          },
          "width": {
            "description": "The plot's width in px, > 0.",
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "width",
          "spacing"
        ],
        "type": "object"
      },
      "Window": {
        "description": "`start` to `end`.",
        "properties": {
          "end": {
            "description": "When the window closes.",
            "format": "date-time",
            "type": "string"
          },
          "start": {
            "description": "When the window opens.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "start",
          "end"
        ],
        "type": "object"
      },
      "WindowAsk": {
        "additionalProperties": false,
        "description": "`start` to `end`.",
        "properties": {
          "end": {
            "description": "When the window closes.",
            "format": "date-time",
            "type": "string"
          },
          "start": {
            "description": "When the window opens.",
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "start",
          "end"
        ],
        "type": "object"
      },
      "WindowStart": {
        "additionalProperties": false,
        "description": "The kernel's own window, started.",
        "properties": {
          "args": {
            "description": "`taji ui`'s flags: `--gl`, `--form <form>`, `--target <desk_id>/<name>`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "args"
        ],
        "type": "object"
      },
      "WindowStarted": {
        "description": "The window the kernel started.",
        "properties": {
          "keyed": {
            "description": "Whether it holds this run's window key: `false` where `TAJI_UI_DIR` serves a page from disk.",
            "type": "boolean"
          },
          "open": {
            "description": "Whether a page held a socket before the start: a second window hands its flags to that one and exits.",
            "type": "boolean"
          }
        },
        "required": [
          "keyed",
          "open"
        ],
        "type": "object"
      },
      "WindowState": {
        "description": "The window's own state, `ui`.",
        "properties": {
          "display_tz": {
            "description": "The IANA zone the window shows times in.",
            "type": "string"
          },
          "stage": {
            "$ref": "#/components/schemas/Stage",
            "description": "Which accounts its Book and ticket show; `paper` at every launch."
          }
        },
        "required": [
          "display_tz",
          "stage"
        ],
        "type": "object"
      },
      "Word": {
        "description": "A typed word: a product's query word or a layer's style.",
        "properties": {
          "default": {
            "description": "Of `type`, within `min` and `max`."
          },
          "doc": {
            "description": "One sentence on what the word changes.",
            "type": [
              "string",
              "null"
            ]
          },
          "max": {
            "description": "An `int` or `float` word's upper bound, inclusive.",
            "type": [
              "number",
              "null"
            ]
          },
          "min": {
            "description": "An `int` or `float` word's lower bound, inclusive.",
            "type": [
              "number",
              "null"
            ]
          },
          "name": {
            "description": "`^[a-z_]+$`; a product's, none of [`READ_WORDS`].",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/WordType",
            "description": "What the word's value is."
          },
          "values": {
            "description": "A `string` word's choices, 1 to 32 distinct, `default` one of them.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "type",
          "default"
        ],
        "type": "object"
      },
      "WordType": {
        "description": "A word's value type.",
        "oneOf": [
          {
            "const": "int",
            "description": "A whole number.",
            "type": "string"
          },
          {
            "const": "float",
            "description": "A number.",
            "type": "string"
          },
          {
            "const": "bool",
            "description": "True or false.",
            "type": "string"
          },
          {
            "const": "string",
            "description": "Text.",
            "type": "string"
          }
        ]
      },
      "Year": {
        "description": "One calendar year (UTC) of closes.",
        "properties": {
          "current": {
            "description": "The year `now` is in.",
            "type": "boolean"
          },
          "points": {
            "description": "`[x, pct]`: `x` the share of the year gone (0 at Jan 1, 1 at the next),\n`pct` the change since the year's first close, percent, six places.",
            "items": {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "format": "double",
                  "type": "number"
                },
                {
                  "type": "string"
                }
              ],
              "type": "array"
            },
            "type": "array"
          },
          "year": {
            "description": "The calendar year (UTC).",
            "format": "int16",
            "maximum": 32767,
            "minimum": -32768,
            "type": "integer"
          }
        },
        "required": [
          "year",
          "current",
          "points"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "token": {
        "in": "header",
        "name": "x-taji-token",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "The kernel's one interface: HTTP and WebSockets on `127.0.0.1`, used by the window, the MCP bridge, `taji ui` and scripts. Send `x-taji-token` on every request, read from `wire-token` in the state directory, where `wire-port` holds the port. Conventions, scopes, refusals and feeds: [Wire](https://docs.taji.is/reference/wire/).",
    "title": "Taji wire",
    "version": "0.19.0"
  },
  "openapi": "3.1.1",
  "paths": {
    "/": {
      "get": {
        "description": "200 `Root`",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Root"
                }
              }
            },
            "description": "What `GET /` answers. [`RootSource::root_reply`] writes it piece by piece,\nwith no [`Value`] of the whole, so this type is its schema alone, held to\nthose bytes by `conforms`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the API root",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/app/": {
      "get": {
        "description": "200 the bundle embedded in this binary — or, where `TAJI_UI_DIR` names one, that directory's and only that one's — `Cache-Control: public, max-age=31536000, immutable` on the embedded bundle's content-hashed `assets/` and `no-store` on everything else (the page, a non-200, and every `TAJI_UI_DIR` file), so a new build shows on the next load; the `Content-Security-Policy` the page runs under, its `script-src` only `http://127.0.0.1:<port>/app/assets/` and `http://localhost:<port>/app/assets/` (`offline.html`'s its own inline style alone: the phone's worker replays it), and no token, the page holds no secret; `/app/` is its `index.html`, `/app/sheet/` the sheet's `sheet/index.html`, each document (a path answering an `.html` file) with `Cross-Origin-Opener-Policy: same-origin` and a `Permissions-Policy` granting no camera, geolocation, USB, serial, HID, Bluetooth, MIDI, payment or display capture, and the microphone to the page's own origin alone (`index.html`; the sheet's grants none), answered `X-Frame-Options: DENY` under `/app/sheet` as well, `/app/frame/kit.css` with `Access-Control-Allow-Origin: *` (a framed plugin's opaque origin reads its rules), every other bundle file except `logo/` with `Cross-Origin-Resource-Policy: same-origin`, and the query is the page's own. Where the bundle holds `<file>.br` or `<file>.gz` (written beside each text file at build) and the request's `Accept-Encoding` allows it, `br` first, that copy is the body, with `Content-Encoding` and the file's own `Content-Type`; every bundle answer carries `Vary: Accept-Encoding`. A segment that is `..`, `.`, empty or carries a separator, and any path resolving outside the root, is 404, as is a file neither source holds",
        "parameters": [],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the window app",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/app/logo/{category}/{symbol}": {
      "get": {
        "description": "200 `image/png` and the logo service's `Cache-Control`, whatever `TAJI_UI_DIR` says. The kernel keeps nothing: each ask is fetched from Taji's logo service, `<TAJI_LOGO_URL>/<category>/<SYMBOL>.png` (5 s, no redirects; an empty `TAJI_LOGO_URL` asks nothing), and relayed when it answers a PNG of at most 256 KiB. 404 for a path that leaves `logo/`, a key that is not a lower-case category and a symbol of 1 to 24 of `A-Z0-9.$^-`, and any fetch that fails or is not such a PNG, `no-store` but where the service itself answered 404, which keeps its `Cache-Control`. No token, as the bundle",
        "parameters": [
          {
            "in": "path",
            "name": "category",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "symbol",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a symbol logo",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/app/{path}": {
      "get": {
        "description": "200 the bundle embedded in this binary — or, where `TAJI_UI_DIR` names one, that directory's and only that one's — `Cache-Control: public, max-age=31536000, immutable` on the embedded bundle's content-hashed `assets/` and `no-store` on everything else (the page, a non-200, and every `TAJI_UI_DIR` file), so a new build shows on the next load; the `Content-Security-Policy` the page runs under, its `script-src` only `http://127.0.0.1:<port>/app/assets/` and `http://localhost:<port>/app/assets/` (`offline.html`'s its own inline style alone: the phone's worker replays it), and no token, the page holds no secret; `/app/` is its `index.html`, `/app/sheet/` the sheet's `sheet/index.html`, each document (a path answering an `.html` file) with `Cross-Origin-Opener-Policy: same-origin` and a `Permissions-Policy` granting no camera, geolocation, USB, serial, HID, Bluetooth, MIDI, payment or display capture, and the microphone to the page's own origin alone (`index.html`; the sheet's grants none), answered `X-Frame-Options: DENY` under `/app/sheet` as well, `/app/frame/kit.css` with `Access-Control-Allow-Origin: *` (a framed plugin's opaque origin reads its rules), every other bundle file except `logo/` with `Cross-Origin-Resource-Policy: same-origin`, and the query is the page's own. Where the bundle holds `<file>.br` or `<file>.gz` (written beside each text file at build) and the request's `Accept-Encoding` allows it, `br` first, that copy is the body, with `Content-Encoding` and the file's own `Content-Type`; every bundle answer carries `Vary: Accept-Encoding`. A segment that is `..`, `.`, empty or carries a separator, and any path resolving outside the root, is 404, as is a file neither source holds",
        "parameters": [
          {
            "description": "The rest of the tree path, slashes included.",
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a window app file",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "rest": true,
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/describe/data/coverage": {
      "get": {
        "description": "200 `Line` — one clause per class: `equity · bars/D 2016→ ×2 · …`, `not measured` where `from` is null, `none linked` with no source",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Line"
                }
              }
            },
            "description": "What a describe read answers: the node in one line."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Describe data coverage",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/describe/desk/{id}/{path}": {
      "get": {
        "description": "200 `Node` and `Line`; `<path>` the rest of the node's path, slashes included: the same nodes for ANY Desk the list holds, active or not: an `<id>` that is not the active one is answered off that Desk's own tree, built per request (`App::tree_of`), and a Desk the list does not hold is 404. Reading another Desk is not switching to it — `GET /` still carries the active one",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The rest of the tree path, slashes included.",
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Line"
                }
              }
            },
            "description": "What a describe read answers: the node in one line."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Describe a desk node",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "rest": true,
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/describe/plugins": {
      "get": {
        "description": "200 `[Plugin]`, one row per plugin (`crate::plugin`, the registry of the one seam, `taji_plugin`), `source` `build` for one this build added, `dev` for a `TAJI_PLUGINS` one, `installed` with its `publisher` for one installed from the registry, then one row per installed plugin not seated, `enabled` false and `reason` why, `products` a process plugin's own (`<id>.<name>`, read as `GET /get/<id>.<name>` and streamed on `/ws/market`, one with a `shape` folded on either by `every` (seconds, the UTC grid) or `timeframe` (an intraday chart's bars under `session`, absent the item's bars default; both, or daily and coarser, 400), the newest slice `forming`), `layers` its `[[ui.layers]]` rows as declared (`id`, `label`, `product`, `renderer`, `shader`, `slot`, `style`), each a `definition` `add_indicator` takes, with its `readiness` (`crate::plugin::readiness`): one `{class, missing}` per class its sources read its product on, `missing` each need of the product no linked, on provider serves there (`{product, span, providers}`, `providers` those unlinked or switched off that would, `[]` none), so a class absent is not for it; `ui.panes` carry the same off their `reads` routes' products, and both are framed `changed plugins` on every `link` frame and data switch, `name` its manifest's, `free` whether its data costs nothing, `kind` `venue` for a plugin that registers an execution arm and `data` for any other, `ui` present where its manifest declares `[ui]`; a plugin compiled into this build declares none, and one whose package lacks `ui/index.js` or a declared icon is a refused row, `enabled` read per request and `reason` its words when false, `[]` with none; `GET /describe/plugins` 200 `Line` `N plugins, M enabled, K verbs`. A plugin's own nodes read and describe by their paths like any node, whatever `enabled` says",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Line"
                }
              }
            },
            "description": "What a describe read answers: the node in one line."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Describe plugins",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/describe/trading/book": {
      "get": {
        "description": "200 one book across every `link.accounts` row of `stage` (`live` the live rows, `paper` every other, the sim's included; no stage spans both; the window's `ui.stage` where none is named; any other word, `all` among them, 400 `bad_ask` (`stage is live or paper`)), built on ask off each row's own `trading/<acct>/…` nodes; `changed trading/book` (path only, one frame whatever the stage) follows each frame on what it reads: `trading/<acct>/{account,orders,fills}` and under them (an `account` frames within a second of a held mark's tick), `trading/exits`, `link` (a refused ceremony's aside), `ui/stage` and whatever moves a row's `allocated_usd` (a path the allocation source's `moved_by` takes, `Native::allocated`). Every money figure is assumed USD: no row states a currency. The body is a `Book`; `trades` is every row's round trips (`trades` above) plus `account`, `item` and `placed_by`, newest first by `last_at`, `limit` and `from`/`to` as `trades` takes them, a `Trades`; `orders` every row's `orders?working=1` rows plus `account`, a `BookOrders`; `fills` every row's fills plus `account`, `Fills` of `BookFill`, ascending by `at`, from `since_utc` unless `from` names a bound. `account` (a handle) and `item` (an item, or a symbol) narrow the three lists. `/describe/trading/book` is a `Line`, `<stage> book · <n> accounts · equity <total> · <m> positions`",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Line"
                }
              }
            },
            "description": "What a describe read answers: the node in one line."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Describe the trading book",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/describe/trading/orders/{class}": {
      "get": {
        "description": "200 `Schema`, `OrderKind`'s JSON Schema with every subschema inlined but `Exec`, which recurses through a vol hedge and rides in `$defs`: what `trading/orders/<class>/{route,place,preview}` takes as `kind`, the same at every door, `<class>` theirs",
        "parameters": [
          {
            "in": "path",
            "name": "class",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Schema"
                }
              }
            },
            "description": "Schema"
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Describe an order schema",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/describe/trading/{acct}/{path}": {
      "get": {
        "description": "the read 200 `Node`, the describe 200 `Line`; `<path>` the rest of the node's path, slashes included: the trading node, a root node rather than a Desk's: [`TradingModel`](taji_trading::TradingModel)'s own nodes plus `ticket`, or a snapshot boot's pinned `trading.json` read as data; 409 `{\"error\": \"not_bound\", \"reason\": \"<acct> is not bound: <reason>\"}` for a row `link.accounts` holds unbound (`reason` its own, `no credential` while the vault is locked), 404 with no book or for a handle no row has",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The rest of the tree path, slashes included.",
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Line"
                }
              }
            },
            "description": "What a describe read answers: the node in one line."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Describe an account node",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "rest": true,
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/describe/{path}": {
      "get": {
        "description": "200 `Line` from [`Tree::describe`], else 404",
        "parameters": [
          {
            "description": "The rest of the tree path, slashes included.",
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Line"
                }
              }
            },
            "description": "What a describe read answers: the node in one line."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Describe a node",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "rest": true,
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/fetch": {
      "post": {
        "description": "`Fetching`, `{desk_id, product?, …}`, answering 200 `Fetched` or Arrow: `product` (default `bars`) any `get/<product>` word but `option_flow` (400 `bad_ask`: `get/option_flow` reads it, and a metered source answers `fetch_first`), and for any but `bars` the rest of the body is that read's query words (each item naming its kind, `class` beside `symbols` 400); the desk must exist, the ask goes through the same cache path as the read with buying allowed, and it answers the read's body (`symbols` is one item, and `quotes` and `trades` answer Arrow as their `get` does, priced as the sum of the parts; `chains` `ChainAnswer`; any other a `VendorRow`). The provider that would answer prices it first — a metered one by its own quote for the windows it would fetch, a free one, a point or a covered span at 0 — and it is held as bars are (402 `budget`); `dry_run` answers 200 `PricedProduct`; a bought quote is a pull in `pulls.db`, which `spent` sums with the bars'. For `bars`: `{desk_id, symbols, timeframe: \"1m\"\\|\"5m\"\\|\"30m\"\\|\"1h\"\\|\"4h\"\\|\"D\", from, to?, provider?, dry_run?, adjustment?}` — `symbols` one item (`equity:AAPL`, `continuous:ES.c.0`; `parent:` and `series:` 400), `from`/`to` an instant as a read's, `to` defaulting to and clamped at now, `adjustment` `raw`\\|`split`\\|`split-spinoff`\\|`split-dividend-spinoff`, default the named provider's own basis as `get/bars` takes it (`raw` for a metered source and for a `continuous:` or `parent:` item it reads by symbology), else `split-spinoff`. A cached dataset covering the range on that adjustment, from the named provider when one is and any else, answers 200 `CachedBars` and charges nothing; else the named provider (a provider word or an account handle), else `link.prefer.data[class]`, else the cheapest linked one prices it, and the price is held to the device's `data_budget` (the sum of `cost_usd` over the pull log plus the cost above it is 402 `budget`, `ReadError`'s as a read's: `{provider, spent_usd, budget_usd, quote_usd, reason}`, `reason` saying `ui_open` with `form: \"budget\"` opens Taji's window to raise it). `dry_run` answers 200 `PricedBars` (every `*_usd` on a data read and `/fetch` is a decimal string, `\"0.25\"`, `null` where unpriced); a fetch writes `dataset_id` into the store and answers 200 `BoughtBars`, a rate limit's `rest_after` the bars then being what is stored and the rest askable from that instant; a vendor's no-bars answer for the range is that 200 with `rows: 0`, the range recorded as fetched with none, which a run reads as that symbol having no bars (a 5xx, transport or auth failure records nothing). 400 a bad field or a range `DataRequest` refuses, 404 `{\"error\": \"desk\"}` for no such desk, 404 `no linked provider serves <request>` with each linked provider's reason, 422 `not_linked` for a provider that is not linked (the `reason` says what to pass), 501 `not_served` for one that cannot serve the request, 404 `not_listed` `{symbol}` for a symbol the vendor does not list (as `get/bars`), 502 the vendor's words. Answered on the connection thread, synchronous, one fetch at a time per call: a long `1m` range takes minutes",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Fetching"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fetched"
                }
              },
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "Every JSON answer of `POST /fetch` at 200, as a schema: the asker knows\nwhich from its `product` and `dry_run`. Each is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Fetch data into the local store",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/get/bars": {
      "get": {
        "description": "OHLCV bars of each item at a `timeframe`, over a span or a tail. `bars` (`symbols, timeframe, from, to, limit`, no `from` with a `limit` a tail: the newest `limit` bars before `to`, 400 on a `series:` name (a registered table is read as `get/series`); `timeframe` `1m 5m 15m 30m 1h 4h D W M Y`, case-sensitive, or a multiple in the same spelling (`Nm` to 1440, `Nh` to 24, `ND` to 365, `NW` to 52, `NM` to 12), no alias (`1d`, `5`) and no seconds, folded from the store's tier (1m, 5m, 30m, 1h, 4h or D; a CME bitcoin future's 1m at every intraday size), an intraday bar from its session's open (an equity's 09:30 ET, 04:00 under `session=extended`; an option's 07:30 ET under `session=extended`, an index option's 09:30; a future's Globex open, 09:30 ET under `session=regular`; crypto's UTC midnight) and `ND` by weekdays): rows of any range at any depth (a `spread:` item, `spread:buy:1:<OCC>,sell:1:<OCC>`, is class `option` and its own part, the net of its legs' bars, each leg asked alike and any leg's `missing` entry its: `o = h = l = c` = Σ ±ratio × close, buy +, sell −, only at a `start_dt` every leg has, `volume` 0), `knowable` each bar's instant a seat may read it (its close, a daily equity bar's its session's close off the calendar, a spread's its latest leg's), ascending, on that one basis, `dataset_id` the held series a store part read. `bars_schema` `symbol, provider?, start_dt, knowable, open, high, low, close, volume, vwap?, trade_count?, up_volume?, down_volume?`; its metadata adds `timeframe` (the word asked, `D`), `adjustment` (always: the basis served, `raw` on a page with no equity) `dataset_id` (a one-symbol page's held series, absent when none) and `segments` (a JSON object keyed by the item's echo, a composed part's `[{provider, from_utc, to_utc}]` in time order, absent when none). A `bars` span (a `from`) is `Hub::get`'s: `at` (an instant) reads as of it, a row only once knowable by it (a bar at its end, or its session's close where that is sooner), a `to` past it 400 `lookahead`, no `to` `to = at`, a tail with it 400; without `at` nothing is cut, the forming bar included; `store_only` (`0`\\|`1`) fetches nothing; an answer's equities are on one basis, the `adjustment` asked, else a pinned provider's own, else split-spinoff (a symbol held only on another is a gap), and a provider answers only the bases it states, else `not_served` naming them; a span the store lacks and the read does not fetch (a metered provider, or `store_only`) is 409 `{error: \"fetch_first\", provider, from, to, reason, gaps, quote_usd}`, each gap `{product, provider, symbol, timeframe, from, to}` and `quote_usd` what a dry run prices them all at, else `null`; an unpinned `bars` read with two or more members (every linked provider whose bars row lists its class and serves its interval, an equity's on its basis or one no held corporate action tells from it) is composed (`hub::compose`): each instant from the best-ranked member holding it (`link.prefer` first), a gap fetched off the members in rank, newest first, each from its depth, an unlinked or refused member's held rows answering too, a page's `cursor` crossing the joins, and a join whose two sides' bars beside it differ past a median 0.2% in price (volume is each vendor's own) refetched once on the side fetched earlier, then 409 `{error: \"seam\", providers, at, reason}` (`at` the join; ask again from it). A `bars` read pages forward through its `cursor`, a tail back with `to` its first `start_dt`. `session` (intraday equity; default `regular`): `extended` is the bars opening 04:00 ET to four hours past the close (20:00, 17:00 on a half day), `24h` every bar of the 24/5 day, the 20:00-04:00 ET night's included; a future's intraday bars take `regular` (RTH 09:30–16:15 ET, grains 14:20, cut from its Globex tape, from 09:30, the last bar short) or `extended` (Globex, the default), `24h`, `pre` and `post` refused, and its daily bars none; an option's intraday bars take `regular` or `extended` (07:30 to 16:15 ET, 13:15 on a half day: Cboe's pre-market open to its post-market's end; an index option's 09:30 to its Curb's end, 17:00), `24h`, `pre` and `post` refused; a provider whose tape does not cover the whole span is not asked, and none left is 501 `not_served`. A `bars` read with `style` (`heikin`, `renko`, `range`, `line_break`, `kagi`, `point_figure`) answers that chart type off the bars read, each symbol alone, seeded at its first bar (a different `from`, different rows): `box` (a decimal above 0; required by `renko`, `range`, `kagi` (its reversal amount) and `point_figure`), `reversal` (`point_figure`'s boxes, default 3), `lines` (`line_break`, default 3), `one_step_back` (`true`, `point_figure`); a word the style does not take, a missing or non-positive `box`, or an unknown style is 400 naming the word, over 50,000 rows (Point & figure counting figures) 422 `too_many_rows` (`reason` `box too small for this span: over 50000 rows`), and a span past `limit` 422 `too_many_rows` (`too many bars to style; narrow from/to`) (a styled read never pages, never a `cursor`). `heikin` is `bars_schema`, a row a bar; every other style `symbol, n UInt64, start_dt, open, high, low, close, volume, closed Boolean, up Boolean, back?` with the bars' metadata (`n` the row's index from the series' first, `start_dt` the start of the bar that last changed it, never decreasing, `back` Point & figure's one-step-back level); a row a forming bar touched, Range's open bar, and Kagi's and Point & figure's last column are `closed: false`. The key-and-secret venue serves `bars` of `option` and `crypto` too (`plugins/<id>/README.md`; an option is its OCC symbol, `AAPL260925C00120000`, a crypto pair `BTC/USD` with the slash unencoded)\nColumns: symbol Utf8, provider Utf8?, start_dt Timestamp(µs, \"UTC\"), knowable Timestamp(µs, \"UTC\"), open Decimal128(38, 10), high Decimal128(38, 10), low Decimal128(38, 10), close Decimal128(38, 10), volume Decimal128(38, 10), vwap Decimal128(38, 10)?, trade_count Decimal128(38, 10)?, up_volume Decimal128(38, 10)?, down_volume Decimal128(38, 10)?",
        "parameters": [
          {
            "description": "The basis an equity's bars are on.",
            "in": "query",
            "name": "adjustment",
            "required": false,
            "schema": {
              "enum": [
                "raw",
                "split",
                "split-dividend-spinoff",
                "split-spinoff"
              ],
              "type": "string"
            }
          },
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "The session whose ticks or bars are kept.",
            "in": "query",
            "name": "session",
            "required": false,
            "schema": {
              "enum": [
                "24h",
                "extended",
                "post",
                "pre",
                "regular"
              ],
              "type": "string"
            }
          },
          {
            "description": "`1` reads the store alone, fetching nothing.",
            "in": "query",
            "name": "store_only",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A bar interval: 1m 5m 15m 30m 1h 4h D W M Y, or a multiple as 7m, 2h, 3D; no seconds.",
            "in": "query",
            "name": "timeframe",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get bars",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "crypto",
            "future_option",
            "forex"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "start_dt",
              "nullable": false,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "knowable",
              "nullable": false,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "open",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "high",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "low",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "close",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "volume",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "vwap",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "trade_count",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "up_volume",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "down_volume",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            }
          ],
          "effect": "read",
          "only": {
            "symbology": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/chains": {
      "get": {
        "description": "an underlying's option chain: each contract's quote and figures in the window its words pick. `chains` (`option`, every provider, an `equity:` or `index:` underlying read as its options; `future_option` below): a row per contract under its `underlying` (`chains_schema` `underlying, provider?, snapshot_dt` (when its source answered the snapshot, or the past instant the source dates it: what `at` cuts on and `from`/`to` select, each row's `ts` staying the vendor's quote time), a `ChainRow`'s fields, then the twelve figures below), with the metadata's `expiries`, `spot` (the underlying, absent where the provider states none) and `feed` (which of the provider's feeds quoted them, the key-and-secret venue's `opra` or `indicative`, a delayed, sampled feed, not the market; absent for a provider with one feed or a held snapshot), JSON objects keyed by the item's echo (`{\"equity:SPY\":[{expiry, root, dte, …}]}`, `{\"equity:SPY\":\"501.25\"}`, `{\"equity:SPY\":\"indicative\"}`), a key absent where unknown: each contract's columns (`taji_brokerage::read::chain_fields`) `contract, root, expiry, strike, right, listed, tradable, ts, facts, multiplier, bid, ask, mid, last, spot, volume, open_interest, iv, bid_iv, ask_iv, delta, gamma, theta, vega, rho, theo, std_dev, p_itm, p_otm, p_be, p_itm_iv, p_otm_iv, p_be_iv, computed` (`listed` false for a row outside the ask's strikes, read only to price a held leg; `spot` the underlying at the snapshot, a column as well as the metadata; `bid_iv` and `ask_iv` σ solved from the bid and from the ask, always Taji's and named in `computed`; `theo` and `std_dev` the refresh-token venue's `TheoreticalValue` and `StandardDeviation`, `std_dev` σ√t, the underlying's one-standard-deviation move to expiry as a fraction of its price, `p_itm`, `p_otm`, `p_be` and the same three `_iv` its `Probability*` per contract (`_iv` off implied volatility, the rest historical); that venue's own figures ride its streams (the ticket's legs), while its REST chain rows (`quotes/{symbols}` sends no greeks) are modelled and name every figure in `computed`; a figure is the vendor's unless named in `computed`: Black-76 for an option on a future (`spot` the future's price), Black-Scholes-Merton for any other, at the row's IV (or IV solved from the mid, then `theo` is the mid), rate 4.34% (the 3-month Treasury bill on 2026-11-25), no dividends, no early-exercise premium but an American option's `theo` (an equity option's unless the vendor says otherwise) never below intrinsic, to 16:00 ET on expiry (09:30 on an `am` settlement), at `spot`, its `p_*` the `_iv` three alone, and nothing where there is no spot or σ, nor on a VIX row, which is not modelled; `computed` a list of names, empty when none, never held), `contract` the OCC-21 id (`SPXW261016P05700000`), `root` its series, `facts` the contract's JSON (`taji_brokerage::facts::Facts` but `multiplier`, its own column: `{ticks, spread_ticks, expiry, last_trade_at, first_notice, settlement, style, expiry_type, qty_step, min_qty}`, a ladder `[{from, increment}]`), Taji's table under what the vendor states, decimals as text, a figure neither states null (an adjusted root's `multiplier`) and `ts` null on a listing with no quote; `expiries` each `(expiry, root)` the rows list (on `strikes=0`, the provider's listing) `{expiry, root, settlement, expiry_type, dte, atm_strike}`, derived, `atm_strike` the strike nearest `spot` (the lower on a tie; absent with no spot). A row's figures are Taji's, nullable decimals computed from the row and the snapshot's `spot` (null where an input is; percents ×100) and never held: `intrinsic`, `time_value` (`theo` − `intrinsic`, at least 0), `breakeven` (strike ± `theo`), `to_breakeven_pct`, `distance` and `distance_pct` (from `spot`), `spread_pct` (of the mid), `bid_yield_pct` and `ask_yield_pct` (of `spot`) with `bid_yield_ann_pct` and `ask_yield_ann_pct` (× 365 / `dte`, null at 0), `iv_spread` (`ask_iv` − `bid_iv`). Its words: `expiry`, `expiry_from`, `expiry_to` (`YYYY-MM-DD`) or `dte`, `dte_from`, `dte_to` (whole days from today in New York, `dte=0` today's expiry), the two kinds 400 together, neither the next 60 days; `period` (`this_week`, `this_month`, `next_30_days`, `next_45_days`, `next_90_days`, `next_month`, `next_quarter`: the finder's words) for either, 400 beside one; `root` (`SPXW`; absent every root of the underlying, `SPX` both `SPX` and `SPXW`); `strikes` a count (default 20, centred on `spot`; with no spot the first of each expiry; `0` the listing: no rows, `expiries` every `(expiry, root)` the provider lists in the window (`atm_strike` absent, `settlement` and `expiry_type` where the listing states them), `spot` where it states one) or `all`; `right` `call`\\|`put`; `strike_min` and `strike_max` (prices) and `strike_pct` (within that percent of `spot`, or `<below>:<above>` percents; unapplied with no spot) keep the strikes inside them, which `strikes` then counts nearest `spot`; `strike_sd` (a positive number, `strikes` then defaulting to `all`) keeps each `(expiry, root)`'s strikes within that many × `spot` × the at-the-money `std_dev` (the call's, else the put's) of `spot`, the group whole with no spot or `std_dev`; `spread_pct` (`<lo>:<hi>`, percent of the mid, inclusive, either end empty, `!` first keeping the outside) drops every row outside it and every row with no spread, all three applied after the read; `dte_from=0` alone is every listed expiry. `chains` with `at` is the held snapshots of `at`'s New York day up to it, with `store_only` alone today's up to now, a part per snapshot, a page 5,000 rows in whole snapshots, a day no file holds a 409 gap as `get/bars`' `fetch_first`; `from` (unix seconds, with either) starts there instead of the day's start, a clamped page's next at its last part's `through_utc`, one past the day an empty answer; without either the chain now, and `from` 400. The refresh-token venue and the metered source ask once per root (`chain::roots_of`; the venue under its index symbol, `$SPX.X`, `$SPXW.X`, the metered source its parent, `SPXW.OPT`); the venue quotes the rows where at most 500. The other venues ask each expiry concurrently, strikes cut before quoting; an expiry the vendor refused is a `warnings` line, the read refused only when every expiry is. A chain the vendor served with rows is held as served, appended to its New York day under `chains:<provider>:<UNDERLYING>` stamped at its read, what a backtest's `chains` reads as of an instant. The refresh-token venue's `future_option` chain (`symbols` a dated future, `future:NQZ26`) is a part whose `rows` hold one `{rows, count}` off the v2 symbol search `C=FO&R=<symbol>`, each row `{symbol, root, underlying, right, strike, expiry_utc, expiration_type, facts, min_move}` (`symbol` the contract as the venue spells it, `facts.multiplier` its `PointValue`, `min_move` the vendor's), `count` what the vendor answered, never claimed whole. The metered source's (`option`) is the `Chain`'s listings off `OPRA.PILLAR` `definition` on the newest complete session this key is licensed for\nColumns: underlying Utf8, provider Utf8?, snapshot_dt Timestamp(µs, \"UTC\"), contract Utf8, root Utf8, expiry Date32, strike Decimal128(38, 10), right Utf8, listed Boolean, tradable Boolean?, ts Timestamp(µs, \"UTC\")?, ticks List(Struct(\"from\": Decimal128(38, 10), \"increment\": Decimal128(38, 10)))?, spread_ticks List(Struct(\"from\": Decimal128(38, 10), \"increment\": Decimal128(38, 10)))?, last_trade_at Timestamp(µs, \"UTC\")?, first_notice Date32?, settlement Utf8?, style Utf8?, expiry_type Utf8?, qty_step Decimal128(38, 10)?, min_qty Decimal128(38, 10)?, multiplier Decimal128(38, 10)?, bid Decimal128(38, 10)?, ask Decimal128(38, 10)?, mid Decimal128(38, 10)?, last Decimal128(38, 10)?, spot Decimal128(38, 10)?, volume Decimal128(38, 10)?, open_interest Decimal128(38, 10)?, iv Decimal128(38, 10)?, bid_iv Decimal128(38, 10)?, ask_iv Decimal128(38, 10)?, delta Decimal128(38, 10)?, gamma Decimal128(38, 10)?, theta Decimal128(38, 10)?, vega Decimal128(38, 10)?, rho Decimal128(38, 10)?, theo Decimal128(38, 10)?, std_dev Decimal128(38, 10)?, p_itm Decimal128(38, 10)?, p_otm Decimal128(38, 10)?, p_be Decimal128(38, 10)?, p_itm_iv Decimal128(38, 10)?, p_otm_iv Decimal128(38, 10)?, p_be_iv Decimal128(38, 10)?, computed List(Utf8), intrinsic Decimal128(38, 10)?, time_value Decimal128(38, 10)?, breakeven Decimal128(38, 10)?, to_breakeven_pct Decimal128(38, 10)?, distance Decimal128(38, 10)?, distance_pct Decimal128(38, 10)?, spread_pct Decimal128(38, 10)?, bid_yield_pct Decimal128(38, 10)?, ask_yield_pct Decimal128(38, 10)?, bid_yield_ann_pct Decimal128(38, 10)?, ask_yield_ann_pct Decimal128(38, 10)?, iv_spread Decimal128(38, 10)?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One expiry, in whole days from today in New York; `0` today's.",
            "in": "query",
            "name": "dte",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "The first expiry kept, in whole days from today in New York.",
            "in": "query",
            "name": "dte_from",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "The last expiry kept, in whole days from today in New York.",
            "in": "query",
            "name": "dte_to",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "One expiry, `YYYY-MM-DD`.",
            "in": "query",
            "name": "expiry",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The first expiry kept, `YYYY-MM-DD`.",
            "in": "query",
            "name": "expiry_from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The last expiry kept, `YYYY-MM-DD`.",
            "in": "query",
            "name": "expiry_to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Milliseconds a live read gathers ticks before it answers.",
            "in": "query",
            "name": "hold",
            "required": false,
            "schema": {
              "maximum": 60000,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "description": "A named span: `chains`' expiries (`this_week`, `this_month`, `next_30_days`, …), a `statistics` or `filings` period.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "Calls or puts alone.",
            "in": "query",
            "name": "right",
            "required": false,
            "schema": {
              "enum": [
                "call",
                "put"
              ],
              "type": "string"
            }
          },
          {
            "description": "One option root of the underlying (`SPXW`).",
            "in": "query",
            "name": "root",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`<lo>:<hi>`, the spread as a percent of the mid, inclusive, either end empty; `!` first keeps the outside.",
            "in": "query",
            "name": "spread_pct",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` reads the store alone, fetching nothing.",
            "in": "query",
            "name": "store_only",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "The highest strike kept, a price.",
            "in": "query",
            "name": "strike_max",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The lowest strike kept, a price.",
            "in": "query",
            "name": "strike_min",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Strikes within this percent of `spot`, or `<below>:<above>` percents.",
            "in": "query",
            "name": "strike_pct",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Strikes within this many at-the-money standard deviations of `spot`, a positive number.",
            "in": "query",
            "name": "strike_sd",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many strikes nearest `spot` (default 20), `0` the listing alone, or `all`.",
            "in": "query",
            "name": "strikes",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get option chains",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "option",
            "future_option"
          ],
          "columns": [
            {
              "name": "underlying",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "snapshot_dt",
              "nullable": false,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "contract",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "root",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "expiry",
              "nullable": false,
              "type": "Date32"
            },
            {
              "name": "strike",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "right",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "listed",
              "nullable": false,
              "type": "Boolean"
            },
            {
              "name": "tradable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "ts",
              "nullable": true,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "ticks",
              "nullable": true,
              "type": "List(Struct(\"from\": Decimal128(38, 10), \"increment\": Decimal128(38, 10)))"
            },
            {
              "name": "spread_ticks",
              "nullable": true,
              "type": "List(Struct(\"from\": Decimal128(38, 10), \"increment\": Decimal128(38, 10)))"
            },
            {
              "name": "last_trade_at",
              "nullable": true,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "first_notice",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "settlement",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "style",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "expiry_type",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "qty_step",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "min_qty",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "multiplier",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "bid",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ask",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "mid",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "last",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "spot",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "volume",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "open_interest",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "iv",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "bid_iv",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ask_iv",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "delta",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "gamma",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "theta",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "vega",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "rho",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "theo",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "std_dev",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "p_itm",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "p_otm",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "p_be",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "p_itm_iv",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "p_otm_iv",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "p_be_iv",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "computed",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "intrinsic",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "time_value",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "breakeven",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "to_breakeven_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "distance",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "distance_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "spread_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "bid_yield_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ask_yield_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "bid_yield_ann_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ask_yield_ann_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "iv_spread",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            }
          ],
          "effect": "read",
          "only": {
            "expiry": [
              "ibkr",
              "robinhood-web",
              "tradestation"
            ],
            "from": [
              "alpaca"
            ],
            "right": [
              "ibkr",
              "robinhood-web",
              "tradestation"
            ],
            "strike_max": [
              "ibkr",
              "robinhood-web",
              "tradestation"
            ],
            "strike_min": [
              "ibkr",
              "robinhood-web",
              "tradestation"
            ],
            "to": [
              "alpaca"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/constituents": {
      "get": {
        "description": "an index's members: one row per member, largest `weight` first, then by symbol. `symbols` is one `index:` item, else 400 `bad_ask` (`at`, `from` and `to` are 400: the source states today's members only); an index no linked source states is 501 `not_served`, naming each source skipped and why. Rows on the `taji_brokerage::reference` `constituents` schema `symbol, name?, sector?, industry?, weight?, last?, change?, change_pct?, delayed?, knowable_utc, sources`: `weight` a percent of the index as the member source states it; `sector` and `industry` from `listings`; `last`, `change`, `change_pct` and `delayed` from one now `quotes` read of the members, null where none answers. The hub joins them (`taji_trading::hub::constituents`); the keyless SSGA fund-holdings source serves `index:$SPX`\nColumns: symbol Utf8, name Utf8?, sector Utf8?, industry Utf8?, weight Decimal128(38, 10)?, last Decimal128(38, 10)?, change Decimal128(38, 10)?, change_pct Decimal128(38, 10)?, delayed Boolean?, knowable_utc Int64, sources List(Struct(\"column\": Utf8, \"provider\": Utf8))",
        "parameters": [
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List index constituents",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "index"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "sector",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "industry",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "weight",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "last",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "delayed",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "sources",
              "nullable": false,
              "type": "List(Struct(\"column\": Utf8, \"provider\": Utf8))"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/corporate_actions": {
      "get": {
        "description": "splits, dividends and other corporate actions, by symbol or the market's. The key-and-secret venue's (`equity`; five years at most, 31 days without `symbols`): only the vendor's `complete` rows, cash and stock dividends `DVCA` and `DVSE`, splits `SPLF` or `SPLR`, spin-offs `SOFF` (`symbol` the parent, `new_symbol` the child), mergers `MRGR` (`symbol` the acquiree, `new_symbol` the acquirer, `amount` cash per share, `ratio_from`/`ratio_to` acquiree and acquirer shares, an id per merger kind), renames `CHAN` (`symbol` the old, `new_symbol` the new; a rename both asked symbols find is one row) and worthless removals `WRTH`, `knowable_utc` the end of the `ex_date`, else `effective_date`, else process date, or the fetch, the earlier, the vendor stating no declaration. An unpinned read is the union of every linked provider's rows on (symbol, `caev`, `ex_date`) exactly, a key the walk's first stating it, each row naming its `provider` (two vendors a day apart show twice), a symbol the walk refused or left pending asked of every one, the first answering it its part; a now-only provider joins only a span reaching now; `name` and `primary` off `listings` (the embedded FinanceDatabase table of US-listed equities and ETFs): a listed symbol's name and `true`, else both null; none at a past `at`. Its providers are asked in rank\nColumns: id Utf8, symbol Utf8, item Utf8, knowable_utc Int64, caev Utf8, announce_date Date32?, ex_date Date32?, record_date Date32?, pay_date Date32?, effective_date Date32?, amount Decimal128(38, 10)?, currency Utf8?, ratio_from Decimal128(38, 10)?, ratio_to Decimal128(38, 10)?, new_symbol Utf8?, provider Utf8?, name Utf8?, primary Boolean?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List corporate actions",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "id",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "caev",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "announce_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "ex_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "record_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "pay_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "effective_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "amount",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "currency",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "ratio_from",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ratio_to",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "new_symbol",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "primary",
              "nullable": true,
              "type": "Boolean"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/depth": {
      "get": {
        "description": "each item's order book, its levels by side, on the `taji_brokerage::reference` `depth` schema, read through (never stored). The key-and-secret venue's (`crypto`) only with `hold=<ms>` (and on `/ws/market`): the `orderbooks` frames folded into the whole book (`r` resets it, a zero size drops a level), level 0 the best, `count` `null`; without `hold` it serves none. The agentic venue's (equity, the current book, read through, whatever the window, now-only) a row per side and level of `bids` and `asks`, `ts_event` the venue's `updated_at`, `ts_init` when it was read. The metered source's is a range off `XNAS.ITCH`'s `mbp-10` (metered the same as its ticks), a row per priced side of each of a record's ten levels, `level` 0 the top, `count` the level's order count; `future` reads `GLBX.MDP3`'s `mbp-10`; `option` none. `depth` also takes `ticks` and `levels` (each 1 to 1000, else 400 `bad_ask` naming the word and its raw value): with `ticks` each symbol's book is summed by price onto rows of `ticks` ticks (`step` the row's width, `peak` null), `levels` keeping that many best rows a side; `levels` alone keeps the first `levels` rows a side as sent; a `hold=` read folds each frame\nColumns: symbol Utf8, ts_event Int64, ts_init Int64, side Utf8?, level Int64, price Decimal128(38, 10)?, size Decimal128(38, 10)?, count Int64?, peak Decimal128(38, 10)?, step Decimal128(38, 10)?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Milliseconds a live read gathers ticks before it answers.",
            "in": "query",
            "name": "hold",
            "required": false,
            "schema": {
              "maximum": 60000,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "description": "The best rows a side a depth book keeps.",
            "in": "query",
            "name": "levels",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A depth book summed by price onto rows of this many ticks.",
            "in": "query",
            "name": "ticks",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get order book depth",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "future",
            "option",
            "crypto",
            "future_option"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts_event",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ts_init",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "side",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "level",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "price",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "size",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "count",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "peak",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "step",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            }
          ],
          "effect": "read",
          "only": {
            "from": [
              "databento"
            ],
            "symbology": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/details": {
      "get": {
        "description": "one instrument's identity, profile, contract and key statistics, off the linked sources' `instrument` and `fundamentals`. One row on the `details` schema in Taji's words whichever providers are linked (`kind` one of `stock`, `etf`, `fund`, `index`, `future`, `option`, `future_option`, `crypto`, `forex`, `bond`, an equity's only where a source states the difference; `exchange` the common word, `ARCA` read `AMEX` and `BATS` `CBOE`; `sector` and `industry` in the source's own taxonomy): each linked source's own answers are read in parallel through the cache, per column the first stated in the hub's ranking for the class and the column's group wins (`engine/crates/taji-trading/src/hub/details.rs`), `knowable_utc` the latest of theirs; `sources` names the provider of each non-null column; none answering is the 501 `not_served` naming each skipped and why, and a named `provider` is asked alone\nColumns: symbol Utf8, item Utf8, knowable_utc Int64, name Utf8?, kind Utf8?, exchange Utf8?, currency Utf8?, country Utf8?, sector Utf8?, industry Utf8?, description Utf8?, ceo Utf8?, headquarters Utf8?, employees Int64?, founded_year Int64?, homepage Utf8?, cusip Utf8?, figi Utf8?, cik Utf8?, logo_url Utf8?, price_decimals Int64?, price_fraction Int64?, session_hours Utf8?, session_liquid_hours Utf8?, session_time_zone Utf8?, list_date Date32?, expiry_date Date32?, underlying Utf8?, strike Decimal128(38, 10)?, right Utf8?, tradable Boolean?, shortable Boolean?, fractionable Boolean?, market_cap Decimal128(38, 10)?, pe Decimal128(38, 10)?, pb Decimal128(38, 10)?, eps_ttm Decimal128(38, 10)?, beta Decimal128(38, 10)?, shares_outstanding Decimal128(38, 10)?, float Decimal128(38, 10)?, high_52w Decimal128(38, 10)?, low_52w Decimal128(38, 10)?, high_52w_date Date32?, low_52w_date Date32?, avg_volume_10d Decimal128(38, 10)?, avg_volume_30d Decimal128(38, 10)?, avg_volume_2w Decimal128(38, 10)?, avg_volume_3m Decimal128(38, 10)?, avg_volume_1y Decimal128(38, 10)?, dividend_yield Decimal128(38, 10)?, dividend_per_share Decimal128(38, 10)?, ex_dividend_date Date32?, next_earnings Date32?, sources List(Struct(\"column\": Utf8, \"provider\": Utf8))",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get instrument details",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "crypto",
            "future_option",
            "forex"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "kind",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "exchange",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "currency",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "country",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "sector",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "industry",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "description",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "ceo",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "headquarters",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "employees",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "founded_year",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "homepage",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "cusip",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "figi",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "cik",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "logo_url",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "price_decimals",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "price_fraction",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "session_hours",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "session_liquid_hours",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "session_time_zone",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "list_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "expiry_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "underlying",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "strike",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "right",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "tradable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "shortable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "fractionable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "market_cap",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "pe",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "pb",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "eps_ttm",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "beta",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "shares_outstanding",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "float",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "high_52w",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "low_52w",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "high_52w_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "low_52w_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "avg_volume_10d",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "avg_volume_30d",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "avg_volume_2w",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "avg_volume_3m",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "avg_volume_1y",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "dividend_yield",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "dividend_per_share",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ex_dividend_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "next_earnings",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "sources",
              "nullable": false,
              "type": "List(Struct(\"column\": Utf8, \"provider\": Utf8))"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/earnings": {
      "get": {
        "description": "earnings dates and results, by symbol or the market's. The typed row (`symbol, knowable_utc, report_date, timing, fiscal_year, fiscal_period, eps_estimate, eps_actual, eps_surprise, eps_surprise_pct, revenue_estimate, revenue_actual, revenue_surprise, revenue_surprise_pct, verified, provider, revenue_estimate_provider, revenue_actual_provider, name, primary`; `timing` `bmo`\\|`amc`, `fiscal_period` `Q<quarter>`; `name` and `primary` off `listings` (the embedded FinanceDatabase table of US-listed equities and ETFs): a listed symbol's name and `true`, else both null; none at a past `at`; `provider` the row's, each `revenue_*_provider` its figure's: unpinned, the union of every linked provider's rows on (symbol, `report_date`) exactly, a key the walk's first stating it, a symbol the walk refused or left pending asked of every one, and each revenue figure the first in its own order to state that report's (`revenue_estimate` the realtime-socket source's then the keyless source's; `revenue_actual` the former's row of the date, else the filings source's then the keyless source's quarterly statement revenue on the first report after its quarter's end within 95 days, an actual only on a report dated by the read's instant; each provider's rows cut at it; a `revenue_surprise` only off one provider's pair; at now, off what the store holds, a provider holding none `pending` while it is read behind, unless `wait`), its last 8 quarters, dated ones only, a `from` before the first answered from it, the span before held by none, and without `symbols` the market's calendar over `[from, to)`, one call per 31-day window, no reach claimed, joined so beside the keyless source's market calendar alone (no statement is read: a week is hundreds of symbols)\nColumns: symbol Utf8, item Utf8, knowable_utc Int64, report_date Date32?, timing Utf8?, fiscal_year Int64?, fiscal_period Utf8?, eps_estimate Decimal128(38, 10)?, eps_actual Decimal128(38, 10)?, eps_surprise Decimal128(38, 10)?, eps_surprise_pct Decimal128(38, 10)?, revenue_estimate Decimal128(38, 10)?, revenue_actual Decimal128(38, 10)?, revenue_surprise Decimal128(38, 10)?, revenue_surprise_pct Decimal128(38, 10)?, verified Boolean?, provider Utf8?, revenue_estimate_provider Utf8?, revenue_actual_provider Utf8?, name Utf8?, primary Boolean?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List earnings",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "report_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "timing",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "fiscal_year",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "fiscal_period",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "eps_estimate",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "eps_actual",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "eps_surprise",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "eps_surprise_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "revenue_estimate",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "revenue_actual",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "revenue_surprise",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "revenue_surprise_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "verified",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "revenue_estimate_provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "revenue_actual_provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "primary",
              "nullable": true,
              "type": "Boolean"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/economic": {
      "get": {
        "description": "the calendar source's economic calendar dated in `[from, to)` (`from` and `to` read as `get/earnings` reads them, both required, a span of at most 31 New York days, else 400), as `economic` rows in `knowable_utc` then table order: every calendar row, `event` Taji's `<release>.<event>` on a headline US event (`cpi.mom`, `headline` true, `title` its own name `CPI MoM`), else `<country lower>.<slug of the source's name>` (`title` the name without its `*`); `name` the calendar source's raw, `country` its code (`EU` kept), `time_utc` and `knowable_utc` its instant, `date` that instant's New York date, `period` its `For` (`Oct`, `Q3`) as the period's first day, `actual`, `estimate`, `prior` and `prior_revised_from` as the calendar source states them, `values` its provider word. With the series source linked a headline row's `actual`, `prior`, `prior_revised_from`, `period`, `unit`, `decimals`, `series` and `transform` (`lin`\\|`chg`\\|`pch`\\|`pc1`) are the series source's at the release's own vintage (`actual` and `period` null where it has not landed), `values` the series source's provider word, `estimate` still the calendar source's; a headline release the calendar source dates gains a row of each event it leaves out, and one the series source dates on a day the calendar source lists none of its events is a row of each event with null `time_utc`, knowable when its New York day ends, `name` the series source's release name (never the FOMC decision). `at` (an instant, read as `get/earnings` reads it; a future one is now) answers what was knowable then: calendar rows after it listed with null figures, the series source's values at the newest vintage on or before `at`'s New York date, the day before for a series whose release that day is not yet knowable; `releases` a comma list of release keys (`data/coverage`'s `economic.releases`; an unknown key 400) keeps the US headline rows of those alone; `countries` a comma list of two-letter codes (any case; every one where absent). The page's metadata `providers` names its parts' providers (the calendar source's word then the series source's, the series source's alone where the calendar source is off, unlinked or failing); neither is stored. `provider=<either word>` pins one part: that provider's rows alone, the other not asked (the series source: the US headline rows, dated and valued by it), another provider 501 `not_served`, one unlinked or off 422 `not_linked`. Neither read is 501 `not_served` saying the calendar source is off or not linked, as it stands, and the series source's key missing; the calendar source failing without the series source its refusal; another word 400",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Two-letter country codes, a comma list, any case; every one where absent.",
            "in": "query",
            "name": "countries",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Release keys (`data/coverage`'s `economic.releases`), a comma list: those US headline rows alone.",
            "in": "query",
            "name": "releases",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List economic events",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/executive_comp": {
      "get": {
        "description": "the proxy statement's summary compensation table: one row per executive and fiscal year. On its `taji_brokerage::reference` schema with `accession` and `knowable_utc` (SEC's acceptance), `class` absent `equity`: the filings source's alone\nColumns: accession Utf8, symbol Utf8, item Utf8, knowable_utc Int64, filed Date32?, year Int64?, name Utf8, title Utf8?, salary Decimal128(38, 10)?, bonus Decimal128(38, 10)?, stock_awards Decimal128(38, 10)?, option_awards Decimal128(38, 10)?, non_equity Decimal128(38, 10)?, other Decimal128(38, 10)?, total Decimal128(38, 10)?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List executive compensation",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "accession",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "filed",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "year",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "name",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "title",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "salary",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "bonus",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "stock_awards",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "option_awards",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "non_equity",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "other",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "total",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/filing_sections": {
      "get": {
        "description": "one filing's sections and text, and what changed from the filer's prior filing of the form: one row per section, by `accession`, with `section`. On its `taji_brokerage::reference` schema with `accession` and `knowable_utc` (SEC's acceptance), `class` absent `equity`: the filings source's alone\nColumns: accession Utf8, knowable_utc Int64, id Utf8, title Utf8, level Int64?, text Utf8?, added List(Utf8), removed List(Utf8), prior_accession Utf8?, prior_filed Date32?",
        "parameters": [
          {
            "description": "One filing, by its SEC accession number.",
            "in": "query",
            "name": "accession",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "One section of the filing.",
            "in": "query",
            "name": "section",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get filing sections",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "accession",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "id",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "title",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "level",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "text",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "added",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "removed",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "prior_accession",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "prior_filed",
              "nullable": true,
              "type": "Date32"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/filings": {
      "get": {
        "description": "a filer's SEC filings index: one row per accession. `equity`, the filings source's alone, through its Python package: newest first, `limit` per symbol, `knowable_utc` its acceptance, `title` the primary document's description, `url` the filing's index page, `flags` its 8-K items `4.02` and `5.02`, `event_kind` `corporate` (an 8-K without `2.02`, `event_title` its first item's name) or `earnings` (a 10-Q, a 10-K or a `2.02` 8-K, `event_title` its fiscal quarter), `event_id` the corporate one's accession or the earnings one's `<cik>:<title>`, none on a `text` search, `snippet_*` a `text` search's match in each of its 10 newest hits' documents, an unknown symbol no rows; `symbols` or `text` (text without symbols searches every company's filings)\nColumns: accession Utf8, cik Utf8, company Utf8?, symbols List(Utf8), knowable_utc Int64, filed Date32?, period Date32?, form Utf8, title Utf8?, items List(Utf8), flags List(Utf8), url Utf8?, event_kind Utf8?, event_title Utf8?, event_id Utf8?, snippet_before Utf8?, snippet_hit Utf8?, snippet_after Utf8?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "SEC form types, a comma list.",
            "in": "query",
            "name": "forms",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "An 8-K's items, a comma list (`2.02,9.01`).",
            "in": "query",
            "name": "items",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "A named span: `chains`' expiries (`this_week`, `this_month`, `next_30_days`, …), a `statistics` or `filings` period.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Words the filing's text holds: a full-text search.",
            "in": "query",
            "name": "text",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List filings",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "accession",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "cik",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "company",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "symbols",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "filed",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "period",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "form",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "title",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "items",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "flags",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "url",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "event_kind",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "event_title",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "event_id",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "snippet_before",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "snippet_hit",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "snippet_after",
              "nullable": true,
              "type": "Utf8"
            }
          ],
          "effect": "read",
          "only": {
            "forms": [
              "edgar"
            ],
            "items": [
              "edgar"
            ],
            "period": [
              "edgar"
            ],
            "text": [
              "edgar"
            ]
          },
          "requires": [
            [
              "symbols",
              "text"
            ]
          ],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/fundamentals": {
      "get": {
        "description": "a company's fundamentals: one `kind` of table. `kind` is required, one of `income`, `balance`, `cash_flow`, `ratios`, `analyst`, `short_interest`, `short_volume`, `float` (absent or another word 400 `bad_ask`), and routes to the providers whose `data/coverage` `kinds` name it. `fundamentals` rows carry the kernel's figures, computed over the rows left after the `at` cut: `growth_pct` on every `income`, `balance` and `cash_flow` row but a `ttm` row and `net_margin` (the change on the same line one year back by period end, `annual` or `quarterly`, percent to four places, null where there is none or it is zero), a cost line, an outflow (`purchase_of_property_plant_and_equipment`, `purchase_of_business`, `repurchase_of_stock`, `dividends_paid`, `common_dividends_paid`) and `treasury_stock` negative whichever source states them, a `ttm` row per `income` and `cash_flow` line (the sum of its four newest discrete quarters where their fiscal quarters are consecutive, none over a gap, the newest quarter's end, `fiscal_year` and `fiscal_quarter`, `knowable_utc` the latest of the four; a line the join fills, below, summed over its joined quarters, naming their provider where they share one, else the statement's; every source's own trailing-twelve-month rows are dropped), the lines a period leaves out (`gross_profit`, `total_liabilities`, `total_debt`, `net_debt`, `free_cash_flow`, each `knowable_utc` the latest of its inputs), an `income` line `net_margin` (`unit` `percent`, net income over revenue where both are held, `knowable_utc` the later of the two) and an `analyst` line `target_upside` (`unit` `percent`, a held `target_price` against the hub's latest quote `last`; none at a past `at` or where that quote read refuses or answers none). `kind=ratios` is the kernel's off the answering provider's statements (no vendor ratio is served): `ttm` rows off the newest `ttm` income and cash-flow periods and the newest quarter's balance, `gross_margin`, `operating_margin`, `net_margin`, `return_on_equity` and `return_on_assets` in percent, `current_ratio` and `debt_to_equity`; and, where the filings source states the cover page's `shares_outstanding` (a `snapshot` row per cover date) and a daily-bars read answers, `snapshot` rows ending at the close's day: `market_cap` (the shares at the cover date's raw close, carried to the cut by split-adjusted closes), `pe` and `price_to_free_cash_flow` (none over a non-positive figure), `price_to_sales`, `pb` and `enterprise_value`, closes read at the cut so a past `at` sees none after it; each `knowable_utc` the latest of its inputs. Every `fundamentals` answer holds only the asked `kind`'s rows. Each row names its `provider`; unpinned, an `income`, `balance` or `cash_flow` line its provider leaves null fills from the first provider in rank stating it on the nearest period ending within 31 days (a tie none) in the same `unit` (a money line's ISO 4217 code, lower case: `usd`, `jpy`; the reporting currency, never converted), naming that provider; `ratios` never joins, and a ratio across currencies is null. The agentic venue's (equity) by `kind`: `analyst` one `target_price` row (the mean target, `usd`, `snapshot`, `knowable_utc` the ratings' `updated_at`), `float` one `float` row (`shares`, `snapshot`, `knowable_utc` the fetch; `shares_outstanding` is never float), every other `kind` not served. The OAuth venue's (`equity`) the vendor's `fundamental` block as `ratios` snapshot lines, `marketCap` and `sharesOutstanding` left out (their unit unmeasured)\nColumns: symbol Utf8, item Utf8, knowable_utc Int64, kind Utf8, period Utf8, period_end_date Date32?, fiscal_year Int64?, fiscal_quarter Int64?, line Utf8, value Decimal128(38, 10)?, unit Utf8, growth_pct Decimal128(38, 10)?, accession Utf8?, restated Boolean?, provider Utf8?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Which table: `fundamentals`' `income`, `balance`, `cash_flow`, `ratios`, `analyst`, `short_interest`, `short_volume`, `float`; `statistics`' `stats`, `hv`, `iv`, `fee_rate`, `histogram`.",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get company fundamentals",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "kind",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "period",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "period_end_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "fiscal_year",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "fiscal_quarter",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "line",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "value",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "unit",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "growth_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "accession",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "restated",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            }
          ],
          "effect": "read",
          "only": {
            "kind": [
              "edgar",
              "massive",
              "robinhood-agentic",
              "robinhood-web",
              "yahoo"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/holdings": {
      "get": {
        "description": "13F-HR holdings: one row per position of a filer's quarter. On its `taji_brokerage::reference` schema with `accession` and `knowable_utc` (SEC's acceptance), `class` absent `equity`: the filings source's alone\nColumns: accession Utf8, filer_cik Utf8, filer_name Utf8?, quarter Date32?, knowable_utc Int64, filed Date32?, symbol Utf8?, item Utf8?, cusip Utf8, issuer Utf8?, class_title Utf8?, put_call Utf8?, principal Boolean?, shares Decimal128(38, 10)?, value Decimal128(38, 10)?, change_shares Decimal128(38, 10)?, change_pct Decimal128(38, 10)?, status Utf8?, pct_of_portfolio Decimal128(38, 10)?, pct_of_shares_out Decimal128(38, 10)?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One 13F filer, by CIK.",
            "in": "query",
            "name": "filer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One calendar quarter of holdings.",
            "in": "query",
            "name": "quarter",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many quarters of holdings.",
            "in": "query",
            "name": "quarters",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List fund holdings",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "accession",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "filer_cik",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "filer_name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "quarter",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "filed",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "symbol",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "cusip",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "issuer",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "class_title",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "put_call",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "principal",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "shares",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "value",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change_shares",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "status",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "pct_of_portfolio",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "pct_of_shares_out",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/imbalance": {
      "get": {
        "description": "the auction imbalance a venue publishes before an open or close. The metered source's (`equity` off `XNAS.ITCH`; metered) a row per dbn `ImbalanceMsg`, `indicative_price` its `cont_book_clr_price`, `auction_price` its `auct_interest_clr_price`, `imbalance_qty` its `total_imbalance_qty`, `side` `buy`, `sell` or `none`, `auction` `open`, `close`, `halt` or `other`\nColumns: symbol Utf8, ts_event Int64, ts_init Int64, ref_price Decimal128(38, 10)?, indicative_price Decimal128(38, 10)?, auction_price Decimal128(38, 10)?, paired_qty Decimal128(38, 10)?, imbalance_qty Decimal128(38, 10)?, side Utf8?, auction Utf8?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Milliseconds a live read gathers ticks before it answers.",
            "in": "query",
            "name": "hold",
            "required": false,
            "schema": {
              "maximum": 60000,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get auction imbalances",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts_event",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ts_init",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ref_price",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "indicative_price",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "auction_price",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "paired_qty",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "imbalance_qty",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "side",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "auction",
              "nullable": true,
              "type": "Utf8"
            }
          ],
          "effect": "read",
          "only": {
            "symbology": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/index_daily": {
      "get": {
        "description": "the daily SPX, VIX, VIX1D and VVIX history: one row per index and day. Its items are `index:$SPX`, `index:$VIX`, `index:$VIX1D` and `index:$VVIX`, `symbols` and `from` required; rows on the `taji_brokerage::reference` `index_daily` schema `symbol, ts_utc, open?, high?, low?, close, knowable_utc`: `ts_utc` the day's midnight stamp, a close and, where the source states them, the open, high and low (Cboe's SPX and VVIX files are close-only), no volume. The keyless Cboe source (`cboe-daily`, `plugins/cboe-daily/README.md`) serves it: one GET of a symbol's whole history CSV per released day, no key, a row knowable 28 hours (100,800 s) after its midnight stamp, so an `at` read holds only the rows known by then; a span with `to` is held as a range\nColumns: symbol Utf8, ts_utc Int64, open Decimal128(38, 10)?, high Decimal128(38, 10)?, low Decimal128(38, 10)?, close Decimal128(38, 10), knowable_utc Int64",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get daily index history",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "index"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "open",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "high",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "low",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "close",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/indicators": {
      "get": {
        "description": "one binding's rows as the `indicators` stream on `/ws/market` frames them: 200 one Arrow IPC batch, `start_dt` as `get/bars` types it, then one nullable `Float64` per output named by it in output order (null where it drew nothing; none for a custom with no plot, whose rows are `start_dt` alone), then one nullable `UInt8` palette slot per painted output, `<output>:color`, then per painted fill k, `fill:<k>`, each with field metadata `of` (`<output>` or `fill:<k>`): row i's index into that output's or fill's `colors` (a fill quad between rows i−1 and i takes row i's), null where nothing draws (its output's value null, a script's slot not an integer or past its palette); a script's computed output or fill (`computed`) has a non-null `UInt32` there instead, the row's colour as `0xRRGGBBAA`, 0 where it has none. Colours are lowercase words: `accent`, `up`, `down`, `#rrggbb`, `#rrggbbaa`, or empty for the window's palette. Each output's field metadata: `kind` one of `line`, `line_breaks`, `step`, `step_breaks`, `step_diamonds`, `histogram`, `cross`, `area`, `area_breaks`, `columns`, `circles` (the plot styles), or a script's `char`, `arrow`, `candle`, `bar`, `bgcolor`, `barcolor` or `marker`; `title`; `color`, a painted output's slot 0; `colors`, a painted output's palette as a JSON array of words; `width` `1`..`4`; `line` `solid`\\|`dashed`\\|`dotted`; `price_line` `true`\\|`false`, a line across the pane at the last value; `offset`, bars the plot draws late, omitted when 0; `bridge` `true`, only on every output of a `calc` binding with `calc_closes` true (its line joins across the nulls); `visible` `false`, only when hidden (its slot column stays); `char` and `at`, a `char` plot's glyph and where it draws; `shape` and `at`, a `marker`'s shape (`triangle-up`\\|`triangle-down`\\|`circle`) and `above`\\|`below` its bar; `computed` `true`, a script's computed colour; `unit`, a script plot's, one of a card value's units, absent where it states none. Schema metadata: `name` (the legend's short name), `definition` (`name@version`, empty for a registered column), `pane` `overlay`\\|`subplot`, `legend` as JSON `[{text, key?}]` (the inputs the legend prints after the name, `key` the param a number or word reads, numbers as the legend prints them, the source word what `source` reads: a field word, or `<name>: <title>` for another indicator's plot), `levels` as JSON `[{title?, value, color, line, visible?: false}]` (`title` the definition's, omitted where the definition names none; `line` `solid`\\|`dashed`\\|`dotted`), `fills` as JSON `[{between: {plots: [a, b]} \\| {levels: [a, b]} \\| {plot_at: [a, value]} \\| {level_at: [a, value]}, title, colors, alpha, computed?: true, visible?: false}]` over plot or level indexes (`plot_at` and `level_at` run from a plot or a level to a constant, a hidden helper line, and have no row of their own; `title` the paint's for a painted fill, else `Background`; `colors` its palette, else its one colour; drawn at its plots' offset), `show` as JSON `{values, inputs, scale_labels, lines, boxes, labels, tables, interval}` (the Style tab's switches; `interval` false where the binding's visibility excludes the chart's interval, never its `calc`), and `precision` (`0`..`8`), `fault`, `origin` and `calc` when set, `provider`, a script reading `data.product`, as JSON `[id]` the providers its reads were answered by, sorted, present while one names any, and `drawings`, a custom's drawings and tables now (or Pivot Points', its levels' lines and labels), only while it holds one: JSON `{\"lines\": [{x1, y1, x2, y2, color, width, style, extend}], \"labels\": [{x, y, text, yloc, color, style, textcolor, size, textalign, tooltip}], \"boxes\": [{left, top, right, bottom, border_color, border_width, border_style, extend, bg, text, text_color, text_size, text_halign, text_valign}], \"polylines\": [{points: [[x, y]], curved, closed, line_color, fill_color, line_style, line_width}], \"tables\": [{position, columns, rows, bg, frame, frame_width, border, cells: [{column, row, text, color, bg, halign, size}]}], \"cards\": [{position, pill: {text, tone} \\| null, caption, estimate, values: [{label, value, unit, signed}]}], \"bars\": {caption, unit, signed, estimate, categories: [{label, sub, value}]}, \"first\", \"last\"}`, keys in that order, every x UTC seconds (a script's bar index served as its bar's time, past the last bar as the last bar's time plus the last bar spacing per bar ahead, before the first bar as the first bar's time less the first bar spacing per bar before) and y a price, null for na; a drawing with an x off the series (past the last bar or before the first) also carries `off`, per such x by its key (a polyline's by point index from `\"0\"`) its bars off, positive past the last bar and negative before the first, a time's on the same spacing, counted from the bar whose time `last` or `first` is, each present while an `off` counts from it; widths `1`..`4`, a line's `style` `solid`\\|`dashed`\\|`dotted`\\|`arrow_left`\\|`arrow_right`\\|`arrow_both` (a head at x1, x2 or both), `extend` `none`\\|`left`\\|`right`\\|`both`, a label's `yloc` `price`\\|`abovebar`\\|`belowbar` (on its bar's high or low, y unread), its `style` the `label.style_*` word without the prefix, sizes `auto`\\|`tiny`\\|`small`\\|`normal`\\|`large`\\|`huge`, a box's `text_valign` `top`\\|`center`\\|`bottom`, a border, bg, line or fill colour null for none; each kind in creation order, at most its cap plus 5 (the definition's `max_lines`, `max_labels`, `max_boxes`, `max_polylines`, 50 by default: past cap + 5 the oldest go down to the cap), tables one per `position` in the order `top_left`, `top_center`, `top_right`, `middle_left`, `middle_center`, `middle_right`, `bottom_left`, `bottom_center`, `bottom_right`, cells by row then column from 0, `halign` `left`\\|`center`\\|`right`, `size` `tiny`\\|`small`\\|`normal`\\|`large`\\|`huge`, `bg`, `frame` and `border` a colour or null, `frame_width` the frame's px outside the cells (0 draws none); `cards` and `bars` each present only while the instance holds one: a card sits at a table's `position` (one table or one card each, the newest wins), `cards` in the same order, `pill` null for none, `tone` `positive`\\|`negative`\\|`neutral`, `caption` `\"\"` and `estimate` and `signed` `false` where unset, 1 to 12 `values` (`unit` `price`\\|`usd`\\|`shares`\\|`contracts`\\|`ratio`\\|`percent`\\|`count`, the window formats the number from it); `bars` one signed bar panel for a binding of `pane: \"own\"` with no plot, 1 to 50 `categories` in order (`sub` `\"\"` where unset), a `value` NaN or infinite served null (no bar), neither kind with an x; every slice carries the whole set as of its last row, a tick's changes undone at the next tick; a `calc` binding carries its calc series' drawings, moved by that series' ticks alone, each x the lane served off that series placed on the chart's bars (on the chart bar at its time, else its bars off the chart's first or last bar on that end's spacing), `first` and `last` the chart's. Every look field is the definition's under the binding's `params.style`, which is no part of what it computes: a style edit resends the binding whole and recomputes nothing. `fault` why a binding computes nothing, JSON `{kind?, message, at?, line?, column?}`: a custom definition's script `kind` `threw`, `budget` (`message` `ran past <ms> ms`), `memory` or `compile`, `at` the UTC seconds of the bar it faulted on, `line` and `column` its place in the source, each absent where unknown; a refusal its `message` alone (a setting refused, such as `source` on a def that reads none; a `source` naming no indicator or plot on its pane, a cycle, or a source that faulted; a `calc` below the chart's interval, on a frozen pane or beside a plot `source`; a custom definition's bad params), its rows then empty until its version, params, source or series change, `origin` the UTC seconds (decimal) it computes from (no row before the first bar at or after it), `calc` the interval word it computes on (also the legend's last entry, key `calc`), `repaints` `true` on a `calc` binding with `calc_closes` off; with `calc`, `calc_closes` true (the default) a row holds the newest closed `calc` bar's value only on the chart bar whose close closes that bar and on the first chart bar, null elsewhere, `calc_closes` false the newest `calc` bar closed by that chart bar's close (the live bar the forming `calc` row, history forward-filled), bar ends from the symbol's calendar. A plugin layer's binding (a `definition` `<plugin>.<word>`, its `[[ui.layers]]` row) computes nothing: its batch is `start_dt` alone with no row, its schema metadata `name` its label, `definition` its id, `pane` `overlay`, plus `reads`, JSON `[{product, query}]`, the product read its window draws (`query` `symbols=<the chart's item>` then `&<word>=<value>` per word of the product, sorted, defaults filled; `params.style` enters none), and `shader`, its declared shader path, absent with none; on a chart drawn off time (Renko, Kagi, line break, point and figure, range) its `fault` is `a plugin layer draws on time charts only`, and with its plugin disabled or not installed `<plugin> is not enabled`, `reads` then absent. `chart` is `desk/<id>/chart[/<pane>]` on the active Desk (bare only with one chart pane), `binding` a `chart/indicators` row's `id`, `from`/`to` UTC seconds or RFC 3339, each optional and inclusive. 400 `bad_ask` without `chart` or `binding` or for a bad bound, 404 `not_listed` for a chart no Desk has, 404 `no_binding` for a binding the pane does not hold or a chart off the active Desk",
        "parameters": [
          {
            "description": "The indicator binding's object id.",
            "in": "query",
            "name": "binding",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The chart, `desk/<id>/chart[/<pane>]`.",
            "in": "query",
            "name": "chart",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get indicator values",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/insider_trades": {
      "get": {
        "description": "Form 3, 4 and 5 transactions: one row per Table I or II line. On its `taji_brokerage::reference` schema with `accession` and `knowable_utc` (SEC's acceptance), `class` absent `equity`: the filings source's alone\nColumns: accession Utf8, line Int64, issuer_cik Utf8, issuer_name Utf8?, symbol Utf8?, item Utf8?, knowable_utc Int64, filed Date32?, form Utf8, insider_name Utf8, insider_cik Utf8?, insider_role Utf8?, director Boolean?, officer Boolean?, ten_percent Boolean?, date Date32?, code Utf8, kind Utf8?, security Utf8?, derivative Boolean?, shares Decimal128(38, 10)?, price Decimal128(38, 10)?, value Decimal128(38, 10)?, owned_after Decimal128(38, 10)?, direct Boolean?, plan_10b5_1 Boolean?, pct_holdings_change Decimal128(38, 10)?, return_since Decimal128(38, 10)?, cluster Boolean?, url Utf8?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "One insider, by CIK.",
            "in": "query",
            "name": "insider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Transaction kinds kept, a comma list.",
            "in": "query",
            "name": "kinds",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The smallest transaction value kept, by magnitude.",
            "in": "query",
            "name": "min_value",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "Insider roles kept, a comma list.",
            "in": "query",
            "name": "roles",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List insider trades",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "accession",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "line",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "issuer_cik",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "issuer_name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "symbol",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "filed",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "form",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "insider_name",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "insider_cik",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "insider_role",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "director",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "officer",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "ten_percent",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "code",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "kind",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "security",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "derivative",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "shares",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "price",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "value",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "owned_after",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "direct",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "plan_10b5_1",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "pct_holdings_change",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "return_since",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "cluster",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "url",
              "nullable": true,
              "type": "Utf8"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/instrument": {
      "get": {
        "description": "what one instrument allows an order: tick, point value, quantity step and minimum, tradability, halt (`limit` a top-N, never `clamped`). A row per instrument the provider lists, a symbol it does not list passed to the next provider: the refresh-token venue (`equity`, `index`, `future`, `option`) off its v3 symbol details, `tick_size` `PriceFormat.Increment` (under an `IncrementStyle` of `Schedule` the lowest rung, its rungs `tick_schedule`), `multiplier` `PriceFormat.PointValue`; the key-and-secret venue `equity` off the day-held `/v2/assets` row, no vendor call, and `crypto` off one `/v2/assets/{pair}` call (the slash sent `%2F`), its increments and flags; the agentic venue `equity` off `get_equity_tradability` on the grant's agentic account and `crypto` off `get_currency_pairs` (`BTC-USD`); the OAuth venue (`equity`; `cusip`, its alone, reads by CUSIP) the listing, every tick, step and tradability `null` (the vendor states none). A `parent:` item (`parent:MNQ.FUT`) is the root's listing: the refresh-token venue's point (the `contracts` listing's rows), or with `from`/`to` (the metered source's alone, at most a year apart) its `definition` history (metered, `fetch_first`), a row per definition, `knowable_utc` its `ts_recv`. Every row states `trades_as`, the item an order on it names (an instrument's own `item`; `null` where none is stated), and `until`, the last New York date that holds (an instrument's expiry, else `null`). A front-rank `continuous:` item (`@NQ`, `NQ1!`, `NQ.c.0`) is one row trading as the contract its provider states now: the refresh-token venue's `Underlying` through that contract's `ExpirationDate`, the metered source's symbology mapping holding the day through its `valid_to` less a day, the OAuth venue's quoted contract through its `futureExpirationDate`, the keyless source's `underlyingSymbol` through its `expireDate`; the store reuses it to the next Globex open; a later rank (`NQ2!`, `NQ.c.1`) is 400 `bad_ask` before any provider is asked; a `parent:` without `from`/`to` is the metered source's symbology, which is no definition and answers no row; a parent is every listed contract and spread, `symbol` each one's raw symbol; a dated `future:` is a dated contract, the others' and never the metered source's\nColumns: symbol Utf8, item Utf8, knowable_utc Int64, class Utf8?, kind Utf8?, exchange Utf8?, currency Utf8?, tick_size Decimal128(38, 10)?, tick_schedule List(Struct(\"from\": Decimal128(38, 10), \"increment\": Decimal128(38, 10))), multiplier Decimal128(38, 10)?, quantity_step Decimal128(38, 10)?, min_quantity Decimal128(38, 10)?, tradable Boolean?, shortable Boolean?, easy_to_borrow Boolean?, fractionable Boolean?, marginable Boolean?, halted Boolean?, listed_date Date32?, delisted_date Date32?, expiry_date Date32?, underlying Utf8?, strike Decimal128(38, 10)?, right Utf8?, first_notice_date Date32?, last_trade_utc Int64?, settlement Utf8?, style Utf8?, trades_as Utf8?, until Date32?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One instrument, by CUSIP.",
            "in": "query",
            "name": "cusip",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an instrument's order rules",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "crypto",
            "future_option",
            "forex"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "class",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "kind",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "exchange",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "currency",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "tick_size",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "tick_schedule",
              "nullable": false,
              "type": "List(Struct(\"from\": Decimal128(38, 10), \"increment\": Decimal128(38, 10)))"
            },
            {
              "name": "multiplier",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "quantity_step",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "min_quantity",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "tradable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "shortable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "easy_to_borrow",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "fractionable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "marginable",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "halted",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "listed_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "delisted_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "expiry_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "underlying",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "strike",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "right",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "first_notice_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "last_trade_utc",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "settlement",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "style",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "trades_as",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "until",
              "nullable": true,
              "type": "Date32"
            }
          ],
          "effect": "read",
          "only": {
            "cusip": [
              "schwab"
            ],
            "from": [
              "databento"
            ],
            "to": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/ipos": {
      "get": {
        "description": "The market's IPOs listing in `[from, to)` (both required, read as `get/earnings` reads them, 31 days at most; `class` 400), as `ipos` rows by listing day, unpinned the union of the providers' on the symbol alone (an offering postponed to another `listing_date` is one row, the first provider's), each naming its `provider`: `status` `filed`\\|`expected`\\|`priced`\\|`withdrawn`\\|`postponed`, else null; now-only, an offering known when first fetched, so a past `at` or `to` is refused 501 `not_served` unless held",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List IPOs",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/news": {
      "get": {
        "description": "news stories, by symbol or the market's. `news` asks the linked providers in rank, an unpinned read the union of every linked one's stories, one row per story (one canonical `url`, or one headline folded to lower-case words on one UTC date of `published_utc`, the walk's first keeping its row whole), each naming its `provider` (`source` the publisher), newest first, cut to `limit` after the union (a clamped page takes only stories inside its span and keeps its oldest), `news` without `symbols` the market's feed (two providers' alone). The key-and-secret venue's (`equity`): a row per story, `knowable_utc` its `updated_at`\nColumns: id Utf8, symbols List(Utf8), knowable_utc Int64, published_utc Int64, updated_utc Int64?, headline Utf8, summary Utf8?, body Utf8?, url Utf8?, author Utf8?, source Utf8?, image_url Utf8?, provider Utf8?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List news",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "id",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "symbols",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "published_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "updated_utc",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "headline",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "summary",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "body",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "url",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "author",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "source",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "image_url",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/option_flow": {
      "get": {
        "description": "an underlying's option prints over a span of an hour at most, each with the consolidated quote standing at it. `symbols` an `equity:` or `index:` underlying (a `future:`, `option:` or `spread:` item 400 `bad_ask`), `from` required, a span over an hour 400 \"an hour at most\"; class `option`, one row per print naming its contract. Read as `trades` is: a tick span, never stored, `limit` per symbol, ascending, the page ending on a whole `ts_init` second, a clamped page its `cursor`, `at` keeping a print received by it; a metered source answers 409 `fetch_first` and `fetch` does not buy it. Rows on the `taji_brokerage::reference` `option_flow` schema: `symbol, contract, ts_event, ts_init, ts_utc, call, expiry, strike, price, size?, bid?, ask?, side?, side_by?, multiplier?, premium?, exchange?, conditions?, delayed?`; `contract` is `option:<OCC-21>`, `bid` and `ask` the consolidated quote standing at the print as the source states it, `side` 1 (bought) or -1 (sold) and `side_by` `quote` (nearer the ask or the bid of that quote) or `tick` (the last price change among the contract's prints in the answer; the exact mid, a locked or crossed quote or a missing side go to it), each null where neither decides or an OPRA-letter condition marks a cancel, a late or out-of-sequence print or a multi-leg print (such a print does not move its contract's tape; a source stating its own condition ids has its prints classed), `premium` price x size x `multiplier`, null unless both are stated (100 is never assumed), `ts_utc` the `ts_init` second. The key-and-secret venue's (`equity` or `index` underlying; unmetered): the underlying's contracts as of the span's New York date, live and expired, each contract's trades read in parallel and its quotes for each that printed, a print joined to the last quote at or before its `sip_timestamp`; `multiplier` is `shares_per_contract`, `conditions` the vendor's ids; a key without option quotes states no `bid` or `ask`, so every side is its contract's tick rule. The metered source's: `OPRA.PILLAR` `tcbbo` of the underlying's parents, each contract and multiplier off that day's `definition`, no conditions stated; metered, so a read answers `fetch_first`\nColumns: symbol Utf8, contract Utf8, ts_event Int64, ts_init Int64, ts_utc Int64, call Boolean?, expiry Date32?, strike Decimal128(38, 10)?, price Decimal128(38, 10), size Decimal128(38, 10)?, bid Decimal128(38, 10)?, ask Decimal128(38, 10)?, side Int64?, side_by Utf8?, multiplier Decimal128(38, 10)?, premium Decimal128(38, 10)?, exchange Utf8?, conditions List(Utf8)?, delayed Boolean?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get option flow",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "option"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "contract",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts_event",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ts_init",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ts_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "call",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "expiry",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "strike",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "price",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "size",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "bid",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ask",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "side",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "side_by",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "multiplier",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "premium",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "exchange",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "conditions",
              "nullable": true,
              "type": "List(Utf8)"
            },
            {
              "name": "delayed",
              "nullable": true,
              "type": "Boolean"
            }
          ],
          "effect": "read",
          "only": {},
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/ownership_stakes": {
      "get": {
        "description": "Schedule 13D and 13G stakes: one row per reporting person. On its `taji_brokerage::reference` schema with `accession` and `knowable_utc` (SEC's acceptance), `class` absent `equity`: the filings source's alone\nColumns: accession Utf8, issuer_cik Utf8, issuer_name Utf8?, cusip Utf8?, symbol Utf8?, item Utf8?, knowable_utc Int64, filed Date32?, form Utf8, filer_name Utf8, filer_cik Utf8?, event_date Date32?, shares Decimal128(38, 10)?, pct_of_class Decimal128(38, 10)?, active Boolean?, purpose Utf8?, amends Utf8?, amendment_number Int64?, url Utf8?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "SEC form types, a comma list.",
            "in": "query",
            "name": "forms",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List ownership stakes",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity"
          ],
          "columns": [
            {
              "name": "accession",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "issuer_cik",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "issuer_name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "cusip",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "symbol",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "filed",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "form",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "filer_name",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "filer_cik",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "event_date",
              "nullable": true,
              "type": "Date32"
            },
            {
              "name": "shares",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "pct_of_class",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "active",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "purpose",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "amends",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "amendment_number",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "url",
              "nullable": true,
              "type": "Utf8"
            }
          ],
          "effect": "read",
          "only": {
            "forms": [
              "edgar"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/quotes": {
      "get": {
        "description": "each item's quote now, over a span, or live with `hold`. `quotes_schema` `symbol, ts, ts_init, provider?, delayed?, halted?, session?, bid?, ask?, last?, bid_size?, ask_size?, book_ts?, last_ts?, facts?, prev_close?, change?, change_pct?, session_close?, session_change?, session_change_pct?, market_session?, next_session?, next_at?` (`ts_init` `Int64` ns, when the kernel received its ticks, the later of quote and trade; `delayed` `Boolean`, null where the answer does not say, never read as live; `halted` `Boolean`, the source's halt flag, and `session` the session the source says the quote is of (`pre`, `regular`, `post`, `24h`), each null where the source does not say, never off the clock (no source states a `session` yet); `facts` the ticks' vendor fields as JSON, `{\"quote\": {…}, \"trade\": {exchange?, conditions?, …}}`, an option's its `Facts`; the day figures an equity's, index's, option's, future's or coin's, a live read's and the `/ws/market` `quotes` stream's over the row's `last`, `market_session` the calendar's word for the instant asked (`pre`, `regular`, `post`, `overnight`, `closed`), `next_at` an instant). A row a symbol (`ts` its book's `ts_event`, else when it was taken, the trade's where it has no bid or ask; `book_ts` the book's `ts_event`, an option's its chain row's where the vendor dates it, null where the vendor dates none (the refresh-token venue, a gateway snapshot): a book of unknown age, which no seat's order is priced fresh off (a spread is dated at its legs' oldest book, an order with no real-time quote is refused `no real-time quote for <symbol>`); `last` its trade's, `last_ts` that trade's `ts_event`, null where the vendor dates none) off at most one `QuoteTick` `{symbol, class, provider, bid_price, ask_price, bid_size, ask_size, ts_event, ts_init, delayed, halted, session}` and one `TradeTick` `{symbol, class, provider, price, size, exchange, conditions, ts_event, ts_init, delayed, last_eligible}`, as every provider answers: each figure the vendor's exactly as decimal text, a field the vendor omits `null`, `ts_event` the vendor's instant in ns at its precision (`null` with none), `ts_init` Taji's when it took the tick, `exchange` `null` (no source states a MIC), `conditions` the vendor's codes as text, the key-and-secret venue's `delayed` off its `feed`: `sip`, else `delayed_sip` on a Basic key (equity, `delayed` true), `opra`, else `indicative` (option, `delayed` true), `us` (crypto). With a `from` it is a tick span as `get/trades` reads one, a `quotes_schema` row per quote (`ts` its `ts_event`, else its `ts_init`), `at` keeping a quote received by it (`ts_init`): the key-and-secret venue's at the vendor's `t`, an hour at most; the metered source's (`equity`, its `mbp-1` top level; `future` `GLBX.MDP3`'s `mbp-1`; `option` `OPRA.PILLAR`'s consolidated `cmbp-1`) off its records, `ts_event` the record's, `ts_init` its `ts_recv`, a side the record lacks `null`. `quotes` of one `spread:` item (`symbols=spread:<buy|sell>:<ratio>:<contract>,…`, no other item or word) answers the leg set's net on `legs_schema`, a row per leg in leg order: on every row `provider` who quoted them, `feed` which of the provider's feeds quoted them, the key-and-secret venue's `opra` or `indicative` (a delayed, sampled feed, not the market), `null` for a provider with one feed, and the net `net_bid`, `net_ask`, `net_mid` (negative a credit) and `net_ts` (the oldest leg's); then the leg as asked, `instrument` (its JSON, as `kind.Spread.legs` takes it), `side` (`Buy`\\|`Sell`) and `ratio`, beside its row, `underlying` and a `ChainRow`'s fields (`facts` stated and `computed` filled as a chain row's, none leaving it unmodelled), `spot` the underlying's live last trade the rows were modelled at (`null` with none): each leg's own quote, no chain read, off `link.prefer.data.option` where it is linked, else the first linked provider that quotes option contracts, a gateway venue last; 400 a malformed `legs`, 501 `not_served` naming a leg nothing quotes both sides of; with `hold=<ms>` its quotes row instead, as `/ws/market` streams it. The key-and-secret venue quotes `equity`, `option` and `crypto`. The agentic venue: the two ticks (as the key-and-secret venue's): option (an OCC symbol or instrument UUID) a quote alone, index `value` a trade alone, crypto (`BTC-USD`) a quote. The refresh-token venue (`<id>`; `equity`, `index`, `future`, `option`, `crypto` `BTC/USD` asked as `BTCUSD`, `future_option` spelled as the venue does, `NQZ26 C30750`; the latest only, a `from` is another provider's) the two ticks (as the key-and-secret venue's, no `feed`), the vendor's decimal text exactly, one that does not parse `null`, a bid or ask of `0` (a crypto pair's empty book) `null`, `delayed` its `MarketFlags.IsDelayed`, `halted` its `MarketFlags.IsHalted`. The OAuth venue (`<id>`, `plugins/<id>/README.md`; an option is its OCC symbol, a future `ESZ26`, a future option `NQZ26 C30750`, an index `$SPX`; `equity`, `option`, `future`, `future_option`, `index`; the latest only) the two ticks (as the key-and-secret venue's), a side of `0` or `-999` `null`, `delayed` off the vendor's `realtime`, `halted` off its `securityStatus` (`Halted` true, `Normal` false, any other word `null`)\nColumns: symbol Utf8, ts Timestamp(µs, \"UTC\"), ts_init Int64, provider Utf8?, delayed Boolean?, halted Boolean?, session Utf8?, bid Decimal128(38, 10)?, ask Decimal128(38, 10)?, last Decimal128(38, 10)?, bid_size Decimal128(38, 10)?, ask_size Decimal128(38, 10)?, book_ts Timestamp(µs, \"UTC\")?, last_ts Timestamp(µs, \"UTC\")?, last_exchange Utf8?, last_conditions List(Utf8), prev_close Decimal128(38, 10)?, change Decimal128(38, 10)?, change_pct Decimal128(38, 10)?, session_close Decimal128(38, 10)?, session_change Decimal128(38, 10)?, session_change_pct Decimal128(38, 10)?, market_session Utf8?, next_session Utf8?, next_at Timestamp(µs, \"UTC\")?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Which parts of each quote the source sends, a comma list; none is all.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Milliseconds a live read gathers ticks before it answers.",
            "in": "query",
            "name": "hold",
            "required": false,
            "schema": {
              "maximum": 60000,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "description": "Whether an option quote may come off an indicative feed, delayed and sampled.",
            "in": "query",
            "name": "indicative",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "The session whose ticks or bars are kept.",
            "in": "query",
            "name": "session",
            "required": false,
            "schema": {
              "enum": [
                "24h",
                "extended",
                "post",
                "pre",
                "regular"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get quotes",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "crypto",
            "future_option",
            "forex"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts",
              "nullable": false,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "ts_init",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "delayed",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "halted",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "session",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "bid",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ask",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "last",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "bid_size",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "ask_size",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "book_ts",
              "nullable": true,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "last_ts",
              "nullable": true,
              "type": "Timestamp(µs, \"UTC\")"
            },
            {
              "name": "last_exchange",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "last_conditions",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "prev_close",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "session_close",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "session_change",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "session_change_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "market_session",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "next_session",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "next_at",
              "nullable": true,
              "type": "Timestamp(µs, \"UTC\")"
            }
          ],
          "effect": "read",
          "only": {
            "from": [
              "databento"
            ],
            "symbology": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/screener": {
      "get": {
        "description": "the movers and scans of a class: one row per symbol a list ranks (`limit` a top-N, never `clamped`). `screener` also takes the kernel's own `where` (tests `<figure>.gt.<n>` or `<figure>.lt.<n>`, comma-joined, a figure one of `last`, `change`, `change_pct`, `volume`, `trade_count`; a row without the figure fails) and `sort_by` (`symbol` or a figure, then `.asc`, the default, or `.desc`; empty values last, ties in the served order), run over the rows served after `limit` and asked of no provider. `scan` is a few providers' alone and `filter` a gateway venue's. The key-and-secret venue's (`equity`, `crypto`; `limit` the top n, 50 at most, 100 for `most_actives`): a row per mover, `rank` from 1 within its list, `list` the list (`gainers`, `losers`, and on `equity` `most_actives`, by volume or, with `sort=TRADES`, by trades); its `scan` (`gainers`, `losers`, `most_actives`; absent, all three) picks one list and its `sort` (`VOLUME`, `TRADES`, beside `most_actives` alone) ranks the most actives, which `list=share_volume_leaders` and `list=trade_count_leaders` ask by name. The agentic venue's the `scan` named, else every saved scan, a row per match, `rank` from 1 within its scan, the scan's columns. The OAuth venue's (`equity`; `scan` an index, `$SPX`, `$DJI`, `$COMPX`, `NYSE`, `NASDAQ`, `OTCBB`, `INDEX_ALL`, `EQUITY_ALL` (default), `OPTION_ALL`, `OPTION_PUT`, `OPTION_CALL`; `sort` `VOLUME`, `TRADES`, `PERCENT_CHANGE_UP`, `PERCENT_CHANGE_DOWN` and `frequency` 0, 1, 5, 10, 30, 60 minutes, its alone) a row per mover, `rank` from 0 as sent, the vendor's percent `change` in `change_pct`\nColumns: rank Int64, symbol Utf8, item Utf8, knowable_utc Int64, name Utf8?, last Decimal128(38, 10)?, change Decimal128(38, 10)?, change_pct Decimal128(38, 10)?, volume Decimal128(38, 10)?, list Utf8?, trade_count Decimal128(38, 10)?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": true,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A screener filter, its provider's own.",
            "in": "query",
            "name": "filter",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A movers window in minutes: 0, 1, 5, 10, 30 or 60.",
            "in": "query",
            "name": "frequency",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "A named list (`share_volume_leaders`, `trade_count_leaders`).",
            "in": "query",
            "name": "list",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The market a list ranks.",
            "in": "query",
            "name": "market",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "One movers list: `gainers`, `losers`, `most_actives`; absent, all three.",
            "in": "query",
            "name": "scan",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How `most_actives` ranks: `VOLUME` or `TRADES`.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`symbol` or a figure, then `.asc` (the default) or `.desc`.",
            "in": "query",
            "name": "sort_by",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "Kept rows, the kernel's own test: `<figure>.gt.<n>` or `<figure>.lt.<n>`, comma-joined, a figure one of `last`, `change`, `change_pct`, `volume`, `trade_count`.",
            "in": "query",
            "name": "where",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get screener results",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "crypto",
            "forex"
          ],
          "columns": [
            {
              "name": "rank",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "last",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "change_pct",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "volume",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "list",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "trade_count",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            }
          ],
          "effect": "read",
          "only": {
            "filter": [
              "ibkr"
            ],
            "frequency": [
              "schwab"
            ],
            "list": [
              "alpaca",
              "ibkr",
              "massive",
              "schwab",
              "yahoo"
            ],
            "market": [
              "alpaca",
              "ibkr",
              "massive",
              "schwab",
              "yahoo"
            ],
            "scan": [
              "alpaca",
              "ibkr",
              "massive",
              "robinhood-agentic",
              "schwab",
              "yahoo"
            ],
            "sort": [
              "alpaca",
              "schwab"
            ]
          },
          "requires": [
            [
              "list",
              "scan"
            ]
          ],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/search": {
      "get": {
        "description": "symbols and roots by text, else the members of a symbol list or of whole exchanges, or a future root's dated contracts. `class` is not required (a listing's is `equity`, or `future` with `contracts`). A `search` is stored like any other, as a range under `from`/`to`, else a now answer reused for 300 s, and a `search` with no text answers a JSON 200 carrying `product`, `class`, `provider`, `source` (`\"cache\"` when no vendor was asked, else the provider) and `fetched_at_utc`. `search` with no `provider` lists first, each a row with `provider` `store`, what this device charts: the store's series of the class holding the search case-blind, exact then prefix then the rest, the first 25, then each provider's rows not already listed (case-blind, an index's `$` aside), a row naming another class dropped; with nothing linked serving the search they are the answer, and with none held the refusal stands. `search` with text reads `listings` then `contracts` before any vendor; with no `class` it asks every class at once, one read: one batch of every class's rows, ranked exact symbol first (an `index` above the rest on that tie), then a prefix, then the rest, an `index` row's `symbol` spelled with its `$` (`$SPX`), every row's `mic` the ISO 10383 MIC its `exchange` names (`NASDAQ` and `XNAS` are `XNAS`, `NYSE Arca` `ARCX`, `CBOT` `XCBT`; `taji_trading::hub::reference::VENUES`), `null` where the kernel names none, a class nothing linked searches left out, and a class that has not answered in 1.3 s left out of that answer; none answering with a class still out is 504 `timeout`, else the first refusal that is not `not_served`, else equity's. `exact=1` (with text, without `provider`) keeps only the rows whose symbol is the text, case-blind and an index's `$` aside, off `listings`, `contracts` and the store, no vendor asked and every class waited for (an import resolving `NASDAQ:NDX`); none is 200 with no rows. Without `first` a search adds the other linked providers' rows, waiting up to 1 s on them, a late or refusing one adding nothing; `first=1` (with text) asks them all at once and answers off the first to answer, adding none of the others' rows, a class out at 300 ms left out: the window draws it, then adds the full read's rows. `search` with no `search` text lists (`symbols` or `exchanges`, comma lists, `contracts`, a future root, or `members` or `lists` alone, one required, else 400; `limit`; `from`/`to` with `contracts` alone, else 400; those words beside text, or `criteria` and `projection` without it, 400): the members of the listing in its order, `{rows: [{symbol, exchange, name, tradable, expiry, facts}]}`, `facts` what the vendor states (`Facts`, as `instrument` rows carry it), `expiry` `null` and `facts` `{}` for an equity; an equity list the store's `listings` hold whole (every symbol asked, or a row on the exchanges) is answered from them, `source` `\"listings\"`, `provider` `null`, else the key-and-secret venue's tradable `/v2/assets`. `members=<list id>` (the refresh-token venue's, equity) is a v2 symbol list's members in its order (`SP500`, `NDQ/100`, `CHSEM`; ids case-blind), the list's own index left out, `tradable` `null`, an unknown id 400; `lists=<text>` the lists whose id or name holds the text, case-blind, `all` every one, each `{symbol, name, kind: \"list\", category, subcategory, path, tradable: false, expiry: null, facts: {}}`, `symbol` the id `members` takes. `contracts=<root>` (class `future` where none is named) is the root's dated contracts, `expiry` `YYYY-MM-DD`, at now each `dte` the whole days to it from New York's date, led by the provider's own continuous row (its spelling: `@MNQ`, `MNQ.c.0`; `expiry` `null`, `tradable` `false`, never orderable): a point off the refresh-token venue's v2 search `C=FU&R=<root>` and its symbol details, each row its `instrument` row; with `from`/`to` the metered source's (`fetch_first`) union of the contracts `GLBX.MDP3` `definition` lists for the parent (`MNQ.FUT`) in the range, each its first definition `{ts_utc, knowable, symbol, exchange, name, tradable, expiry, facts, instrument_id}`, `knowable` (= `ts_utc`) its listing day's `ts_recv`, `symbol` the vendor's raw symbol (`MNQZ5`), `facts` `{ticks, multiplier}` off `min_price_increment` and `unit_of_measure_qty`. The agentic venue's a row per hit of its three lists. The refresh-token venue's on `crypto` (`search` a case-blind substring, empty for every pair) a row per vendor crypto pair name; on `equity` (`search`, `criteria`) a row per hit of the vendor's v2 suggest (the first 25 stocks), or with `criteria` (`N=…&C=…`, escaped in the query) its v2 search, its `Category` the class. The OAuth venue's (`equity`) a row per listing, symbol matches first, or one `projection` (its alone: `symbol_search`, `symbol_regex`, `desc_search`, `desc_regex`, `search`, `fundamental`)\nColumns: symbol Utf8, item Utf8?, knowable_utc Int64, provider Utf8?, served_by List(Utf8), name Utf8?, class Utf8?, kind Utf8?, exchange Utf8?, mic Utf8?, active Boolean?, delisted Boolean?, underlying Utf8?, expiry_date Date32?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A future root: its dated contracts.",
            "in": "query",
            "name": "contracts",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A provider's own search criteria (`N=…&C=…`, escaped).",
            "in": "query",
            "name": "criteria",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` keeps only the rows whose symbol is the text, no vendor asked.",
            "in": "query",
            "name": "exact",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "Whole exchanges' listings, a comma list.",
            "in": "query",
            "name": "exchanges",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` answers off the first provider to answer, adding no other's rows.",
            "in": "query",
            "name": "first",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The symbol lists whose name holds this text.",
            "in": "query",
            "name": "lists",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A symbol list's id: its members.",
            "in": "query",
            "name": "members",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How a provider matches the text, its own word.",
            "in": "query",
            "name": "projection",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "Text to find symbols and names by.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Search symbols",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "crypto",
            "future_option",
            "forex"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "item",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "knowable_utc",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "served_by",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "name",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "class",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "kind",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "exchange",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "mic",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "active",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "delisted",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "underlying",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "expiry_date",
              "nullable": true,
              "type": "Date32"
            }
          ],
          "effect": "read",
          "only": {
            "from": [
              "databento"
            ],
            "lists": [
              "tradestation"
            ],
            "members": [
              "tradestation"
            ],
            "projection": [
              "schwab"
            ],
            "to": [
              "databento"
            ]
          },
          "requires": [
            [
              "search",
              "symbols",
              "exchanges",
              "contracts",
              "members",
              "lists"
            ]
          ],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/series": {
      "get": {
        "description": "registered tables (`verb/data/register`), each a `series:<table>[@<n>]` item (the newest version, else `n`; another kind, or `names`, 400), as `series_schema` rows, one a value of each row's columns, in `knowable` then `timestamp` order: those knowable by `to` (default now) and from `from`, no `from` the last `limit` (default 5,000, max 10,000) per table; a span past `limit` pages like a range, each page whole `knowable` seconds, its metadata `cursor`; `to` is exclusive on `knowable`, `at` inclusive; a table not registered a `missing` entry `bad_ask`; another word 400",
        "parameters": [
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get registered series",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/statistics": {
      "get": {
        "description": "a venue's published statistics: settlement, open interest, session high and low, auction prints (a point `statistics`' `limit` a top-N, never `clamped`). Each row names its `provider`; an unpinned read is the union of every linked provider's rows on (symbol, `stat`), each stat whole over the span off the walk's first stating or deriving it, a ratio or rank only off its own provider's figures. `kind` (`stats`, `hv`, `iv`, `fee_rate`, `histogram`) and `period` are a gateway venue's. The metered source's (`equity` off `XNAS.ITCH`, `future` `GLBX.MDP3`, `option` `OPRA.PILLAR`; metered) a row per dbn `StatMsg` whose `stat_type` has a `stat` word (`open`, `indicative`, `settlement`, `low`, `high`, `cleared_volume`, `open_interest`, `close`, and on `XNAS` `luld_upper` and `luld_lower`), `update_action` `new` or `delete`; the key-and-secret venue's `equity` off `/v2/stocks/auctions` on `sip` (free) a row per opening (`stat: \"auction_open\"`) or closing (`\"auction_close\"`) print, a session without an auction no row\nColumns: symbol Utf8, ts_event Int64, ts_init Int64, ts_ref Int64?, stat Utf8, price Decimal128(38, 10)?, quantity Decimal128(38, 10)?, update_action Utf8?, computed List(Utf8), provider Utf8?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Which table: `fundamentals`' `income`, `balance`, `cash_flow`, `ratios`, `analyst`, `short_interest`, `short_volume`, `float`; `statistics`' `stats`, `hv`, `iv`, `fee_rate`, `histogram`.",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "A named span: `chains`' expiries (`this_week`, `this_month`, `next_30_days`, …), a `statistics` or `filings` period.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get venue statistics",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "future_option"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts_event",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ts_init",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ts_ref",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "stat",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "price",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "quantity",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "update_action",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "computed",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "provider",
              "nullable": true,
              "type": "Utf8"
            }
          ],
          "effect": "read",
          "only": {
            "kind": [
              "ibkr"
            ],
            "period": [
              "ibkr"
            ],
            "symbology": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/status": {
      "get": {
        "description": "each item's trading state as the venue publishes it: halts, pauses, resumptions (a point `status`' `limit` a top-N, never `clamped`); a gateway venue's and the realtime-socket source's are now-only\nColumns: symbol Utf8, ts_event Int64, ts_init Int64, action Utf8?, reason Utf8?, trading_event Utf8?, is_trading Boolean?, is_quoting Boolean?, is_short_restricted Boolean?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Milliseconds a live read gathers ticks before it answers.",
            "in": "query",
            "name": "hold",
            "required": false,
            "schema": {
              "maximum": 60000,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get trading status",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "future_option"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts_event",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "ts_init",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "action",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "reason",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "trading_event",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "is_trading",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "is_quoting",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "is_short_restricted",
              "nullable": true,
              "type": "Boolean"
            }
          ],
          "effect": "read",
          "only": {
            "from": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/get/trades": {
      "get": {
        "description": "each item's prints over a span of an hour at most, or live with `hold`. A tick span, never stored: a read asks the vendor the whole span (a metered one only as `fetch`'s buy, which answers every tick it bought, unpaged), takes the same words as a range, `limit` per symbol, and answers its ticks ascending, a `trades_schema` row per print (`symbol, ts_event?, ts_init, price, size?, exchange?, conditions, delayed?, aggressor?, side?, side_by?, off_exchange?`, `conditions` a `List<Utf8>`, the vendor's codes, `aggressor` `buy` or `sell` where the source states who initiated the print, `off_exchange` true where it was reported to a FINRA facility, each of those null where the source does not say, never estimated; `side` 1 buyer- or -1 seller-initiated and `side_by` how, the kernel's for every source: `stated` (the venue's `aggressor`), `quote` (nearer the bid or the ask standing at the print, the item's newest live quote from any provider no newer than the print and of its `delayed`, which a live read holds beside its prints; a span's with `quotes=1` the last at or before the print (`ts_event`, else `ts_init`) of the same span's `quotes`, read through the hub off any linked provider, the trades' pin first, never bought, a page those quotes clamped cut after their last whole second and `clamped`, a quotes read refused leaving the span stated-else-tick, its part's `summary` `warnings` saying why; `quotes` with `hold` 400), `tick` (the last price change on the read's tape), each null where nothing decides), `ts_init` the vendor's receive instant where it states one (a metered source's `ts_recv`), else `ts_event`, a row with neither dropped, the page ending on a second boundary of `ts_init` (a first second wider than `limit` the page whole, over it), a fetch the vendor clamped likewise ending on a whole second (one second holding the whole of it 400), a clamped page its `cursor`; `at` keeps a print received by it (`ts_init`), and a span's `to` is at most `at`. `session` (intraday equity; default `regular`) as `get/bars` takes it. The key-and-secret venue's (`equity`, `option`, `crypto`): ticks at the vendor's `t`, `conditions` an equity's SIP codes or an option's `c`, an hour at most; a Basic key is refused the last 15 minutes of SIP and OPRA. The metered source's (`equity`: `fetch {product}` buys the span) are ticks off its `tbbo` records on `EQUS.MINI`, `ts_event` the record's, `ts_init` its `ts_recv`, each print sided first by the bid and ask in its own record (`quote`); `future` reads `GLBX.MDP3`'s `trades`, `option` `OPRA.PILLAR`'s `tcbbo` as an equity's `tbbo`\nColumns: symbol Utf8, ts_event Int64?, ts_init Int64, price Decimal128(38, 10), size Decimal128(38, 10)?, exchange Utf8?, conditions List(Utf8), delayed Boolean?, aggressor Utf8?, side Int64?, side_by Utf8?, off_exchange Boolean?",
        "parameters": [
          {
            "description": "Answer as of this instant: only what was knowable then.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "The class read where no item names one; beside `symbols` 400.",
            "in": "query",
            "name": "class",
            "required": false,
            "schema": {
              "enum": [
                "crypto",
                "equity",
                "forex",
                "future",
                "future_option",
                "index",
                "option"
              ],
              "type": "string"
            }
          },
          {
            "description": "A page's `cursor` metadata, alone: the next page of the read that minted it.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The start, inclusive: epoch seconds, a `YYYY-MM-DD` New York date, or RFC 3339.",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "Milliseconds a live read gathers ticks before it answers.",
            "in": "query",
            "name": "hold",
            "required": false,
            "schema": {
              "maximum": 60000,
              "minimum": 100,
              "type": "integer"
            }
          },
          {
            "description": "Rows per page (per symbol on a span, default 5,000); on a point product a top-N.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "One source alone: a provider word (`x-taji.words.provider`) or an account handle off `link.accounts`.",
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1`: a trades span also reads the same span's quotes, never bought, and sides each print by the quote standing at it.",
            "in": "query",
            "name": "quotes",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "`1` asks the vendor for the window whatever the store holds.",
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "The session whose ticks or bars are kept.",
            "in": "query",
            "name": "session",
            "required": false,
            "schema": {
              "enum": [
                "24h",
                "extended",
                "post",
                "pre",
                "regular"
              ],
              "type": "string"
            }
          },
          {
            "description": "A comma list of items, each `kind:text`: `equity:AAPL`, `index:$SPX`, `future:ESZ26`, `continuous:ES.c.0`, `parent:ES.FUT`, `option:<OCC>`, `spread:` and its legs, `series:<table>`.",
            "in": "query",
            "name": "symbols",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The end, exclusive, as `from`; a date runs through its end.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "string"
              ]
            }
          },
          {
            "description": "`1`: a joined read answers once every candidate is read, never `pending`.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.arrow.stream": {}
            },
            "description": "An Arrow IPC stream."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get trades",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "classes": [
            "equity",
            "index",
            "future",
            "option",
            "crypto",
            "future_option"
          ],
          "columns": [
            {
              "name": "symbol",
              "nullable": false,
              "type": "Utf8"
            },
            {
              "name": "ts_event",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "ts_init",
              "nullable": false,
              "type": "Int64"
            },
            {
              "name": "price",
              "nullable": false,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "size",
              "nullable": true,
              "type": "Decimal128(38, 10)"
            },
            {
              "name": "exchange",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "conditions",
              "nullable": false,
              "type": "List(Utf8)"
            },
            {
              "name": "delayed",
              "nullable": true,
              "type": "Boolean"
            },
            {
              "name": "aggressor",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "side",
              "nullable": true,
              "type": "Int64"
            },
            {
              "name": "side_by",
              "nullable": true,
              "type": "Utf8"
            },
            {
              "name": "off_exchange",
              "nullable": true,
              "type": "Boolean"
            }
          ],
          "effect": "read",
          "only": {
            "from": [
              "databento"
            ],
            "symbology": [
              "databento"
            ]
          },
          "requires": [],
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/held": {
      "get": {
        "description": "200 `Held` — every series the store holds of that product, one entry each (`product` required, `bars` or `chains`; `symbols` a comma list of items as a read's, `equity:AAPL`, else all), a span the vendor answered empty included, a chain's one span per New York day it holds a file for; no `product`, another `product`, or another word, 400",
        "parameters": [
          {
            "in": "query",
            "name": "product",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Held"
                }
              }
            },
            "description": "Every series the store holds of one product, one entry each."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List stored data series",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/plugin/{id}/frame": {
      "get": {
        "description": "200 `text/html`, the document a plugin's window half runs in ([`plugin_ui`]) while its `taji-plugin.toml` declares `[ui]` and its `enabled` is true: Taji's frame sheet `/app/frame/kit.css` and the package's `ui/index.css` where it holds one, each linked `crossorigin`, `<div id=\"root\">` and the package's `ui/index.js`. It carries `Content-Security-Policy: sandbox allow-scripts; default-src 'none'; script-src <o>/plugin/<id>/ui/index.js; style-src <o>/app/frame/kit.css <o>/plugin/<id>/ui/index.css 'unsafe-inline'; img-src <o>/plugin/<id>/ui/ <o>/plugin/<id>/mark <o>/app/logo/ data: blob:; font-src data:; connect-src 'none'; form-action 'none'; base-uri 'none'; frame-ancestors <o>`, `<o>` the door's origin (`http://127.0.0.1:<port>` on the first, `https://<host>` on the phone's), so the frame has an opaque origin, no token and no network, and is framed only by the page; `Cache-Control: no-store`; 404 for an id no such plugin holds. No token, as the bundle. On the phone's door it and the two below are answered only under `key`, the 64-hex frame key of a live session (`POST /app/token`'s `frames`), named once and read raw, and are the door's empty 404 otherwise; the document's `ui/` links carry a well-formed `key` on either door, and no header does",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a plugin's window frame",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/plugin/{id}/layer/{name}": {
      "get": {
        "description": "200 `text/html`, the document a custom chart layer's builder `ui/<name>.js` runs in ([`plugin_ui`]): `<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"></head><body><script src=\"/plugin/<id>/ui/<name>.js\"></script></body></html>`, the script's URL carrying a well-formed `key` where the request did. It carries `Content-Security-Policy: sandbox allow-scripts; default-src 'none'; script-src <o>/plugin/<id>/ui/<name>.js; connect-src 'none'; form-action 'none'; base-uri 'none'; frame-ancestors <o>`, `<o>` the door's origin, so the builder has an opaque origin, no token, no network and only that script, and is framed only by the page; `Cache-Control: no-store`. 404 unless `ui/<name>.js` is the `renderer` of one of the `[[ui.layers]]` of a plugin that is seated and enabled. No token; `key` on the phone's door",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a plugin chart layer",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/plugin/{id}/mark": {
      "get": {
        "description": "200 the image (`ui/<name>.svg` or `.png`) its `taji-plugin.toml` declares as `mark`, of any seated plugin, enabled or not, with its type, `Cache-Control: no-store` and `Content-Security-Policy: sandbox; default-src 'none'; style-src 'unsafe-inline'`; 404 for an id with none. No token; `key` on the phone's door",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a plugin's mark image",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/plugin/{id}/shader/{word}": {
      "get": {
        "description": "200 `application/json`, `ShaderModule`: the module the window compiles for layer `<id>.<word>` (its `wrapper`, the whole `module`, and its `row` fields and `style` uniforms), read from the package's `shader` file and validated again on this request; 422, its sentence in `text/plain`, where the file no longer passes (a dev plugin edited on disk); 404 for a layer with no `shader`, an unknown layer, and a plugin that is not seated and enabled. `Cache-Control: no-store`. No token; `key` on the phone's door",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "word",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a plugin shader module",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/plugin/{id}/ui/{file}": {
      "get": {
        "description": "200 that package's `ui/index.js`, `ui/index.css`, an icon its `[ui]` declares or the `ui/<name>.js` renderer of one of its `[[ui.layers]]`, `<file>` matched against those by name and never joined from the request, under the frame's policy (a layer renderer's under `GET /plugin/<id>/layer/<name>`'s) and `no-store`, `ui/index.css` with `Access-Control-Allow-Origin: *`; 404 for any other file (`ui/plugin.tsx`, `ui/../taji-plugin.toml`, a `ui/<name>.js` no layer declares) and while its plugin is not seated and enabled. No token; `key` on the phone's door",
        "parameters": [
          {
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a plugin UI file",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/agent": {
      "get": {
        "description": "200 `AgentSetup`. The platform list is read at boot, after each verb below and on `detect`, and held between: a read never spawns. A chat a flow's hand-off holds is that flow's `hand`, so this read and `GET /read/flows` agree. Framed `changed agent` when a chat's turn starts or ends, a card or question arrives or leaves, the chat closes, or a tool call moves its `last`",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSetup"
                }
              }
            },
            "description": "The bridge, its platforms and the chats open on the running agent."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get agent setup",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/agent/adapters": {
      "get": {
        "description": "200 `AgentOffers`. Every `agent` route is answered on the connection thread",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentOffers"
                }
              }
            },
            "description": "Every agent the Agent panel offers."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List agent adapters",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/agent/chats/{desk}": {
      "get": {
        "description": "200 `ChatSessions` — the desk's chats the kernel keeps in `<state dir>/agent-panel.json`, each running agent's own sessions of the desk's cwd (ACP's `session/list`) merged in first, pinned rows first in their rank order, then newest first; `pinned`; a chat passed here from another desk is listed here alone: `title` the one `agent/rename` gave, else the agent's as last listed, `at` its last update as last listed, else when the kernel opened it, a new chat once first asked, and only then listed (RFC 3339); listed with no agent running, a chat the agent no longer lists kept until deleted; none for a Desk deleted this run, whatever its cwd lists; 400 `bad_desk` for an id that is no plain name",
        "parameters": [
          {
            "in": "path",
            "name": "desk",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatSessions"
                }
              }
            },
            "description": "A desk's chats as the kernel keeps them, each running agent's own listing merged in, pinned\nones first in their rank order, then newest first."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List agent chats",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/agent/clients/{desk}": {
      "get": {
        "description": "200 `ClientSessions` — the outside MCP client sessions that acted on the desk, off the `acted` rows of `GET /read/events` that carry `client` and this `desk` (in memory, the last 500 events; none after a relaunch): sessions newest `last_at_utc` first, the client's fields from its newest act, `acts` newest first, each `seq` its event's, `undo` the event's while it is still the desk's newest `desk/<desk>/undo` frame, else `null`; any id answers, one with no acts `[]`. Framed `changed agent/clients/<desk>` on each such act",
        "parameters": [
          {
            "in": "path",
            "name": "desk",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientSessions"
                }
              }
            },
            "description": "The outside MCP client sessions that acted on a desk, newest `last_at_utc` first."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List agent clients",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/agent/search": {
      "get": {
        "description": "200 `ChatMatches` — the kept chats whose prompts or replies (kept as `<state dir>/agent-text/<session>.txt`, written at each turn end and each load's replay, deleted with the chat or its desk) contain `q`, ASCII case-insensitive, newest first, at most 50, each `snippet` around the first match; `q` under 2 characters `[]`; 400 `q` absent. Not the `agent` token's (403 `scope`): a transcript may hold a key the user pasted",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatMatches"
                }
              }
            },
            "description": "The kept chats whose transcripts hold `q`, newest first, at most 50."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Search agent chats",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/approvals": {
      "get": {
        "description": "200 every approval pending and each that went final in the last hour, in the order they parked, or the one `<id>` names (404 `no_approval`): `ApprovalList`, each an `Approval`: `route` the held verb's target and `body` what it is sent with (a `link` verb's only its `venue`, `provider`, `env`, `live`, `hours` and `approved`, `link/prefer`'s its `kind`, `class` and `value`, `link/account/alias`'s its `id` and `alias`: every other field, a key, secret, password, token or URL among them, is sent on approval but never read back), `account` the handle it acts on (`null` for none), `summary` the order in the ticket's words then ` on <account>` for an `orders/<class>/place`, for an `account/market` (the market order it sends, at its default time in force) and for a `draft/place` (the draft its `rev` names; `RKLB · BUY · LIMIT 12.50 · 100 shares · DAY on <account>`, a spread its header then `<n> combo[s]` and the time in force), a link verb's act and its venue or provider and env (`link <venue> paper`, `unlink <provider>`), an `agent` verb's and its platforms (`connect claude-code`), `<act> on <account>` for any other verb, a withdrawal's then `: withdraws <exit>; …; leaves <n> <symbol> shares bare` (each exit `<SIDE> <qty> <symbol>[ at <price>][ <leg> <price>…] (<intent_id>)`, `<SIDE> <qty> <symbol> (the venue's <order_id>)` or a plan's `<label> <leg> <price> on <symbol>`; the shares those exits cover, up to the position, or `no shares`), an act on orders Taji did not place then `: <SIDE> <qty> <symbol> at <price>, placed outside Taji` (a reprice's `from <price> to <price>[ (<leg>)]`) or `: withdraws <n> orders placed outside Taji (<intent_id>, …)`, a withdrawal beside it then following `; `, `preview` an `orders/<class>/place`'s `preview` answer (`null` for any other verb), `state` `pending`, `approved` (being sent), `done`, `declined` or `expired` (pending at `expires_at`, the Unix second an hour after it parked), `by` the scope that approved or declined it, `result` the sent verb's answer, an `ApprovalResult`, `agent` the chat whose bridge parked it (`x-taji-chat`) as `{session, agent, name}`, else `null`; that chat's hand reads `asking`, `why` the `summary`, while it is `pending`; `why` the gate's sentence on why the act is the user's: `Approvals are on for this live account.` or `… for this account.` (the account's approvals, on by default for a live row), `An order that names no account waits for your approval.`, `Letting the router pick a live account is yours to approve.` (`link/accounts/<handle>/approve`), and for the agent's acts held always `Acting on an order Taji did not place is yours to approve.` (a `trading` verb), `The vault's settings are yours to change.` (`link/vault/*`), `Links and their settings are yours to approve.` (any other `link` verb), `Connecting an agent is yours to approve.` (`agent/*`), `This setting is yours to change.` (`ui/settings/set`), else `This act is yours to approve.`. In memory: a relaunch holds none and sends none. Each change frames `changed approvals` and `changed agent`",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovalList"
                }
              }
            },
            "description": "Every approval pending and each that went final in the last hour, in the order they parked."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List approvals",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/approvals/{id}": {
      "get": {
        "description": "200 every approval pending and each that went final in the last hour, in the order they parked, or the one `<id>` names (404 `no_approval`): `ApprovalList`, each an `Approval`: `route` the held verb's target and `body` what it is sent with (a `link` verb's only its `venue`, `provider`, `env`, `live`, `hours` and `approved`, `link/prefer`'s its `kind`, `class` and `value`, `link/account/alias`'s its `id` and `alias`: every other field, a key, secret, password, token or URL among them, is sent on approval but never read back), `account` the handle it acts on (`null` for none), `summary` the order in the ticket's words then ` on <account>` for an `orders/<class>/place`, for an `account/market` (the market order it sends, at its default time in force) and for a `draft/place` (the draft its `rev` names; `RKLB · BUY · LIMIT 12.50 · 100 shares · DAY on <account>`, a spread its header then `<n> combo[s]` and the time in force), a link verb's act and its venue or provider and env (`link <venue> paper`, `unlink <provider>`), an `agent` verb's and its platforms (`connect claude-code`), `<act> on <account>` for any other verb, a withdrawal's then `: withdraws <exit>; …; leaves <n> <symbol> shares bare` (each exit `<SIDE> <qty> <symbol>[ at <price>][ <leg> <price>…] (<intent_id>)`, `<SIDE> <qty> <symbol> (the venue's <order_id>)` or a plan's `<label> <leg> <price> on <symbol>`; the shares those exits cover, up to the position, or `no shares`), an act on orders Taji did not place then `: <SIDE> <qty> <symbol> at <price>, placed outside Taji` (a reprice's `from <price> to <price>[ (<leg>)]`) or `: withdraws <n> orders placed outside Taji (<intent_id>, …)`, a withdrawal beside it then following `; `, `preview` an `orders/<class>/place`'s `preview` answer (`null` for any other verb), `state` `pending`, `approved` (being sent), `done`, `declined` or `expired` (pending at `expires_at`, the Unix second an hour after it parked), `by` the scope that approved or declined it, `result` the sent verb's answer, an `ApprovalResult`, `agent` the chat whose bridge parked it (`x-taji-chat`) as `{session, agent, name}`, else `null`; that chat's hand reads `asking`, `why` the `summary`, while it is `pending`; `why` the gate's sentence on why the act is the user's: `Approvals are on for this live account.` or `… for this account.` (the account's approvals, on by default for a live row), `An order that names no account waits for your approval.`, `Letting the router pick a live account is yours to approve.` (`link/accounts/<handle>/approve`), and for the agent's acts held always `Acting on an order Taji did not place is yours to approve.` (a `trading` verb), `The vault's settings are yours to change.` (`link/vault/*`), `Links and their settings are yours to approve.` (any other `link` verb), `Connecting an agent is yours to approve.` (`agent/*`), `This setting is yours to change.` (`ui/settings/set`), else `This act is yours to approve.`. In memory: a relaunch holds none and sends none. Each change frames `changed approvals` and `changed agent`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Approval"
                }
              }
            },
            "description": "An act the agent's token asked for that a row's gate holds for a person."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an approval",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/busy": {
      "get": {
        "description": "200 `Running`, `{running, held}` — what Quit would stop: `running` one name per running thing as its plugin names it, `held` one line per exit, held order and walking chase Taji works itself (`TradingRoot::holding`), each on its account's alias; each `[]` with none. Framed `changed busy` when a path its plugin's `moved_by` takes frames (`Native::busy`), a Desk is deleted, or `trading/exits` or an account's `orders` frames",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Running"
                }
              }
            },
            "description": "What Quit would stop; each `[]` with none."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Check what quitting would stop",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/calendar/{class}": {
      "get": {
        "description": "200 `Sessions` — every session day of the class's calendar, or with `root` that futures root's or an option's root's, in the range, both ends inclusive: `calendar` `us-equities` (`equity`, `option`, `index`: an index's `close_utc` ten minutes past the others' on a full day, SPX to 16:10 ET, and theirs on a half day; an option's `root` its OCC root, its `close_utc` 16:15 ET, 13:15 on a half day, on an index or ETF root (`SPY`, `SPXW`) but on the `expiry` day of an expiring PM index series, else, as with no `root`, the equities'), `cme-equity-index-futures` (`future`, `future_option`, and every root but these: 09:30 to 16:15 ET), `cme-globex` (`CL`, `MCL`, `NG`, `GC`, `MGC`, `SI`, `HG`, `ZB`, `ZN`, `ZF`, `ZT`, `6E`, `6J`, `6B`: the same hours, its own name for its own holidays), `cme-grains` (`ZC`, `ZS`, `ZW`: 09:30 to 14:20 ET), `cme-livestock` (`LE`: 09:30 to 14:05 ET, its one session, shut on every NYSE holiday, to 13:05 ET the day after Thanksgiving and 13:15 ET on Christmas Eve) or `cme-crypto` (`BTC`, `MBT`: 09:30 to 16:15 ET, its Globex day from 17:02 ET the weekday before to 17:00 ET), `ext_open_utc`/`ext_close_utc` the extended session, 04:00 ET to four hours past the close (on CME the Globex day, from its open the evening before, the Friday before on `cme-crypto`, to its Globex close, or its regular close on a short day; `null` for an index, an option and on `cme-livestock`, which have one session). A day it does not list is closed. 400 an unknown or continuous class (`crypto`, `forex`), a missing or malformed `from`/`to` or `expiry`, `to` before `from` or a range over 400 days",
        "parameters": [
          {
            "in": "path",
            "name": "class",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "expiry",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "root",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sessions"
                }
              }
            },
            "description": "The session days a class, a futures root or an option series trades on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get market sessions",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/catalog": {
      "get": {
        "description": "200 `Indicators`, every indicator its plugins register, compiled in, `TAJI_PLUGINS` or installed (framed `changed catalog` when one is seated or unseated, and on every `link` frame and data switch), the manifest `add_indicator` takes a `definition` from, one `Indicator` per row; `schema` also carries the settings `source` (a def that reads one, `format: \"source\"`), `calc`, `calc_closes`, `offset`, `origin` and `style`, the binding's look as a JSON Schema whose `plots` keys are the outputs. A plugin's script's row has `definition` its bare `name`, so a chart on it follows the plugin, never a Desk custom of its name, `category` its `[[kernel.indicators]]` row's, else the plugin's id, and `description` its row's, else empty. After them, each enabled plugin's chart layer (`[[ui.layers]]`): `name` and `definition` its id `<plugin>.<word>`, `title` and `short` its label, `description` its product's `model`'s first sentence, `category` `Plugins`, `pane` `overlay`, `defaults` its product's words at their defaults, `schema` one property per word (`enum` its values, `minimum` and `maximum` its bounds) then `style` of its style rows, `plots` `[]`. A layer's row, and a plugin's script's that declares `needs`, carries `readiness` as `GET /read/plugins` does. `GET /read/catalog/<definition>` is one row, `name` or `name@<version>`, whichever `add_indicator` takes. `GET /` does not inline it — the manifest is ~400 KB",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Indicators"
                }
              }
            },
            "description": "Every indicator a catalog lists, the registered ones then a Desk's customs."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List indicators",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/channels": {
      "get": {
        "description": "200 `ChannelList`, one `Channel` per messaging channel this build holds (`taji_plugin::channel`). Linked channels are `<state dir>/channels.json` `{\"<id>\": {\"owner\"}}`, mode 0600. Framed `changed channels` whenever a row would differ (a link, an unlink, a bound code, a secret held, `error` set or cleared, a `qr` change, a send). A row's `pair` and `owner` are served to the local and sheet tokens alone, `null` to the agent's and the page's: whoever sends `pair` first owns the channel, and `owner` is the bound owner's handle (`null` when unbound). Each alert's desk note (author `watch:<id>`, but a `muted` fire's) goes to every linked channel",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelList"
                }
              }
            },
            "description": "What `GET /read/channels` answers: one [`Channel`] per messaging channel this build holds."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List channels",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data": {
      "get": {
        "description": "200 `Data` — what `get/bars` can answer from, the words it takes, the reads under the node and the open upstreams (`data/hub`). `/describe/data` gives the line",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Data"
                }
              }
            },
            "description": "The `data` node itself: what `get/bars` can answer from, the words it takes,\nthe reads under it, and the hub's own open upstreams. Above every Session,\nlike `link` — a key belongs to the device.\n\n`vendor` is the LINKED venue's own word, so a client reads which venue would\nanswer a bars fetch rather than a venue this node named by habit. `cache` is\nthe dataset cache's directory, and the ONE local store these reads have.\n`hub` is one row per LIVE upstream, which is state rather than\nconfiguration: it is empty until something subscribes."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the data overview",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/cache": {
      "get": {
        "description": "200 `Cache` — what this device keeps, folded each call off the store's bar catalog: one row per handle. Nothing fills toward a target yet: `fetch` grows a range.",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cache"
                }
              }
            },
            "description": "What this device keeps: one handle per class and interval of bars."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the data cache",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/coverage": {
      "get": {
        "description": "200 `Coverage` — where each source serves and where each venue trades, UNLINKED ones too (so it can also say which link is missing): one row per provider × instrument class and one per venue × class, rendered as `docs/reference/coverage/README.md` and `docs/reference/coverage/<provider>.md`. A measured cell no doc measures is `null`, never a plausible value",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Coverage"
                }
              }
            },
            "description": "Where each source serves and where each venue trades, linked or not."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get data coverage",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/coverage/{class}": {
      "get": {
        "description": "200 `ClassCoverage` — how far back each history read reaches for the class, one row per (product, granularity) any provider serves: bars at `D` and `1m` off the source rows' `depth`, every other product off the sources' `READS`. `sources` are the linked providers, `extend` the unlinked; nothing is chosen. An unknown class is 404",
        "parameters": [
          {
            "in": "path",
            "name": "class",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassCoverage"
                }
              }
            },
            "description": "How far back each history read reaches for one class, one row per product and granularity some provider serves."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get coverage of an asset class",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/datasets": {
      "get": {
        "description": "200 `Datasets` — every dataset this device holds, bought and registered alike, newest first, off the store's catalog, each by its `origin` (`provider` or `custom`)",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Datasets"
                }
              }
            },
            "description": "The datasets this device holds, bought and registered alike, newest first."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List datasets",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/freshness": {
      "get": {
        "description": "200 `Freshness` — what each linked source's live path CAN give, per class and product off its `READS` `Live` side and `plugins/<provider>/src/offer.rs` `FRESH`: the key-and-secret venue's `lag_s` is 900 on equities and options unless its `link.venues.<id>.tier` is `atp` (`why` saying so), a metered source's 0, present on a `plan` tier alone, the agentic venue's 1 (a twice-a-second poll), the refresh-token venue's 0. Nothing linked is `rows: []`; nothing is chosen (`prefer_set {kind: data}` is). `data/liveness` is the feed now; this is the ceiling. `/describe` is one clause per class",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Freshness"
                }
              }
            },
            "description": "What each linked source's live path can give, per class and product; nothing linked is `rows: []`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get data freshness",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/freshness/{class}": {
      "get": {
        "description": "200 `Freshness` — what each linked source's live path CAN give, per class and product off its `READS` `Live` side and `plugins/<provider>/src/offer.rs` `FRESH`: the key-and-secret venue's `lag_s` is 900 on equities and options unless its `link.venues.<id>.tier` is `atp` (`why` saying so), a metered source's 0, present on a `plan` tier alone, the agentic venue's 1 (a twice-a-second poll), the refresh-token venue's 0. Nothing linked is `rows: []`; nothing is chosen (`prefer_set {kind: data}` is). `data/liveness` is the feed now; this is the ceiling. `/describe` is one clause per class",
        "parameters": [
          {
            "in": "path",
            "name": "class",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Freshness"
                }
              }
            },
            "description": "What each linked source's live path can give, per class and product; nothing linked is `rows: []`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get freshness of an asset class",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/hub": {
      "get": {
        "description": "200 `Upstreams` — the open vendor upstreams, one row each. ONE upstream per (provider, symbol, timeframe) however many readers want it. Empty until something subscribes. `/describe/data/hub` gives the line",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upstreams"
                }
              }
            },
            "description": "The open vendor upstreams, one row each, sorted by provider, symbol and timeframe; empty until something subscribes."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List data upstreams",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/liveness": {
      "get": {
        "description": "200 `Liveness` — whether the feed is up, folded off those rows. Staleness is the reader's subtraction, not a word chosen here. `/describe/data/liveness` gives the line",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Liveness"
                }
              }
            },
            "description": "Whether the feed is up, folded off `data/hub`: the worst state any upstream\nis in, and the newest instant any of them delivered. Staleness is the\nreader's subtraction, not a classification made here."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get data liveness",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/data/panels": {
      "get": {
        "description": "200 `Panels` — what a provider's page in Connections lists, off the routing `docs/reference/coverage/panels.md` states. `/describe` is how many panels each provider feeds",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panels"
                }
              }
            },
            "description": "What a provider's page in Connections lists."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List provider panels",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}": {
      "get": {
        "description": "200 `DeskSummary`, the capped summary, plus whatever keys this build's plugins add to a Desk",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeskSummary"
                }
              }
            },
            "description": "A Desk at a glance, capped: what `desk/<id>` answers."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a desk",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/catalog": {
      "get": {
        "description": "200 `Indicators`, the catalog of one Desk the list holds: every built-in row as `read/catalog` serves it, then each of the Desk's custom indicators at its latest version, an `Indicator` (`definition` `<name>@<N>`, `description` empty, `category` `My scripts`) off its manifest (`title` and `short` its `name`, `schema` one property per input with `format: \"source\"` on a Source input, then `calc`, `calc_closes`, `offset`, `origin` and `style` whose `plots` keys are its outputs, `plots` `[]` for a script with none, each plot's `color` `#2962ff` (`color.blue`) where the script names none, a `char` plot's `char` and `at`, a `marker`'s `shape` and `at`, `computed: true` instead of `colors` for a computed colour); a script that failed to compile is not held, so not listed. `…/catalog/<definition>` is one row, resolved as `add_indicator` does: a built-in by `name` or `name@<version>`, else a custom by `name` (its latest) or `name@<N>`, which also carries `source` (its TypeScript) and `test` (its test's source, `null` if none), an `Indicator`. 404 for a Desk the list does not hold, and for a definition neither holds. `GET /describe/desk/<id>/catalog[/<definition>]` is one line, `<N> indicators, <M> custom` for the list, `<definition> · <title> · <pane> · <n> plots` for a row, 404 as the read",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Indicators"
                }
              }
            },
            "description": "Every indicator a catalog lists, the registered ones then a Desk's customs."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List a desk's indicator catalog",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/catalog/{definition}": {
      "get": {
        "description": "200 `Indicators`, the catalog of one Desk the list holds: every built-in row as `read/catalog` serves it, then each of the Desk's custom indicators at its latest version, an `Indicator` (`definition` `<name>@<N>`, `description` empty, `category` `My scripts`) off its manifest (`title` and `short` its `name`, `schema` one property per input with `format: \"source\"` on a Source input, then `calc`, `calc_closes`, `offset`, `origin` and `style` whose `plots` keys are its outputs, `plots` `[]` for a script with none, each plot's `color` `#2962ff` (`color.blue`) where the script names none, a `char` plot's `char` and `at`, a `marker`'s `shape` and `at`, `computed: true` instead of `colors` for a computed colour); a script that failed to compile is not held, so not listed. `…/catalog/<definition>` is one row, resolved as `add_indicator` does: a built-in by `name` or `name@<version>`, else a custom by `name` (its latest) or `name@<N>`, which also carries `source` (its TypeScript) and `test` (its test's source, `null` if none), an `Indicator`. 404 for a Desk the list does not hold, and for a definition neither holds. `GET /describe/desk/<id>/catalog[/<definition>]` is one line, `<N> indicators, <M> custom` for the list, `<definition> · <title> · <pane> · <n> plots` for a row, 404 as the read",
        "parameters": [
          {
            "in": "path",
            "name": "definition",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Indicator"
                }
              }
            },
            "description": "One indicator the catalog lists: what `add_indicator` takes a `definition` from."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an indicator definition",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/drawings/values": {
      "get": {
        "description": "200 `ComputedDrawings` for the four drawing tools the kernel computes off the pane's loaded bars, a drawing's span from the last bar at or before the earliest anchor (the first bar if none) to the last at or before the latest; a one-point tool runs to the last bar. `regression_trend` takes 2 points (its bands ±2 × √(Σresidual²/(n−1)) off the line), `anchored_vwap` 1 (Σ(hlc3·volume)/Σvolume), `fixed_range_volume_profile` 2 and `anchored_volume_profile` 1, each `profile` as `profile` below. No query: every such drawing on the pane. `id=` answers that drawing only, `anchors=` (UTC seconds, comma-separated) overriding its stored times (a drag frame); `tool=` with `anchors=` answers an unsaved drawing (`id` `null`). 404 for a malformed `anchors`, an `id` that is not a computed drawing, a `tool` not among the four, `anchors` alone, `id` with `tool`, or an anchor count that is not the tool's",
        "parameters": [
          {
            "in": "query",
            "name": "anchors",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tool",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComputedDrawings"
                }
              }
            },
            "description": "The drawings the kernel computes off a pane's bars."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get computed drawing values",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/indicators": {
      "get": {
        "description": "200 `Bindings`, never their values; one indicator's own node is `BoundIndicator`, its row and its `provenance`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bindings"
                }
              }
            },
            "description": "A chart pane's bindings in bind order."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List chart indicators",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/indicators/{indicator}": {
      "get": {
        "description": "200 `Bindings`, never their values; one indicator's own node is `BoundIndicator`, its row and its `provenance`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "indicator",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoundIndicator"
                }
              }
            },
            "description": "One binding read on its own node: the row and what it was computed from."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a chart indicator",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/profile": {
      "get": {
        "description": "200 `RangeProfile` over the pane's bars in the range (`from`/`to` UTC seconds, each optional and inclusive). With the symbol's tick (the ladder's increment at the pane's last close: an equity's 0.01 from $1, an option's 0.01 under $3 then 0.05; none for a symbol with no ticks), `row_height` is `max(1, ceil((high − low)/24/tick))` ticks and the rows are as many as cover the range, at most 24 (the Number of rows), else 24 equal rows; a bar's volume spreads over the rows its high–low covers in proportion to overlap (a flat bar into its row), `up` when close ≥ open else `down`; `poc` the busiest row (the lowest on a tie), `poc_price` its middle, `value_area` the rows from it that take the larger neighbour (on equal volume the one nearer the POC, then above) while they stay within 70% of the volume, the first row that would exceed it ending the area, `val`/`vah` their edges",
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RangeProfile"
                }
              }
            },
            "description": "A pane's volume profile over a range of its bars."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a chart range profile",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/view": {
      "get": {
        "description": "200 `ChartView`: `visible_range` is set by `set_visible_range`, a range preset, Go to and the window's pan; `indexed` scales the first visible bar's close to 100; `box_size` and `box_method` are computed from the pane's loaded bars: the `box` pick (`traditional`), else the Percentage LTP of the last close (`settings.box_percent`, not on `range`; `percent`), else Wilder's ATR(14) of the pane's own bars (`atr`), the last two rounded to a multiple of half their decade then the tick (the ladder's increment at the pane's last close; a tick multiple, at least one; two significant figures with no tick), on renko, kagi, point_figure and range alone; `panes` `[]` draws the price over each subplot indicator's own pane, `log` an indicator pane's own log scale; `ratio` is in the axis's own units, ln price on `log`; `settings` is the chart Settings dialog's, every field at its value (`engine/crates/taji-pane-layout/src/settings.rs`: the candles' body and wick colours and visibility, each other style's colours, Baseline's level, Line break's lines and point & figure's reversal, the legend's rows, the axis labels and lines, the background, grid, separators, crosshair, scale text, navigation buttons, orders, executions and alert lines); `link` (🔶 🍀 💧 ❤ 💩): a `set_symbol` or `set_timeframe` on a pane in a group moves every other chart pane in it to its symbol and interval both, framing `changed` per pane, and rebinds the group's panes on the Desk's other layouts, which a `layouts/pick` brings back so, sync on or off; the pane's own, kept across relaunches; `adjust_dividends` and `session` are `set_view`'s (`session` a `get/bars` word: the pick, else the class's own, `extended`); `pin` is `set_provider`'s, the pane's `/ws/market` stream's `provider`; `window`, on an older day's frozen window, which reads the stored `split-spinoff` bars alone, is the span whose `/ws/market` `get` (`adjustment=split-spinoff`, `store_only`) is the pane's rows, and no stream; `instrument` (`InstrumentSpec`): an option's `underlying` is its underlying's item (`SPXW` `index:$SPX`), `price_format` `\"32nds\"` for ZB, ZN, ZF, ZT; `trades_as` the `taji_brokerage::Instrument` an order on the pane names, posted verbatim as an order's `instrument` (`{\"Future\": {\"root\": \"NQ\", \"year\": 2026, \"month\": 12}}`), `null` for an index, a forex pair or a spread, which take no order, and beside `trades_as_why` for a future option, ordered from its chain: a dated item's its own, a continuous roll's what `get/instrument` of it states under the provider drawing the pane's bars, else the earliest unexpired contract `contracts=<root>` lists (`taji_trading::hub::trades_as`), read again at its next session open or once that provider changes, absent while the kernel reads it, `null` beside `trades_as_why`, the refusal's words, where it trades as none (a later roll, `ES2!`, `ES.c.1`: only the front trades; a root listing no contract); `charted`, that contract, where no provider serves the roll's bars and the pane draws the contract's own series, else absent; `facts` `Facts::table`'s for the symbol (`ticks` a ladder `[{from, increment}]`: an equity's 0.0001 under $1, an option's 0.01 under $3 then 0.05, a future's its CME root's; `multiplier` dollars per 1.0 of price per unit; `qty_step` and `min_qty` `\"1\"`; a fact Taji does not know absent, a crypto pair's, an index's or a future option's tick among them: derive it from the bars' decimals; a spread's its first leg's). A spread, a symbol spelled as its 2-4 option legs in the `spread:` grammar (`buy:1:<OCC>,sell:1:<OCC>`), adds `legs`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChartView"
                }
              }
            },
            "description": "A chart pane's view: what it draws and how, as the verbs and the window's picks left it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the chart view",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/{pane}/drawings/values": {
      "get": {
        "description": "200 `ComputedDrawings` for the four drawing tools the kernel computes off the pane's loaded bars, a drawing's span from the last bar at or before the earliest anchor (the first bar if none) to the last at or before the latest; a one-point tool runs to the last bar. `regression_trend` takes 2 points (its bands ±2 × √(Σresidual²/(n−1)) off the line), `anchored_vwap` 1 (Σ(hlc3·volume)/Σvolume), `fixed_range_volume_profile` 2 and `anchored_volume_profile` 1, each `profile` as `profile` below. No query: every such drawing on the pane. `id=` answers that drawing only, `anchors=` (UTC seconds, comma-separated) overriding its stored times (a drag frame); `tool=` with `anchors=` answers an unsaved drawing (`id` `null`). 404 for a malformed `anchors`, an `id` that is not a computed drawing, a `tool` not among the four, `anchors` alone, `id` with `tool`, or an anchor count that is not the tool's",
        "parameters": [
          {
            "in": "query",
            "name": "anchors",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tool",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComputedDrawings"
                }
              }
            },
            "description": "The drawings the kernel computes off a pane's bars."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get computed drawing values for a pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/{pane}/indicators": {
      "get": {
        "description": "200 `Bindings`, never their values; one indicator's own node is `BoundIndicator`, its row and its `provenance`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bindings"
                }
              }
            },
            "description": "A chart pane's bindings in bind order."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List indicators on a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/{pane}/indicators/{indicator}": {
      "get": {
        "description": "200 `Bindings`, never their values; one indicator's own node is `BoundIndicator`, its row and its `provenance`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "indicator",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoundIndicator"
                }
              }
            },
            "description": "One binding read on its own node: the row and what it was computed from."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an indicator on a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/{pane}/profile": {
      "get": {
        "description": "200 `RangeProfile` over the pane's bars in the range (`from`/`to` UTC seconds, each optional and inclusive). With the symbol's tick (the ladder's increment at the pane's last close: an equity's 0.01 from $1, an option's 0.01 under $3 then 0.05; none for a symbol with no ticks), `row_height` is `max(1, ceil((high − low)/24/tick))` ticks and the rows are as many as cover the range, at most 24 (the Number of rows), else 24 equal rows; a bar's volume spreads over the rows its high–low covers in proportion to overlap (a flat bar into its row), `up` when close ≥ open else `down`; `poc` the busiest row (the lowest on a tie), `poc_price` its middle, `value_area` the rows from it that take the larger neighbour (on equal volume the one nearer the POC, then above) while they stay within 70% of the volume, the first row that would exceed it ending the area, `val`/`vah` their edges",
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RangeProfile"
                }
              }
            },
            "description": "A pane's volume profile over a range of its bars."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a range profile for a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/chart/{pane}/view": {
      "get": {
        "description": "200 `ChartView`: `visible_range` is set by `set_visible_range`, a range preset, Go to and the window's pan; `indexed` scales the first visible bar's close to 100; `box_size` and `box_method` are computed from the pane's loaded bars: the `box` pick (`traditional`), else the Percentage LTP of the last close (`settings.box_percent`, not on `range`; `percent`), else Wilder's ATR(14) of the pane's own bars (`atr`), the last two rounded to a multiple of half their decade then the tick (the ladder's increment at the pane's last close; a tick multiple, at least one; two significant figures with no tick), on renko, kagi, point_figure and range alone; `panes` `[]` draws the price over each subplot indicator's own pane, `log` an indicator pane's own log scale; `ratio` is in the axis's own units, ln price on `log`; `settings` is the chart Settings dialog's, every field at its value (`engine/crates/taji-pane-layout/src/settings.rs`: the candles' body and wick colours and visibility, each other style's colours, Baseline's level, Line break's lines and point & figure's reversal, the legend's rows, the axis labels and lines, the background, grid, separators, crosshair, scale text, navigation buttons, orders, executions and alert lines); `link` (🔶 🍀 💧 ❤ 💩): a `set_symbol` or `set_timeframe` on a pane in a group moves every other chart pane in it to its symbol and interval both, framing `changed` per pane, and rebinds the group's panes on the Desk's other layouts, which a `layouts/pick` brings back so, sync on or off; the pane's own, kept across relaunches; `adjust_dividends` and `session` are `set_view`'s (`session` a `get/bars` word: the pick, else the class's own, `extended`); `pin` is `set_provider`'s, the pane's `/ws/market` stream's `provider`; `window`, on an older day's frozen window, which reads the stored `split-spinoff` bars alone, is the span whose `/ws/market` `get` (`adjustment=split-spinoff`, `store_only`) is the pane's rows, and no stream; `instrument` (`InstrumentSpec`): an option's `underlying` is its underlying's item (`SPXW` `index:$SPX`), `price_format` `\"32nds\"` for ZB, ZN, ZF, ZT; `trades_as` the `taji_brokerage::Instrument` an order on the pane names, posted verbatim as an order's `instrument` (`{\"Future\": {\"root\": \"NQ\", \"year\": 2026, \"month\": 12}}`), `null` for an index, a forex pair or a spread, which take no order, and beside `trades_as_why` for a future option, ordered from its chain: a dated item's its own, a continuous roll's what `get/instrument` of it states under the provider drawing the pane's bars, else the earliest unexpired contract `contracts=<root>` lists (`taji_trading::hub::trades_as`), read again at its next session open or once that provider changes, absent while the kernel reads it, `null` beside `trades_as_why`, the refusal's words, where it trades as none (a later roll, `ES2!`, `ES.c.1`: only the front trades; a root listing no contract); `charted`, that contract, where no provider serves the roll's bars and the pane draws the contract's own series, else absent; `facts` `Facts::table`'s for the symbol (`ticks` a ladder `[{from, increment}]`: an equity's 0.0001 under $1, an option's 0.01 under $3 then 0.05, a future's its CME root's; `multiplier` dollars per 1.0 of price per unit; `qty_step` and `min_qty` `\"1\"`; a fact Taji does not know absent, a crypto pair's, an index's or a future option's tick among them: derive it from the bars' decimals; a spread's its first leg's). A spread, a symbol spelled as its 2-4 option legs in the `spread:` grammar (`buy:1:<OCC>,sell:1:<OCC>`), adds `legs`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChartView"
                }
              }
            },
            "description": "A chart pane's view: what it draws and how, as the verbs and the window's picks left it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the view of a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/documents": {
      "get": {
        "description": "200 `Documents`, a `DocumentRow` by name for every file under the directory's `documents/` including ones added by hand; one is a `Document`, 415 `not_text` when its bytes are not UTF-8, 404 for no such file or no directory. `<name>` may be `%`-escaped",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Documents"
                }
              }
            },
            "description": "A Desk's documents by name, every file under its `documents/` including ones added by hand."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List desk documents",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/documents/{name}": {
      "get": {
        "description": "200 `Documents`, a `DocumentRow` by name for every file under the directory's `documents/` including ones added by hand; one is a `Document`, 415 `not_text` when its bytes are not UTF-8, 404 for no such file or no directory. `<name>` may be `%`-escaped",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "description": "One document of a Desk, read whole."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a desk document",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/drawings/{oid}": {
      "get": {
        "description": "200 `DrawingRead`, one annotation on the Desk, on any symbol, whichever layout is active, its anchors' `price` a decimal string (`chart/objects/<oid>` prints the number). 404 an id the Desk holds no annotation for",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "oid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DrawingRead"
                }
              }
            },
            "description": "One annotation on the Desk, on any symbol."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a drawing",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/instructions": {
      "get": {
        "description": "200 `Instructions`; 404 for a Desk with no directory",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Instructions"
                }
              }
            },
            "description": "A Desk's instructions, its `DESK.md`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get desk instructions",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/layout": {
      "get": {
        "description": "200 the Desk's own nodes — its `desk.json` with `capital_allocation` as a decimal string (the file keeps a number), the pane topology, and the notes left on it. `meta` is a `Meta`, `layout` an `Arrangement`: the whole window, its `panes` the store's own `PaneRecord` per pane plus `reads`, the `GET` routes it draws as its plugin's `[[ui.panes]]` names them (`[]` for a core pane or a kind no plugin declares)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Arrangement"
                }
              }
            },
            "description": "What a Desk's panes are arranged as: the record's own topology, and one\nobject per pane beside it, the window whole as data."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the active layout",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/layouts": {
      "get": {
        "description": "200 `Layouts`, the Desk's named layouts in strip order, exactly one `active`: its grid is `layout`. A row's `panes` are the ids of every pane it holds, its popup's included, in tree order. A Desk from before layouts reads one, `Layout 1`. `/<lid>` is that one `Layout`, 404 a layout the Desk has none of",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Layouts"
                }
              }
            },
            "description": "A Desk's layouts in strip order."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List layouts",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/layouts/{lid}": {
      "get": {
        "description": "200 `Layouts`, the Desk's named layouts in strip order, exactly one `active`: its grid is `layout`. A row's `panes` are the ids of every pane it holds, its popup's included, in tree order. A Desk from before layouts reads one, `Layout 1`. `/<lid>` is that one `Layout`, 404 a layout the Desk has none of",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Layout"
                }
              }
            },
            "description": "One layout of a Desk's strip."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a layout",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/meta": {
      "get": {
        "description": "200 the Desk's own nodes — its `desk.json` with `capital_allocation` as a decimal string (the file keeps a number), the pane topology, and the notes left on it. `meta` is a `Meta`, `layout` an `Arrangement`: the whole window, its `panes` the store's own `PaneRecord` per pane plus `reads`, the `GET` routes it draws as its plugin's `[[ui.panes]]` names them (`[]` for a core pane or a kind no plugin declares)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Meta"
                }
              }
            },
            "description": "A Desk's own record, its `desk.json`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get desk metadata",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/notes": {
      "get": {
        "description": "200 the Desk's own nodes — its `desk.json` with `capital_allocation` as a decimal string (the file keeps a number), the pane topology, and the notes left on it. `meta` is a `Meta`, `layout` an `Arrangement`: the whole window, its `panes` the store's own `PaneRecord` per pane plus `reads`, the `GET` routes it draws as its plugin's `[[ui.panes]]` names them (`[]` for a core pane or a kind no plugin declares)\n200 `Notes` in the range by that author, each word optional: `from`/`to` UTC seconds or RFC 3339, both ends inclusive, and `author` an exact match, so `seat:<name>` is one seat's telemetry and nothing else's. No query is the whole log, as before. 404 a bound that is not an instant",
        "parameters": [
          {
            "in": "query",
            "name": "author",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Notes"
                }
              }
            },
            "description": "What was written on a Desk, oldest first."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List desk notes",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/series": {
      "get": {
        "description": "200 `SeriesBindings`: one row per registered column drawn on a pane",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SeriesBindings"
                }
              }
            },
            "description": "A Desk's bound registered columns."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List chart series",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/symbol_notes": {
      "get": {
        "description": "200 `SymbolNotes`, the Desk's Symbol notes, newest edit first; `symbols` (a comma list) narrows them to those items' (`equity:SPY`), and `symbol` or a bare item (`SPY`) is 400 `bad_ask`, the item naming its kind. `/describe` gives `2 symbol notes`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SymbolNotes"
                }
              }
            },
            "description": "The Desk's Symbol notes, newest edit first."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List symbol notes",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/undo": {
      "get": {
        "description": "200 `Undoable`: whether the next `chart/undo` and `chart/redo` would act, by the same arbitration over the same last-interacted pane; both `false` off the active Desk. `changed desk/<id>/undo` follows a `changed` under `desk/<id>/chart` or on `desk/<id>/layout` (the focus) only when the pane or a step the next undo or redo would act on moved: a pan or zoom, which records no step, frames none",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Undoable"
                }
              }
            },
            "description": "Whether the next `chart/undo` and `chart/redo` would act."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Check undo and redo",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/watches": {
      "get": {
        "description": "200 `Watches`, the Desk's alerts, levels, moves, drawings and instants, each a `WatchRow` (the one `<watch>` names a `WatchRow`): the members' meanings are on its fields; a drawing's `waiting` and `refused` say why its `level` is `null` (`the forming bar is past the trendline's end`, `the drawing's first anchor is older than a drawn alert reads (32000 bars of 5m, 365 days at most)`, `no bars for 5m: …`, `drawing removed`), an indicator's `refused` the indicator store's refusal in its words (`no indicator rsi_ts@3`); `message` the alert's own else the default (`SPY Crossing 778.10`, `RSI (14) Crossing EMA (20) on SPY, 1D`, `SPY Entering Channel (Upper Bound: 780.00, Lower Bound: 770.00)`, `SPY, 1D Moving Up 1% in 1 bar`). A watch whose drawing is gone reads `refused: drawing removed` and never fires; back under its id (an undo) it is live again, and gone 5 minutes it is dropped, framing `changed desk/<id>/watches`. `/describe` gives `2 watches, 1 fired`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Watches"
                }
              }
            },
            "description": "A Desk's alerts, in the order they were added."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List watches",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/watches/{watch}": {
      "get": {
        "description": "200 `Watches`, the Desk's alerts, levels, moves, drawings and instants, each a `WatchRow` (the one `<watch>` names a `WatchRow`): the members' meanings are on its fields; a drawing's `waiting` and `refused` say why its `level` is `null` (`the forming bar is past the trendline's end`, `the drawing's first anchor is older than a drawn alert reads (32000 bars of 5m, 365 days at most)`, `no bars for 5m: …`, `drawing removed`), an indicator's `refused` the indicator store's refusal in its words (`no indicator rsi_ts@3`); `message` the alert's own else the default (`SPY Crossing 778.10`, `RSI (14) Crossing EMA (20) on SPY, 1D`, `SPY Entering Channel (Upper Bound: 780.00, Lower Bound: 770.00)`, `SPY, 1D Moving Up 1% in 1 bar`). A watch whose drawing is gone reads `refused: drawing removed` and never fires; back under its id (an undo) it is live again, and gone 5 minutes it is dropped, framing `changed desk/<id>/watches`. `/describe` gives `2 watches, 1 fired`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "watch",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WatchRow"
                }
              }
            },
            "description": "An alert a Desk holds, as the Alerts list reads it: what it fires on, its options, its state and what the last poll saw."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a watch",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/watchlist": {
      "get": {
        "description": "200 `Watchlist`, the active list's rows and how every list shows; each row a section or a symbol with its `instrument` and figures. `/describe` gives `3 symbols`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Watchlist"
                }
              }
            },
            "description": "A Desk's watchlist: the active list's rows, every list, and how rows show."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desk/{id}/{path}": {
      "get": {
        "description": "200 `Node` and `Line`; `<path>` the rest of the node's path, slashes included: the same nodes for ANY Desk the list holds, active or not: an `<id>` that is not the active one is answered off that Desk's own tree, built per request (`App::tree_of`), and a Desk the list does not hold is 404. Reading another Desk is not switching to it — `GET /` still carries the active one",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The rest of the tree path, slashes included.",
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            },
            "description": "What a read of any node answers: its body, whose type that node's own route declares."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Read a desk node",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "rest": true,
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/desks": {
      "get": {
        "description": "200 `Desks`, one `DeskRow` per Desk (times UTC seconds, `notes` the count)\n200 the rows that share a word with `q`, best five first: words are lowercase runs of `[a-z0-9]`, `score` is 3 per query word in the name plus 1 per query word in `DESK.md`, in the document names, in the desk notes and in each text a plugin searches on the Desk; a row scoring 0 is left out, ties go to the most recently active. Each `DeskRow` adds `score` and `first_line` (`DESK.md`'s first non-empty line, 200 chars at most). An empty `q` is the whole list",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Desks"
                }
              }
            },
            "description": "The Desks the list holds, in its own order, or those `desks?q=` ranks best first."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List desks",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/events": {
      "get": {
        "description": "200 `EventLog` — the run's last 500 trading, link, agent and plugin events in memory, oldest first: every row of each account's `trading/<acct>/outcomes` (`filled`, `exit_fired`, `partial`, `cancelled`, `rejected`, `refused`, `placed`, `modified`, `trading_halted`), `parked` when an approval parks at `pending`, `plugin` when a compiled-in plugin adds a row (`node` its node, `title` and `words` its own, `account` as it names it), `signed_in` when a pairing or a phone's passkey sign-in opens a Remote Control session, never a step-up (`title` the phone, paired with or signed in to, `words` its address, `session` its id), `relink` when a linked venue's `relink` is true (at boot, on `link` and every hour, once until `relink` reads false), and `acted` when a `POST` on the `agent` token whose target's first segment is `desk` or `desks` (`desk/<id>/import/*` excepted) answers 2xx: `title` the act in words (a chart tool's name with spaces, `watches/add` \"add alert\", `watchlist/add` \"add to watchlist\", `series/add` \"add comparison\", `notes/add` \"add note\", else the route's last two literal segments), `who` `agent`, `undo` `null` for an act whose answer's `seq` is not a `desk/<id>/undo` frame's (a pan's), `desk` the target's `desk/<id>` (`desks/new`'s answered `desk`, else `null`), `client` what the request's `x-taji-client` told (percent-encoded JSON `{session, name, version?, title?}` from an outside MCP client's bridge, at most 1024 bytes decoded; a label, never a grant) plus `mark`, the first `ADAPTERS` id its lowercased `name` holds, else `null`, `null` too when the request carries `x-taji-chat` (a panel chat's act), `call` the ACP `toolCallId` of the one open tool call of `agent`'s chat whose input is this route and body, `null` when there is none or more than one, and on an act with no `agent`; an `acted` row with both `desk` and `client` also frames `changed agent/clients/<desk>`; 400 `bad_ask` for another word or a bad `after`. Each batch appended frames `changed events`",
        "parameters": [
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventLog"
                }
              }
            },
            "description": "The run's last 500 trading, link, agent and plugin events, oldest first."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List recent events",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/flows": {
      "get": {
        "description": "200 `Flows` — every form `link/forms` serves as a guided flow, by its id, derived on each read; `?flow=<id>` answers that flow alone as `{<id>: {…}}` (404 `flow` when unknown, 400 `bad_ask` for any other query). Framed `changed flows` whenever `channels`, `remote`, `link` or `agent` changes, a field is carried or taken, a mark is written, or a hand-off is set, its `state` moves or it clears. After every form, the kernel's own `vault`, `agent` and `first` flows (`plugin` `null`, no `brief.fields`, `prompt` `null` but `first`'s): `vault`, one `yours` step `seal` (\"Seal your vault\") while `link.vault.state` is `unsealed`, else `unlock`, `done` once it is `unlocked`, `at` its step until then; `agent`, steps `connect` (\"Connect your agent app\") then `restart` (\"Start a new session\"), none `yours`, `done` once `GET /read/agent`'s `first_at` is set, `at` on `connect` while no `platforms` row is `current` (with `word` `move_first` and its sentence while this binary runs where it cannot stay, as `agent/connect` refuses it), else on `restart`; `first` (\"Link your first provider\"), no steps, `at` `null`, `done` once any form's flow but a channel's is `done`, `hand` as any flow's, and until `done` a `prompt` that asks the agent to choose a form with the user. An agent walks one so: read it with `flow`; start at `at.step`, else the first step not `done`; the sheet is open when the user's prompt came from it, else `ui_open {form}`. A step with `yours: true` is the user's own: `flow/open {flow, step}` when it has `open`, say the one click its `say` names, never do it. Any other step you may do yourself, in your own browser or shell, as its `say` reads. When a step you are doing needs the user's own hand (a password, a 2FA code, a captcha), say what you need in chat, then either end your turn, or `flow/need {flow, need: true}` and keep watching for them to finish, then `need: false`: either way the sheet says it is their turn. A secret you made in the flow (a key you generated, a token you reset) goes to `flow/secret {flow, field, value}` for a `brief.fields` name that is `secret`, before you mark the step that made it, never into chat; one your browser hides from you is the user's to type in the sheet: mark the step and say so; never carry a password, a code or a secret the user gave you: they type those in the sheet. Only the user's press of `brief.act` in the sheet seals the link; no agent posts it. After each `do` step you finish, `flow/mark {flow, step}`, so the sheet moves on with you; then `wait {path: \"flows\"}` until `at` moves, `done` is true or `at.word` is set, then read `at.say` back. Handed `first`, ask the user one question, which provider and, where it has both, paper or live (paper first, live only on their yes), then `flow/pass {flow: \"first\", to: <form>}` moves the hand-off onto that form's flow; `ui_open {form}` and walk it.",
        "parameters": [
          {
            "in": "query",
            "name": "flow",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Flows"
                }
              }
            },
            "description": "Every flow by its id: each served form's, then the kernel's own `vault`, `agent` and `first`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List link flows",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link": {
      "get": {
        "description": "200 `Link` — `vault` is `Vault`, `prefer` `Prefer`, `venues` `Venues`, `accounts` `Accounts`, `data` `Sources`, `linking` `LinkInFlight` and `last` `LastLink`, each also its own read below. An account row's `state` is `connecting` while a boot brings it up (an unlock, a link or a seat change starts one and answers before it lands, and every row it binds that the root it replaces did not reads `connecting` until then), and `failed` is probed alone 30 s, 1, 2 and 5 min after, then every 10 min, reading `connecting` while a probe runs, and only a probe that answers boots the root again; a row the venue rate limited waits out the venue's wait. `approved` and `approvals` are kept under the vault's key, so a venue row whose MAC the open vault does not verify, its file edited or the vault `locked`, reads `approvals` true and `approved` false (a paper row stays approved), while the sim row, which moves no money, and with the vault `unsealed` a paper row, read as written. A client asks this rather than reading the log. A `prefer` file written before the list reads its `data` as `[]`",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Link"
                }
              }
            },
            "description": "`GET /read/link`: what this device has linked."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get link status",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/accounts": {
      "get": {
        "description": "200 that half of `GET /read/link` alone, for a client that watches one rather than the whole node: `Vault`, `Venues`, `Accounts`, `Sources`, `LinkInFlight` and `LastLink`; a half with nothing in it (nothing linking, no link yet) is an object with every field `null`; `forms` is the row above, and any other word 404",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accounts"
                }
              }
            },
            "description": "The accounts this device has linked, in link order."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List linked accounts",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/data": {
      "get": {
        "description": "200 that half of `GET /read/link` alone, for a client that watches one rather than the whole node: `Vault`, `Venues`, `Accounts`, `Sources`, `LinkInFlight` and `LastLink`; a half with nothing in it (nothing linking, no link yet) is an object with every field `null`; `forms` is the row above, and any other word 404",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sources"
                }
              }
            },
            "description": "Each provider that links a record of its own, `null` with none held; any other linked provider is here only while its data is switched off."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List linked data sources",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/forms": {
      "get": {
        "description": "200 `Forms`, every link form the sheet draws: each enabled plugin manifest's `[[link]]` (`taji_plugin::LinkDecl`), their plugins in the order a device's link lists them (`Ties.listed`), unnamed ones after in declared order. A form's words, `fields` and `sources` are the declaration's; `post` is `null` where no seat links the form in this build",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forms"
                }
              }
            },
            "description": "`GET /read/link/forms`'s body."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List link forms",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/last": {
      "get": {
        "description": "200 that half of `GET /read/link` alone, for a client that watches one rather than the whole node: `Vault`, `Venues`, `Accounts`, `Sources`, `LinkInFlight` and `LastLink`; a half with nothing in it (nothing linking, no link yet) is an object with every field `null`; `forms` is the row above, and any other word 404",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LastLink"
                }
              }
            },
            "description": "The last link this run ended, every member `null` before one: what a client whose call dropped reads for its verdict."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the last link result",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/linking": {
      "get": {
        "description": "200 that half of `GET /read/link` alone, for a client that watches one rather than the whole node: `Vault`, `Venues`, `Accounts`, `Sources`, `LinkInFlight` and `LastLink`; a half with nothing in it (nothing linking, no link yet) is an object with every field `null`; `forms` is the row above, and any other word 404",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkInFlight"
                }
              }
            },
            "description": "The link in flight, every member `null` when idle."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the link in progress",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/rate_limits": {
      "get": {
        "description": "200 `RateLimits` — one row per login holding a rate scope this run, by provider then login (a keyless source's `limits: []`, a futures venue's subnet, the metered source's and the filings source's `process` scope, each while the hub links it). Scopes start empty at boot, and a key unlinked this run stays listed until a restart",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimits"
                }
              }
            },
            "description": "Every login's rate scopes."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List provider rate limits",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/vault": {
      "get": {
        "description": "200 that half of `GET /read/link` alone, for a client that watches one rather than the whole node: `Vault`, `Venues`, `Accounts`, `Sources`, `LinkInFlight` and `LastLink`; a half with nothing in it (nothing linking, no link yet) is an object with every field `null`; `forms` is the row above, and any other word 404",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vault"
                }
              }
            },
            "description": "The vault as the `link` node reads it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get vault status",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/link/venues": {
      "get": {
        "description": "200 that half of `GET /read/link` alone, for a client that watches one rather than the whole node: `Vault`, `Venues`, `Accounts`, `Sources`, `LinkInFlight` and `LastLink`; a half with nothing in it (nothing linking, no link yet) is an object with every field `null`; `forms` is the row above, and any other word 404",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Venues"
                }
              }
            },
            "description": "The venues this device has linked, by the venue's own word."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List venues",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/openapi": {
      "get": {
        "description": "200 the live OpenAPI 3.1 document of this kernel (`answers::document`): the core routes' rows, then each enabled plugin's; `schema/wire.json` is the same document for the kernel's composition. Built per request, so it follows install, enable, disable and uninstall",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {}
            },
            "description": "200 the live OpenAPI 3.1 document of this kernel (`answers::document`): the core routes' rows, then each enabled plugin's"
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the OpenAPI document",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/options/finder": {
      "get": {
        "description": "the Strategy finder over one chain read (`strikes` per expiry, default 30, `all`): each finder preset laid at every strike and width of every expiry in `period` (`this_week`, `this_month`, `next_30_days`, `next_45_days`, `next_90_days`, `next_month` (default), `next_quarter`, each from today in New York) or `expiry_from`/`expiry_to`, kept where every leg is quoted with an IV and inside `volume` `lo:hi`, `width` `lo:hi` strikes (default 1:5), `moneyness` (`otm,atm,itm`: the centre strike's, `atm` the strike nearest spot, else as the first leg's right reads it), `symmetric` (`1`: gaps between the strikes read the same both ways) and `spread_pct` `lo:hi` (the legs' mean (ask − bid) ÷ mid, percent); either end of a `lo:hi` may be empty. 200 `Finding`: at most 20,000 priced (`capped` past it), the `limit` best (default 60, at most 200) by `expected_payoff`, then reward/risk, expiry, type and formula; `range` `lo:hi` percent from spot, default `5:10`. 400 a bad word, `period or expiry_from/expiry_to, not both`; 409 `no_spot`",
        "parameters": [
          {
            "in": "query",
            "name": "expiry_from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "expiry_to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "moneyness",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "range",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "spread_pct",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "strikes",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "symmetric",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "volume",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "width",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Finding"
                }
              }
            },
            "description": "The Strategy finder over one chain read: the best candidates by expected\npayoff."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Find option strategies",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/options/payoff": {
      "get": {
        "description": "`symbols` one `spread:` item of 1 to 4 legs of one expiry, a lone contract one leg (`spread:buy:1:<OCC>`; another item, `option:` included, or `legs`, 400), priced as a `spread:` quote: 200 `PricedSpread`. `net` the signed per-share price the payoff is bought at (default the mid; a credit negative), `qty` combos (default 1), `what_if` `days:iv_shift_pct,…` (each leg `days` later at its IV plus `iv_shift_pct` points, floored at zero; default `5:0,0:10,0:-10`, Time +5d, IV +10%, IV −10%; `none` none), `greek` (`delta`\\|`gamma`\\|`theta`\\|`vega`\\|`rho`) adds that greek's curve at `payoff.current`'s points. The model is the chain's (`GET /get/chains`) at each leg's IV, at `spot`, probabilities lognormal at the legs' mean IV under its 4.34% drift; its members are empty and `null` with no spot, a leg's IV or a leg's model (VIX). 400 a word it does not take or a malformed one, 409 `no_source` where nothing quotes the legs, `no_multiplier`, 400 `bad_ask` for legs of two expiries; 409 `no_multiplier` where the legs state no multiplier",
        "parameters": [
          {
            "in": "query",
            "name": "greek",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "net",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "qty",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "what_if",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricedSpread"
                }
              }
            },
            "description": "A `spread:` item of 1 to 4 legs of one expiry, priced and valued at expiry\nand, off Taji's option model, before it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an option payoff",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/options/presets": {
      "get": {
        "description": "33 ready-made setups: 200 `Presets`. Bare, `PresetList`, each template's `legs` `[{right, side, ratio, offset}]` (`right` `null` the shares, `offset` in widths from the strike nearest spot). With `symbols` (one symbol; more is 400 `bad_ask`) one chain read (`expiry`, else the listed expiry nearest 30 days within 60) lays each on it, `width` listed strikes a width (default 2): `LaidPresets`, each preset a `LaidPreset`; a setup holding shares (Covered Call, Covered Put, Protective Put) has `legs`, `net` and `payoff` `null` and `note` why: a draft holds no shares, and its options alone are another position; `legs` `null` and `note` where the chain lists no strike that far out. 409 `no_spot`; 404 `no_expiry` where the chain lists no expiry to build on, 502 `no_chain` where no chain answers",
        "parameters": [
          {
            "in": "query",
            "name": "expiry",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "width",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Presets"
                }
              }
            },
            "description": "The ready-made option setups: bare, or with `symbols` laid on a chain."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List option strategy presets",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/options/surface": {
      "get": {
        "description": "one underlying's volatility and volume off one chain read (`dte_from=0`, `dte_to` default 500, past the 1Y tenor, `strikes` default 60): 200 `VolatilitySurface`, `smiles` per `expiries` (a comma list; default the listed expiry nearest 30 days); volume and IV history are not served: no vendor serves them by strike. 409 `no_spot`",
        "parameters": [
          {
            "in": "query",
            "name": "dte_to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "expiries",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "provider",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "strikes",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VolatilitySurface"
                }
              }
            },
            "description": "One underlying's volatility and volume off one chain read."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an option volatility surface",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/plugins": {
      "get": {
        "description": "200 `[Plugin]`, one row per plugin (`crate::plugin`, the registry of the one seam, `taji_plugin`), `source` `build` for one this build added, `dev` for a `TAJI_PLUGINS` one, `installed` with its `publisher` for one installed from the registry, then one row per installed plugin not seated, `enabled` false and `reason` why, `products` a process plugin's own (`<id>.<name>`, read as `GET /get/<id>.<name>` and streamed on `/ws/market`, one with a `shape` folded on either by `every` (seconds, the UTC grid) or `timeframe` (an intraday chart's bars under `session`, absent the item's bars default; both, or daily and coarser, 400), the newest slice `forming`), `layers` its `[[ui.layers]]` rows as declared (`id`, `label`, `product`, `renderer`, `shader`, `slot`, `style`), each a `definition` `add_indicator` takes, with its `readiness` (`crate::plugin::readiness`): one `{class, missing}` per class its sources read its product on, `missing` each need of the product no linked, on provider serves there (`{product, span, providers}`, `providers` those unlinked or switched off that would, `[]` none), so a class absent is not for it; `ui.panes` carry the same off their `reads` routes' products, and both are framed `changed plugins` on every `link` frame and data switch, `name` its manifest's, `free` whether its data costs nothing, `kind` `venue` for a plugin that registers an execution arm and `data` for any other, `ui` present where its manifest declares `[ui]`; a plugin compiled into this build declares none, and one whose package lacks `ui/index.js` or a declared icon is a refused row, `enabled` read per request and `reason` its words when false, `[]` with none; `GET /describe/plugins` 200 `Line` `N plugins, M enabled, K verbs`. A plugin's own nodes read and describe by their paths like any node, whatever `enabled` says",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plugins"
                }
              }
            },
            "description": "Every plugin, seated or refused, in the build's board order."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List plugins",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/plugins/index": {
      "get": {
        "description": "200 `[Offer]` (each with its manifest's `layers` and `ui.panes`, each with its `readiness` as a `GET /read/plugins` row's, before it is installed), one offer per entry of the registry the setting `taji.plugins.registry` names (a `file://` directory: `index.json`, `index.json.sig`, `artifacts/`, as `taji registry pack` writes them), its `index.json` checked against its ed25519 signature under this build's registry key before it is read. 503 `no_registry` (no setting, or no key in this build), 502 `signature`, 502 `registry` (an entry not its manifest's id and version, or texts that are not the files its lines show), 409 `manifest`; `agent` 403 `scope`: its lines hold skill text nobody has agreed to",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Offers"
                }
              }
            },
            "description": "The plugins a registry offers, one per entry of its signed index."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List installable plugins",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/remote": {
      "get": {
        "description": "200 `RemoteNode` — the build's remote-access arm (`taji_plugin::remote`) and the phones paired through it (each kept in `<state dir>/remote.json`): `state` `unset` before any link, `linking` while `remote/link` runs (`open` the page the arm last asked the user to open, dropped at its next step), `on` while the arm serves the phone's door, `reconnecting` while the arm starts its serving again, the door kept open (`error` why), `off` once that serving ended (`error` its sentence, else its refusal word); never a code. Framed `changed remote` on each change, a phone's pairing and sign-in among them; a session's `seen_utc`, `ip` and `via`, and its lapse, are as of the read, unframed (a phone's own read is heard, so a frame for each would never settle). 404 `no_node` when this build seats no arm",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteNode"
                }
              }
            },
            "description": "`GET /read/remote`: the arm and the phones paired through it; never a code."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get remote access status",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/reports": {
      "get": {
        "description": "200 `Reports`, one `ReportEntry` per report under `<state dir>/reports/`, newest first, `sent_at` and `receipt` `null` until `report/send` lands it, `[]` with none; one report is a `ReportRecord`, its `report.json` with the same two fields. An id that is not letters, digits, dots and dashes, starts with a dot, or names no report, is 404 `report`. Answered on the connection thread, off the disk",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Reports"
                }
              }
            },
            "description": "Every report under the state dir, newest first, `[]` with none."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List reports",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/reports/{id}": {
      "get": {
        "description": "200 `Reports`, one `ReportEntry` per report under `<state dir>/reports/`, newest first, `sent_at` and `receipt` `null` until `report/send` lands it, `[]` with none; one report is a `ReportRecord`, its `report.json` with the same two fields. An id that is not letters, digits, dots and dashes, starts with a dot, or names no report, is 404 `report`. Answered on the connection thread, off the disk",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportRecord"
                }
              }
            },
            "description": "One report as read: its `report.json` and whether it was sent."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get a report",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/routes": {
      "get": {
        "description": "200 `Catalog` — every route an agent can find: one row per `GET` and per `POST` this table documents (`/verb/…`, or `/fetch`; a cell's `a[/b]/{c,d}` one row each, a route two rows spell alike once, their Answers joined, shared `/get/` rules once in `GET /read/openapi` `tags`), then each enabled plugin's verbs as `POST /verb/<route>` and products as `GET /get/<id>.<name>`, built per request so they follow install, enable, disable and uninstall. A row is a `Route`, its `refusals` each status and code its cell names, the `Catalog`'s `refusals` the codes every route may answer (`routes::EVERY_ROUTE_REFUSALS`); a core `POST`'s `schema` is its body with `$ref`s to `#/components/schemas/<Name>` in `GET /read/openapi`; a chart `<tool>` row is one row per chart tool, its `summary` and `doc` (that description, a newline, the cell's Answer) the tool's own, and a plugin verb's `{x}` is spelled `<x>`; a `doc` is a verb's or product's `description`, a product's then a line `Columns: <name> <type>, …`, as is a data product's after its Answers",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Catalog"
                }
              }
            },
            "description": "Every route an agent can find, as `GET /read/routes` answers."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List API routes",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/seasonals": {
      "get": {
        "description": "200 `Seasonals` — the details Seasonals off one item's daily bars (`equity:AAPL`, as `get/bars` takes it) through `Hub::get` (the provider rule every bars read uses) from Jan 1 of `years - 1` years back (UTC) to the end of today: `years` newest first, at most `years` (1 to 10, default 3), each a UTC calendar year, `points` one per held close of a price above zero. No bars is 200 `years: []`; a read refused answers its usual refusal body and status (a span the store lacks is 409 `fetch_first`). More than one item, a malformed one, a `years` outside 1 to 10 or another word is 400 `bad_ask`",
        "parameters": [
          {
            "in": "query",
            "name": "symbols",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "years",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Seasonals"
                }
              }
            },
            "description": "One symbol's seasonals: each year's closes against the share of the year gone."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get seasonal patterns",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/book": {
      "get": {
        "description": "200 one book across every `link.accounts` row of `stage` (`live` the live rows, `paper` every other, the sim's included; no stage spans both; the window's `ui.stage` where none is named; any other word, `all` among them, 400 `bad_ask` (`stage is live or paper`)), built on ask off each row's own `trading/<acct>/…` nodes; `changed trading/book` (path only, one frame whatever the stage) follows each frame on what it reads: `trading/<acct>/{account,orders,fills}` and under them (an `account` frames within a second of a held mark's tick), `trading/exits`, `link` (a refused ceremony's aside), `ui/stage` and whatever moves a row's `allocated_usd` (a path the allocation source's `moved_by` takes, `Native::allocated`). Every money figure is assumed USD: no row states a currency. The body is a `Book`; `trades` is every row's round trips (`trades` above) plus `account`, `item` and `placed_by`, newest first by `last_at`, `limit` and `from`/`to` as `trades` takes them, a `Trades`; `orders` every row's `orders?working=1` rows plus `account`, a `BookOrders`; `fills` every row's fills plus `account`, `Fills` of `BookFill`, ascending by `at`, from `since_utc` unless `from` names a bound. `account` (a handle) and `item` (an item, or a symbol) narrow the three lists. `/describe/trading/book` is a `Line`, `<stage> book · <n> accounts · equity <total> · <m> positions`",
        "parameters": [
          {
            "in": "query",
            "name": "stage",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Book"
                }
              }
            },
            "description": "One book across every account of a stage."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the trading book",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/book/fills": {
      "get": {
        "description": "200 one book across every `link.accounts` row of `stage` (`live` the live rows, `paper` every other, the sim's included; no stage spans both; the window's `ui.stage` where none is named; any other word, `all` among them, 400 `bad_ask` (`stage is live or paper`)), built on ask off each row's own `trading/<acct>/…` nodes; `changed trading/book` (path only, one frame whatever the stage) follows each frame on what it reads: `trading/<acct>/{account,orders,fills}` and under them (an `account` frames within a second of a held mark's tick), `trading/exits`, `link` (a refused ceremony's aside), `ui/stage` and whatever moves a row's `allocated_usd` (a path the allocation source's `moved_by` takes, `Native::allocated`). Every money figure is assumed USD: no row states a currency. The body is a `Book`; `trades` is every row's round trips (`trades` above) plus `account`, `item` and `placed_by`, newest first by `last_at`, `limit` and `from`/`to` as `trades` takes them, a `Trades`; `orders` every row's `orders?working=1` rows plus `account`, a `BookOrders`; `fills` every row's fills plus `account`, `Fills` of `BookFill`, ascending by `at`, from `since_utc` unless `from` names a bound. `account` (a handle) and `item` (an item, or a symbol) narrow the three lists. `/describe/trading/book` is a `Line`, `<stage> book · <n> accounts · equity <total> · <m> positions`",
        "parameters": [
          {
            "in": "query",
            "name": "account",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "item",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stage",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fills"
                }
              }
            },
            "description": "Every account's fills, ascending by `at`, from ET midnight unless `from` names a bound."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List fills in the book",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/book/orders": {
      "get": {
        "description": "200 one book across every `link.accounts` row of `stage` (`live` the live rows, `paper` every other, the sim's included; no stage spans both; the window's `ui.stage` where none is named; any other word, `all` among them, 400 `bad_ask` (`stage is live or paper`)), built on ask off each row's own `trading/<acct>/…` nodes; `changed trading/book` (path only, one frame whatever the stage) follows each frame on what it reads: `trading/<acct>/{account,orders,fills}` and under them (an `account` frames within a second of a held mark's tick), `trading/exits`, `link` (a refused ceremony's aside), `ui/stage` and whatever moves a row's `allocated_usd` (a path the allocation source's `moved_by` takes, `Native::allocated`). Every money figure is assumed USD: no row states a currency. The body is a `Book`; `trades` is every row's round trips (`trades` above) plus `account`, `item` and `placed_by`, newest first by `last_at`, `limit` and `from`/`to` as `trades` takes them, a `Trades`; `orders` every row's `orders?working=1` rows plus `account`, a `BookOrders`; `fills` every row's fills plus `account`, `Fills` of `BookFill`, ascending by `at`, from `since_utc` unless `from` names a bound. `account` (a handle) and `item` (an item, or a symbol) narrow the three lists. `/describe/trading/book` is a `Line`, `<stage> book · <n> accounts · equity <total> · <m> positions`",
        "parameters": [
          {
            "in": "query",
            "name": "account",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "item",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stage",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookOrders"
                }
              }
            },
            "description": "Every account's working orders, in link order."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List orders in the book",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/book/trades": {
      "get": {
        "description": "200 one book across every `link.accounts` row of `stage` (`live` the live rows, `paper` every other, the sim's included; no stage spans both; the window's `ui.stage` where none is named; any other word, `all` among them, 400 `bad_ask` (`stage is live or paper`)), built on ask off each row's own `trading/<acct>/…` nodes; `changed trading/book` (path only, one frame whatever the stage) follows each frame on what it reads: `trading/<acct>/{account,orders,fills}` and under them (an `account` frames within a second of a held mark's tick), `trading/exits`, `link` (a refused ceremony's aside), `ui/stage` and whatever moves a row's `allocated_usd` (a path the allocation source's `moved_by` takes, `Native::allocated`). Every money figure is assumed USD: no row states a currency. The body is a `Book`; `trades` is every row's round trips (`trades` above) plus `account`, `item` and `placed_by`, newest first by `last_at`, `limit` and `from`/`to` as `trades` takes them, a `Trades`; `orders` every row's `orders?working=1` rows plus `account`, a `BookOrders`; `fills` every row's fills plus `account`, `Fills` of `BookFill`, ascending by `at`, from `since_utc` unless `from` names a bound. `account` (a handle) and `item` (an item, or a symbol) narrow the three lists. `/describe/trading/book` is a `Line`, `<stage> book · <n> accounts · equity <total> · <m> positions`",
        "parameters": [
          {
            "in": "query",
            "name": "account",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "item",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stage",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Trades"
                }
              }
            },
            "description": "Every account's round trips, newest first by `last_at`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List trades in the book",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/exits": {
      "get": {
        "description": "200 `HeldExits`: `rows`, every level Taji holds itself, every account in one list, one `ExitRow` per symbol (`suspended`, why Taji will not send a leg, below). Each leg is judged on one hub stream per (symbol, product), its `feed` (`ExitFeed`): the position's own `trades` (an equity, future, coin or pair) or `quotes` (an option or future option, judged on the side that crosses it last: a level below on the ask, one above on the bid), or, a leg with an `on` (a plan's stop on another symbol, `plans/{draft,open}`), the `on` symbol's, an index's, option's or future option's prints riding its quotes; a `tick` leg on each live print, a `quote` one on its quote side; never on bars, never delayed: a delayed tick lapses that stream, `failed` `feed for <symbol> <product> lapsed: <why>; reopening`, a source shut for its hours lapses it with the hold kept (`…lapsed: <its hours>; resumes with its next row`; a price ask on it refused at once in those words), and the first live print through after either fires. A print stamped outside the position's own session (an equity's or option's regular hours, a future's Globex session) is neither judged nor flagged. A `quotes` stream a tick leg reads that carries no print for 3 s is framed once `failed` `<symbol>: <provider>'s quotes carry no last price; its tick levels are not judged: judge them on quote bid, ask or mid`, and an arm of one whose quotes give no print in 3 s is refused so (`no_feed`). A print that reaches a level (at or below a stop below, at or above one above) sends that leg's market exit through the account's own book, `intent.source` `{\"Exit\": <owner>}`, the level and the rest of its tranche (an OCO) dropped before the send, its quantity cut at the trip, on a book refolded then, to the account's own position on that side less what every order of the book, and every order the venue works outside Taji, still trades on that side and every exit decided and not yet in the book (zero: nothing sent, `failed` `held <tranche> <leg> <symbol> on <account> for <owner>: nothing sent: held <n>, working <n>, in flight <n>`, or, where only an order reconcile lost leaves nothing, the level held suspended, `suspended` `close <id> was lost and may still fill; move or close it`, framed `failed` `flagged: <what> <suspended>`); a spread's close cuts each leg so, sending the combos every leg holds alike, else nothing (the tranche `failed`, `note` `legs no longer form the combo: <leg>: held <n>, working <n>, in flight <n>; …`). A send the venue refuses, no order made, holds the tranche again, `failed` `held <tranche> <leg> <symbol> on <account> for <owner> did not fire: <why>; still watching`, and the next print through it sends again; a close Taji refuses before its submit (a future whose point value no one states) is held again so, and never counts toward the venue's refusals; a level whose own close, or its account's close of the symbol (`positions/<symbol>/close`), was refused before is held suspended instead, its `suspended` `the venue refused the close twice: <why>; move or close it`, framed `failed` `flagged: <what> <suspended>`, a count this run keeps and never saves; a send whose answer was lost is framed `failed` `<what>: its close <id> is not confirmed; nothing more fires on <symbol> for <account> until the venue's orders say`, and nothing does until they say: filled, it is done; lost or ended unfilled, its tranche is held again as a refused send's is, `<why>` `its close <id> ended lost` (or `rejected`, `not placed`, `canceled`, `expired`, `partly filled`); a relaunch before they say holds that tranche again, the level suspended `its close <id> was not confirmed when Taji closed; move or close it`. A level is bound to the position it was held over: an arm or a new bracket binds the account's position in the symbol held then, for its owner, even when the venue holds every pair; an edit (a move, a size), whoever makes it, keeps that binding and its owner, and an edit holding a level where no binding is held or its position has ended is refused before anything is sent, `released: flat; arm again`, the plan unchanged. A fill that leaves that position flat or reversed after it, Taji's or one the venue's fills read show, or a venue listing reversed, or flat on two passes in a row, after a pass after it, ends the position, and its owner's levels there and the binding are released at once, `failed` `released: flat: <symbol> on <account> is flat or was closed since; held <tranches> for <owner> released`, as a spread's supervision ends, `failed` `released: flat: spread <id> on <account>: its legs are flat or were closed since`; a relaunch holding levels, spreads or bindings asks the venue's positions and fills at once, and once the venue's fills back to the account's earliest binding, which end a binding and never enter the book, nothing on the account judged until that read lands; where the venue serves none, each level, spread and binding holding no level is framed `failed` `<what>: outside trades before <UTC> not readable; bound as held` (`<what>` as `unresolved` names it, a spread's `spread <id> on <account>`, a binding's `binding <symbol> on <account>`); a cross while Taji was closed is never sent: watching a level restarts at a relaunch and that read's landing; a print stamped before that which reaches the level suspends it, as does the first print after it past the level (`<symbol> crossed <level> at <UTC> while Taji was closed`); a print stamped before the level was held is not its; while that read is out nothing fires and a cross suspends. A lapse while Taji runs restarts nothing: the first live print through a level after it fires, however far past; the gap's 1m bars are read once on the reopen, and a level they reach is framed once `failed` `<what>'s prints crossed <level> during a feed gap at <UTC>; not fired, still watching`, a read that fails `the gap on <symbol> was not read, a stop may have traded through unseen: <why>`, never retried; while a close of the position is out nothing fires, and once it ends the next print through a level does. A suspended level is framed once `failed` `flagged: <what> crossed <level> at <UTC> while Taji was closed; not sent: close it, or move the level to watch it again; a move to a price the market is already past sends at market on the next print`, kept so across a relaunch, every re-hold of that tranche's leg and a refused close's re-arm of its plan, which keeps the level's owner and holds it in Taji, never at the venue, never judged, and lifted only when an edit moves that level. The plan's leg node carries the same `suspended`. The first update of a New York day that judges anything held on an equity (its own, an option's underlying, a level's `on` or a rule's symbol) reads that equity's corporate actions first: a split, reverse split or symbol change ex that day suspends every level, activation and spread tranche held on it before the day, `suspended` (a spread tranche's `note`) `<equity> <split\\|reverse split\\|symbol change> ex <date>; move or close it`, framed `failed` `flagged: <what> <suspended>`, never rescaled; where no provider answers within 2 s it is framed once `failed` `<equity>: corporate actions ex <date> not checked: <why>; what Taji holds on it stays live`, what is held stays live, and each row held on it carries those words as `actions_unchecked` (`null` once a read answers, or with no equity). A short or an excess reconcile adopts that no fill Taji saw explains suspends the account's levels and activations held on that symbol before it, `suspended` `<symbol> went <expected> to <actual> at <UTC> with no fill Taji saw; move or close it`, framed `failed` `flagged: <what> <suspended>`. A level is held on a live stream only: a hold whose stream only a delayed source serves, or none, is refused before anything is sent (`no source for <symbol>: …: only a delayed source streams it; live only`, the plan arm's `no_feed`); a saved one at boot is held, its stream lapsed, `failed` `feed for <symbol> did not open: <why>; retrying`, and reopened with the backoff. Each exit is written to `exits.json` under `fired` before its submit and cleared on the answer (a spread's in the save that marks its tranche); one found at boot is noticed `unresolved: <what> was decided as <intent id> and its submit never answered; not sent again, check the venue` (`<what>` `held <tranche> <leg> <symbol> on <account> for <owner>` or `spread <id> tranche <n> on <account>`), and is never sent (a spread's tranche `failed` with it as `note`; a held level's tranche held again, the level suspended `its close <id> was not confirmed when Taji closed; move or close it`). A level of an account the kernel did not bind stays held and on disk, unworked, noticed `held exits on <account> are not worked: the account is not bound` at boot; an entry of `exits.json` that does not read is not held, noticed `dropped at boot: <what> in exits.json does not read; not held`, and the file as read is kept beside the fresh one, noticed `exits.json did not read whole; kept as <path>`. Kept in `<state dir>/exits.json` and held again at boot, with every spread that has a tranche still `supervised` (the `exits` of its `orders/<id>` row; an unbound account's stays on disk under the same notice, one whose order the book lacks is dropped, noticed `spread <id> not in the book`). An order whose `activate` price rule Taji holds sits on its order instrument's row under `activations`, its `orders` row (`HeldOrder`) plus `feed` (its rule symbol's stream, as a leg's) and `suspended`, judged on the rule symbol's stream per the rule's `judge` (`tick` on each live print; a `quote` side on its quote; none named, as a level's own: an option's or future option's crossing side, else `tick`) inside the order instrument's session, in `exits.json` under `activations`, held again at boot (an unbound account's kept, unworked). A relaunch holds it as a level: the first update after the boot stamped at or after the hold that passes the rule suspends it, `suspended` `<rule symbol> crossed <op> <price> at <UTC> while Taji was closed`, framed once `failed` `flagged: held activation <id> on <account>: <suspended>; not sent: cancel it, or cancel and place it again to watch`, never sent and kept so across a relaunch until its cancel or its time in force ends it; the gap's 1m bars a reopen reads frame a rule they pass `failed` `held activation <id> on <account>: <rule symbol> crossed <op> <price> during a feed gap at <UTC>; not sent, still watching`. Frames `changed trading/exits` on a hold, release, accepted exit, fired activation or spread held again at boot; `failed trading/exits` `held <tranche> <leg> <symbol> on <account> for <owner> did not fire: <outcome>` or `held activation <id> on <account> did not fire: <outcome>`, or `feed for <symbol> <product> lapsed: <why>; reopening`, reopened at once with a backoff to 5 s. `notices` is every line boot noticed, an activation whose time in force ended while Taji was closed among them (`held activation <id> on <account> expired: <why>`), kept for the run and framed never: nothing this run does resumes what one names, so a client that joins after the boot reads them all; `[]` with none",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldExits"
                }
              }
            },
            "description": "What `GET /read/trading/exits` answers."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List held exits",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/account": {
      "get": {
        "description": "200 `AccountBook`, the account's positions, today's P&L and the venue's own money, margin and state. A change to the exits frames `trading/exits`, then every bound row's `account`; 409 `not_bound` on a row with no model",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountBook"
                }
              }
            },
            "description": "One account's book, its day, and the venue's own money and state."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an account",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/analytics": {
      "get": {
        "description": "`orders` is 200 `Orders`: every order of ours, terminal included, newest first by `at_utc`, the venue-held rows, which carry none, ahead; at most `limit` rows (1..10000, default 500, 400 outside). `orders?working=1` is 200 the working set alone, an `Orders` (`limit` beside it 400, `working` any word but `1` 400). `from`/`to` bound either, which is how a month of a journal is read a day at a time: UTC seconds or RFC 3339, each end optional and inclusive, a fill on its `at`, an order on its `at_utc`; a row with no `at_utc` — a venue-held order, which no event of this app's dates — is inside no bound. `fills` with no query is the whole list. `trades` takes `limit` as `orders` does and bounds on `last_at`; `analytics` bounds on `closed_at` and takes no `limit` (400). 404 a bound that is neither, and 404 a query on any other trading node; 409 `not_bound` on an unbound account\n200 `Analytics`, the performance-report figures over the closed trades. Computed on ask; re-read on `changed …/fills`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Analytics"
                }
              }
            },
            "description": "The closed-trade analytics a seat report states. Decimals\nas text, full precision."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get account analytics",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/breaks": {
      "get": {
        "description": "200 every open break between the account's journal and its venue, one per instrument, or the one: a `BreakRow`, `[]` with none. A human's break adopts the venue's book on confirmation, so one that stays is one the book cannot settle alone. `[]` with none; a break id not open is 404",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Breaks"
                }
              }
            },
            "description": "What `GET /read/trading/<acct>/breaks` answers: every open break, `[]` with none."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List account breaks",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/breaks/{break_id}": {
      "get": {
        "description": "200 every open break between the account's journal and its venue, one per instrument, or the one: a `BreakRow`, `[]` with none. A human's break adopts the venue's book on confirmation, so one that stays is one the book cannot settle alone. `[]` with none; a break id not open is 404",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "break_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakRow"
                }
              }
            },
            "description": "One open break between this account's book and its venue, as\n`stadium::discrepancy::open_breaks` folds it; decimals as text."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an account break",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/capability": {
      "get": {
        "description": "200 `Capability`, what the account's BOUND adapter declares for equities, per class who holds an order's `constraints.activate` price rule; the MCP bridge describes its trading tools from this",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Capability"
                }
              }
            },
            "description": "What the account's BOUND adapter declares for equities, serialized in the\nadapter's own types: a venue that excludes something excludes it here with no\ncode of ours. The MCP bridge describes its trading tools from this."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get account capabilities",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/fills": {
      "get": {
        "description": "200 `AccountFills`: every execution the account's journal holds, and the venue's own since ET midnight of an order no journal of ours names (placed outside Taji: the key-and-secret venue's `FILL` activities, asked with the fees every ten minutes; a venue that states none adds none), ascending by `at`, folded from the journal's `LegFilled` so a relaunch replays them, and on a `Venue` row from the venue's fills, asked again on a relaunch's first pass. Read-only; `changed …/fills` when the row count moves\n`orders` is 200 `Orders`: every order of ours, terminal included, newest first by `at_utc`, the venue-held rows, which carry none, ahead; at most `limit` rows (1..10000, default 500, 400 outside). `orders?working=1` is 200 the working set alone, an `Orders` (`limit` beside it 400, `working` any word but `1` 400). `from`/`to` bound either, which is how a month of a journal is read a day at a time: UTC seconds or RFC 3339, each end optional and inclusive, a fill on its `at`, an order on its `at_utc`; a row with no `at_utc` — a venue-held order, which no event of this app's dates — is inside no bound. `fills` with no query is the whole list. `trades` takes `limit` as `orders` does and bounds on `last_at`; `analytics` bounds on `closed_at` and takes no `limit` (400). 404 a bound that is neither, and 404 a query on any other trading node; 409 `not_bound` on an unbound account",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountFills"
                }
              }
            },
            "description": "An account's fills, ascending by `at`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List account fills",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/groups": {
      "get": {
        "description": "200 `Groups`, the account's positions as groups (a vertical, a covered call), over the `account` node's own rows: the venue's groups where it keeps them, else the kernel's, made by the verbs, each named by the strategy preset its members are copies of (else `Custom`) and priced from those rows; every held share and option quantity no group holds in `ungrouped`; both `null` until the venue first answers. A group's `id` may change with any edit of it. Computed on ask; a membership move (a verb, the venue's own regrouping, a close that shrinks a group) framed `changed …/groups`, the figures re-read on `changed …/account`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Groups"
                }
              }
            },
            "description": "`trading/<acct>/groups`: the account's positions as groups."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List position groups",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/orders": {
      "get": {
        "description": "`orders` is 200 `Orders`: every order of ours, terminal included, newest first by `at_utc`, the venue-held rows, which carry none, ahead; at most `limit` rows (1..10000, default 500, 400 outside). `orders?working=1` is 200 the working set alone, an `Orders` (`limit` beside it 400, `working` any word but `1` 400). `from`/`to` bound either, which is how a month of a journal is read a day at a time: UTC seconds or RFC 3339, each end optional and inclusive, a fill on its `at`, an order on its `at_utc`; a row with no `at_utc` — a venue-held order, which no event of this app's dates — is inside no bound. `fills` with no query is the whole list. `trades` takes `limit` as `orders` does and bounds on `last_at`; `analytics` bounds on `closed_at` and takes no `limit` (400). 404 a bound that is neither, and 404 a query on any other trading node; 409 `not_bound` on an unbound account",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "working",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Orders"
                }
              }
            },
            "description": "An account's orders, cut to a `limit`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List account orders",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/ticket": {
      "get": {
        "description": "on EVERY bound row, 200 `Ticket`, the ticket's face verbatim, what the window's ticket draws, composed by the app from that row's draft, the gate's last verdict and the instrument facts its venue last served, so a snapshot boot answers what was recorded; a `route` that is a refusal (the venue certainly refuses the order) reads `can_send` false and `disposition` `REFUSED · <reason>`; `{\"staged\": false}` on a row with nothing staged, 404 a handle no row has; an open spread states `ref_price` its payoff's max loss per share, or its own net where that loss has no bound or no one expiry, the venue judging it. `changed …/ticket` when a verdict lands, and on a staged spread's re-quote: no edit asked and no vendor called, a row of its `spread:` `quotes` stream (`/ws/market`'s), two-sided and uncrossed (a disconnect unprices it until the next row) and no older than the last evaluation's `net`, at most once per 250 ms and never while an evaluation is out, re-sets `preview`'s `net` (the row's), `natural` and `fill`; `payoff` (off the draft's own net), `greeks`, `venue`, `contract`, `notional`, `warnings`, `feed`, `gate`, `disposition` and `can_send` keep the last evaluation's, and a net whose word turned against the draft's is refused at the place, not here; and on a staged lone instrument's quote: a row of its own `quotes` stream moved, at most once per 250 ms and never while an evaluation is out, `quote` its newest two-sided bid, ask and mid at `ts`, `null` before one or while its source is shut, `spread`, `price_against` and `limit_against` read off it.",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ticket"
                }
              }
            },
            "description": "What `trading/<acct>/ticket` reads: the staged draft's face, what the\nwindow's ticket draws, or nothing staged."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get an order ticket",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/trades": {
      "get": {
        "description": "`orders` is 200 `Orders`: every order of ours, terminal included, newest first by `at_utc`, the venue-held rows, which carry none, ahead; at most `limit` rows (1..10000, default 500, 400 outside). `orders?working=1` is 200 the working set alone, an `Orders` (`limit` beside it 400, `working` any word but `1` 400). `from`/`to` bound either, which is how a month of a journal is read a day at a time: UTC seconds or RFC 3339, each end optional and inclusive, a fill on its `at`, an order on its `at_utc`; a row with no `at_utc` — a venue-held order, which no event of this app's dates — is inside no bound. `fills` with no query is the whole list. `trades` takes `limit` as `orders` does and bounds on `last_at`; `analytics` bounds on `closed_at` and takes no `limit` (400). 404 a bound that is neither, and 404 a query on any other trading node; 409 `not_bound` on an unbound account\n200 `RoundTrips`, newest first by `last_at`: each instrument's round trips, flat to flat at average cost, a fill through zero closing one and opening the next. Computed on ask; re-read on `changed …/fills`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundTrips"
                }
              }
            },
            "description": "An account's round trips, newest first by `last_at`, cut to a `limit`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List account trades",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/trading/{acct}/{path}": {
      "get": {
        "description": "the read 200 `Node`, the describe 200 `Line`; `<path>` the rest of the node's path, slashes included: the trading node, a root node rather than a Desk's: [`TradingModel`](taji_trading::TradingModel)'s own nodes plus `ticket`, or a snapshot boot's pinned `trading.json` read as data; 409 `{\"error\": \"not_bound\", \"reason\": \"<acct> is not bound: <reason>\"}` for a row `link.accounts` holds unbound (`reason` its own, `no credential` while the vault is locked), 404 with no book or for a handle no row has",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The rest of the tree path, slashes included.",
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            },
            "description": "What a read of any node answers: its body, whose type that node's own route declares."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Read an account node",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "read",
          "rest": true,
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/ui": {
      "get": {
        "description": "200 `WindowState`, the display zone + stage (`paper` or `live`, `paper` at every launch)",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WindowState"
                }
              }
            },
            "description": "The window's own state, `ui`."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get window state",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/ui/capture": {
      "get": {
        "description": "200 `image/png`, what the window shows, its long edge at most 1568 px: the focused pane, `pane` that pane, `of=window` the whole page. With the window closed, a never-shown page answers: it draws `pane` (or the focused pane) alone at 390 px wide, and `of=window` is 409 `no_window`. The kernel frames `changed ui/capture` with `record` `{id, of, pane}` (`of` `pane` or `window`, `pane` `null` for the focused one), no `seq`, to each page's `/ws/live`, a `hidden` one included, and holds the request until a page posts `ui/captured`. 409 `no_window` with no page's `/ws/live` open (at once, nothing framed) or when the page answers it (outside Electron), 404 `no_pane` for a pane the window does not show, 504 `capture` after 5 s with no post; 400 `bad_ask` for another word. `local`, `agent` and `page`; answered on the connection thread",
        "parameters": [
          {
            "in": "query",
            "name": "of",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pane",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/png": {}
            },
            "description": "200 `image/png`, what the window shows, its long edge at most 1568 px: the focused pane, `pane` that pane, `of=window` the whole page."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Capture the window",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/read/ui/clients": {
      "get": {
        "description": "200 `Clients`, how many pages bought the `page` token through `/app/token` (a sheet counts none): how a script knows a window loaded. Answered on the connection thread beside `ui/open`",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clients"
                }
              }
            },
            "description": "The windows that hold a page token."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List window clients",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/ui/cursor": {
      "get": {
        "description": "200 `Crosshair`, the user's cursor: the pane the window's pointer last rested on, the bar's `t` and the price under it (both `null` off every plot); `Pointer`, the agent's point: the mark the window draws at that bar and price for 30 s after `at_utc`. Every field `null` until one is posted, once cleared or once its Desk is deleted, always headless; never recorded; `/describe` gives each a line",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Crosshair"
                }
              }
            },
            "description": "Where the user's crosshair rests and what they selected, as the window last posted it: every member `null` until it posts one, always headless, and once its Desk is deleted. Never recorded."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the cursor position",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/ui/point": {
      "get": {
        "description": "200 `Crosshair`, the user's cursor: the pane the window's pointer last rested on, the bar's `t` and the price under it (both `null` off every plot); `Pointer`, the agent's point: the mark the window draws at that bar and price for 30 s after `at_utc`. Every field `null` until one is posted, once cleared or once its Desk is deleted, always headless; never recorded; `/describe` gives each a line",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pointer"
                }
              }
            },
            "description": "The mark the agent asked the window to draw, at that bar and price for 30 s after `at_utc`: every member `null` until one is posted, once cleared, or once its Desk is deleted. Never recorded."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get the agent's pointer",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/ui/settings": {
      "get": {
        "description": "200 `SettingValues`, `{\"<key>\": <JSON value>, …}` — the window's settings, kept in `<state dir>/settings.json` across launches and ports (the browser's storage is keyed by the page's origin, which moves with the port), `{}` on a fresh state dir; an unreadable or unparsable file is one `taji.log` line and `{}`; `/describe` gives it a line. Answered on the connection thread",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingValues"
                }
              }
            },
            "description": "The window's settings, key to value, `{}` on a fresh state dir."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Get settings",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/ui/sounds": {
      "get": {
        "description": "200 `OwnSounds` — the user's own sounds, which a sound cue (`taji.sounds`) may name beside Taji's, by `name`; each `file` under `<state dir>/sounds/` beside its index `sounds.json`, served tokenless at `GET /app/sounds/<file>` (`audio/wav`, `audio/mpeg` or `audio/ogg`; 404 a file the index does not name), `[]` with none",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnSounds"
                }
              }
            },
            "description": "What `GET /read/ui/sounds` answers: the user's own sounds, `[]` with none."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List custom sounds",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/voice": {
      "get": {
        "description": "200 `VoiceList`, one `VoiceProvider` per voice provider this build holds (`taji_plugin::voice`), its `voices` the arm's `voices()`, each a `VoicePreset`, the recommended one first. Linked providers are `<state dir>/voice.json` `{\"<id>\": {}}`, mode 0600. Framed `changed voice` whenever a row would differ (a link, an unlink, a secret held, `error` set or cleared)",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceList"
                }
              }
            },
            "description": "What `GET /read/voice` answers: one [`VoiceProvider`] per voice provider this build holds."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "List voice providers",
        "tags": [
          "Voice"
        ],
        "x-taji": {
          "effect": "read",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/read/{path}": {
      "get": {
        "description": "200 `Node`, [`Tree::read`]'s body, else 404; a `chart` path naming none of several panes answers with the `chart/<pane_id>` paths there are. `<path>` is the tree path verbatim, query and all (`desk/<id>/notes?from=&to=`); 404 `report` for a path under `/read/reports/` that names no report",
        "parameters": [
          {
            "description": "The rest of the tree path, slashes included.",
            "in": "path",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Node"
                }
              }
            },
            "description": "What a read of any node answers: its body, whose type that node's own route declares."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Read a node",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "read",
          "rest": true,
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/agent/answer": {
      "post": {
        "description": "`CardAnswer` — a card's pick, `option` an `optionId` the card offered, an `allow_always` the agent's own to keep (Claude Code's rule in its project-local settings file in the desk cwd, Codex's under its `CODEX_HOME`); 200 `ChatAnswered`, a `CardPicked` for a card; 404 `session` or `request`, 400 `option`. A `question`'s answer takes `action` and `content` instead of `option`: it reaches the adapter as `{action, content?}` and 200 answers a `QuestionAnswered`; 400 `action` or `content`; 410 `agent_quit` once the agent has quit, 400 `images` as `prompt`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardAnswer"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatAnswered"
                }
              }
            },
            "description": "What `agent/answer` sent the agent: a card's pick or a question's answer."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Answer an agent card",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/cancel": {
      "post": {
        "description": "`Cancellation` / no body — ACP's `session/cancel` with every open card answered `cancelled` and the queue emptied (framed empty; the removed messages are `ChatCancelled.queued`), or with `task`, one of the chat's subagents' sessions, `session/cancel` of that subagent alone (404 `task` for any other) / every chat framed `closed` (its queue emptied first), and a start still waiting, and the adapter's process group killed (as on the kernel's exit), the kernel keeping each chat's frames for its next start; 200 `ChatCancelled` / `AgentStopped`, 404 `session` for a chat not open on the running adapter, 410 when the agent has quit",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cancellation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCancelled"
                }
              }
            },
            "description": "A chat's running turn, or one of its subagents, cancelled."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Cancel an agent turn",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/agent/config": {
      "post": {
        "description": "`OptionPick` — one of the chat's options set to `value` by ACP's `session/set_config_option` and confirmed from the answer's `currentValue`, a requested auto the adapter clamps confirmed as its clamped mode; no request when the option holds `value` already; taken while a turn runs or a card waits (both agents apply it from their next step), one set per chat at a time; framed `config` when the options move. 200 `ChatConfigured`; 400 `bad_config` for an id the chat does not offer, a value its options do not hold, a non-boolean for a boolean option, or a bypass or full-access mode; 404 `session`; 410; 502 `config` when the adapter refuses or answers another value, `mode` when a mode is not confirmed or the agent is left in a bypass or full-access mode, ending the chat (framed `error` and `closed`)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OptionPick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatConfigured"
                }
              }
            },
            "description": "A chat's options after a set."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set an agent option",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/connect": {
      "post": {
        "description": "`PlatformPick` — the window does not post it; the install gates do, and an MCP `commit` can: `taji-register mcp <bridge>` registers the bridge as `taji` (with `TAJI_WIRE` when this kernel took one), then `taji-register skills <taji home>/skills/taji` copies the skill, each with `--agent <id>` per id named, or for every platform found when `platforms` is absent. 200 `AgentRegistration` and `changed agent`; 400 `bad_ask` for `platforms` anything but a non-empty array of ids; 409 `move_first` (`reason`: drag Taji to Applications, then open it from there) when this binary, on macOS, runs from a translocated copy (`/private/var/folders/…/AppTranslocation/…`) or a read-only disk image; 501 `no_register`; 502 `register` when `taji-register` exits non-zero, `reason` every line it printed, and `changed agent` all the same. Answered on the connection thread: each child runs for a second or two. The `agent` token's call parks for the user's approval (any verb, below)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformPick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRegistration"
                }
              }
            },
            "description": "The MCP bridge beside this binary and the platforms registered with it."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Connect an agent platform",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/delete": {
      "post": {
        "description": "`ChatTitle` / `DeskChat` — the title `agent/chats` shows for one of the desk's chats over the agent's, kept in `<state dir>/agent-panel.json` (an empty one clears it) / ACP's `session/delete` on the chat's agent, running, which removes the agent's transcript (none sent for a chat it no longer lists), the chat ended (`closed`) if open, its ACP session closed (`session/close`) when the adapter offers that, and forgotten, as any desk's current chat too; each frames `changed agent/chats/<desk>`; 200 `ChatRenamed` / `ChatDeleted`, 400 `bad_desk`, `bad_session` or `title`, 404 `chat` for a session `agent/chats` does not list for `desk`, 409 `wrong_agent` (delete) while the chat's agent is not the one running, 502 `agent`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeskChat"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatDeleted"
                }
              }
            },
            "description": "A chat deleted."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Delete an agent chat",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/detect": {
      "post": {
        "description": "no body; 200 `AgentRegistration`, the list read again, and `changed agent`; 501 `no_register` and 502 `register` as for `connect`. The `agent` token's call parks for the user's approval (any verb, below)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRegistration"
                }
              }
            },
            "description": "The MCP bridge beside this binary and the platforms registered with it."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Detect agent platforms",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/disconnect": {
      "post": {
        "description": "`PlatformPick` — `taji-register remove`: the `taji` entry and the skill's copy out of every platform found, or those named; the answers of `connect` but `move_first`. The `agent` token's call parks for the user's approval (any verb, below)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformPick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRegistration"
                }
              }
            },
            "description": "The MCP bridge beside this binary and the platforms registered with it."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Disconnect an agent platform",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/edit": {
      "post": {
        "description": "`QuestionEdit` — refused unless the adapter is the version Taji pins (another may fork a chat whole); question `at` (0-based, as `/ws/agent`'s `prompt`s and replayed `user_message_chunk` runs count them) asked again as `text`, the chat going on from before it: `at` 0 a new chat on the desk; else ACP's `session/fork` of the chat through the last answer before that question (the `messageId` its `agent_message_chunk`s carry, the adapter's `_meta.jetbrains.air.fork` cut), set to the original's options as `start` sets them, held with the frames kept up to there (no replay); the original taking no prompt until then (409 `editing`); either becomes the desk's current chat, the original kept in `agent/chats` and closed as any chat no desk shows, and `text` (with `mentions`, as `prompt` takes them) its first turn, a refusal of which is framed `error` on the new chat and answered with `session` beside it; the turns dropped having made acts (`chat.acted`), one `note` frame names them, which ran and are not undone, and leads `text` to the agent. 200 `ChatOpened`; 400 `text` or `mentions`, or `at` for no such question or one whose question before has no answer; 404 `session`, `desk` \"the desk was deleted\" when the desk was deleted while the fork opened, the fork closed; 409 `busy` or `starting`; 410; 413 as `prompt`; 502 `agent` for an adapter not pinned or a failed fork, saying so, `mode` when the fork's mode is not confirmed (the fork deleted, ACP's `session/delete`)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatOpened"
                }
              }
            },
            "description": "The chat a question or a hand-off opened a turn on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Edit an agent question",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/move": {
      "post": {
        "description": "`ChatMove` — one of the desk's chats filed under `to`, pinned last there when pinned; its session keeps the cwd it was set up in (ACP fixes it), so `start` from `to` loads it there; an open chat runs on, now `to`'s, and no longer `desk`'s current chat; frames `changed agent/chats/<desk>` for `desk` and for `to`; 200 `ChatMoved`, 400 `bad_ask` \"desk and to are desks' ids\" or \"to is another desk\", 404 `desk` for a `to` `read/desks` does not list, 404 `chat` as `rename`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatMove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatMoved"
                }
              }
            },
            "description": "A chat filed under another desk."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Move an agent chat",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/pin": {
      "post": {
        "description": "`ChatPin` — one of the desk's chats at `rank` among its pinned chats (0 the first, past the last last), the others renumbered from 0; a null or absent `rank` unpins; kept in `<state dir>/agent-panel.json`; frames `changed agent/chats/<desk>`; 200 `ChatPinned`, 400 `bad_desk` or `bad_session`, 404 `chat` as `rename`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatPin"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatPinned"
                }
              }
            },
            "description": "A chat pinned at a rank among its desk's pinned chats, or unpinned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Pin an agent chat",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/prompt": {
      "post": {
        "description": "`ChatQuestion` — each mention sent as an embedded text `resource` (ACP's), a text's `</context` escaped `<\\/context`; each image as an ACP `image` block; the prompt the text (none when blank, which only images may leave it), the images, then the mentions. With no turn running, a turn (framed `prompt` `{text, mentions, images}`, `mentions` `[{uri, name}]`, then its frames and its end on `/ws/agent`), `when` ignored: 200 `Prompted`. With one running, `when` `now` (the default) is ACP's `_session/steering` of the same blocks (Antigravity's a second `session/prompt`, which is how its question tool takes the answer), which the agent takes into the running turn, framed `prompt` with `steer` `true`: 200 `Prompted` with `steer`; refused by the adapter, or the turn ended before it landed, it is queued as `next` is; `next` is queued: the chat's queue, framed `queue` on every change, sends its first as the chat's next turn when the running one ends (`done`), but not after a cancelled one, which keeps the queue; eight at most: 200 `Prompted` with `queued` and `id`. 404 `session` for a chat not open on the running adapter, 400 `bad_ask` for a blank `text` with no `images` or a mention whose `uri` names no path or whose `name` is empty, `images` for an image's `data` not base64 or any image to an agent that takes none, 409 `queue` past eight, `editing` while `agent/edit` forks the chat, 413 `mention` for a mention's `text` over 32 KiB, more than five, or over 64 KiB together, `image` for an image over a cap, 410 when the agent has quit; 400 `images` for an image whose data is not base64, 413 `image` for one too large, 410 `agent_quit` once the agent has quit",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatQuestion"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prompted"
                }
              }
            },
            "description": "What `agent/prompt` did with the question: ran it, steered the running turn with it, or queued it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Send an agent prompt",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/rename": {
      "post": {
        "description": "`ChatTitle` / `DeskChat` — the title `agent/chats` shows for one of the desk's chats over the agent's, kept in `<state dir>/agent-panel.json` (an empty one clears it) / ACP's `session/delete` on the chat's agent, running, which removes the agent's transcript (none sent for a chat it no longer lists), the chat ended (`closed`) if open, its ACP session closed (`session/close`) when the adapter offers that, and forgotten, as any desk's current chat too; each frames `changed agent/chats/<desk>`; 200 `ChatRenamed` / `ChatDeleted`, 400 `bad_desk`, `bad_session` or `title`, 404 `chat` for a session `agent/chats` does not list for `desk`, 409 `wrong_agent` (delete) while the chat's agent is not the one running, 502 `agent`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatTitle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatRenamed"
                }
              }
            },
            "description": "A chat's title as the desk's history shows it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Rename an agent chat",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/start": {
      "post": {
        "description": "`ChatOpening` — the user's own agent with the kernel as its ACP client ([`crate::agent`]): its pinned adapter under `npx -y` (Antigravity's own `agy acp`, Grok's own `grok agent stdio`) in its own process group on an allowlisted environment, spawned only when none of that agent's runs (Claude Code's is also started, initialized alone with no chat, when the run's first window page loads or a phone signs in with no adapter running), as one adapter holds every chat as a session; the desk's current chat (kept in `<state dir>/agent-panel.json`), or `session`, one the agent lists for `desk`, or, given `new`, a new one. A chat the adapter holds answers at once with no request, keeping its own options, every other chat running on, and one no desk shows that runs no turn and waits on no card is closed (ACP's `session/close`) and its frames dropped; else ACP's `session/resume` when the kernel still holds its frames (after a `stop`), which replays nothing, else `session/load`, whose replayed history is framed as the chat's first `update`s; `session/new` for `new`, a desk with no current chat, or one never asked, no longer listed or that the agent cannot resume; each with Taji's MCP server, on the desk's own cwd under the user's data dir's real path (`taji-agent`, so its \"always\" rules last; Codex lists a thread by its resolved cwd alone); Claude Code with none of the user's permissions, hooks, MCP servers, plugins or skills, only Taji's `taji` skill and Claude Code's project-local settings file in the desk cwd (where its \"always\" rules land), and Claude Code's full built-in tool preset (the adapter still reads the user's Claude Code settings file for its effort, `apiKeyHelper` and default mode, which it then leaves, and its model until one is picked); Codex on `<state dir>/codex` as its `CODEX_HOME`, holding links to the user's `auth.json` and Taji's `taji` skill (so none of their `config.toml`, MCP servers, hooks, plugins or sessions), none of their skills, and its default features, shell included, in its own sandbox; Antigravity on `<state dir>/antigravity` as its `--gemini-dir`, empty (none of the user's `~/.gemini`: settings, rules, MCP servers, skills, plugins, conversations), its sign-in the CLI's own; Grok on `<state dir>/grok` as its `HOME`, holding links to the user's `.grok/auth.json` and Taji's `taji` skill under `.grok/skills` (so none of their Grok, Claude Code or Cursor setup at the session's start: skills, plugins, MCP servers, hooks, permissions, instructions; a skill beside a path it later touches still loads), its `always-approve` command never served; `config` `{<id>: <value>}`, the user's picks among the session's `configOptions`, each set by ACP's `session/set_config_option` and confirmed from the answer's `currentValue`: `mode` first, for an agent that has modes (the agent's auto when absent: its own classifier decides every call, Claude Code's `auto`, Codex's `agent`; a requested auto the adapter clamps confirmed as its clamped mode, Claude Code's `acceptEdits`), a bypass or full-access mode never; then the rest in the session's own order (a model before its effort), one the session does not offer or take left at the agent's own with a `note` frame saying so. 200 `ChatStarted` once the agent holds one, `config` its options as `/ws/agent`'s `config` serves them, `edit` why `agent/edit` is refused on this adapter (it cannot fork, or is not the version Taji pins) else `null`, `images` whether it takes images (its `initialize`'s `promptCapabilities.image`) (a first launch downloads the adapter, up to 5 min); 400 `bad_ask` for an `agent` not listed or a `desk` that is no desk's id, `config` for one naming a bypass or full-access mode; 404 `chat` for a `session` the agent does not list for `desk` or another desk files, and \"the chat was deleted\" when it was deleted while it opened, the chat closed; 404 `desk` \"the desk was deleted\" when the desk was deleted while the chat opened, the chat closed; 409 `starting` while another start runs, `stopped` when `stop` came first, and `node`; 401 `login`, the vendor's sign-in opened in Terminal; 502 `agent` or `mode` (`mode` when the mode is not confirmed); 504 `start_timeout`; 409 `node` where the adapter would not start, 409 `stopped` when `stop` came first",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatOpening"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatStarted"
                }
              }
            },
            "description": "A chat `agent/start` opened or showed again."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Start an agent chat",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/stop": {
      "post": {
        "description": "`Cancellation` / no body — ACP's `session/cancel` with every open card answered `cancelled` and the queue emptied (framed empty; the removed messages are `ChatCancelled.queued`), or with `task`, one of the chat's subagents' sessions, `session/cancel` of that subagent alone (404 `task` for any other) / every chat framed `closed` (its queue emptied first), and a start still waiting, and the adapter's process group killed (as on the kernel's exit), the kernel keeping each chat's frames for its next start; 200 `ChatCancelled` / `AgentStopped`, 404 `session` for a chat not open on the running adapter, 410 when the agent has quit",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStopped"
                }
              }
            },
            "description": "The panel closed."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Stop an agent chat",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/agent/unqueue": {
      "post": {
        "description": "`QueuedMessage` — the queued message `id` removed, framed `queue`; 200 `Unqueued`, 404 `session` or `queued`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueuedMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unqueued"
                }
              }
            },
            "description": "A queued message removed."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove a queued agent message",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/approvals/{id}/approve": {
      "post": {
        "description": "no body; the by-hand token alone (`local` and a plain `page` 403 `hand`, any verb, below) — `pending` to `approved` once, then the held verb sent under the scope that parked it (`local`'s or the `agent` token's), past its gate, its own checks run then (a draft's `rev`, a plan's `plan_rev`, `live`, funds): answers that verb's answer (`Relayed`), kept as `result`, the approval `done`. 404 `no_approval`; 409 `{\"error\": \"state\", \"reason\", \"state\"}` for one not pending: approved already, declined or expired",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Relayed"
                }
              }
            },
            "description": "Another route's answer, relayed as that route gave it: its own row declares its type."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Relayed"
                }
              }
            },
            "description": "Another route's answer, relayed as that route gave it: its own row declares its type."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Approve a request",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "window",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/approvals/{id}/decline": {
      "post": {
        "description": "no body; `local`, `agent` and `page` — `pending` to `declined`, `by` the caller's scope: the user's no, or the agent's withdrawal. 200 `Approval`; 404 and 409 as `approve`'s",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Approval"
                }
              }
            },
            "description": "An act the agent's token asked for that a row's gate holds for a person."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Decline a request",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/channels/link": {
      "post": {
        "description": "`ChannelLink` — the row's `fields` beside `channel`, each a non-empty string, and any of its form's optional `on` fields (a text field a step asks aside: handed to the arm's `link`, never sealed, a blank one none), and no other key, proved by the arm against its platform, sealed and the channel linked, a link before it replaced; none given (or each empty) pairs again off the sealed record, 400 `fields` with none sealed; an out-only channel is `linked` at once, one whose account is the owner's own is too, any other inbound one answers `pair`, eight letters of `[a-km-z]`, void after ten minutes: the first message on it whose whole text is the code (any case) binds its sender as the owner, is answered \"Linked to Taji.\", and the code is spent; a linked channel never binds again without an unlink. 200 `ChannelLinked`; 404 `no_channel` for a word no arm has, 400 `fields`, 409 `vault_locked` for a channel with fields while the vault is not open, 409 `superseded` when another `channels/link` or `channels/unlink` ends a pending link, 502 `channel` the arm's sentence. Only the owner's message is heard (any other is dropped unanswered): one seen before is dropped, one older than 120 s answered \"Not run: Taji heard this late.\", `y`, `yes`, `n`, `no` or `always` and a card's token answers that card (`allow_once`, `reject_once`, `allow_always`) or is told \"No such request.\", and any other is asked on the attached desk's Agent chat, each card of its turn sent as its title, 600 characters of detail and the replies its token takes (\"Open Taji to answer.\" for one with other picks), then its last message, in runs of the channel's text limit",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelLink"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelLinked"
                }
              }
            },
            "description": "What `channels/link` answers: the channel linked."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Link a channel",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/channels/send": {
      "post": {
        "description": "`ChannelMessage`, `local` and `agent` (the MCP tool `call`) — `pane` the picture `GET /read/ui/capture?pane=<pane>` answers, `text` its caption, to `channel`, else the oldest unfinished phone question's channel, else every linked one at once; 200 `ChannelSent`, the platforms' ids of each message sent, channel by channel in the linked order; 400 `bad_ask` with neither, 404 `no_channel` for one not linked or none linked, 409 `no_images` for a channel that takes none, 409 `no_window` (and the capture's refusals unchanged), 502 `channel` the sentence of the first arm in the linked order that failed, with `sent` the ids of every channel that took it",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelSent"
                }
              }
            },
            "description": "What `channels/send` answers: the platforms' ids of each message sent."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Send a channel message",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local"
          ]
        }
      }
    },
    "/verb/channels/unlink": {
      "post": {
        "description": "`ChannelName` — `channels.json` written without it (its owner forgotten), then its sealed secret deleted, its inbound stopped, then the arm ends its platform session (a linked device logged out, its session deleted); 200 `ChannelUnlinked`, 404 `no_channel`, 409 `vault_locked` for a linked channel with fields while the vault is not open, 500 `io` when `channels.json` cannot be written, nothing changed, 502 `channel` the arm's sentence when it could not end its session (the channel is unlinked all the same; unlink again to retry)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChannelName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelUnlinked"
                }
              }
            },
            "description": "What `channels/unlink` answers: the channel unlinked."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Unlink a channel",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/data/cache/set": {
      "post": {
        "description": "`Retention`: how far back a handle off `data/cache` is kept. 200 `Retained`: `dry_run` answers the `RetentionQuote` and writes nothing; else it writes `<state dir>/cache.json`, frames `data/cache` and answers the `Handle` row. 400 `bad_ask` for a body `Retention` refuses; 400 `id` for an unknown `id`, 400 `target_from` for one that is not `YYYY-MM-DD` or is after `held_from`; 409 `reach` for one before `reach_from`, naming it",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Retention"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Retained"
                }
              }
            },
            "description": "What `data/cache/set` answered: the quote of a dry run, else the handle with its target written."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set data cache retention",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/data/dump": {
      "post": {
        "description": "`Dumping`: a dataset's stored rows, coverage and `applied` marks go; its pulls and their cost stay, so the spend and the device budget are unchanged, and a rebuild of the store does not bring it back. A later read of the range fetches and pays again. 200 `Dumped`; 404 `no_dataset`; 409 `fetching` where a fetch of it is in flight; 400 `bad_ask` without a `dataset`. Answered on the connection thread",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Dumping"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dumped"
                }
              }
            },
            "description": "A dataset dumped."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Drop a dataset",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/data/register": {
      "post": {
        "description": "`Registration`: the agent's own data, declared. `path` is a `.csv` (header row, the FIRST column an RFC 3339 or epoch-seconds timestamp, the rest numbers) or a `.parquet`, 64 MiB at most; Taji copies its rows into the store (a `file` verbatim), `series:<name>@<N>` its `dataset_id`. The same bytes under the same declaration (`available`, `kind`, the value columns kept) as the newest version answer that version's id; changed bytes, rule, columns or kind under the name are the next `version`, which is what `series:<name>` then reads; `sha256` stays the file's own. `available` is REQUIRED for `bars` and `series` and has no default, because it is what releases a row wherever Taji reads it; an unparsable time or zone is 400 `bad_ask`. 200 `Registered`; 400 `bad_ask` on a member, `name`, `path`, `available`, `columns`, `rows` or `csv` (the `reason` names the line to fix), 404 `{\"error\": \"desk\"}`; 403 `state_dir`, before a byte is read, for a `path` that resolves (symlinks followed) into the state dir, which holds the tokens and the vault, the Desks' own directory excepted. Answered on the connection thread",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Registration"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Registered"
                }
              }
            },
            "description": "What the register answers, the same for a fresh write and for bytes already\nheld: the id a reader pins, and the span it covers."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Register custom data",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/add_annotation": {
      "post": {
        "description": "Draw a new annotation on the chart (a horizontal price line, a trendline, a rectangle, or any other drawing tool). The engine assigns the new object's id and records that the agent drew it; you do not supply an id. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`: the new id is the last segment of `node`; use it for follow-up edits. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewAnnotation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a chart annotation",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/add_indicator": {
      "post": {
        "description": "Add a built-in catalog indicator (e.g. EMA, Bollinger Bands, RSI) to a chart pane. Identify the indicator by its catalog definition (`name` or `name@version`, e.g. `macd@1`); supply `params` matching that indicator's parameter schema (both are on `read/catalog`, each row's `definition`, `defaults` and `schema`). The engine assigns the new indicator's id; you do not supply one. Answers `{\"node\":\"desk/<id>/chart/<pane>/indicators/<id>\",\"seq\":N}`: the new id is the last segment of `node`; use it to update or remove the indicator. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewIndicator"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a chart indicator",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/delete_object": {
      "post": {
        "description": "Remove an existing object, an annotation OR an indicator, by its id, as learned from the chart read model. This is undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`` (`indicators` for an indicator). A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ObjectDeletion"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Delete a chart object",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/redo": {
      "post": {
        "description": "no body; the window's ⌘⇧Z on the Desk's last-interacted pane, `undo`'s twin: 200 `UndoStep`, `act` the redone change, 409 `not_active`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UndoStep"
                }
              }
            },
            "description": "A chart step undone or redone."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Redo a chart change",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/remove_indicator": {
      "post": {
        "description": "Remove an existing indicator by its id, as learned from the chart read model. This is undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/indicators/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndicatorRemoval"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove a chart indicator",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/set_anchors": {
      "post": {
        "description": "Move or reshape an existing annotation by setting its anchor geometry directly, in chart {time, price} coordinates. Identify it by the `id` from the chart read model, and provide `anchors` whose `kind` matches the annotation's shape (horizontal/trendline/rectangle). This is the way to reposition or resize an annotation. Only the geometry changes; style, label, and a trendline's extend flags are left as-is. Undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Anchoring"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Move a chart annotation",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/set_provider": {
      "post": {
        "description": "`Pinning`, no pane the Desk's chart pane; any Desk. 200 `Changed`, `node` `desk/<id>/chart[/<pane>]/view`, and `changed` on it; 400 `bad_ask` no `provider`, or a `pane_id` that is not the path's; 422 `not_linked` a provider not linked here (409 `vault_locked` behind the locked vault), nothing kept; 404 `desk`/`pane` (an unknown Desk or pane)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pinning"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the chart data provider",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/set_symbol": {
      "post": {
        "description": "Switch a chart pane to a different ticker symbol (the timeframe stays as-is). This is navigation, not an edit: it is not undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/view\",\"seq\":N}` once the pane is rebound; its data may still be loading (a read of that node shows it). A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SymbolPick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the chart symbol",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/set_timeframe": {
      "post": {
        "description": "Switch a chart pane to a different timeframe (the symbol stays as-is). This is navigation, not an edit: it is not undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/view\",\"seq\":N}` once the pane is rebound; its data may still be loading (a read of that node shows it). A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeframePick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the chart timeframe",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/set_view": {
      "post": {
        "description": "`ViewPicks`, at least one, the `view` node's words; any Desk, active or not; no pane is the Desk's chart pane. An absent field keeps its value, `box: null` returns to the ATR box, `compare` and `panes` are replaced whole (`[]` clears), `ratio: null` unlocks, `link: null` leaves the group (`link` also frames `changed desk/<id>/layout`, where `panes[].link` reads it), `adjust_dividends` asks a stock's bars provider for its dividend-adjusted basis (`split-dividend-spinoff`, stored apart; Taji computes none; another class keeps its provider's own) and the pane loads again, a provider that serves none refusing it as the `error` of the pair's `/ws/market` `status`, and `adjust_dividends: true` on a frozen window pane 400 `bad_ask` `adjust_dividends: an older day's window shows the stored bars, not adjusted for dividends`, `session` (`regular`\\|`extended`\\|`24h`\\|`pre`\\|`post`, the pane's bars read it as `/ws/market` does and the pane loads again) on a pane that is not an intraday stock's or future's, or a frozen window, 400 `bad_ask` `session: applies to an intraday stock's or future's bars`, `session: a future's bars take regular (RTH) or extended (its Globex session)` or `session: an older day's window shows the stored regular session`, a word off those 400 naming them, `settings` sets the fields it names and keeps the rest, one undo step (`edit settings`); a symbol or timeframe switch returns `box` to `null`, and a switch to a symbol that is not a spread `legs` to `false`. 200 `Changed`, `node` `desk/<id>/chart[/<pane>]/view`, and `changed` on that node; 400 a field off its words or none named, `settings: <why>` for a settings field it does not hold or off its words, `panes` without exactly one `main`, a `share` not > 0, two `maximized` or an id twice; 404 `desk`/`pane` (an unknown Desk or pane); 400 `bad_ask` `at most 3 compared`, `<style>: needs tick data; Taji charts 1m and up` for `volume_footprint`, `tpo` and `session_volume_profile`, `compare holds the pane's own symbol`, `legs on a pane that is not a spread`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewPicks"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the chart view",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/set_visible_range": {
      "post": {
        "description": "Zoom/pan a chart pane so the given UTC-seconds time window fills it (zoom-to-fit; the price axis auto-fits to the window's bars). A window inside the loaded data answers `{\"node\":\"desk/<id>/chart/<pane>/view\",\"seq\":N}`; one before it answers 202 `{\"node\":\".../view\"}` while older history loads, and the view is unchanged until a later frame; one the data cannot cover is refused with the loaded extent in `reason`. It is never clamped. This is navigation, not an edit: it is not undoable. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RangePick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the visible chart range",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/set_width": {
      "post": {
        "description": "`Width`, the window's; no pane the Desk's chart pane, any Desk. 200 `Changed`, `node` `desk/<id>/chart[/<pane>]/view`; 400 `bad_ask` a width or spacing that is not a positive number; 404 an unknown Desk or pane",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Width"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the chart bar width",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/undo": {
      "post": {
        "description": "no body; the window's Cmd+Z on the Desk's last-interacted pane — chart objects only, a venue action never undoes. 200 `UndoStep`; 409 `not_active`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UndoStep"
                }
              }
            },
            "description": "A chart step undone or redone."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Undo a chart change",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/update_annotation": {
      "post": {
        "description": "Change an existing annotation's style and/or label. Identify it by the `id` you learned from the chart read model. Only styling and the caption can be changed here; to move or resize an annotation use the geometry command. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnotationEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Update a chart annotation",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/update_indicator": {
      "post": {
        "description": "Change an existing indicator's parameters. Identify it by the `id` from the chart read model (or from the `node` of a prior add_indicator answer). `params` REPLACES the current parameter object wholesale: send the complete new object (e.g. {\"period\": 50}), not a partial patch. Answers `{\"node\":\"desk/<id>/chart/<pane>/indicators/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndicatorEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Update a chart indicator",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/add_annotation": {
      "post": {
        "description": "Draw a new annotation on the chart (a horizontal price line, a trendline, a rectangle, or any other drawing tool). The engine assigns the new object's id and records that the agent drew it; you do not supply an id. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`: the new id is the last segment of `node`; use it for follow-up edits. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewAnnotation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add an annotation to a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/add_indicator": {
      "post": {
        "description": "Add a built-in catalog indicator (e.g. EMA, Bollinger Bands, RSI) to a chart pane. Identify the indicator by its catalog definition (`name` or `name@version`, e.g. `macd@1`); supply `params` matching that indicator's parameter schema (both are on `read/catalog`, each row's `definition`, `defaults` and `schema`). The engine assigns the new indicator's id; you do not supply one. Answers `{\"node\":\"desk/<id>/chart/<pane>/indicators/<id>\",\"seq\":N}`: the new id is the last segment of `node`; use it to update or remove the indicator. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewIndicator"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add an indicator to a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/delete_object": {
      "post": {
        "description": "Remove an existing object, an annotation OR an indicator, by its id, as learned from the chart read model. This is undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`` (`indicators` for an indicator). A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ObjectDeletion"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Delete an object on a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/remove_indicator": {
      "post": {
        "description": "Remove an existing indicator by its id, as learned from the chart read model. This is undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/indicators/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndicatorRemoval"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove an indicator from a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/set_anchors": {
      "post": {
        "description": "Move or reshape an existing annotation by setting its anchor geometry directly, in chart {time, price} coordinates. Identify it by the `id` from the chart read model, and provide `anchors` whose `kind` matches the annotation's shape (horizontal/trendline/rectangle). This is the way to reposition or resize an annotation. Only the geometry changes; style, label, and a trendline's extend flags are left as-is. Undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Anchoring"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Move an annotation on a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/set_provider": {
      "post": {
        "description": "`Pinning`, no pane the Desk's chart pane; any Desk. 200 `Changed`, `node` `desk/<id>/chart[/<pane>]/view`, and `changed` on it; 400 `bad_ask` no `provider`, or a `pane_id` that is not the path's; 422 `not_linked` a provider not linked here (409 `vault_locked` behind the locked vault), nothing kept; 404 `desk`/`pane` (an unknown Desk or pane)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pinning"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set a chart pane's data provider",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/set_symbol": {
      "post": {
        "description": "Switch a chart pane to a different ticker symbol (the timeframe stays as-is). This is navigation, not an edit: it is not undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/view\",\"seq\":N}` once the pane is rebound; its data may still be loading (a read of that node shows it). A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SymbolPick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set a chart pane's symbol",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/set_timeframe": {
      "post": {
        "description": "Switch a chart pane to a different timeframe (the symbol stays as-is). This is navigation, not an edit: it is not undoable. Answers `{\"node\":\"desk/<id>/chart/<pane>/view\",\"seq\":N}` once the pane is rebound; its data may still be loading (a read of that node shows it). A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TimeframePick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set a chart pane's timeframe",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/set_view": {
      "post": {
        "description": "`ViewPicks`, at least one, the `view` node's words; any Desk, active or not; no pane is the Desk's chart pane. An absent field keeps its value, `box: null` returns to the ATR box, `compare` and `panes` are replaced whole (`[]` clears), `ratio: null` unlocks, `link: null` leaves the group (`link` also frames `changed desk/<id>/layout`, where `panes[].link` reads it), `adjust_dividends` asks a stock's bars provider for its dividend-adjusted basis (`split-dividend-spinoff`, stored apart; Taji computes none; another class keeps its provider's own) and the pane loads again, a provider that serves none refusing it as the `error` of the pair's `/ws/market` `status`, and `adjust_dividends: true` on a frozen window pane 400 `bad_ask` `adjust_dividends: an older day's window shows the stored bars, not adjusted for dividends`, `session` (`regular`\\|`extended`\\|`24h`\\|`pre`\\|`post`, the pane's bars read it as `/ws/market` does and the pane loads again) on a pane that is not an intraday stock's or future's, or a frozen window, 400 `bad_ask` `session: applies to an intraday stock's or future's bars`, `session: a future's bars take regular (RTH) or extended (its Globex session)` or `session: an older day's window shows the stored regular session`, a word off those 400 naming them, `settings` sets the fields it names and keeps the rest, one undo step (`edit settings`); a symbol or timeframe switch returns `box` to `null`, and a switch to a symbol that is not a spread `legs` to `false`. 200 `Changed`, `node` `desk/<id>/chart[/<pane>]/view`, and `changed` on that node; 400 a field off its words or none named, `settings: <why>` for a settings field it does not hold or off its words, `panes` without exactly one `main`, a `share` not > 0, two `maximized` or an id twice; 404 `desk`/`pane` (an unknown Desk or pane); 400 `bad_ask` `at most 3 compared`, `<style>: needs tick data; Taji charts 1m and up` for `volume_footprint`, `tpo` and `session_volume_profile`, `compare holds the pane's own symbol`, `legs on a pane that is not a spread`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewPicks"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set a chart pane's view",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/set_visible_range": {
      "post": {
        "description": "Zoom/pan a chart pane so the given UTC-seconds time window fills it (zoom-to-fit; the price axis auto-fits to the window's bars). A window inside the loaded data answers `{\"node\":\"desk/<id>/chart/<pane>/view\",\"seq\":N}`; one before it answers 202 `{\"node\":\".../view\"}` while older history loads, and the view is unchanged until a later frame; one the data cannot cover is refused with the loaded extent in `reason`. It is never clamped. This is navigation, not an edit: it is not undoable. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RangePick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set a chart pane's visible range",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/set_width": {
      "post": {
        "description": "`Width`, the window's; no pane the Desk's chart pane, any Desk. 200 `Changed`, `node` `desk/<id>/chart[/<pane>]/view`; 400 `bad_ask` a width or spacing that is not a positive number; 404 an unknown Desk or pane",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Width"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set a chart pane's bar width",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/update_annotation": {
      "post": {
        "description": "Change an existing annotation's style and/or label. Identify it by the `id` you learned from the chart read model. Only styling and the caption can be changed here; to move or resize an annotation use the geometry command. Answers `{\"node\":\"desk/<id>/chart/<pane>/objects/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnotationEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Update an annotation on a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/chart/{pane}/update_indicator": {
      "post": {
        "description": "Change an existing indicator's parameters. Identify it by the `id` from the chart read model (or from the `node` of a prior add_indicator answer). `params` REPLACES the current parameter object wholesale: send the complete new object (e.g. {\"period\": 50}), not a partial patch. Answers `{\"node\":\"desk/<id>/chart/<pane>/indicators/<id>\",\"seq\":N}`. A refusal is `{\"error\",\"reason\"}` (400 `bad_ask` carries `violations` to fix and retry).\nthe tool's own input with `pane_id` from the path, as `NewAnnotation`, `AnnotationEdit`, `ObjectDeletion`, `Anchoring`, `NewIndicator`, `IndicatorEdit`, `IndicatorRemoval`, `SymbolPick`, `TimeframePick` or `RangePick`: the window's own `preview`, `was`, `expect` and `client` (`update_indicator`) and `pan` (`set_visible_range`) ride beside it, none in the row's `schema`; 200 `Changed` (`seq` the `desk/<id>/undo` frame's where one follows the object's, else the object's), 400 `bad_ask` the ingest rejection (with `command_kind` and `violations`), 409 `declined` the dispatch's. A `set_visible_range` that starts behind the loaded extent and ends inside it loads the history instead of refusing: 202 `Changed`, `node` `…/chart/view`, then `changed …/chart/view` once the range is applied, `failed …/chart/view range_unavailable` when the history runs out first (8 chunks at most), or `failed …/chart/view history_refused: <the hub's words>` when the hub refuses a chunk, which ends nothing: the next such ask loads again; 409 `a history load is already in flight` while one is — the App holds one such load, whoever asked; 409 `history_loading` for a `set_visible_range` while a history load is in flight",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pane",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndicatorEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Update an indicator on a chart pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/delete": {
      "post": {
        "description": "`Nothing`; 200 `DeskRef` — the Desk leaves the list and its directory goes, and its Agent panel chats are closed and forgotten, as is one still opening, and nothing is filed under it again (a chat moved out of it stays; one moved onto it whose home Desk remains is filed back there, unpinned, its title and text kept, an open one running on); 404 `desk` (a Desk the list does not hold). The last Desk goes too, leaving none. When the active Desk went, `changed ui/active`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeskRef"
                }
              }
            },
            "description": "The Desk a verb acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Delete a desk",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/indicators/check": {
      "post": {
        "description": "`IndicatorCheck` — `write`'s compile and check, nothing stored: 200 `IndicatorChecked`; 400 `source` or `test` as `write`, 404 `desk` (a Desk the list does not hold). Blocks as `write` does",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndicatorCheck"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndicatorChecked"
                }
              }
            },
            "description": "What `indicators/check` found; nothing is stored."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Check a custom indicator",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/indicators/test": {
      "post": {
        "description": "`IndicatorTest` — `test`, else the version's stored tests, run against `definition`: 200 `IndicatorTested`; 404 `definition` for one the Desk does not hold, 400 `test` when none is given or stored, 404 `desk` (a Desk the list does not hold). Blocks as `write` does",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IndicatorTest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndicatorTested"
                }
              }
            },
            "description": "A version's tests, run."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Test a custom indicator",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/indicators/write": {
      "post": {
        "description": "`CustomIndicator` — a TypeScript indicator (`@taji/indicators`) and its tests, compiled and checked on the V8 lane at the manifest's defaults over a fixed 15-minute fixture, then stored as the Desk's next version, `indicators/<name>/<N>.ts` (and `<N>.test.ts`) in its directory, never rewritten. A binding's bare `name` follows the latest version and `name@N` pins; the indicator pass runs before the answer, so the next `get/indicators` reads the new version. 200 `{\"definition\": \"<name>@<N>\", \"report\": {bars, ms, plots, logs, invariants, tests, fault, drawings}}` (`drawings` `{lines, labels, boxes, polylines, tables, cards, bar_categories}`, the counts the fixture run holds at its end (`bar_categories` the `bars` panel's categories, 0 with none); each invariant compares the final drawings too); a `source` and `test` identical to the latest version's answer it and store nothing. 400 `name` (`[a-z][a-z0-9_]`, 64 at most, no registered indicator's), 400 `source` or `test` past 256 KiB, 422 `{\"error\": \"compile\", \"errors\": [{line, column, message}]}`, 422 `{\"error\": \"check\", \"report\"}` for a fault, a failed invariant or a failed test, 409 `stateless`, 404 `desk` for a Desk the list does not hold. Blocks the kernel's turn, bounded by the lane's budgets: up to five fixture runs of at most 1 s each, typically under 50 ms in all",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomIndicator"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndicatorWritten"
                }
              }
            },
            "description": "A version of a Desk's indicator, stored or already held."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Write a custom indicator",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/add_pane": {
      "post": {
        "description": "Add one pane to the layout against an anchor pane (name it: the default is the focused pane, which the user may move mid-turn): `left`, `right`, `above` or `below` halves the anchor's stack, the new pane on that side, and `tab` adds it to the anchor's stack as its active tab; `position` defaults to `right`. A split that leaves a half under its panes' least size in the canvas's 24 lines (a chart 6x6 columns by rows) is refused (`no_room`); with no anchor named, a pane with no room beside the focused one lands in the largest stack with room. In an empty layout the pane fills the canvas. Supply `window` to freeze the new pane to a historical range (evidence exhibit). Answers `{\"node\",\"pane_ids\":[<new id>]}`: the pane EXISTS, though its data may not have loaded (it fills behind a skeleton). A refusal is `{\"error\",\"reason\"}`: 400 `bad_ask` with `violations` for a body the schema refuses, 404 `unknown_pane`, 409 `no_room`, or 409 `declined`, its `reason` led by `range_unavailable` and the available extent for a bad `window`. For a side-by-side COMPARISON, `chart.set_layout` with a fitting preset gives every pane an even share. Reserve this tool for purely additive intent (\"also open X\"). `kind` defaults to `chart`, on `symbol` (an item, `kind:text`) and `timeframe` where given, else the focused chart's (a `window` needs both); any other kind takes neither.\n`LayoutReshape`, `NewPane`, `PaneRemoval`, `PaneFocus` or `PaneRekind`, the generated schema's own input (`SetLayoutCmd`, `AddPaneCmd`, `RemovePaneCmd`, `FocusPaneCmd`, `SetKindCmd`); 200 `Panes`. A pane is of a `kind`: `chart`, `ladder`, `book`, `watchlist` or an enabled plugin's pane word `<plugin>.<word>` (an installed plugin's are its `GET /read/plugins` row's `ui.panes`; a compiled-in plugin's are its manifest's), the `kind` each `layout.panes[]` row carries; a pane whose plugin is since disabled or gone is kept as it is; only a chart has a symbol, timeframe, window and `chart/<pane>` node, the others follow the focused chart, or their link group's (`set_link`) (`book` the stage). `add_pane {kind?, anchor_pane_id?, position?}` places the pane against the anchor (the focused pane by default): `left`, `right` (the default), `above` and `below` halve the anchor's stack, `tab` joins it as its active tab, and in an empty layout it fills the canvas; `kind` defaults to `chart`, on `symbol` and `timeframe` where given, else the focused chart's (with none, the desk's last; a `window` needs both), and any other kind takes neither (else 400); a `set_layout` slot's `kind` rekinds that slot, an unlisted new slot is a chart; `set_kind {pane_id, kind, symbol?, timeframe?}` rekinds in place, same id and place, a new chart taking the focused chart's symbol and timeframe where none is given and a chart leaving taking its indicators with it. 400 a body the schema refuses, 404 `unknown_pane`, 409 `no_room` a split that leaves a half under its panes' least size, or a `tab` onto a stack under the pane's, a `set_kind` into a stack under the new kind's, or a `set_layout` whose slot leaves a pane (a slot's `kind` taken as the pane) under its kind's, each changing nothing (in the canvas's 24 lines, columns by rows: a chart 6x6, a ladder 5x7, a book 7x4, a chain 9x7, any other kind 3x3; an add with no `anchor_pane_id` first tries the largest stack with room, at `position` and then a quarter turn from it), 409 `declined` the plan's or the apply's own words (`would_close_user_panes`, `range_unavailable` with the extent, `<word> is not a pane kind of an enabled plugin`). The window and the wire share one apply path, so a change here redraws",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewPane"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/close_pane": {
      "post": {
        "description": "`PaneClosing`; the window's ⌘W addressed by id — any pane, whoever opened it, focused or not; closing the last pane leaves the layout empty. 200 `Changed`, `node` `desk/<id>/layout`, and `changed desk/<id>/layout`; 404 `pane` (`pane_id` not a pane of the Desk), `desk`; 409 `not_active`. `remove_pane` keeps its provenance and focus refusals: it is the agent's tool, this is the user's key",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaneClosing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Close a pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/focus_pane": {
      "post": {
        "description": "Move focus (the active-pane highlight + scroll) to a pane: the narration camera, focus each pane as you describe it. This is view state, not an edit: not undoable. Answers `{\"node\",\"pane_ids\":[…]}`; `pane_ids` is empty. A refusal is `{\"error\",\"reason\"}`: 400 `bad_ask` with `violations`, 404 `unknown_pane`, 409 `no_room` or `declined`.\n`LayoutReshape`, `NewPane`, `PaneRemoval`, `PaneFocus` or `PaneRekind`, the generated schema's own input (`SetLayoutCmd`, `AddPaneCmd`, `RemovePaneCmd`, `FocusPaneCmd`, `SetKindCmd`); 200 `Panes`. A pane is of a `kind`: `chart`, `ladder`, `book`, `watchlist` or an enabled plugin's pane word `<plugin>.<word>` (an installed plugin's are its `GET /read/plugins` row's `ui.panes`; a compiled-in plugin's are its manifest's), the `kind` each `layout.panes[]` row carries; a pane whose plugin is since disabled or gone is kept as it is; only a chart has a symbol, timeframe, window and `chart/<pane>` node, the others follow the focused chart, or their link group's (`set_link`) (`book` the stage). `add_pane {kind?, anchor_pane_id?, position?}` places the pane against the anchor (the focused pane by default): `left`, `right` (the default), `above` and `below` halve the anchor's stack, `tab` joins it as its active tab, and in an empty layout it fills the canvas; `kind` defaults to `chart`, on `symbol` and `timeframe` where given, else the focused chart's (with none, the desk's last; a `window` needs both), and any other kind takes neither (else 400); a `set_layout` slot's `kind` rekinds that slot, an unlisted new slot is a chart; `set_kind {pane_id, kind, symbol?, timeframe?}` rekinds in place, same id and place, a new chart taking the focused chart's symbol and timeframe where none is given and a chart leaving taking its indicators with it. 400 a body the schema refuses, 404 `unknown_pane`, 409 `no_room` a split that leaves a half under its panes' least size, or a `tab` onto a stack under the pane's, a `set_kind` into a stack under the new kind's, or a `set_layout` whose slot leaves a pane (a slot's `kind` taken as the pane) under its kind's, each changing nothing (in the canvas's 24 lines, columns by rows: a chart 6x6, a ladder 5x7, a book 7x4, a chain 9x7, any other kind 3x3; an add with no `anchor_pane_id` first tries the largest stack with room, at `position` and then a quarter turn from it), 409 `declined` the plan's or the apply's own words (`would_close_user_panes`, `range_unavailable` with the extent, `<word> is not a pane kind of an enabled plugin`). The window and the wire share one apply path, so a change here redraws",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaneFocus"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Focus a pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/move_pane": {
      "post": {
        "description": "Move one pane, the popup included, to a place against an anchor pane, as `add_pane` places a new one: it leaves its stack (a stack left empty is removed and its sibling takes the space), then lands. Onto its own stack as `tab`, or beside itself as its stack's only tab, nothing changes. `no_room` when the anchor's stack cannot split; nothing changes on a refusal.\n`PaneMove`, `SplitResize` or `PanePopup`, the generated schema's own input (`MovePaneCmd`, `ResizeCmd`, `PopupCmd`); 200 `Panes`, and `changed desk/<id>/layout`. `move_pane {pane_id, anchor_pane_id?, position, layout?}` lifts a pane, the popup included, out of its stack (a stack left empty is removed, its sibling taking its place) and lands it as `add_pane` places one; onto its own stack as `tab`, or beside itself as its stack's only tab, nothing changes. With `layout` the pane may be in any of the Desk's layouts and lands in that one, which becomes active (`changed desk/<id>/layouts`); an unknown `layout` is 404 `layout`, as `layouts/pick` answers it. `resize {split, at}` moves that split's line to canvas line `at`, clamped so each stack beside the line keeps its panes' least size, as `no_room` lists them (where no line holds both sides, it stays), and no other line; never refused for `at`. `popup {kind, symbol?, timeframe?, rect?}` answers the popup when it is of `kind`, else a pane of `kind` in the stacks, focused, else a new popup of `kind` (a chart on `symbol` and `timeframe`, else the focused chart's); it never closes a pane; `rect` `{x, y, w, h}` in px is kept as the layout's `popup_rect`. `pane_ids` the pane `popup` answers, else empty. 400 a body the schema refuses, 404 `unknown_pane` a pane or anchor the layout has none of, 404 `unknown_split`, 409 `no_room`, 409 `popup_open` while a pane of another kind is the popup; a refusal's `reason` is its sentence without its code",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaneMove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Move a pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/popup": {
      "post": {
        "description": "Open a pane of `kind` as the popup, the one pane outside the layout's stacks: the popup already of that kind is answered; else a pane of that kind already in the stacks is focused and answered; else a new pane of it becomes the popup. While a pane of another kind is the popup it is refused (`popup_open`): close that one first with `close_pane`. It never closes a pane. `pane_ids` is the pane answered.\n`PaneMove`, `SplitResize` or `PanePopup`, the generated schema's own input (`MovePaneCmd`, `ResizeCmd`, `PopupCmd`); 200 `Panes`, and `changed desk/<id>/layout`. `move_pane {pane_id, anchor_pane_id?, position, layout?}` lifts a pane, the popup included, out of its stack (a stack left empty is removed, its sibling taking its place) and lands it as `add_pane` places one; onto its own stack as `tab`, or beside itself as its stack's only tab, nothing changes. With `layout` the pane may be in any of the Desk's layouts and lands in that one, which becomes active (`changed desk/<id>/layouts`); an unknown `layout` is 404 `layout`, as `layouts/pick` answers it. `resize {split, at}` moves that split's line to canvas line `at`, clamped so each stack beside the line keeps its panes' least size, as `no_room` lists them (where no line holds both sides, it stays), and no other line; never refused for `at`. `popup {kind, symbol?, timeframe?, rect?}` answers the popup when it is of `kind`, else a pane of `kind` in the stacks, focused, else a new popup of `kind` (a chart on `symbol` and `timeframe`, else the focused chart's); it never closes a pane; `rect` `{x, y, w, h}` in px is kept as the layout's `popup_rect`. `pane_ids` the pane `popup` answers, else empty. 400 a body the schema refuses, 404 `unknown_pane` a pane or anchor the layout has none of, 404 `unknown_split`, 409 `no_room`, 409 `popup_open` while a pane of another kind is the popup; a refusal's `reason` is its sentence without its code",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PanePopup"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Open a popup pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/remove_pane": {
      "post": {
        "description": "Remove a pane THIS AGENT created earlier (e.g. an evidence pane that no longer earns its space). Panes the user created, and the currently-active pane, are refused. Answers `{\"node\",\"pane_ids\":[…]}`; `pane_ids` is empty. A refusal is `{\"error\",\"reason\"}`: 400 `bad_ask` with `violations`, 404 `unknown_pane`, 409 `no_room` or `declined`.\n`LayoutReshape`, `NewPane`, `PaneRemoval`, `PaneFocus` or `PaneRekind`, the generated schema's own input (`SetLayoutCmd`, `AddPaneCmd`, `RemovePaneCmd`, `FocusPaneCmd`, `SetKindCmd`); 200 `Panes`. A pane is of a `kind`: `chart`, `ladder`, `book`, `watchlist` or an enabled plugin's pane word `<plugin>.<word>` (an installed plugin's are its `GET /read/plugins` row's `ui.panes`; a compiled-in plugin's are its manifest's), the `kind` each `layout.panes[]` row carries; a pane whose plugin is since disabled or gone is kept as it is; only a chart has a symbol, timeframe, window and `chart/<pane>` node, the others follow the focused chart, or their link group's (`set_link`) (`book` the stage). `add_pane {kind?, anchor_pane_id?, position?}` places the pane against the anchor (the focused pane by default): `left`, `right` (the default), `above` and `below` halve the anchor's stack, `tab` joins it as its active tab, and in an empty layout it fills the canvas; `kind` defaults to `chart`, on `symbol` and `timeframe` where given, else the focused chart's (with none, the desk's last; a `window` needs both), and any other kind takes neither (else 400); a `set_layout` slot's `kind` rekinds that slot, an unlisted new slot is a chart; `set_kind {pane_id, kind, symbol?, timeframe?}` rekinds in place, same id and place, a new chart taking the focused chart's symbol and timeframe where none is given and a chart leaving taking its indicators with it. 400 a body the schema refuses, 404 `unknown_pane`, 409 `no_room` a split that leaves a half under its panes' least size, or a `tab` onto a stack under the pane's, a `set_kind` into a stack under the new kind's, or a `set_layout` whose slot leaves a pane (a slot's `kind` taken as the pane) under its kind's, each changing nothing (in the canvas's 24 lines, columns by rows: a chart 6x6, a ladder 5x7, a book 7x4, a chain 9x7, any other kind 3x3; an add with no `anchor_pane_id` first tries the largest stack with room, at `position` and then a quarter turn from it), 409 `declined` the plan's or the apply's own words (`would_close_user_panes`, `range_unavailable` with the extent, `<word> is not a pane kind of an enabled plugin`). The window and the wire share one apply path, so a change here redraws",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaneRemoval"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove an agent's pane",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/resize": {
      "post": {
        "description": "Move one split's boundary to a line of the canvas's 24, clamped so every stack keeps its panes' least size; no other boundary moves. Never refused for the line it names: with no line that holds both sides, it stays.\n`PaneMove`, `SplitResize` or `PanePopup`, the generated schema's own input (`MovePaneCmd`, `ResizeCmd`, `PopupCmd`); 200 `Panes`, and `changed desk/<id>/layout`. `move_pane {pane_id, anchor_pane_id?, position, layout?}` lifts a pane, the popup included, out of its stack (a stack left empty is removed, its sibling taking its place) and lands it as `add_pane` places one; onto its own stack as `tab`, or beside itself as its stack's only tab, nothing changes. With `layout` the pane may be in any of the Desk's layouts and lands in that one, which becomes active (`changed desk/<id>/layouts`); an unknown `layout` is 404 `layout`, as `layouts/pick` answers it. `resize {split, at}` moves that split's line to canvas line `at`, clamped so each stack beside the line keeps its panes' least size, as `no_room` lists them (where no line holds both sides, it stays), and no other line; never refused for `at`. `popup {kind, symbol?, timeframe?, rect?}` answers the popup when it is of `kind`, else a pane of `kind` in the stacks, focused, else a new popup of `kind` (a chart on `symbol` and `timeframe`, else the focused chart's); it never closes a pane; `rect` `{x, y, w, h}` in px is kept as the layout's `popup_rect`. `pane_ids` the pane `popup` answers, else empty. 400 a body the schema refuses, 404 `unknown_pane` a pane or anchor the layout has none of, 404 `unknown_split`, 409 `no_room`, 409 `popup_open` while a pane of another kind is the popup; a refusal's `reason` is its sentence without its code",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SplitResize"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Resize a pane split",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/set_kind": {
      "post": {
        "description": "Change what one pane shows, in place: same id, same place. To `chart` it takes `symbol` (an item, `kind:text`) and `timeframe`, else the focused chart's; off `chart` its indicators and drawings go. The layout's last chart pane cannot change kind.\n`LayoutReshape`, `NewPane`, `PaneRemoval`, `PaneFocus` or `PaneRekind`, the generated schema's own input (`SetLayoutCmd`, `AddPaneCmd`, `RemovePaneCmd`, `FocusPaneCmd`, `SetKindCmd`); 200 `Panes`. A pane is of a `kind`: `chart`, `ladder`, `book`, `watchlist` or an enabled plugin's pane word `<plugin>.<word>` (an installed plugin's are its `GET /read/plugins` row's `ui.panes`; a compiled-in plugin's are its manifest's), the `kind` each `layout.panes[]` row carries; a pane whose plugin is since disabled or gone is kept as it is; only a chart has a symbol, timeframe, window and `chart/<pane>` node, the others follow the focused chart, or their link group's (`set_link`) (`book` the stage). `add_pane {kind?, anchor_pane_id?, position?}` places the pane against the anchor (the focused pane by default): `left`, `right` (the default), `above` and `below` halve the anchor's stack, `tab` joins it as its active tab, and in an empty layout it fills the canvas; `kind` defaults to `chart`, on `symbol` and `timeframe` where given, else the focused chart's (with none, the desk's last; a `window` needs both), and any other kind takes neither (else 400); a `set_layout` slot's `kind` rekinds that slot, an unlisted new slot is a chart; `set_kind {pane_id, kind, symbol?, timeframe?}` rekinds in place, same id and place, a new chart taking the focused chart's symbol and timeframe where none is given and a chart leaving taking its indicators with it. 400 a body the schema refuses, 404 `unknown_pane`, 409 `no_room` a split that leaves a half under its panes' least size, or a `tab` onto a stack under the pane's, a `set_kind` into a stack under the new kind's, or a `set_layout` whose slot leaves a pane (a slot's `kind` taken as the pane) under its kind's, each changing nothing (in the canvas's 24 lines, columns by rows: a chart 6x6, a ladder 5x7, a book 7x4, a chain 9x7, any other kind 3x3; an add with no `anchor_pane_id` first tries the largest stack with room, at `position` and then a quarter turn from it), 409 `declined` the plan's or the apply's own words (`would_close_user_panes`, `range_unavailable` with the extent, `<word> is not a pane kind of an enabled plugin`). The window and the wire share one apply path, so a change here redraws",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaneRekind"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Change a pane's kind",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/set_layout": {
      "post": {
        "description": "Split or reshape the Desk's layout, its charts and other panes, to a named preset and bind its slots — e.g. a 2×2 of historical evidence panes around a live chart. On a Desk with no panes, this creates the first projection. GROW-OR-REBIND ONLY: a preset smaller than the current pane count is rejected (`would_close_user_panes`) — this tool never closes panes. Slots are the preset's stacks in reading order, 0-based, and the layout's panes fill them in that order; unlisted slots keep/inherit their binding; a slot with `window` becomes a frozen historical exhibit. Answers `{\"node\",\"pane_ids\":[…]}`, the layout's pane ids in slot order (use them to target follow-up tools); the panes fill behind skeletons, so a read of `desk/<id>/chart` shows the loaded state. A refusal is `{\"error\",\"reason\"}`: 400 `bad_ask` with `violations` for a body the schema refuses, 404 `unknown_pane`, 409 `no_room`, or 409 `declined`, its `reason` led by `range_unavailable` and the available data extent for a bad window, or by `would_close_user_panes`. Comparison / side-by-side asks (\"next to\", \"beside\", \"compare\") belong here — a fitting preset (e.g. `two_col`) gives every pane an even share of the canvas.\n`LayoutReshape`, `NewPane`, `PaneRemoval`, `PaneFocus` or `PaneRekind`, the generated schema's own input (`SetLayoutCmd`, `AddPaneCmd`, `RemovePaneCmd`, `FocusPaneCmd`, `SetKindCmd`); 200 `Panes`. A pane is of a `kind`: `chart`, `ladder`, `book`, `watchlist` or an enabled plugin's pane word `<plugin>.<word>` (an installed plugin's are its `GET /read/plugins` row's `ui.panes`; a compiled-in plugin's are its manifest's), the `kind` each `layout.panes[]` row carries; a pane whose plugin is since disabled or gone is kept as it is; only a chart has a symbol, timeframe, window and `chart/<pane>` node, the others follow the focused chart, or their link group's (`set_link`) (`book` the stage). `add_pane {kind?, anchor_pane_id?, position?}` places the pane against the anchor (the focused pane by default): `left`, `right` (the default), `above` and `below` halve the anchor's stack, `tab` joins it as its active tab, and in an empty layout it fills the canvas; `kind` defaults to `chart`, on `symbol` and `timeframe` where given, else the focused chart's (with none, the desk's last; a `window` needs both), and any other kind takes neither (else 400); a `set_layout` slot's `kind` rekinds that slot, an unlisted new slot is a chart; `set_kind {pane_id, kind, symbol?, timeframe?}` rekinds in place, same id and place, a new chart taking the focused chart's symbol and timeframe where none is given and a chart leaving taking its indicators with it. 400 a body the schema refuses, 404 `unknown_pane`, 409 `no_room` a split that leaves a half under its panes' least size, or a `tab` onto a stack under the pane's, a `set_kind` into a stack under the new kind's, or a `set_layout` whose slot leaves a pane (a slot's `kind` taken as the pane) under its kind's, each changing nothing (in the canvas's 24 lines, columns by rows: a chart 6x6, a ladder 5x7, a book 7x4, a chain 9x7, any other kind 3x3; an add with no `anchor_pane_id` first tries the largest stack with room, at `position` and then a quarter turn from it), 409 `declined` the plan's or the apply's own words (`would_close_user_panes`, `range_unavailable` with the extent, `<word> is not a pane kind of an enabled plugin`). The window and the wire share one apply path, so a change here redraws",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutReshape"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Panes"
                }
              }
            },
            "description": "What a layout verb answers: the node, and the panes the apply returned."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Apply a layout preset",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/set_link": {
      "post": {
        "description": "`PaneLink`; any Desk, a pane of its active layout of any kind. A chart's group is its `view.link`, as `set_view {link}` writes it; another kind in a group follows that group's first chart in tree order (the popup last), else the focused chart, and a chart switch in the group never binds it. 200 `Changed`, `node` `desk/<id>/layout`, and `changed desk/<id>/layout` (a chart's also `changed` on its `view`); the pane's `layout.panes[].link` reads it, absent in none. 400 a body off its words, 404 an unknown Desk or a pane not in the active layout",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaneLink"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set a pane's link group",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layout/set_sync": {
      "post": {
        "description": "`SyncPatch`, at least one, the active layout's; any Desk, active or not. With `symbol` (`interval`) on, a change on one chart pane frames `changed` per pane moved; turning one on aligns nothing, the next change syncs. 200 `Changed`, `node` `desk/<id>/layout`, and `changed desk/<id>/layout`; 400 a body naming none or a non-boolean; 404 an unknown Desk",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set layout sync",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layouts/add": {
      "post": {
        "description": "any Desk. `add` (`LayoutAddition`) opens a layout at the end of the strip, active, over one chart pane on the focused chart's symbol and timeframe, then applies `preset` and `panes` as `set_layout` takes them before the answer; 200 `NewLayout`. `copy` (`LayoutCopy`) opens a copy of the active layout at the end of the strip, active: its panes, bindings, indicators, view picks and sync under new pane and indicator ids; drawings are the Desk's, kept by symbol, so they are shared, not copied, and every pane on a drawing's symbol lists it in `chart/objects`, a pane-scoped one still naming its original pane, none of the copy's; 200 `NewLayout`. Each frames `changed desk/<id>/layouts`, and `changed desk/<id>/layout` when the active grid changed. 400 a blank `name`, 400 an arrangement `set_layout` refuses, 409 `declined` its apply's refusal (the new layout is removed), 404 an unknown Desk",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutAddition"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewLayout"
                }
              }
            },
            "description": "What `layouts/add` and `layouts/copy` answer: the layout opened."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a layout",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layouts/copy": {
      "post": {
        "description": "any Desk. `add` (`LayoutAddition`) opens a layout at the end of the strip, active, over one chart pane on the focused chart's symbol and timeframe, then applies `preset` and `panes` as `set_layout` takes them before the answer; 200 `NewLayout`. `copy` (`LayoutCopy`) opens a copy of the active layout at the end of the strip, active: its panes, bindings, indicators, view picks and sync under new pane and indicator ids; drawings are the Desk's, kept by symbol, so they are shared, not copied, and every pane on a drawing's symbol lists it in `chart/objects`, a pane-scoped one still naming its original pane, none of the copy's; 200 `NewLayout`. Each frames `changed desk/<id>/layouts`, and `changed desk/<id>/layout` when the active grid changed. 400 a blank `name`, 400 an arrangement `set_layout` refuses, 409 `declined` its apply's refusal (the new layout is removed), 404 an unknown Desk",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutCopy"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewLayout"
                }
              }
            },
            "description": "What `layouts/add` and `layouts/copy` answer: the layout opened."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Copy a layout",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layouts/order": {
      "post": {
        "description": "any Desk; `LayoutOrdering`, every layout's id once, in the new strip order, kept in `layout.json`; 200 `Changed`, `node` `desk/<id>/layouts`, framed `changed desk/<id>/layouts`. 400 `bad_ask` an `ids` that is not each layout once (nothing moves), 404 an unknown Desk",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutOrdering"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Reorder layouts",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layouts/pick": {
      "post": {
        "description": "any Desk. `pick` (`LayoutId`) makes one active: the grid it held comes back, panes, bindings, indicators, focus and sync, while annotations, series, watches and the watchlist stay the Desk's (a new layout's sync is the default); `rename` (`LayoutRenaming`); `remove` (`LayoutId`), the active one handing over to its left neighbour, else its right; 200 `Changed`, `node` `desk/<id>/layouts`. Each frames `changed desk/<id>/layouts`, and `changed desk/<id>/layout` when the active grid changed. 400 a blank `name` or a missing `id`, 409 `last_layout`, 404 `desk`/`layout` (an unknown Desk or layout); 500 `restore` where the picked layout could not be restored",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutId"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Activate a layout",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layouts/remove": {
      "post": {
        "description": "any Desk. `pick` (`LayoutId`) makes one active: the grid it held comes back, panes, bindings, indicators, focus and sync, while annotations, series, watches and the watchlist stay the Desk's (a new layout's sync is the default); `rename` (`LayoutRenaming`); `remove` (`LayoutId`), the active one handing over to its left neighbour, else its right; 200 `Changed`, `node` `desk/<id>/layouts`. Each frames `changed desk/<id>/layouts`, and `changed desk/<id>/layout` when the active grid changed. 400 a blank `name` or a missing `id`, 409 `last_layout`, 404 `desk`/`layout` (an unknown Desk or layout); 500 `restore` where the picked layout could not be restored",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutId"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove a layout",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/layouts/rename": {
      "post": {
        "description": "any Desk. `pick` (`LayoutId`) makes one active: the grid it held comes back, panes, bindings, indicators, focus and sync, while annotations, series, watches and the watchlist stay the Desk's (a new layout's sync is the default); `rename` (`LayoutRenaming`); `remove` (`LayoutId`), the active one handing over to its left neighbour, else its right; 200 `Changed`, `node` `desk/<id>/layouts`. Each frames `changed desk/<id>/layouts`, and `changed desk/<id>/layout` when the active grid changed. 400 a blank `name` or a missing `id`, 409 `last_layout`, 404 `desk`/`layout` (an unknown Desk or layout); 500 `restore` where the picked layout could not be restored",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LayoutRenaming"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Rename a layout",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/notes/add": {
      "post": {
        "description": "a desk note, `DeskNote` — what an external agent wrote on the Desk, which persists across a relaunch; 200 `NewNote`, 400 an empty `text`, 404 `desk` (a Desk the list does not hold)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeskNote"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewNote"
                }
              }
            },
            "description": "What `notes/add` answers: the Desk's notes, counted."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a desk note",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/rename": {
      "post": {
        "description": "`Nothing`, `DeskName`; 200 `DeskRef`, 404 `desk` for a Desk the list does not hold",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeskName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeskRef"
                }
              }
            },
            "description": "The Desk a verb acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Rename a desk",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/series/add": {
      "post": {
        "description": "`SeriesAddition` — draw a registered `series:<name>` column on the pane as an indicator, over the rows it holds; 200 `NewSeriesBinding`. 400 a missing `pane_id`/`dataset` or a `dataset` without the `series:` prefix, 404 `no_dataset` or a pane this Desk has none of, 400 `bad_ask` for a registered file, an `available` or a `column`, the `reason` naming the columns; 500 `registration` for a dataset with no registration, 500 `rows` for rows the store will not read",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeriesAddition"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewSeriesBinding"
                }
              }
            },
            "description": "What `series/add` answers: the binding made."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a chart series",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/series/remove": {
      "post": {
        "description": "`SeriesRemoval` — 200 `Changed`, `node` `desk/<id>/series`, 404 an id this Desk has no bound row for. The chart's `remove_indicator` and `delete_object` on the series' pane take the same id and remove it the same way; 404 `series` for an id no bound series has",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SeriesRemoval"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove a chart series",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/switch": {
      "post": {
        "description": "`Nothing`, `DeskName`; 200 `DeskRef`, 404 `desk` for a Desk the list does not hold",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeskRef"
                }
              }
            },
            "description": "The Desk a verb acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Switch to a desk",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/symbol_notes/add": {
      "post": {
        "description": "`SymbolNoteDraft` — a note on `symbol`, or on none, 200 `NewSymbolNote`, framed. 400 an empty `text`, 404 `desk` (an unknown Desk)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SymbolNoteDraft"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewSymbolNote"
                }
              }
            },
            "description": "What `symbol_notes/add` answers: the new note."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a symbol note",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/symbol_notes/edit": {
      "post": {
        "description": "`SymbolNoteEdit` (the note's text, made newest) / `SymbolNoteId`; each 200 `Changed`, `node` `desk/<id>/symbol_notes`, framed. 400 an empty `text` or a missing `id`, 404 `desk`/`note` (an unknown Desk or `id`)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SymbolNoteEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Edit a symbol note",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/symbol_notes/remove": {
      "post": {
        "description": "`SymbolNoteEdit` (the note's text, made newest) / `SymbolNoteId`; each 200 `Changed`, `node` `desk/<id>/symbol_notes`, framed. 400 an empty `text` or a missing `id`, 404 `desk`/`note` (an unknown Desk or `id`)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SymbolNoteId"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove a symbol note",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watches/add": {
      "post": {
        "description": "`AlertSpec`: an alert, of one of the forms the type's description lists. A move is judged only while its bars reach the one before the forming bar, else its row's `waiting` says why. A drawing's level is computed each poll from the annotation as it stands, at the open of the bar now on `interval` (absent, the chart pane's): a line's and a channel's in the bar-index space of the span the symbol's chart loads (its horizon, session and provider; the bar now one past the last closed bar read, as the chart draws its forming bar), a drag re-seeding the side so it never fires. A `trend_line`, `ray`, `extended_line`, `horizontal_line` or `horizontal_ray` takes `crosses`, `crosses_up`, `crosses_down`, `above`, `below`; a `parallel_channel` the four channel words; a `rectangle` those and `above` (over its top), `below` (under its bottom), within its time span; a `vertical_line` `crosses` alone, once, firing on the first poll its bar has opened (a time passed while Taji was closed is missed, said on the row). An indicator condition's plot names an indicator, looked up in this order: a built-in (`rsi`, a chart `indicators` row's `definition.id`), else an installed plugin's script by its bare name or at its plugin's semver `version` (`<name>@0.1.0`), else, for a name with no `.`, the Desk's custom, bare (`rsi_ts`) or at an integer `@N` (`rsi_ts@2`), which never names a plugin's script. It is pinned at add to the version it names then: a built-in's (`rsi@1`), a custom's (`rsi_ts@<latest>`), a plugin's script's at its plugin's `version` (`<name>@<version>`); once that version is no longer installed, the row reads `refused` `no indicator <name>@<version>`, as it does once its custom is deleted. A plugin's layer (`<plugin>.<word>`) draws no plot and is refused. Its `params` are checked by its schema (a script's, by its inputs) and kept as given (a later pane edit leaves the alert), its `plot` one of its `series`, its `title` the legend's words the message uses (absent, `<name> (<param values>)`, the name without its pin); read each poll off the kernel's instance of it on the symbol's `interval` (absent, the chart pane's) in its `session`, whether or not a chart is open: the chart's own instance where a chart shows it there, so it reads the value the pane's legend and `get/indicators` show. A plot's move reads its own closed values back; a level against a plot takes any finite number. `and` is one more price or move condition (a drawing's or an indicator's a price's alone), both holding on one poll; `session` absent is the chart's: the chart pane's pick on an intraday equity's or future's chart of its `interval`, else `regular`. 200 `NewWatch`; fed by the hub's one live quote upstream for the symbol and session, shared with `hold=<ms>` reads; a symbol no provider streams reads `refused` and never fires. Each fire is a desk note `<message>: <spot>` by `watch:<id>` plus a frame on `desk/<id>/watches`; each crossing, entering or exiting needs two polls, the first seeding the side. An instant fires ONCE at the first such instant after it was added, on the kernel's watch poll, the note `<message>: HH:MM ET`, the default message `Time alert`. An expired alert notes `<message>: expired`; a `schedule`'s span is in the display timezone (`ui/display_tz`, the row's `schedule_tz`), past midnight when `to` is before `from` and the whole day when equal. 400 an empty `symbol`, a `when` outside the thirteen, an unknown member, a `price` or channel `upper` that is not positive or equals `price`, a move's `value` or `bars` out of range, an `interval` that is not an interval word, an `and` of more than one, holding a drawing or an indicator condition, or a move beside either, an `of` that is a number, a plot naming no built-in, plugin script or Desk custom (`no indicator custom on this desk`, a dataset's), a layer or an indicator that draws no plot (`<name> draws no plot`), whose `params` its schema refuses (`rsi params: …`) or that draws no such `plot` (`plot is one of rsi`), `\"price\"` against the price, a `drawing` this Desk has no annotation for (`no drawing <id>`), of a kind that takes no alert, with a `when` its kind does not take (`a trendline takes crosses, …`), a vertical line `every` or whose bar has opened, a drawing on a Desk whose chart is a brick style (`an alert on a drawing needs a time-based chart`), a drawing's other than its chart's (`an alert on a drawing reads its chart's session`), a `fire` that does not decode or no session day reaches, a member of the wrong type, a bad `expires_utc` or `notify`; 409 `duplicate` when an active or paused row already says this",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertSpec"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewWatch"
                }
              }
            },
            "description": "What `watches/add` answers: the watch made, and what its feed and level say now."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a watch",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watches/clear_log": {
      "post": {
        "description": "Clear log. `Nothing`: every watch's `fires` dropped, each keeping its `state`. 200 `Changed`, framing `changed desk/<id>/watches`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Clear the watch log",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watches/clone": {
      "post": {
        "description": "Clone. `WatchIds`: its source's trigger and options (`name`, `message`, `trigger`, `expires_utc`, `notify`) with no fires, whatever the source's state: the one path past `add`'s `duplicate`. 200 `ClonedWatches`, framing `changed desk/<id>/watches`; 400 `ids` empty; 404 `watch`/`desk` (`no watch <id>`); 400 `bad_ask` `expired <id>` for a source whose `expires_utc` has passed, or a drawing copy `add` would refuse (a vertical line whose bar has opened; nothing cloned)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WatchIds"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClonedWatches"
                }
              }
            },
            "description": "What `watches/clone` answers: the copies made."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Clone a watch",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watches/edit": {
      "post": {
        "description": "`AlertEdit`: any member `add` takes, over the watch's own (its `session` kept unless named; a drawing's re-read from its chart; a partial `notify` changes only the keys it names), checked as `add` checks it (a drawing's alert becomes a price or a move only with `\"drawing\": null`, else 400); the watch is then `active` again (Save, and its Restart with no other member). 200 `Changed`; 400 no `id`, a member `add` does not take, or an edited watch `add` would refuse (a past `expires_utc` included); 404 `watch`/`desk` (an id this Desk has no watch for)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Edit a watch",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watches/pause": {
      "post": {
        "description": "`WatchId`: an `active` watch is `paused` until an `edit`. 200 `Changed`; 404 `watch`/`desk` (an id this Desk has no watch for), 409 `not_active`",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WatchId"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Pause a watch",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watches/read": {
      "post": {
        "description": "Mark as read. `WatchFires`: every fire of the watches `ids` names read, every watch's when absent. 200 `Changed`, framing `changed desk/<id>/watches`; 400 `at_utc` without exactly one id; 404 `watch`/`desk` (an id this Desk has no watch for)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WatchFires"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Mark watches read",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watches/remove": {
      "post": {
        "description": "`WatchId`: 200 `Unwatched`, 404 `watch`/`desk` (an id this Desk has no watch for)",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WatchId"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unwatched"
                }
              }
            },
            "description": "What `watches/remove` answers: the id of the watch removed."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove a watch",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/add": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewListing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add to the watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/clear": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Clear the watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/copy": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListRename"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Copy a watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/create": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Create a watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/delete": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Delete a watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/flag": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListingFlag"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Flag a watchlist row",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/pick": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Pick a watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/remove": {
      "post": {
        "description": "`Listing`: unlists the row from the active list; 200 `Unlisted`, a frame on `desk/<id>/watchlist`, 404 `symbol`/`desk` (one not listed, an unknown Desk), 400 naming a missing or malformed member",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Listing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unlisted"
                }
              }
            },
            "description": "What `watchlist/remove` answers: the row it unlisted."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove from the watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/rename": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListRename"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Rename a watchlist",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/set": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListDisplay"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set watchlist display",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/watchlist/unflag_all": {
      "post": {
        "description": "the active list, or with `list` the list of that name (404 one there is not). `add` `NewListing`: one item listed as `kind:key`, or `###<name>` a section row kept as written; at row index `at`, else the end. `set` `ListDisplay`: the members named, `columns` kept in the order above. `create` `ListName`: a new empty list, made active; `rename` `ListRename`; `pick` `ListName`: another list, made active. `flag` `ListingFlag`; `unflag_all` `Nothing`: every flag; `copy` `ListRename`: the active list copied under `name`, made active, or the list `list` copied under `name` beside it, the active list staying; `clear` `Nothing`: the active list's rows emptied; `delete` `ListName`: a list not active, 409 `list_shown` the active one. Each 200 `Changed`, a frame on `desk/<id>/watchlist` then and whenever a row's figures move. 400 naming a missing or malformed member (`set` with none: `columns, logo or show`; `at` past the end; a section flagged names `symbol`), 409 `duplicate` a listed row or a list name taken, 404 `desk`/`list` (an unknown Desk or list); 409 `list_full` for a list at its cap",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Clear all watchlist flags",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desk/{id}/write": {
      "post": {
        "description": "`DeskFile`; 200 `DeskWritten` and `changed desk/<id>/instructions` or `changed desk/<id>/documents`. 400 any other `file`, 400 a file past the cap, 409 `stateless` for a Desk with no directory, 404 a Desk the list does not hold",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeskFile"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeskWritten"
                }
              }
            },
            "description": "A file written under a Desk."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Write a desk file",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desks/new": {
      "post": {
        "description": "`Founding`; 200 `DeskFounded` — a Desk whose chart pane inherits the active one's binding (`TAJI_SYMBOL` with no active Desk, and the new one becomes active), its directory made before the answer and `DESK.md` holding `instructions` when given (`path` is `null` under `TAJI_STATELESS=1`, and `instructions` then go nowhere). 400 a blank `name`, instructions that are not text or past 64 KiB; 500 `desk_failed` where the new desk's chart could not open",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Founding"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeskFounded"
                }
              }
            },
            "description": "A Desk founded."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Create a desk",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/desks/order": {
      "post": {
        "description": "`DeskOrdering`, every Desk's id once, in the new order: `GET /read/desks` lists in it, and a relaunch keeps it (the settings key `desks.order`); 200 `Changed`, `node` `desks`, framed `changed desks`. 400 `bad_ask` an `ids` that is not each Desk once (nothing moves)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeskOrdering"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Reorder desks",
        "tags": [
          "Desks and charts"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/flow/hand": {
      "post": {
        "description": "`Handoff`: starts a new chat on the active Desk of `agent` when given, else the last Desk's installed agent (else the first installed in `ADAPTERS` order), holding Claude in Chrome when that agent is Claude Code, and asks it the flow's `prompt`: 200 `FlowHanded`, the flow read then serves it as `hand`, `Agent::hand`'s refusal otherwise (400 `bad_agent` with no agent installed or `agent` not one installed, 409 `busy` while another agent's Agent answers), 409 `no_desk` with no Desk; 404 `flow` for an unknown flow or one whose `prompt` is `null`. By hand alone (the agent token is 403 `scope`); 409 `no_agent` while no desk has started a chat",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Handoff"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowHanded"
                }
              }
            },
            "description": "A flow's prompt handed to a new chat."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Hand a flow to the agent",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/flow/mark": {
      "post": {
        "description": "`Mark`: the `do` step the flow last passed, or `null` for none; kept at `<state dir>/flows.json` `{<flow>: {step, at_utc}}`, `at_utc` UTC seconds, mode 0600, and survives a relaunch: a position, not a fact, any scope writes it and it unlocks nothing; 200 `FlowMarked`, 400 `bad_ask` unless `flow` is a non-empty string and `step` a non-empty string or `null`, 404 `step` for an unknown flow or a step the flow's manifest lacks (a mark whose step a later manifest lacks is not read), 500 `io`. Framed `changed flows`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Mark"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowMarked"
                }
              }
            },
            "description": "The `do` step a flow now stands marked at."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Mark a flow step",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/flow/need": {
      "post": {
        "description": "`Need`: whether the step the agent is doing waits on the user's own hand, kept in memory on the flow's hand-off and served as `hand.state` `needs_you`; cleared by `need: false`, the flow's next `flow/mark`, the chat's next prompt or its turn ending; 200 `FlowNeeded`, `needs` `false` with no hand-off on the flow; 400 `bad_ask`, 404 `flow`. Framed `changed flows` when it changes",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Need"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowNeeded"
                }
              }
            },
            "description": "Whether the step the agent is doing on a flow waits on the user's own hand."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set whether a flow waits on the user",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/flow/open": {
      "post": {
        "description": "`Opening`: opens the step's place (`https://` in a browser, or a macOS table target), or with `step: \"after\"` the flow's `after_open`; 200 `FlowOpened`, 400 `bad_ask` unless both are non-empty strings, 404 `step` for an unknown flow or step or one with no `open` (no `after_open`), 422 `not_macos` for a table target off macOS",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Opening"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowOpened"
                }
              }
            },
            "description": "What `flow/open` did."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Open a flow step",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/flow/pass": {
      "post": {
        "description": "`Passing`: moves the hand-off on `flow` onto `to`, its `flow/need` cleared, so `hand` is served on `to` and `null` on `flow`; the chat it follows is the same, and its close ends it on `to`. `first`'s chat passes so once the user picks a form; 200 `FlowPassed`, `passed` `false` with no hand-off on `flow`; 400 `bad_ask` unless both are strings, 404 `flow` when either is unknown. A status, not a grant. Framed `changed flows` when it moves",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Passing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowPassed"
                }
              }
            },
            "description": "Whether a hand-off moved."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Pass a flow hand-off",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/flow/secret": {
      "post": {
        "description": "`Carried`: carries a secret field for the flow's next post in memory, or drops it when `value` is `null`; 200 `FlowCarried`, 400 `bad_ask` unless `flow` and `field` are non-empty strings and `value` a string or `null`, 400 `value` for an empty string, 404 `step` for an unknown flow, 404 `field` for a non-secret field, a `held` one (a password the user types) or a form with no post",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Carried"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowCarried"
                }
              }
            },
            "description": "The secret fields held for a flow's next post, by name."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Carry a flow secret",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/flow/take": {
      "post": {
        "description": "`Taking`: the user takes the flow back: its hand-off dropped and that chat's running turn cancelled as `agent/cancel` cancels it; the chat stays open and the flow's mark stays. 200 `FlowTaken`, `taken` `false` with no hand-off on `flow`; 404 `flow` when unknown. Framed `changed flows` and `changed agent`. Never held; the agent token is 403 `scope`; asking again is `flow/hand`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Taking"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowTaken"
                }
              }
            },
            "description": "Whether a flow was taken back."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Take a flow back",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/account/alias": {
      "post": {
        "description": "`AccountAlias` — what the user reads an account as, renamed whenever they like; nothing routes by it. 200 `Changed`, `node` `link`, and `changed link`; 400 `alias` for a blank one, one over 64 characters, or one another row already holds; 404 `account` for an id this device has no row for; 409 `write` for a row the filesystem would not take",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountAlias"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Rename an account",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/accounts/{handle}/approvals": {
      "post": {
        "description": "`ApprovalsSwitch` — whether the trading verbs that can send an order on this row wait for the user's approval but on the by-hand token; every row kind takes it, and it is the user's alone (`agent` 403 `scope`), turning off approvals that are on the by-hand token's alone (403 `hand`, any verb, below). 200 `AccountChanged`, the row as `link.accounts` reads it, and `changed link`; 400 `on` for a missing or non-bool one, 404 `account` for a handle this device has no row for, 409 `locked` on a venue row while the vault is `locked`, nothing written",
        "parameters": [
          {
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApprovalsSwitch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountChanged"
                }
              }
            },
            "description": "What `link/accounts/<handle>/{approve,approvals}` answer: the row as `link.accounts` reads it, else the node when no trusted row lists it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set an account's approval requirement",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "window",
          "scopes": [
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/accounts/{handle}/approve": {
      "post": {
        "description": "`RoutingConsent` — whether the router may choose this LIVE row for an order that names no account; the click is the consent, and no phrase, and a call but the by-hand token's parks for the user's approval, a plain page's or the sheet's 409 `not_by_hand` (any verb, below). 200 `AccountChanged`, the row as `link.accounts` reads it, and `changed link`; 400 `approved` for a missing or non-bool one, 404 `account` for a handle this device has no row for, 409 `locked` on a live row while the vault is `locked`, nothing written. A paper or sim row accepts it and stays approved",
        "parameters": [
          {
            "in": "path",
            "name": "handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoutingConsent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountChanged"
                }
              }
            },
            "description": "What `link/accounts/<handle>/{approve,approvals}` answer: the row as `link.accounts` reads it, else the node when no trusted row lists it."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Allow routing to a live account",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "hand",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/data/budget": {
      "post": {
        "description": "`DataBudget`: the device's data budget, written to `<state dir>/data_budget.json`, which holds every fetch; 0 counts as set. 200 `BudgetSet` and `changed link`; 400 `data_budget`. The sheet's metered-source and budget forms post it; the `agent` and `page` tokens are 403 `scope`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataBudget"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BudgetSet"
                }
              }
            },
            "description": "What `link/data/budget` answers: the budget as written."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the data budget",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/data/link": {
      "post": {
        "description": "`DataKey`; 400 `bad_ask` (`provider is not one that links a key or signs in`) for a provider word this build does not have or a provider that takes no key (the metered, keyed and series sources, a captured sign-in and a plugin whose `[sign_in]` is a key do), a missing `key`, a missing `secret` for a captured sign-in or a `secret` (`secret is for a captured sign-in`) for any other, 409 `{\"error\": \"budget_unset\", \"needs\": \"link/data/budget\"}` for a metered provider (`link.metered`) while the device's data budget is unset, before any vendor call, 409 `vault` while the vault is not open, 409 `linking` while a venue link is in flight; 200 `DataLinked` and `changed link`. It BLOCKS on the vendor first, on the provider's own check (each vendor GET five seconds at most; the metered source prices one daily bar and buys none; the keyed source one stocks minute-bars GET and, on its 200, each class's sockets, which set the plan; a series source one `series` GET; a plugin whose `[sign_in]` is a key its process's `check`, within its `call_timeout_s`; a captured sign-in the token grant, whose rotated token is sealed into the checked sign-in before it is used, then a streaming-token GET; a yes seals the pair, then the rotation), and only the vendor's yes seals the key: any other answer is 409 `rejected`, `reason` the vendor's own words, and a vendor that cannot be reached is 502 `unreachable`; both seal nothing and frame `failed link`. The key never comes back out. A data link touches neither the venue nor the arm. The `agent` token's call parks for the user's approval (any verb, below), and `read/approvals` serves none of its body but its `venue`, `provider`, `env` and `live`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataKey"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataLinked"
                }
              }
            },
            "description": "What `link/data/link` answers: the node, and for a keyed source its plan per class."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Link a data source",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/data/unlink": {
      "post": {
        "description": "`DataSource`; 200 `DataUnlinked` — the key leaves the vault, or a plugin's sign-in, its login forgotten; 400 `bad_ask` as for the link (a plugin that signs in is taken by either kind), 409 `vault` when the delete was refused. The `agent` token's call parks for the user's approval (any verb, below), and `read/approvals` serves none of its body but its `venue`, `provider`, `env` and `live`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataSource"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataUnlinked"
                }
              }
            },
            "description": "What `link/data/unlink` answers."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Unlink a data source",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/plugin/oauth": {
      "post": {
        "description": "`PluginSignIn` — signed in as `venue/oauth` signs in, on the user's own app: the kernel opens the manifest's `authorize` page (`link.linking.url` carries it), holds the declared callback's loopback (an `https://127.0.0.1` one on the state dir's loopback leaf), exchanges the code at its `token` url by Basic or the form as `client_auth` says, with PKCE where `pkce`, and BLOCKS for the sign-in, five minutes at most: 200 `PluginSignedIn` once the sign-in is sealed under the plugin's id and its process greeted with it (no account rows: a sign-in reads data), or 409 `denied`/`exchange`/`cancelled`, `port`/`callback` before the page opens, 504 `timeout`; `changed link`/`failed link` frame the same. 409 `vault` while the vault is not open; 400 `bad_ask` for a plugin that does not sign in by OAuth or a missing `client_id`/`client_secret`. The client id and secret cross in the request only; a refresh its token url refuses marks `data.<plugin>.expired` until it signs in again",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginSignIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSignedIn"
                }
              }
            },
            "description": "What `link/plugin/oauth` answers once a plugin's sign-in is sealed."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Sign in to a plugin",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/prefer": {
      "post": {
        "description": "`Preference`: the listed `data` sources lead every unpinned read and stream of the class in that order, each skipped while it is off or not seated and kept in the list, the rest after them by the hub's rule. 200 `Preferred` and `changed link`; 400 `kind`/`value` for a missing one or a `class` that is not a class word, `value` for a `data` value that is no list of words or names one twice, an `orders` value that is no word, or a routing word that is neither; 409 `unlinked` for a handle this device has no row for or a provider it holds no credential for (a `data` word already in the class's list is let stay), 409 `incapable` for a row whose venue does not trade the class or a provider whose facts read the class in no product, 400 `kind`/`class` for a pairing that half has not got. A preference is a preference: one `orders` value per class serves both sides, and a paper handle is simply ignored for a `live: true` order — the route's `why` says so. Unlinking a data provider (`link/data/unlink`) or the last record of a venue drops its word from every `data` list",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Preference"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Preferred"
                }
              }
            },
            "description": "What `link/prefer` answers: the node and the preference as it stands."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set data source preference",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/enroll_device": {
      "post": {
        "description": "`Nothing` / `PasswordProof` — the device slot: the kernel asks the device itself (Touch ID, through `taji-unlock` beside its binary; one prompt each, `cancelled` once unanswered for 60 s), and the device's secret never crosses the wire. `unlock_device` opens the vault through the slot as `unlock` does with the password, and starts the TTL as it does, while unlocked too; `enroll_device` on an open vault proves `password`, the backup password, against the password slot (blank: 400; wrong or missing: 409 `wrong_password`, no prompt, nothing written; a session the device opened is not proof), then asks the device for a new slot and writes it over the open vault's, replacing any, a refused ask leaving the old one. No verb removes the slot. 200 `VaultStanding` and `changed link`; 409 `no_device` (no slot), `device_invalid` (the slot no longer derives: a changed enrolment or another device's file; the password opens it, then `enroll_device` again), `device_unavailable`, `cancelled`, `not_sealed` (`unlock_device`), `unsealed` (`enroll_device`), `locked` (a lock overtook it, or `enroll_device` with nothing open, before `password` is tried), `vault_busy`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordProof"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultStanding"
                }
              }
            },
            "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Enroll a device in the vault",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/forget": {
      "post": {
        "description": "`Unlocking` / `Nothing`; 200 `VaultStanding`, 409 the refusal in one word. `unlock` answers before the boot it started lands: a row it brings up reads `connecting` until then, one it carries stays `bound`, `settling`. `mint`, `unlock`, `rekey`, `prove`, `unlock_device` and `enroll_device` derive their key or ask the device off the loop, blocking until it answers: while one runs, every other credential verb but `lock` is 409 `{\"error\": \"vault_busy\", \"verb\"}`, and a `lock` wins over an `unlock` or an `unlock_device`, the unlock it overtook answering 409 `locked`, runs at once over an `enroll_device`, which answers 409 `locked` whether or not its write landed first, or a `prove`, which answers 409 `locked`, and waits for a `mint` or a `rekey` to land, then locks. `forget` deletes every credential and the agent mark (`agent.json`, framing `agent`). A lock stops nothing running: bound accounts, running seats and the hub's built clients keep what they hold; what needs the vault next is refused; 409 `wrong_password` for a password the vault does not open",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultStanding"
                }
              }
            },
            "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Erase the vault",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/lock": {
      "post": {
        "description": "`Unlocking` / `Nothing`; 200 `VaultStanding`, 409 the refusal in one word. `unlock` answers before the boot it started lands: a row it brings up reads `connecting` until then, one it carries stays `bound`, `settling`. `mint`, `unlock`, `rekey`, `prove`, `unlock_device` and `enroll_device` derive their key or ask the device off the loop, blocking until it answers: while one runs, every other credential verb but `lock` is 409 `{\"error\": \"vault_busy\", \"verb\"}`, and a `lock` wins over an `unlock` or an `unlock_device`, the unlock it overtook answering 409 `locked`, runs at once over an `enroll_device`, which answers 409 `locked` whether or not its write landed first, or a `prove`, which answers 409 `locked`, and waits for a `mint` or a `rekey` to land, then locks. `forget` deletes every credential and the agent mark (`agent.json`, framing `agent`). A lock stops nothing running: bound accounts, running seats and the hub's built clients keep what they hold; what needs the vault next is refused; 409 `wrong_password` for a password the vault does not open",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultStanding"
                }
              }
            },
            "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Lock the vault",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/mint": {
      "post": {
        "description": "`Sealing` — seals the vault under `password`, minted when absent, and with `device` `true` a device slot too, in one write: the kernel asks the device first (one prompt), so a refused ask seals nothing (without one the password alone opens it until `enroll_device`); 200 `VaultMinted` (the one answer that ever carries a secret) before the boot it started lands (a row it brings up reads `connecting` until then, one it carries stays `bound`, `settling`); 400 `bad_device` for any `device` but `true` or `false`; 409 `already_sealed`, `vault_busy`, `device_unavailable` (no sensor, no helper, or the OS will not ask now), `cancelled` (dismissed, or unanswered for 60 s), `vault`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Sealing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultMinted"
                }
              }
            },
            "description": "What `vault/mint` answers: the backup password, the one answer that ever carries a secret."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Create the vault",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/prove": {
      "post": {
        "description": "`PasswordProof` — whether `password`, the backup password, opens the open vault's password slot, as `rekey` proves `current`; nothing written, no boot, the lock clock untouched. 200 `VaultStanding`, 400 `password` blank, 409 `locked`/`unsealed` (before `password` is tried), `wrong password` (`password` wrong or missing)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordProof"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultStanding"
                }
              }
            },
            "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Verify the vault password",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/rekey": {
      "post": {
        "description": "`Rekeying` — re-seal every record under the new `password` once `current`, the backup password, opens the password slot (proven before anything is written: a session the device opened is not proof); the vault stays open. 200 `VaultStanding`, 400 `current` blank, 409 `locked`/`unsealed` when there is nothing open to re-seal (before `current` is tried), `wrong password` (`current` wrong or missing; nothing written). The old password stops working at the next unlock",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Rekeying"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultStanding"
                }
              }
            },
            "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Change the vault password",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/ttl": {
      "post": {
        "description": "`LockAfter` — the absolute lock after an unlock, on (12) or off, written to `<state dir>/vault.json` `{\"ttl_hours\"}` (absent is 12); 200 `VaultTtl` and `changed link`, 400 `hours` for any other value",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LockAfter"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultTtl"
                }
              }
            },
            "description": "What `vault/ttl` answers: the absolute lock after an unlock."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the vault lock timer",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/unlock": {
      "post": {
        "description": "`Unlocking` / `Nothing`; 200 `VaultStanding`, 409 the refusal in one word. `unlock` answers before the boot it started lands: a row it brings up reads `connecting` until then, one it carries stays `bound`, `settling`. `mint`, `unlock`, `rekey`, `prove`, `unlock_device` and `enroll_device` derive their key or ask the device off the loop, blocking until it answers: while one runs, every other credential verb but `lock` is 409 `{\"error\": \"vault_busy\", \"verb\"}`, and a `lock` wins over an `unlock` or an `unlock_device`, the unlock it overtook answering 409 `locked`, runs at once over an `enroll_device`, which answers 409 `locked` whether or not its write landed first, or a `prove`, which answers 409 `locked`, and waits for a `mint` or a `rekey` to land, then locks. `forget` deletes every credential and the agent mark (`agent.json`, framing `agent`). A lock stops nothing running: bound accounts, running seats and the hub's built clients keep what they hold; what needs the vault next is refused; 409 `wrong_password` for a password the vault does not open",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Unlocking"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultStanding"
                }
              }
            },
            "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Unlock the vault",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/vault/unlock_device": {
      "post": {
        "description": "`Nothing` / `PasswordProof` — the device slot: the kernel asks the device itself (Touch ID, through `taji-unlock` beside its binary; one prompt each, `cancelled` once unanswered for 60 s), and the device's secret never crosses the wire. `unlock_device` opens the vault through the slot as `unlock` does with the password, and starts the TTL as it does, while unlocked too; `enroll_device` on an open vault proves `password`, the backup password, against the password slot (blank: 400; wrong or missing: 409 `wrong_password`, no prompt, nothing written; a session the device opened is not proof), then asks the device for a new slot and writes it over the open vault's, replacing any, a refused ask leaving the old one. No verb removes the slot. 200 `VaultStanding` and `changed link`; 409 `no_device` (no slot), `device_invalid` (the slot no longer derives: a changed enrolment or another device's file; the password opens it, then `enroll_device` again), `device_unavailable`, `cancelled`, `not_sealed` (`unlock_device`), `unsealed` (`enroll_device`), `locked` (a lock overtook it, or `enroll_device` with nothing open, before `password` is tried), `vault_busy`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VaultStanding"
                }
              }
            },
            "description": "What the vault verbs `unlock`, `lock`, `forget`, `unlock_device`, `enroll_device`, `rekey` and `prove` answer: where the vault stands."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Unlock the vault with the device",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/venue/cancel": {
      "post": {
        "description": "`Nothing`; ends the link in flight: its blocked call answers 409 `cancelled` (framed `failed link`, read at `last.err`) and this one 200 `LinkCancelled`; 409 `idle` when nothing is in flight. The one credential verb the lock admits",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkCancelled"
                }
              }
            },
            "description": "What `link/venue/cancel` answers: the link in flight ended."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Cancel a link in progress",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/venue/link": {
      "post": {
        "description": "`VenueLink` — `live` seals the pair under the venue's live record and mints a live account row; on the agentic venue it is live either way (the venue has no paper account) and the pair is the grant's `{key: refresh token, secret: DCR client id}`; on a gateway venue there is no pair and `live?: bool` is the live-intent rule's (`env: live` without `live: true` 409 `live_intent`, `live: true` on paper 409 `not_live`, before the vault): the ceremony walks this env's ports on 127.0.0.1 (paper 4002 then 7497, live 4001 then 7496) and client ids 1701, 1703, 1705 on 326, and seals the Gateway whose login lists the env's accounts as `{key: host:port, secret: client id}` (under its live record for live); a typed `key`+`secret` is the scripted override; it fails `not_running` (no port accepted TCP), `unreachable` (the handshake or the listing failed), `client_id` (every id 326), `no_accounts`, or `env` when the login's accounts are not the env's (`DU` is paper); on a futures venue the body is `{name, password, cid, sec}` in place of a pair (a missing field is 400 naming it): the kernel logs in on the env's host (demo for paper), lists the accounts and seals `{method: login, name, password, cid, sec, device_id}` (under its live record for live; `device_id` minted once and kept across relinks), a refused login answering 409 `{\"error\": \"denied\", \"reason\": <the venue's errorText>, \"record\"}` and a locked-out one `captcha` or `penalized`; 409 `vault` before any dial on a vault that is not open (any venue), 400 `bad_ask` for a venue word this build does not have, for an `env` of any other word, `live` on a venue whose live credential is not a pasted pair (the refresh-token venue signs in), or `paper` on a venue with no paper account. It BLOCKS until the link ends (90 s at most, then `timeout`), never for the boot it starts: 200 `VenueLinked` once the record is sealed and its rows minted, each row as `link.accounts` says it then (on a first link or a rotation `state` `connecting`, `bound` false, `reason` `connecting to <venue>`, while the boot it started brings the row up; `bound` only where nothing boots, `settling` true on a row an earlier flight still carries), and the venue's tier (`null` for none), or 409 `{error, reason, record}` with the tag word; `changed link`/`failed link` frame the same, and the row's `bound` arrives on a later `changed link` frame or a read of `link/accounts`. Every credential verb (`vault/*`, `venue/*` but `cancel`, `data/*`) is 409 `{\"error\": \"linking\", \"record\", \"verb\"}` while a link is in flight. On a venue that is already linked, `venue/link` REPLACES the stored pair and boots the order path again on it — the rotation is the same act as the first link. The `agent` token's call parks for the user's approval (any verb, below), and `read/approvals` serves none of its body but its `venue`, `provider`, `env` and `live`; 409 `gateway`, `captcha`, `client_id`, `env_mismatch`, `no_accounts`, `not_running`, `penalized` or `record` as the venue refuses, 502 `unreachable` where it does not answer",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VenueLink"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VenueLinked"
                }
              }
            },
            "description": "What `link/venue/{link,oauth,start,redetect}` answer once the record is sealed and its rows minted, before the boot that binds them."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Link a venue",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/venue/oauth": {
      "post": {
        "description": "`VenueSignIn` — `callback` an OAuth venue's alone, whose loopback serves TLS on one leaf certificate kept in the state dir, which macOS asks once to trust (the browser warns only where it is not trusted); that venue's rows are live, it has no paper; on it a body with neither `key` nor `secret` signs in again on the sealed record's key, secret and callback (a `callback` given wins), 409 `key` with none sealed. The kernel opens the venue's sign-in page itself (`link.linking.url` carries it), holds a loopback listener for the redirect, and BLOCKS for the sign-in, five minutes at most: `venue/link`'s 200 once the record, key and secret with it, is sealed and its rows minted, or 409 `denied`/`exchange`/`invalid_key`/`cancelled`, 504 `timeout`. 409 `vault` while the vault is not open; 400 `bad_ask` for a venue word this build does not have, a venue that takes a key instead, any other callback or one on a venue that fixes its own, a `key`/`secret` missing, a `callback` not a string. On the refresh-token venue, `refresh_token` given skips the sign-in page and the loopback: the kernel mints a token off it, lists the accounts and seals the same record, 409 `exchange` (the grant refused) or `invalid_key` (the accounts read refused) with nothing sealed; 400 `bad_ask` for `refresh_token` on any other venue, with a `callback`, or not a string; it crosses in the request only. The key and secret cross in the request only, never in an answer or a frame. The `agent` token's call parks for the user's approval (any verb, below), and `read/approvals` serves none of its body but its `venue`, `provider`, `env` and `live`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VenueSignIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VenueLinked"
                }
              }
            },
            "description": "What `link/venue/{link,oauth,start,redetect}` answer once the record is sealed and its rows minted, before the boot that binds them."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Sign in to a venue",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/venue/redetect": {
      "post": {
        "description": "`Nothing` — probe the stored key again for its plan tier, BLOCKING as `venue/link` does (90 s at most): its 200, rows as `venue/link`'s, once the tier is written to `venue.tier`, 409 `storage_failed` when nothing is linked or the vault holds none, 409 `method` for a venue with no tier to probe",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VenueLinked"
                }
              }
            },
            "description": "What `link/venue/{link,oauth,start,redetect}` answer once the record is sealed and its rows minted, before the boot that binds them."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Re-detect a venue plan",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/venue/redirect": {
      "post": {
        "description": "`SignInRedirect` — the URL checked as the loopback checks it (each value percent-decoded, our `state`, the callback's path), its code handed to the sign-in in flight, whose blocked `venue/oauth` answers the verdict; this one 200 `RedirectHanded`, 409 `idle` with no OAuth sign-in waiting, `denied` for `error=` or another `state`, `redirect` for no code or another path; 400 `url` missing. The URL is never echoed or logged; the link lock admits it. The `agent` token's call parks for the user's approval (any verb, below), and `read/approvals` serves none of its body but its `venue`, `provider`, `env` and `live`; 409 `redirect` for a pasted URL with no code or on another path",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignInRedirect"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RedirectHanded"
                }
              }
            },
            "description": "What `link/venue/redirect` answers: the pasted URL was handed to the sign-in in flight."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Hand over a sign-in redirect",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/venue/start": {
      "post": {
        "description": "`SignInStart`, 200 `VenueStart`; 400 `bad_ask` for a word neither the agentic venue nor a captured provider's. A captured provider starts `taji-link <provider>` beside the kernel and answers 200 `WebStarted` at once (409 `linking` while an earlier one's `taji-link` still runs, 409 `vault` while the vault is not open, 500 `spawn` when it cannot start): it opens the user's own Chrome on the provider's login and posts the pair it captures to `link/data/link`, whose verdict is `link.last` (`verb` `data/link`) and a `changed link` or `failed link` frame naming the provider; one that ends without posting (no Chrome, Chrome closed, the sign-in left, a kill) is refused the same way, `verb` `venue/start` and `err` `taji-link ended (<its exit status>)`, then `: ` and its last stderr line, and the kernel ends the Chrome it left and removes its temporary profile. The agentic venue's sign-in is the kernel's own OAuth grant: register a client, open its consent screen in the browser (`link.linking.url` carries it), catch the redirect on a loopback port, exchange, list the one Agentic account, then `link/venue/link`'s sealing path. BLOCKS for the sign-in, five minutes at most: `venue/link`'s 200, 409 `vault` before any grant while the vault is not open, else 409 `register_refused`, `denied`, `exchange`, `no_agentic`, `many_agentic`, `invalid_key` or `cancelled`, or 504 `timeout`. The `agent` token's call parks for the user's approval (any verb, below), and `read/approvals` serves none of its body but its `venue`, `provider`, `env` and `live`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignInStart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VenueStart"
                }
              }
            },
            "description": "What `link/venue/start` answers: a public client's sign-in sealed as `link/venue/link` seals a record, or a captured provider's `taji-link` running."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Start a venue sign-in",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/link/venue/unlink": {
      "post": {
        "description": "`VenueUnlink`; 200 `VenueUnlinked` — the key leaves the vault, the arms that read it come down, and every account row reading that record binds nothing at the next boot; 400 `venue` or `env`; 409 `unlinked` when no record of that venue (in that env) is sealed; 409 `vault` when the delete was refused, which leaves the record sealed. An order already working stays at the venue. The `agent` token's call parks for the user's approval (any verb, below), and `read/approvals` serves none of its body but its `venue`, `provider`, `env` and `live`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VenueUnlink"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VenueUnlinked"
                }
              }
            },
            "description": "What `link/venue/unlink` answers."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Unlink a venue",
        "tags": [
          "Connections"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "always",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/plugins/disable": {
      "post": {
        "description": "`InstalledPlugin`, while Taji runs, framed `changed plugins`. `disable` records it disabled, takes it out (its verbs `unknown_route`, its nodes, link forms and skill section gone) and stops its process; its row reads `enabled: false`, `reason: \"disabled\"`. `enable` seats it again as a launch does, its process started once: 409 `consent` when what its lines say of its package is not the record's (install it again), else `install`'s refusals. Both answer 200 `Plugin`. `uninstall` takes it out, stops its process and removes its record and `<state dir>/plugins/<id>/`: 200 `Unplugged`. 409 `not_installed` for an id with no record, or one this build or `TAJI_PLUGINS` holds; 500 `io` when the record cannot be written: nothing changed for `enable` and `disable`, an `uninstall`'s link already forgotten",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstalledPlugin"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plugin"
                }
              }
            },
            "description": "A plugin (`crate::plugin`, the registry of the one seam), seated or\nrefused."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Disable a plugin",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/plugins/enable": {
      "post": {
        "description": "`InstalledPlugin`, while Taji runs, framed `changed plugins`. `disable` records it disabled, takes it out (its verbs `unknown_route`, its nodes, link forms and skill section gone) and stops its process; its row reads `enabled: false`, `reason: \"disabled\"`. `enable` seats it again as a launch does, its process started once: 409 `consent` when what its lines say of its package is not the record's (install it again), else `install`'s refusals. Both answer 200 `Plugin`. `uninstall` takes it out, stops its process and removes its record and `<state dir>/plugins/<id>/`: 200 `Unplugged`. 409 `not_installed` for an id with no record, or one this build or `TAJI_PLUGINS` holds; 500 `io` when the record cannot be written: nothing changed for `enable` and `disable`, an `uninstall`'s link already forgotten",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstalledPlugin"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plugin"
                }
              }
            },
            "description": "A plugin (`crate::plugin`, the registry of the one seam), seated or\nrefused."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Enable a plugin",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/plugins/install": {
      "post": {
        "description": "`PluginInstall`: installs or updates it while Taji runs, enabled, its process (a plugin with no `[process]` has none: its skill, link forms and scripts) started once, and answers 200 `Plugin`, its `GET /read/plugins` row, framed `changed plugins`; the plugin it replaces serves until then. Its files are `<state dir>/plugins/<id>/package-<12 hex of its sha256>/`, the artifact as packed, its record `<state dir>/plugins.json`, and each launch seats it again only while what its lines say of its package is still the record's. 404 `not_found`; 409 `consent {lines, digest}` for any other digest, `installed` for the artifact and publisher installed already, `unsupported` (a verb, node or field with no `[process]`; a `skill` other than `[\"SKILL.md\"]`), `claim` (an id this build, `TAJI_PLUGINS` or a first-party provider, venue or key record holds, or a claim the registry refuses), `manifest` (a `SKILL.md` not opening with `name` (its id) and `description` (1,024 characters at most) frontmatter, or of 500 lines or more; a rule it breaks, its `taji` range among them); 502 `artifact` (its bytes not its entry's sha256, over 64 MiB, an entry that is not a file or directory or climbs out, a name twice, or a file not the index's), `start` (no hello, its sandbox's or Python's sentence); 503 `no_registry`, 502 `signature`, `registry`; no file is written and no process run for an offer whose `refused` is set; 400 `reads` for a pane or grant reading what no route or product serves, 409 `claim` for a route or product another plugin holds, 409 `installed` for the artifact and publisher installed already",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginInstall"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Plugin"
                }
              }
            },
            "description": "A plugin (`crate::plugin`, the registry of the one seam), seated or\nrefused."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Install a plugin",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/plugins/uninstall": {
      "post": {
        "description": "`InstalledPlugin`, while Taji runs, framed `changed plugins`. `disable` records it disabled, takes it out (its verbs `unknown_route`, its nodes, link forms and skill section gone) and stops its process; its row reads `enabled: false`, `reason: \"disabled\"`. `enable` seats it again as a launch does, its process started once: 409 `consent` when what its lines say of its package is not the record's (install it again), else `install`'s refusals. Both answer 200 `Plugin`. `uninstall` takes it out, stops its process and removes its record and `<state dir>/plugins/<id>/`: 200 `Unplugged`. 409 `not_installed` for an id with no record, or one this build or `TAJI_PLUGINS` holds; 500 `io` when the record cannot be written: nothing changed for `enable` and `disable`, an `uninstall`'s link already forgotten",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstalledPlugin"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unplugged"
                }
              }
            },
            "description": "What `plugins/uninstall` answers: the plugin taken out."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Uninstall a plugin",
        "tags": [
          "Plugins"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/remote/forget": {
      "post": {
        "description": "`RemoteForget` — that phone forgotten in `remote.json`, every token minted for it refused and every connection opened with one closed: 200 `RemoteNode`; 404 `device` for an id no phone has. On the phone's door a phone forgets itself alone, another id 403 `hand`. 404 `no_node` with no arm",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoteForget"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteNode"
                }
              }
            },
            "description": "`GET /read/remote`: the arm and the phones paired through it; never a code."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Forget a paired device",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/remote/link": {
      "post": {
        "description": "no body — by hand alone (any verb, below). `on`: a new code at once. Else the arm links, serving a new loopback port, and the connection waits; another `remote/link` meanwhile answers this one 409 `superseded`. Once its host answers from the internet the phone's door opens on that port (one open on another host closed first; on the same host its paired phones kept), the arm keeps serving it, and the one live code, eight letters of `[a-km-z]` for ten minutes, replaces any other: 200 `RemotePairCode`. The phone's door refuses it 403 `hand`. 502 the arm's refusal word, else `remote` with its sentence; 404 `no_node` with no arm; 502 `remote` the arm's words where it did not open",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemotePairCode"
                }
              }
            },
            "description": "What `POST /verb/remote/link` answers, as `channels/link` does: the live\ncode, and the QR's URL carrying it in its fragment so no log holds it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Start remote access",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "window",
          "scopes": [
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/remote/sign_out": {
      "post": {
        "description": "`RemoteSignOut` — every token of that session refused; the phone's door's 1 s sweep closes every connection opened with one: 200 `RemoteNode` (with `Clear-Site-Data` when a phone signs out its own session); 404 `unknown` for an id no open session has. On the phone's door a phone signs out its own sessions alone, another's 403 `hand`. 404 `no_node` with no arm",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoteSignOut"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteNode"
                }
              }
            },
            "description": "`GET /read/remote`: the arm and the phones paired through it; never a code."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Sign out a remote session",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/remote/stop": {
      "post": {
        "description": "no body — serving ends: the arm's run and any `remote/link` in flight end (409 `superseded` to its caller), the phone's door and every connection on it close, the live code goes, and `remote.json` turns `serving` false. The sign-in, its host and the paired phones are kept: `state` `off`, no `error`, and the next `remote/link` serves and answers a code without the arm linking again. 200 `RemoteNode`; on `unset` or `off` nothing changes. 404 `no_node` with no arm",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteNode"
                }
              }
            },
            "description": "`GET /read/remote`: the arm and the phones paired through it; never a code."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Stop remote access",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/remote/unlink": {
      "post": {
        "description": "no body — `remote/stop`, then the arm signs its machine out: 200 `RemoteNode`, `state` `unset`, `host`, `owner` and `expires_utc` `null`; `remote.json` keeps the phones for a later link reaching the same host. 502 the arm's refusal word, else `remote` with its sentence, the row left `off`; 404 `no_node` with no arm",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nothing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoteNode"
                }
              }
            },
            "description": "`GET /read/remote`: the arm and the phones paired through it; never a code."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Sign out of remote access",
        "tags": [
          "Phone and channels"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/verb/report/send": {
      "post": {
        "description": "`Sending` — the one call that sends a report off the machine: a plain ustar tar of `<state dir>/reports/<id>/`, `report.json` its first entry and `sent.json` never in it, POSTed to the `report_url` setting as `application/x-tar` with `x-taji-version` and `x-taji-install` (the report's own `version` and `install_id`), bounded at 30 s. Before the post, the scan refuses 409 `{error: \"holds_secret\", reason, file, rule, field}`, never the value: `vault` (a file under `secrets/` or a `*.taji`), `account_record` (a file under `accounts/`), `wire_token` or `agent_token` (this run's `local` or `agent` token anywhere in a file), `secret_field` (a JSON text field of 12 characters or more whose key holds `KEY`, `SECRET`, `TOKEN` or `PASSWORD` in any case, `engine/crates/taji/scripts/secret_scan.sh`'s own pattern and floor) or `account_number` (an `account`, `account_id`, `AccountID`, `account_number` or like field holding five digits in a row: a venue's own number). 200 `Delivered`, `sent.json` `{sent_at, receipt}` written beside the report; 400 a body naming no `id`; 403 `reports_off` under `TAJI_NO_REPORT=1`, before anything is read; 404 `report` (no such report); 409 `{\"error\": \"sent\", receipt, sent_at}` for one already sent, nothing posted; 409 `report_url` when the setting names no site, nothing read or posted; 500 `io` the filesystem's words; 502 `send_failed` `{reason, status, path}`: `reason` the site's refusal word (`content_type`, `bad_headers`, `throttled`, `too_large`, `bad_report`, `mismatch`) with its status, or the transport's words with `null`. Every failure keeps the directory. Answered on the connection thread",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Sending"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delivered"
                }
              }
            },
            "description": "What `report/send` answers once the site took the report."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Send a report",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/report/write": {
      "post": {
        "description": "`Report` — the user's words verbatim and the agent's diagnosis labelled as its own; writes `<state dir>/reports/<id>/` and sends nothing. `id` is `<at_utc>-<6 hex>` (`20260930T142233.512Z-a1b2c3`, `at_utc` to the millisecond, no colon). In it: `report.json` `{id, kind, at_utc, words, diagnosis, version, os, install_id, desk_id, accounts, booted_at}` — `install_id` 16 random bytes hex, minted into `<state dir>/install-id` on first need and never rewritten, `desk_id` the Desk `tree/` is of (the one named, else the active one, `null` with none), `accounts` one `{handle, bound, reason}` per `link.accounts` row and nothing else of it, `booted_at` when this kernel took `taji.lock`; the last 2,000 lines of `taji.log`, of `taji.log.1` (the run before, a crash's) and of `ui.log`, each absent when its log is; and `tree/`, the recording `ui/snapshot` writes, absent with no Desk. Never the wire token or the vault. 200 `ReportWritten`; 400 a `kind` outside the two words, blank `words`, a `diagnosis` that is not text or a `desk_id` that is not a Desk's id, 404 `no desk <id>` for one the list does not hold, 413 when the directory would pass 8 MB (removed, nothing trimmed), 500 `io` the filesystem's own words",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Report"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportWritten"
                }
              }
            },
            "description": "A report written."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Write a report",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/orders/{class}/place": {
      "post": {
        "description": "`<class>` one of `equity`, `option`, `future`, `crypto`, `future_option` (404 any other word); `OrderPlacing`, `ref_price` on an option, one contract or a `Spread`, per share (a 1.00 debit costs $100 a combo); omitted, a spread's is its max loss per share, a close's its net, one contract's the price the order names (an OCO's highest), else the contract's own quote, a buy at the higher of its ask and last and a sell at its last, dated at the quote — `kind` an `OrderKind` as its serde JSON, externally tagged, its class its instrument's: `{\"Order\": {instrument, side, qty, entry?, exits?, tif, session?, notional?, effect?, constraints?, chase?}}` or `{\"Spread\": {legs: [{instrument, side, ratio, effect?}], qty, net, tif, session?, constraints?, chase?, exits?}}` (a leg's `instrument` its contract's item, `option:SPY261016P00500000`), a `Spread`'s `net` `{\"Debit\": px}`\\|`{\"Credit\": px}`\\|`\"Even\"`, 400 `the legs quote a credit of 1.20; net says debit` where the legs' net mid lies on the other side of its word, and its ratios in lowest terms (400 `ratios 2:2 are not in lowest terms`); `chase` `{every_secs, step, cap, then?}` on a `Limit` order without exits or a `Spread`: the kernel moves the working price `step` toward `cap` every `every_secs` seconds through the venue's replace (the same as `reprice`), holding its price while the order's own session is shut, `then` `hold` (omitted, rest at the cap), `cancel` (one interval past it) or `cross` (one interval past the cap, a backtest fills at the legs' natural; live, a spread is replaced to its natural each interval, another kind rests at the cap, noted), amounts in the order's own words (a credit's cap lower than its start, an even spread's a debit); 400 `cap 1.45 is not past the start 1.20 (a credit's cap is lower)`, `step 0.01 is under the tick 0.05`, `step 0.50 is over the 0.25 between 1.20 and 0.95`, `a chase needs a limit or a net price`, `<handle> does not replace <a class> order` where the row declares no replace of the class; the order's row carries `chase` `{price, steps, cap, next_at, state, note?}`, `state` `chasing`\\|`at_cap`\\|`ended`, `note` why it ended (`chase ended: filled`, `cancelled`, `repriced`, `cancelled at cap`, the venue's words with `; resting at <price>`, or `relaunch; resting at <price>`: a walk survives a reboot inside the running kernel, not a relaunch) or holds (`held: <SYM> session shut`, no cancel at the cap until it opens), `null` on an unchased order; a `Spread`'s `exits` tranches `{qty, take?, stop: {price}}` priced on the net in its word (a credit's stop above it and take below, a debit's the other way; 400 `stop 0.60 is under the credit 1.20: a credit's stop is higher`), their `qty` summing to `qty`, routed with the entry alone and held by Taji on every venue: from the entry's first fill, on each row of its live-only `spread:` `quotes` stream (`/ws/market`'s) the net is judged by `spread_stop` and a trip places the reversed spread, every leg `Close`, at its natural as the owner's `{\"Exit\": …}`, a tranche's take and stop one OCO; a stream not live leaves no net: each tranche still `supervised` notes `no net quote: <why>` (`<leg>: <why>` where a leg took it down) and nothing is judged until it is live again, when the first net past an exit fires, the span framed once per spread `failed` `spread <id> on <account>: not judged from <UTC> to <UTC>: <why>; a cross in it is not read back`; a spread with `exits` no source streams live is refused before its submit, nothing sent (`no source for <spread>: <leg>: …`); the row carries `exits` `[{tranche, qty, take, stop, state, net, sent, note}]`, `state` `supervised`\\|`suspended` (`note` `crossed its <stop\\|take> <price> at <UTC> while Taji was closed`: the first net after a relaunch or its read back was past it, framed once `failed` `flagged: spread <id> tranche <n> on <account> <note>; not sent: close it`; never judged again, it ends with the position)\\|`sent` (`sent` the close's intent id)\\|`failed` (`note` the venue's words, or why nothing was sent)\\|`ended` (`note` `cancelled`, `entry <state> unfilled`, `released: flat`, or `not supervised: relaunch` for one that ended before a relaunch: a tranche still `supervised` or `suspended` is held again at boot), `null` on any other order, `instrument` `{\"Equity\": {symbol}}`\\|`{\"Option\": {root, expiry, strike, right}}` (`root` the OCC series, `SPXW`)\\|`{\"Future\": {root, year, month}}` (`ESZ26` is `{\"root\": \"ES\", \"year\": 2026, \"month\": 12}`)\\|`{\"FutureOption\": {contract}}`\\|`{\"Crypto\": {pair}}`; `entry` an `Exec`, `exits` tranches `{qty, take?, stop: {price, limit?, adjust?}, oca?}` on the closing side, `take` a limit and `stop` a stop or stop-limit, each tranche's `qty` what it exits and their sum `qty`, an exit riding a `Market`, `Limit`, `Stop` or `StopLimit` entry; without `entry` one tranche against what is held, `side` the closing side; the word is the shape's: no exits the entry's own, one tranche `bracket` with a `take` and `oto` without, two or more `multi_bracket`, no entry `oco`, a `Spread` `multi_leg`. On an equity `session` `regular` (omitted) \\|`extended`\\|`24h`, a limit off `regular` (400 else; a venue that does not send the session refuses it `unsent`), `notional` an equity's or crypto's with no exits, `entry` also `TrailingStopLimit {trail, limit_offset}`, `Mit`, `Lit {trigger, limit}`, `Mtl` and `Auction` (the pre-open auction at a limit, `Day` alone; no venue declares it) and `tif` also `Dtc` and `{\"Gtd\": \"YYYY-MM-DD\"}` or a datetime with its offset (none 400), each sent by a gateway venue alone and refused `unsent` elsewhere, and `Gtx`, which no venue sends on an equity, and `EndOfWeek`, `EndOfMonth` and `NextEndOfMonth`, an OAuth venue's durations, sent by it alone; a tranche takes `oca?` (`cancel_with_block` omitted, `reduce_with_block`, `reduce_non_block`: a fill cuts the other exit; the word `oca`, a gateway venue alone, refused `unsent` elsewhere) and its stop `adjust?` (`{at, to}`, `to` `{\"Stop\": px}`\\|`{\"StopLimit\": {stop, limit}}`\\|`{\"TrailingStop\": {stop, trail}}`: once `at` trades the stop becomes `to`; the word `adjust`; a gateway venue adjusts a bracket's or OTO's stop alone). On an option `session?` `regular`\\|`extended`\\|`24h`, off `regular` the agentic venue alone but `extended` on a gateway venue's option order without exits, and `constraints?`: on one contract the words IB sends on an option, `discretionary_price`, `discretionary_to_limit`, `show_only`, `non_display`, a `peg` other than `best`, the ATS-route peg words, `price_mgmt`, `marketable_to_bbo`, `imbalance_only`, `post_to_ats`, `duration_secs`, `add_liquidity` and `book_only` 400 `this option kind takes no <word>: IB takes it on STK`, and on a `Spread` `route`, `all_or_none`, `block` and `algo` alone (else `… IB takes it on OPT`); every other field refused; an option order's `entry` also `Vol {volatility, per, continuous?, reference?, stock_range?, hedge?}` (IB's volatility order, the word `vol`: `volatility` a fraction > 0 per `daily`\\|`annual`, `reference` `nbbo_average` (omitted)\\|`nbbo`, `stock_range` `{lower, upper}`, `hedge` `{exec: \"Market\"\\|{\"Limit\": px}}` IB's delta-neutral order on the underlying; `Day` or `Gtc`; a gateway venue alone, refused `unsent` elsewhere); an option order with exits (a bracket's or OTO's `effect` `Open`, an OCO's `Close`, regular session) the refresh-token venue and a gateway venue; an option `Spread` 1–4 legs on one underlying. On a future `entry` also `TrailingStop`; its bracket, OTO and OCO (the equity groups' fields less `session`) the refresh-token venue and a gateway venue, its `multi_bracket` (a `Limit` entry; one venue strategy that offsets each exit from the fill) a futures venue alone; a future `Spread` 2–4 dated futures on one root, a buy and a sell among them, no contract twice, `constraints` `all_or_none` and `algo` alone, one BAG on the legs' one exchange, a gateway venue alone, `ref_price` dollars per spread, required and at least the net. A future option's `contract` `NQZ26 C30750`, a trading class other than the root a third token, `NQZ26 C30500 Q1A`, `CLZ26 C80 LO`, required where IB lists one (`algo` `ad` alone), its order, bracket, OTO and OCO a gateway venue alone; `ref_price` dollars per contract, omitted the point quote's mid × the contract's `facts.multiplier` (`get/instrument` on a gateway venue), and a place with either unknown ends `failed` naming `ref_price`. On a crypto `tif` also `Minutes`, IB's limit cancelled unfilled after five minutes, sent by a gateway venue alone and refused `unsent` elsewhere. An option's or crypto's `entry` also `TrailingStop`, sent on the refresh-token venue's or a gateway venue's option and refused `unsent` elsewhere; unknown fields refused; the `constraints` words are `all_or_none`, `activate` (price rules; each rule's keys pick its kind and word: `{symbol, predicate, price, join?, trigger?, judge?}` `activate` (`judge` as `plans/open`'s `on`: `\"tick\"` or `{\"quote\": \"bid\"\\|\"ask\"\\|\"mid\"}`, Taji's, held by Taji on any row whose venue trades the class and never sent; beside `trigger`, the venue's, 400 `a price rule's trigger is the venue's and judge is Taji's: name one`), `{symbol, predicate, volume}` `activate_volume`, `{symbol, predicate, percent}` `activate_change`, `{predicate, cushion}` `activate_margin` (the margin cushion, 0–100), `{symbol, class}` `activate_fill`), `activate_at`, `trigger` (`double_bid_ask`\\|`last`\\|`double_last`\\|`bid_ask`\\|`last_or_bid_ask`\\|`midpoint`, on the order's own stop or a price rule), `rules_cancel` (the rules or `activate_at` cancel instead of activating) and `rules_outside_rth`, each beside a rule or `activate_at`, `route`, `peg` (`best`\\|`mid`\\|`market`\\|`best_passive`\\|`{\"bench\": {symbol, start, reference, change, reference_change, decrease?}}`), `peg_offset` (`{\"Amount\": x}`, or `{\"Percent\": p}` on `best` off the ATS route; > 0), `peg_offset_half` (> 0), `peg_min_qty`, `peg_compete_size` (the last three on the ATS route, each beside `peg`), `show_only`, `non_display`, `add_liquidity`, `book_only`, `discretionary_price`, `discretionary_to_limit` (IB's D-Peg), `min_qty` (1 up to a whole `qty`), `sweep_to_fill`, `not_held`, `active` (`{start, end}` on a Gtc beside a `scale` or the `ad` algo; a gateway venue sends today's (UTC) alone), `inactive`, `randomize_size`, `randomize_price`, `price_mgmt`, `marketable_to_bbo`, `imbalance_only` (a Moc, Loc, Moo or Loo), `post_to_ats`, `duration_secs` (seconds > 0, on a Gtd, whose date it replaces), `scale` (`{level_size, increment, sub_level_size?, adjust_value?, adjust_interval_secs?, profit_offset?, auto_reset?, init_position?, init_fill_qty?, random_percent?}` on an unpegged limit), `algo` (an `Algo` on a limit, a gateway venue's algo working it, its members that strategy's alone, another 400, its values validated by the venue (a refusal reads on the row's `why`); on an equity every strategy but `balance_impact_risk` and `min_impact`, which work an option or combo alone; on a future, a future spread's included, the ones IB lists for FUT, `ad`\\|`adaptive`\\|`dark_ice`\\|`percent_of_volume`\\|`pct_vol_px`\\|`pct_vol_sz`\\|`pct_vol_tm`\\|`twap`\\|`vwap`, on a future option `ad`, another refused `unsent`), `block` (an ISE block order) and `delta_hedge` (IB's delta-neutral child on the underlying, sized by IB), each on an option alone; a gateway venue sends every word but `add_liquidity` and `book_only` (on an option, the words above), an OAuth venue `all_or_none` and `trigger` (`last`, `bid_ask`, `midpoint`, on its stop or trailing stop) on an equity or option, a future or crypto refused before any call, the refresh-token venue `all_or_none`, `activate`, `activate_at`, `trigger` (a price rule's alone, as its `TriggerKey`), `route`, `peg`, `show_only`, `non_display`, `add_liquidity`, `book_only` and `discretionary_price`; `constraints.route` names an `id` off `account.routes`, sent as the order's `Route` on the refresh-token venue's equity or option and refused `unsent` on a future, and its echo must equal it; `constraints.peg` (`best`\\|`mid`; the refresh-token venue refuses the other pegs `unsent`), `show_only` (a whole number), `non_display`, `add_liquidity` (with `book_only`), `book_only` and `discretionary_price` (> 0) go out as the refresh-token venue's `AdvancedOptions`, all but `peg` and `non_display` on a limit or stop-limit only, a future refusing all but `show_only`). The kernel routes it off the kind, one `route()` for all three verbs, capability then price: the live-intent rule is the paper/live line; `account` names the row, reaching an unapproved live row, but never a class the row does not trade (409 `no_route`, `reason` `<handle> does not trade <class>`) nor an order its venue certainly refuses (409 `no_route`, the one sentence below); else rule 2's holder (a live one not approved is `no_route`; one the venue certainly refuses is `no_route` too), then `link.prefer.orders[class]`, then the lowest measured fee among the bound, approved, capable rows whose `money.buying_power` covers what the order states it spends (the notional, else qty × its limit; unknown passes, a closing sell is never weighed), `taji_sim` only when no other row qualifies, ties in link order. `route` is 200 `RouteAnswer` and sends nothing; `preview` 200 `Previewed`, the route and the routed row's own preview, asked on the connection thread and answered in this one reply, nothing placed, noted or journaled; `place` routes again (a preview is never trusted) and answers 202 `OrderRouted`, `intent_id` its order's, once the order is journaled, or its place has ended (a refusal before the journal frames `failed` as before), so it may wait for commands already running on that account; on `place` `intent_id`, a UUIDv7 the sender mints (another version 400 `bad_ask` `intent_id is a UUIDv7 the sender mints`), is the id the order goes out under, the kernel minting one where it is omitted: a repeat whose order an account's journal holds, refused there or not, answers 200 `IntentSent` `{node: trading/<acct>/orders/<id>, intent_id}` and places nothing; one naming another account's order (the named `account`), another sender's, or other instruments or sides 422 `intent_id_reused`; one while a place under it is under way 409 `in_flight` `an order under <id> is being placed; send it again once that answers`. An id is kept as long as the journal keeps its intent: no expiry; an `Order` whose `entry` is a `Stop` or `StopLimit` through the market, as `draft/stage` refuses one, ends `failed orders/<id>` in those words; an order whose one `activate` price rule (no `trigger`) names a `judge`, or whose row's `capability.activate` for the class is `taji`, is held by Taji and sent nothing, once the rule symbol's live price (per its `judge`, `tick` by default), read within 3 s, is short of the rule (none: refused `no source` `<symbol>: no live <tick\\|quote mid…> price yet`; already passing: refused `<symbol> <judge> is <price>, already past the rule <op> <price>; nothing held`): its `orders` row reads `{intent_id, account, symbol, kind, state: \"held\", held_by: \"taji\", note: \"sent when <rule symbol> <op> <px> on each live <print\\|quote bid\\|quote ask\\|quote mid>; judged in <SYM>'s session, only while Taji runs\", suspended}` (`suspended` as `read/trading/exits` says, else `null`) until a live update of the rule's symbol per its `judge`, stamped inside the order instrument's session and at or after the hold (or the boot that held it again), passes, which places it once under the same intent id, the rule cleared; its time in force ends it unsent (`expired`) at that instant, print or none; a rule symbol only a delayed source streams is refused; `cancel` (and `cancel_all`) releases it, `reprice` answers 409 `held` `held by Taji; cancel and place again`, and another rule shape answers `<acct> does not hold activate (Taji holds one price rule with no trigger)`, the order's row carrying `account`, `live`, `route_why` and `why` (the words of the refusal that ended it, the venue's or, refused before the venue, Taji's, else `null`). Both verbs refuse 400 `bad_ask` in serde's words, 400 `{error: \"wrong_class\", expected, got}` or a field that does not parse, 400 `validate()`'s words, 400 `continuous` on an instrument spelling a continuous future (`@ES`, `ES1!`, `ES.c.0`, `ES.v.0`, `ES.n.0`, `/ES`), which names no contract a venue holds, 404 `account` for a handle no row has, 409 `not_bound` (`<acct> is not bound: <reason>` for a named row, `reason` its `link.accounts` row's; `connecting to <brokerage>[, …]` for an order naming no row while a row on its side of the paper/live line reads `connecting`), `live_intent`/`not_live`, `ambiguous {holders}`, `account_required {rows}` (every bound handle; `place` only) or `no_route {rows}`, each row `skipped` — `not approved` (a live row the user has not approved), `buying_power`, `does not trade <class>` for a row whose `classes` lacks it, the exit-pair words (`<acct> does not send bracket`, `a bracket's entry is market, limit, stop or stop limit`, `a bracket is day or gtc`, the extended-hours words), `does not hold <words>` naming each `constraints` word the row does not declare (its execution row's `constraints` on `data/coverage`; a class whose `capability.activate` is `taji` holds `activate`, as any row does a rule naming `judge`); `not tradable`, `halted`, `not shortable` or `not easy to borrow` (a short) off `get/instrument`, and the venue's refusals, each a sentence, first true wins, on the named row and the holder as on every other: `a price must be above 0, got <px>` (any price an equity, option or crypto order states), `<class> takes <tifs>, not <tif>` (the row's declared `tifs`), `qty <n> is off the step of <step>` (shares or contracts off `facts.qty_step`; a notional order never), `qty <n> is under the minimum of <min>`, `$<cost> is under the minimum order of $<min>` (`min_notional`, an opening buy's or a short's stated cost), `<px> is off the tick of <tick>` (any price the kind states off the `facts.ticks` rung at that price) and `this name trades whole shares only` (a notional or fractional order, `fractionable` false), off `get/instrument` for the row's venue on a single order's own item (its instrument's id; a spread reads none), read once per provider per order, for the providers of the bound rows on the order's side (a live one approved) whose venue trades the class, the named row's, or the bound holders' of the symbol, passing where unknown or refused; `shorting disabled` (a short), `no options level`, or `options level under spreads` (more than one leg under level 3) off the row's own `money`, passing where unknown; a named row that does not declare them takes the place and answers `failed orders/<id>` `<handle> does not hold <words>`, and the stadium actor refuses the same words, and a session off `regular` the adapter does not declare, before every venue call (`IntentRejected`, never sent). The outcome is `changed` or `failed orders/<id>` on `/ws/live` and the node's `answer` `PLACED <SIDE> <WORD>`, else the venue's refusal followed by `; routed: <why>`, which names the rows skipped; a refused place is never re-sent; a place whose submit to the venue began and errored with anything but a refusal (an unconfirmed ack, a timeout or 5xx after the request left) frames `changed orders/<id>` with `answer` `UNCONFIRMED · <why>` (then `; routed: <why>` on a routed place) and, its intent journaled, `state` `PendingIntent`, and is never re-placed by Taji: reconcile adopts it (`answer` `CONFIRMED`, `state` `Acked`) or, past 60 s with no venue row, ends it: on a venue whose listing carries every placed ref, ended orders too (Alpaca, the sim), `Rejected` (`answer` and `why` `not placed: <venue> has no such order`), holding nothing; on any other, `Unknown` (`answer` `LOST · <why>`, a break on the instrument); until then a new opening order on that instrument is refused `IntentUnconfirmed`, a reduce-only close passes; 409 `one_click_off`/`settling`",
        "parameters": [
          {
            "in": "path",
            "name": "class",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderPlacing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSent"
                }
              }
            },
            "description": "What `draft/place`, `account/market` and a position's `close` and `reverse` answer, and an order door's repeat of an `intent_id`: the node, and the id the order goes out under."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderRoutedOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Place an order",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/orders/{class}/preview": {
      "post": {
        "description": "`<class>` one of `equity`, `option`, `future`, `crypto`, `future_option` (404 any other word); `OrderPlacing`, `ref_price` on an option, one contract or a `Spread`, per share (a 1.00 debit costs $100 a combo); omitted, a spread's is its max loss per share, a close's its net, one contract's the price the order names (an OCO's highest), else the contract's own quote, a buy at the higher of its ask and last and a sell at its last, dated at the quote — `kind` an `OrderKind` as its serde JSON, externally tagged, its class its instrument's: `{\"Order\": {instrument, side, qty, entry?, exits?, tif, session?, notional?, effect?, constraints?, chase?}}` or `{\"Spread\": {legs: [{instrument, side, ratio, effect?}], qty, net, tif, session?, constraints?, chase?, exits?}}` (a leg's `instrument` its contract's item, `option:SPY261016P00500000`), a `Spread`'s `net` `{\"Debit\": px}`\\|`{\"Credit\": px}`\\|`\"Even\"`, 400 `the legs quote a credit of 1.20; net says debit` where the legs' net mid lies on the other side of its word, and its ratios in lowest terms (400 `ratios 2:2 are not in lowest terms`); `chase` `{every_secs, step, cap, then?}` on a `Limit` order without exits or a `Spread`: the kernel moves the working price `step` toward `cap` every `every_secs` seconds through the venue's replace (the same as `reprice`), holding its price while the order's own session is shut, `then` `hold` (omitted, rest at the cap), `cancel` (one interval past it) or `cross` (one interval past the cap, a backtest fills at the legs' natural; live, a spread is replaced to its natural each interval, another kind rests at the cap, noted), amounts in the order's own words (a credit's cap lower than its start, an even spread's a debit); 400 `cap 1.45 is not past the start 1.20 (a credit's cap is lower)`, `step 0.01 is under the tick 0.05`, `step 0.50 is over the 0.25 between 1.20 and 0.95`, `a chase needs a limit or a net price`, `<handle> does not replace <a class> order` where the row declares no replace of the class; the order's row carries `chase` `{price, steps, cap, next_at, state, note?}`, `state` `chasing`\\|`at_cap`\\|`ended`, `note` why it ended (`chase ended: filled`, `cancelled`, `repriced`, `cancelled at cap`, the venue's words with `; resting at <price>`, or `relaunch; resting at <price>`: a walk survives a reboot inside the running kernel, not a relaunch) or holds (`held: <SYM> session shut`, no cancel at the cap until it opens), `null` on an unchased order; a `Spread`'s `exits` tranches `{qty, take?, stop: {price}}` priced on the net in its word (a credit's stop above it and take below, a debit's the other way; 400 `stop 0.60 is under the credit 1.20: a credit's stop is higher`), their `qty` summing to `qty`, routed with the entry alone and held by Taji on every venue: from the entry's first fill, on each row of its live-only `spread:` `quotes` stream (`/ws/market`'s) the net is judged by `spread_stop` and a trip places the reversed spread, every leg `Close`, at its natural as the owner's `{\"Exit\": …}`, a tranche's take and stop one OCO; a stream not live leaves no net: each tranche still `supervised` notes `no net quote: <why>` (`<leg>: <why>` where a leg took it down) and nothing is judged until it is live again, when the first net past an exit fires, the span framed once per spread `failed` `spread <id> on <account>: not judged from <UTC> to <UTC>: <why>; a cross in it is not read back`; a spread with `exits` no source streams live is refused before its submit, nothing sent (`no source for <spread>: <leg>: …`); the row carries `exits` `[{tranche, qty, take, stop, state, net, sent, note}]`, `state` `supervised`\\|`suspended` (`note` `crossed its <stop\\|take> <price> at <UTC> while Taji was closed`: the first net after a relaunch or its read back was past it, framed once `failed` `flagged: spread <id> tranche <n> on <account> <note>; not sent: close it`; never judged again, it ends with the position)\\|`sent` (`sent` the close's intent id)\\|`failed` (`note` the venue's words, or why nothing was sent)\\|`ended` (`note` `cancelled`, `entry <state> unfilled`, `released: flat`, or `not supervised: relaunch` for one that ended before a relaunch: a tranche still `supervised` or `suspended` is held again at boot), `null` on any other order, `instrument` `{\"Equity\": {symbol}}`\\|`{\"Option\": {root, expiry, strike, right}}` (`root` the OCC series, `SPXW`)\\|`{\"Future\": {root, year, month}}` (`ESZ26` is `{\"root\": \"ES\", \"year\": 2026, \"month\": 12}`)\\|`{\"FutureOption\": {contract}}`\\|`{\"Crypto\": {pair}}`; `entry` an `Exec`, `exits` tranches `{qty, take?, stop: {price, limit?, adjust?}, oca?}` on the closing side, `take` a limit and `stop` a stop or stop-limit, each tranche's `qty` what it exits and their sum `qty`, an exit riding a `Market`, `Limit`, `Stop` or `StopLimit` entry; without `entry` one tranche against what is held, `side` the closing side; the word is the shape's: no exits the entry's own, one tranche `bracket` with a `take` and `oto` without, two or more `multi_bracket`, no entry `oco`, a `Spread` `multi_leg`. On an equity `session` `regular` (omitted) \\|`extended`\\|`24h`, a limit off `regular` (400 else; a venue that does not send the session refuses it `unsent`), `notional` an equity's or crypto's with no exits, `entry` also `TrailingStopLimit {trail, limit_offset}`, `Mit`, `Lit {trigger, limit}`, `Mtl` and `Auction` (the pre-open auction at a limit, `Day` alone; no venue declares it) and `tif` also `Dtc` and `{\"Gtd\": \"YYYY-MM-DD\"}` or a datetime with its offset (none 400), each sent by a gateway venue alone and refused `unsent` elsewhere, and `Gtx`, which no venue sends on an equity, and `EndOfWeek`, `EndOfMonth` and `NextEndOfMonth`, an OAuth venue's durations, sent by it alone; a tranche takes `oca?` (`cancel_with_block` omitted, `reduce_with_block`, `reduce_non_block`: a fill cuts the other exit; the word `oca`, a gateway venue alone, refused `unsent` elsewhere) and its stop `adjust?` (`{at, to}`, `to` `{\"Stop\": px}`\\|`{\"StopLimit\": {stop, limit}}`\\|`{\"TrailingStop\": {stop, trail}}`: once `at` trades the stop becomes `to`; the word `adjust`; a gateway venue adjusts a bracket's or OTO's stop alone). On an option `session?` `regular`\\|`extended`\\|`24h`, off `regular` the agentic venue alone but `extended` on a gateway venue's option order without exits, and `constraints?`: on one contract the words IB sends on an option, `discretionary_price`, `discretionary_to_limit`, `show_only`, `non_display`, a `peg` other than `best`, the ATS-route peg words, `price_mgmt`, `marketable_to_bbo`, `imbalance_only`, `post_to_ats`, `duration_secs`, `add_liquidity` and `book_only` 400 `this option kind takes no <word>: IB takes it on STK`, and on a `Spread` `route`, `all_or_none`, `block` and `algo` alone (else `… IB takes it on OPT`); every other field refused; an option order's `entry` also `Vol {volatility, per, continuous?, reference?, stock_range?, hedge?}` (IB's volatility order, the word `vol`: `volatility` a fraction > 0 per `daily`\\|`annual`, `reference` `nbbo_average` (omitted)\\|`nbbo`, `stock_range` `{lower, upper}`, `hedge` `{exec: \"Market\"\\|{\"Limit\": px}}` IB's delta-neutral order on the underlying; `Day` or `Gtc`; a gateway venue alone, refused `unsent` elsewhere); an option order with exits (a bracket's or OTO's `effect` `Open`, an OCO's `Close`, regular session) the refresh-token venue and a gateway venue; an option `Spread` 1–4 legs on one underlying. On a future `entry` also `TrailingStop`; its bracket, OTO and OCO (the equity groups' fields less `session`) the refresh-token venue and a gateway venue, its `multi_bracket` (a `Limit` entry; one venue strategy that offsets each exit from the fill) a futures venue alone; a future `Spread` 2–4 dated futures on one root, a buy and a sell among them, no contract twice, `constraints` `all_or_none` and `algo` alone, one BAG on the legs' one exchange, a gateway venue alone, `ref_price` dollars per spread, required and at least the net. A future option's `contract` `NQZ26 C30750`, a trading class other than the root a third token, `NQZ26 C30500 Q1A`, `CLZ26 C80 LO`, required where IB lists one (`algo` `ad` alone), its order, bracket, OTO and OCO a gateway venue alone; `ref_price` dollars per contract, omitted the point quote's mid × the contract's `facts.multiplier` (`get/instrument` on a gateway venue), and a place with either unknown ends `failed` naming `ref_price`. On a crypto `tif` also `Minutes`, IB's limit cancelled unfilled after five minutes, sent by a gateway venue alone and refused `unsent` elsewhere. An option's or crypto's `entry` also `TrailingStop`, sent on the refresh-token venue's or a gateway venue's option and refused `unsent` elsewhere; unknown fields refused; the `constraints` words are `all_or_none`, `activate` (price rules; each rule's keys pick its kind and word: `{symbol, predicate, price, join?, trigger?, judge?}` `activate` (`judge` as `plans/open`'s `on`: `\"tick\"` or `{\"quote\": \"bid\"\\|\"ask\"\\|\"mid\"}`, Taji's, held by Taji on any row whose venue trades the class and never sent; beside `trigger`, the venue's, 400 `a price rule's trigger is the venue's and judge is Taji's: name one`), `{symbol, predicate, volume}` `activate_volume`, `{symbol, predicate, percent}` `activate_change`, `{predicate, cushion}` `activate_margin` (the margin cushion, 0–100), `{symbol, class}` `activate_fill`), `activate_at`, `trigger` (`double_bid_ask`\\|`last`\\|`double_last`\\|`bid_ask`\\|`last_or_bid_ask`\\|`midpoint`, on the order's own stop or a price rule), `rules_cancel` (the rules or `activate_at` cancel instead of activating) and `rules_outside_rth`, each beside a rule or `activate_at`, `route`, `peg` (`best`\\|`mid`\\|`market`\\|`best_passive`\\|`{\"bench\": {symbol, start, reference, change, reference_change, decrease?}}`), `peg_offset` (`{\"Amount\": x}`, or `{\"Percent\": p}` on `best` off the ATS route; > 0), `peg_offset_half` (> 0), `peg_min_qty`, `peg_compete_size` (the last three on the ATS route, each beside `peg`), `show_only`, `non_display`, `add_liquidity`, `book_only`, `discretionary_price`, `discretionary_to_limit` (IB's D-Peg), `min_qty` (1 up to a whole `qty`), `sweep_to_fill`, `not_held`, `active` (`{start, end}` on a Gtc beside a `scale` or the `ad` algo; a gateway venue sends today's (UTC) alone), `inactive`, `randomize_size`, `randomize_price`, `price_mgmt`, `marketable_to_bbo`, `imbalance_only` (a Moc, Loc, Moo or Loo), `post_to_ats`, `duration_secs` (seconds > 0, on a Gtd, whose date it replaces), `scale` (`{level_size, increment, sub_level_size?, adjust_value?, adjust_interval_secs?, profit_offset?, auto_reset?, init_position?, init_fill_qty?, random_percent?}` on an unpegged limit), `algo` (an `Algo` on a limit, a gateway venue's algo working it, its members that strategy's alone, another 400, its values validated by the venue (a refusal reads on the row's `why`); on an equity every strategy but `balance_impact_risk` and `min_impact`, which work an option or combo alone; on a future, a future spread's included, the ones IB lists for FUT, `ad`\\|`adaptive`\\|`dark_ice`\\|`percent_of_volume`\\|`pct_vol_px`\\|`pct_vol_sz`\\|`pct_vol_tm`\\|`twap`\\|`vwap`, on a future option `ad`, another refused `unsent`), `block` (an ISE block order) and `delta_hedge` (IB's delta-neutral child on the underlying, sized by IB), each on an option alone; a gateway venue sends every word but `add_liquidity` and `book_only` (on an option, the words above), an OAuth venue `all_or_none` and `trigger` (`last`, `bid_ask`, `midpoint`, on its stop or trailing stop) on an equity or option, a future or crypto refused before any call, the refresh-token venue `all_or_none`, `activate`, `activate_at`, `trigger` (a price rule's alone, as its `TriggerKey`), `route`, `peg`, `show_only`, `non_display`, `add_liquidity`, `book_only` and `discretionary_price`; `constraints.route` names an `id` off `account.routes`, sent as the order's `Route` on the refresh-token venue's equity or option and refused `unsent` on a future, and its echo must equal it; `constraints.peg` (`best`\\|`mid`; the refresh-token venue refuses the other pegs `unsent`), `show_only` (a whole number), `non_display`, `add_liquidity` (with `book_only`), `book_only` and `discretionary_price` (> 0) go out as the refresh-token venue's `AdvancedOptions`, all but `peg` and `non_display` on a limit or stop-limit only, a future refusing all but `show_only`). The kernel routes it off the kind, one `route()` for all three verbs, capability then price: the live-intent rule is the paper/live line; `account` names the row, reaching an unapproved live row, but never a class the row does not trade (409 `no_route`, `reason` `<handle> does not trade <class>`) nor an order its venue certainly refuses (409 `no_route`, the one sentence below); else rule 2's holder (a live one not approved is `no_route`; one the venue certainly refuses is `no_route` too), then `link.prefer.orders[class]`, then the lowest measured fee among the bound, approved, capable rows whose `money.buying_power` covers what the order states it spends (the notional, else qty × its limit; unknown passes, a closing sell is never weighed), `taji_sim` only when no other row qualifies, ties in link order. `route` is 200 `RouteAnswer` and sends nothing; `preview` 200 `Previewed`, the route and the routed row's own preview, asked on the connection thread and answered in this one reply, nothing placed, noted or journaled; `place` routes again (a preview is never trusted) and answers 202 `OrderRouted`, `intent_id` its order's, once the order is journaled, or its place has ended (a refusal before the journal frames `failed` as before), so it may wait for commands already running on that account; on `place` `intent_id`, a UUIDv7 the sender mints (another version 400 `bad_ask` `intent_id is a UUIDv7 the sender mints`), is the id the order goes out under, the kernel minting one where it is omitted: a repeat whose order an account's journal holds, refused there or not, answers 200 `IntentSent` `{node: trading/<acct>/orders/<id>, intent_id}` and places nothing; one naming another account's order (the named `account`), another sender's, or other instruments or sides 422 `intent_id_reused`; one while a place under it is under way 409 `in_flight` `an order under <id> is being placed; send it again once that answers`. An id is kept as long as the journal keeps its intent: no expiry; an `Order` whose `entry` is a `Stop` or `StopLimit` through the market, as `draft/stage` refuses one, ends `failed orders/<id>` in those words; an order whose one `activate` price rule (no `trigger`) names a `judge`, or whose row's `capability.activate` for the class is `taji`, is held by Taji and sent nothing, once the rule symbol's live price (per its `judge`, `tick` by default), read within 3 s, is short of the rule (none: refused `no source` `<symbol>: no live <tick\\|quote mid…> price yet`; already passing: refused `<symbol> <judge> is <price>, already past the rule <op> <price>; nothing held`): its `orders` row reads `{intent_id, account, symbol, kind, state: \"held\", held_by: \"taji\", note: \"sent when <rule symbol> <op> <px> on each live <print\\|quote bid\\|quote ask\\|quote mid>; judged in <SYM>'s session, only while Taji runs\", suspended}` (`suspended` as `read/trading/exits` says, else `null`) until a live update of the rule's symbol per its `judge`, stamped inside the order instrument's session and at or after the hold (or the boot that held it again), passes, which places it once under the same intent id, the rule cleared; its time in force ends it unsent (`expired`) at that instant, print or none; a rule symbol only a delayed source streams is refused; `cancel` (and `cancel_all`) releases it, `reprice` answers 409 `held` `held by Taji; cancel and place again`, and another rule shape answers `<acct> does not hold activate (Taji holds one price rule with no trigger)`, the order's row carrying `account`, `live`, `route_why` and `why` (the words of the refusal that ended it, the venue's or, refused before the venue, Taji's, else `null`). Both verbs refuse 400 `bad_ask` in serde's words, 400 `{error: \"wrong_class\", expected, got}` or a field that does not parse, 400 `validate()`'s words, 400 `continuous` on an instrument spelling a continuous future (`@ES`, `ES1!`, `ES.c.0`, `ES.v.0`, `ES.n.0`, `/ES`), which names no contract a venue holds, 404 `account` for a handle no row has, 409 `not_bound` (`<acct> is not bound: <reason>` for a named row, `reason` its `link.accounts` row's; `connecting to <brokerage>[, …]` for an order naming no row while a row on its side of the paper/live line reads `connecting`), `live_intent`/`not_live`, `ambiguous {holders}`, `account_required {rows}` (every bound handle; `place` only) or `no_route {rows}`, each row `skipped` — `not approved` (a live row the user has not approved), `buying_power`, `does not trade <class>` for a row whose `classes` lacks it, the exit-pair words (`<acct> does not send bracket`, `a bracket's entry is market, limit, stop or stop limit`, `a bracket is day or gtc`, the extended-hours words), `does not hold <words>` naming each `constraints` word the row does not declare (its execution row's `constraints` on `data/coverage`; a class whose `capability.activate` is `taji` holds `activate`, as any row does a rule naming `judge`); `not tradable`, `halted`, `not shortable` or `not easy to borrow` (a short) off `get/instrument`, and the venue's refusals, each a sentence, first true wins, on the named row and the holder as on every other: `a price must be above 0, got <px>` (any price an equity, option or crypto order states), `<class> takes <tifs>, not <tif>` (the row's declared `tifs`), `qty <n> is off the step of <step>` (shares or contracts off `facts.qty_step`; a notional order never), `qty <n> is under the minimum of <min>`, `$<cost> is under the minimum order of $<min>` (`min_notional`, an opening buy's or a short's stated cost), `<px> is off the tick of <tick>` (any price the kind states off the `facts.ticks` rung at that price) and `this name trades whole shares only` (a notional or fractional order, `fractionable` false), off `get/instrument` for the row's venue on a single order's own item (its instrument's id; a spread reads none), read once per provider per order, for the providers of the bound rows on the order's side (a live one approved) whose venue trades the class, the named row's, or the bound holders' of the symbol, passing where unknown or refused; `shorting disabled` (a short), `no options level`, or `options level under spreads` (more than one leg under level 3) off the row's own `money`, passing where unknown; a named row that does not declare them takes the place and answers `failed orders/<id>` `<handle> does not hold <words>`, and the stadium actor refuses the same words, and a session off `regular` the adapter does not declare, before every venue call (`IntentRejected`, never sent). The outcome is `changed` or `failed orders/<id>` on `/ws/live` and the node's `answer` `PLACED <SIDE> <WORD>`, else the venue's refusal followed by `; routed: <why>`, which names the rows skipped; a refused place is never re-sent; a place whose submit to the venue began and errored with anything but a refusal (an unconfirmed ack, a timeout or 5xx after the request left) frames `changed orders/<id>` with `answer` `UNCONFIRMED · <why>` (then `; routed: <why>` on a routed place) and, its intent journaled, `state` `PendingIntent`, and is never re-placed by Taji: reconcile adopts it (`answer` `CONFIRMED`, `state` `Acked`) or, past 60 s with no venue row, ends it: on a venue whose listing carries every placed ref, ended orders too (Alpaca, the sim), `Rejected` (`answer` and `why` `not placed: <venue> has no such order`), holding nothing; on any other, `Unknown` (`answer` `LOST · <why>`, a break on the instrument); until then a new opening order on that instrument is refused `IntentUnconfirmed`, a reduce-only close passes; 409 `one_click_off`/`settling`",
        "parameters": [
          {
            "in": "path",
            "name": "class",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderPlacing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Previewed"
                }
              }
            },
            "description": "What `orders/<class>/preview` answers: the route, and the routed row's preview beside it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Preview an order",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "stage",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/orders/{class}/route": {
      "post": {
        "description": "`<class>` one of `equity`, `option`, `future`, `crypto`, `future_option` (404 any other word); `OrderPlacing`, `ref_price` on an option, one contract or a `Spread`, per share (a 1.00 debit costs $100 a combo); omitted, a spread's is its max loss per share, a close's its net, one contract's the price the order names (an OCO's highest), else the contract's own quote, a buy at the higher of its ask and last and a sell at its last, dated at the quote — `kind` an `OrderKind` as its serde JSON, externally tagged, its class its instrument's: `{\"Order\": {instrument, side, qty, entry?, exits?, tif, session?, notional?, effect?, constraints?, chase?}}` or `{\"Spread\": {legs: [{instrument, side, ratio, effect?}], qty, net, tif, session?, constraints?, chase?, exits?}}` (a leg's `instrument` its contract's item, `option:SPY261016P00500000`), a `Spread`'s `net` `{\"Debit\": px}`\\|`{\"Credit\": px}`\\|`\"Even\"`, 400 `the legs quote a credit of 1.20; net says debit` where the legs' net mid lies on the other side of its word, and its ratios in lowest terms (400 `ratios 2:2 are not in lowest terms`); `chase` `{every_secs, step, cap, then?}` on a `Limit` order without exits or a `Spread`: the kernel moves the working price `step` toward `cap` every `every_secs` seconds through the venue's replace (the same as `reprice`), holding its price while the order's own session is shut, `then` `hold` (omitted, rest at the cap), `cancel` (one interval past it) or `cross` (one interval past the cap, a backtest fills at the legs' natural; live, a spread is replaced to its natural each interval, another kind rests at the cap, noted), amounts in the order's own words (a credit's cap lower than its start, an even spread's a debit); 400 `cap 1.45 is not past the start 1.20 (a credit's cap is lower)`, `step 0.01 is under the tick 0.05`, `step 0.50 is over the 0.25 between 1.20 and 0.95`, `a chase needs a limit or a net price`, `<handle> does not replace <a class> order` where the row declares no replace of the class; the order's row carries `chase` `{price, steps, cap, next_at, state, note?}`, `state` `chasing`\\|`at_cap`\\|`ended`, `note` why it ended (`chase ended: filled`, `cancelled`, `repriced`, `cancelled at cap`, the venue's words with `; resting at <price>`, or `relaunch; resting at <price>`: a walk survives a reboot inside the running kernel, not a relaunch) or holds (`held: <SYM> session shut`, no cancel at the cap until it opens), `null` on an unchased order; a `Spread`'s `exits` tranches `{qty, take?, stop: {price}}` priced on the net in its word (a credit's stop above it and take below, a debit's the other way; 400 `stop 0.60 is under the credit 1.20: a credit's stop is higher`), their `qty` summing to `qty`, routed with the entry alone and held by Taji on every venue: from the entry's first fill, on each row of its live-only `spread:` `quotes` stream (`/ws/market`'s) the net is judged by `spread_stop` and a trip places the reversed spread, every leg `Close`, at its natural as the owner's `{\"Exit\": …}`, a tranche's take and stop one OCO; a stream not live leaves no net: each tranche still `supervised` notes `no net quote: <why>` (`<leg>: <why>` where a leg took it down) and nothing is judged until it is live again, when the first net past an exit fires, the span framed once per spread `failed` `spread <id> on <account>: not judged from <UTC> to <UTC>: <why>; a cross in it is not read back`; a spread with `exits` no source streams live is refused before its submit, nothing sent (`no source for <spread>: <leg>: …`); the row carries `exits` `[{tranche, qty, take, stop, state, net, sent, note}]`, `state` `supervised`\\|`suspended` (`note` `crossed its <stop\\|take> <price> at <UTC> while Taji was closed`: the first net after a relaunch or its read back was past it, framed once `failed` `flagged: spread <id> tranche <n> on <account> <note>; not sent: close it`; never judged again, it ends with the position)\\|`sent` (`sent` the close's intent id)\\|`failed` (`note` the venue's words, or why nothing was sent)\\|`ended` (`note` `cancelled`, `entry <state> unfilled`, `released: flat`, or `not supervised: relaunch` for one that ended before a relaunch: a tranche still `supervised` or `suspended` is held again at boot), `null` on any other order, `instrument` `{\"Equity\": {symbol}}`\\|`{\"Option\": {root, expiry, strike, right}}` (`root` the OCC series, `SPXW`)\\|`{\"Future\": {root, year, month}}` (`ESZ26` is `{\"root\": \"ES\", \"year\": 2026, \"month\": 12}`)\\|`{\"FutureOption\": {contract}}`\\|`{\"Crypto\": {pair}}`; `entry` an `Exec`, `exits` tranches `{qty, take?, stop: {price, limit?, adjust?}, oca?}` on the closing side, `take` a limit and `stop` a stop or stop-limit, each tranche's `qty` what it exits and their sum `qty`, an exit riding a `Market`, `Limit`, `Stop` or `StopLimit` entry; without `entry` one tranche against what is held, `side` the closing side; the word is the shape's: no exits the entry's own, one tranche `bracket` with a `take` and `oto` without, two or more `multi_bracket`, no entry `oco`, a `Spread` `multi_leg`. On an equity `session` `regular` (omitted) \\|`extended`\\|`24h`, a limit off `regular` (400 else; a venue that does not send the session refuses it `unsent`), `notional` an equity's or crypto's with no exits, `entry` also `TrailingStopLimit {trail, limit_offset}`, `Mit`, `Lit {trigger, limit}`, `Mtl` and `Auction` (the pre-open auction at a limit, `Day` alone; no venue declares it) and `tif` also `Dtc` and `{\"Gtd\": \"YYYY-MM-DD\"}` or a datetime with its offset (none 400), each sent by a gateway venue alone and refused `unsent` elsewhere, and `Gtx`, which no venue sends on an equity, and `EndOfWeek`, `EndOfMonth` and `NextEndOfMonth`, an OAuth venue's durations, sent by it alone; a tranche takes `oca?` (`cancel_with_block` omitted, `reduce_with_block`, `reduce_non_block`: a fill cuts the other exit; the word `oca`, a gateway venue alone, refused `unsent` elsewhere) and its stop `adjust?` (`{at, to}`, `to` `{\"Stop\": px}`\\|`{\"StopLimit\": {stop, limit}}`\\|`{\"TrailingStop\": {stop, trail}}`: once `at` trades the stop becomes `to`; the word `adjust`; a gateway venue adjusts a bracket's or OTO's stop alone). On an option `session?` `regular`\\|`extended`\\|`24h`, off `regular` the agentic venue alone but `extended` on a gateway venue's option order without exits, and `constraints?`: on one contract the words IB sends on an option, `discretionary_price`, `discretionary_to_limit`, `show_only`, `non_display`, a `peg` other than `best`, the ATS-route peg words, `price_mgmt`, `marketable_to_bbo`, `imbalance_only`, `post_to_ats`, `duration_secs`, `add_liquidity` and `book_only` 400 `this option kind takes no <word>: IB takes it on STK`, and on a `Spread` `route`, `all_or_none`, `block` and `algo` alone (else `… IB takes it on OPT`); every other field refused; an option order's `entry` also `Vol {volatility, per, continuous?, reference?, stock_range?, hedge?}` (IB's volatility order, the word `vol`: `volatility` a fraction > 0 per `daily`\\|`annual`, `reference` `nbbo_average` (omitted)\\|`nbbo`, `stock_range` `{lower, upper}`, `hedge` `{exec: \"Market\"\\|{\"Limit\": px}}` IB's delta-neutral order on the underlying; `Day` or `Gtc`; a gateway venue alone, refused `unsent` elsewhere); an option order with exits (a bracket's or OTO's `effect` `Open`, an OCO's `Close`, regular session) the refresh-token venue and a gateway venue; an option `Spread` 1–4 legs on one underlying. On a future `entry` also `TrailingStop`; its bracket, OTO and OCO (the equity groups' fields less `session`) the refresh-token venue and a gateway venue, its `multi_bracket` (a `Limit` entry; one venue strategy that offsets each exit from the fill) a futures venue alone; a future `Spread` 2–4 dated futures on one root, a buy and a sell among them, no contract twice, `constraints` `all_or_none` and `algo` alone, one BAG on the legs' one exchange, a gateway venue alone, `ref_price` dollars per spread, required and at least the net. A future option's `contract` `NQZ26 C30750`, a trading class other than the root a third token, `NQZ26 C30500 Q1A`, `CLZ26 C80 LO`, required where IB lists one (`algo` `ad` alone), its order, bracket, OTO and OCO a gateway venue alone; `ref_price` dollars per contract, omitted the point quote's mid × the contract's `facts.multiplier` (`get/instrument` on a gateway venue), and a place with either unknown ends `failed` naming `ref_price`. On a crypto `tif` also `Minutes`, IB's limit cancelled unfilled after five minutes, sent by a gateway venue alone and refused `unsent` elsewhere. An option's or crypto's `entry` also `TrailingStop`, sent on the refresh-token venue's or a gateway venue's option and refused `unsent` elsewhere; unknown fields refused; the `constraints` words are `all_or_none`, `activate` (price rules; each rule's keys pick its kind and word: `{symbol, predicate, price, join?, trigger?, judge?}` `activate` (`judge` as `plans/open`'s `on`: `\"tick\"` or `{\"quote\": \"bid\"\\|\"ask\"\\|\"mid\"}`, Taji's, held by Taji on any row whose venue trades the class and never sent; beside `trigger`, the venue's, 400 `a price rule's trigger is the venue's and judge is Taji's: name one`), `{symbol, predicate, volume}` `activate_volume`, `{symbol, predicate, percent}` `activate_change`, `{predicate, cushion}` `activate_margin` (the margin cushion, 0–100), `{symbol, class}` `activate_fill`), `activate_at`, `trigger` (`double_bid_ask`\\|`last`\\|`double_last`\\|`bid_ask`\\|`last_or_bid_ask`\\|`midpoint`, on the order's own stop or a price rule), `rules_cancel` (the rules or `activate_at` cancel instead of activating) and `rules_outside_rth`, each beside a rule or `activate_at`, `route`, `peg` (`best`\\|`mid`\\|`market`\\|`best_passive`\\|`{\"bench\": {symbol, start, reference, change, reference_change, decrease?}}`), `peg_offset` (`{\"Amount\": x}`, or `{\"Percent\": p}` on `best` off the ATS route; > 0), `peg_offset_half` (> 0), `peg_min_qty`, `peg_compete_size` (the last three on the ATS route, each beside `peg`), `show_only`, `non_display`, `add_liquidity`, `book_only`, `discretionary_price`, `discretionary_to_limit` (IB's D-Peg), `min_qty` (1 up to a whole `qty`), `sweep_to_fill`, `not_held`, `active` (`{start, end}` on a Gtc beside a `scale` or the `ad` algo; a gateway venue sends today's (UTC) alone), `inactive`, `randomize_size`, `randomize_price`, `price_mgmt`, `marketable_to_bbo`, `imbalance_only` (a Moc, Loc, Moo or Loo), `post_to_ats`, `duration_secs` (seconds > 0, on a Gtd, whose date it replaces), `scale` (`{level_size, increment, sub_level_size?, adjust_value?, adjust_interval_secs?, profit_offset?, auto_reset?, init_position?, init_fill_qty?, random_percent?}` on an unpegged limit), `algo` (an `Algo` on a limit, a gateway venue's algo working it, its members that strategy's alone, another 400, its values validated by the venue (a refusal reads on the row's `why`); on an equity every strategy but `balance_impact_risk` and `min_impact`, which work an option or combo alone; on a future, a future spread's included, the ones IB lists for FUT, `ad`\\|`adaptive`\\|`dark_ice`\\|`percent_of_volume`\\|`pct_vol_px`\\|`pct_vol_sz`\\|`pct_vol_tm`\\|`twap`\\|`vwap`, on a future option `ad`, another refused `unsent`), `block` (an ISE block order) and `delta_hedge` (IB's delta-neutral child on the underlying, sized by IB), each on an option alone; a gateway venue sends every word but `add_liquidity` and `book_only` (on an option, the words above), an OAuth venue `all_or_none` and `trigger` (`last`, `bid_ask`, `midpoint`, on its stop or trailing stop) on an equity or option, a future or crypto refused before any call, the refresh-token venue `all_or_none`, `activate`, `activate_at`, `trigger` (a price rule's alone, as its `TriggerKey`), `route`, `peg`, `show_only`, `non_display`, `add_liquidity`, `book_only` and `discretionary_price`; `constraints.route` names an `id` off `account.routes`, sent as the order's `Route` on the refresh-token venue's equity or option and refused `unsent` on a future, and its echo must equal it; `constraints.peg` (`best`\\|`mid`; the refresh-token venue refuses the other pegs `unsent`), `show_only` (a whole number), `non_display`, `add_liquidity` (with `book_only`), `book_only` and `discretionary_price` (> 0) go out as the refresh-token venue's `AdvancedOptions`, all but `peg` and `non_display` on a limit or stop-limit only, a future refusing all but `show_only`). The kernel routes it off the kind, one `route()` for all three verbs, capability then price: the live-intent rule is the paper/live line; `account` names the row, reaching an unapproved live row, but never a class the row does not trade (409 `no_route`, `reason` `<handle> does not trade <class>`) nor an order its venue certainly refuses (409 `no_route`, the one sentence below); else rule 2's holder (a live one not approved is `no_route`; one the venue certainly refuses is `no_route` too), then `link.prefer.orders[class]`, then the lowest measured fee among the bound, approved, capable rows whose `money.buying_power` covers what the order states it spends (the notional, else qty × its limit; unknown passes, a closing sell is never weighed), `taji_sim` only when no other row qualifies, ties in link order. `route` is 200 `RouteAnswer` and sends nothing; `preview` 200 `Previewed`, the route and the routed row's own preview, asked on the connection thread and answered in this one reply, nothing placed, noted or journaled; `place` routes again (a preview is never trusted) and answers 202 `OrderRouted`, `intent_id` its order's, once the order is journaled, or its place has ended (a refusal before the journal frames `failed` as before), so it may wait for commands already running on that account; on `place` `intent_id`, a UUIDv7 the sender mints (another version 400 `bad_ask` `intent_id is a UUIDv7 the sender mints`), is the id the order goes out under, the kernel minting one where it is omitted: a repeat whose order an account's journal holds, refused there or not, answers 200 `IntentSent` `{node: trading/<acct>/orders/<id>, intent_id}` and places nothing; one naming another account's order (the named `account`), another sender's, or other instruments or sides 422 `intent_id_reused`; one while a place under it is under way 409 `in_flight` `an order under <id> is being placed; send it again once that answers`. An id is kept as long as the journal keeps its intent: no expiry; an `Order` whose `entry` is a `Stop` or `StopLimit` through the market, as `draft/stage` refuses one, ends `failed orders/<id>` in those words; an order whose one `activate` price rule (no `trigger`) names a `judge`, or whose row's `capability.activate` for the class is `taji`, is held by Taji and sent nothing, once the rule symbol's live price (per its `judge`, `tick` by default), read within 3 s, is short of the rule (none: refused `no source` `<symbol>: no live <tick\\|quote mid…> price yet`; already passing: refused `<symbol> <judge> is <price>, already past the rule <op> <price>; nothing held`): its `orders` row reads `{intent_id, account, symbol, kind, state: \"held\", held_by: \"taji\", note: \"sent when <rule symbol> <op> <px> on each live <print\\|quote bid\\|quote ask\\|quote mid>; judged in <SYM>'s session, only while Taji runs\", suspended}` (`suspended` as `read/trading/exits` says, else `null`) until a live update of the rule's symbol per its `judge`, stamped inside the order instrument's session and at or after the hold (or the boot that held it again), passes, which places it once under the same intent id, the rule cleared; its time in force ends it unsent (`expired`) at that instant, print or none; a rule symbol only a delayed source streams is refused; `cancel` (and `cancel_all`) releases it, `reprice` answers 409 `held` `held by Taji; cancel and place again`, and another rule shape answers `<acct> does not hold activate (Taji holds one price rule with no trigger)`, the order's row carrying `account`, `live`, `route_why` and `why` (the words of the refusal that ended it, the venue's or, refused before the venue, Taji's, else `null`). Both verbs refuse 400 `bad_ask` in serde's words, 400 `{error: \"wrong_class\", expected, got}` or a field that does not parse, 400 `validate()`'s words, 400 `continuous` on an instrument spelling a continuous future (`@ES`, `ES1!`, `ES.c.0`, `ES.v.0`, `ES.n.0`, `/ES`), which names no contract a venue holds, 404 `account` for a handle no row has, 409 `not_bound` (`<acct> is not bound: <reason>` for a named row, `reason` its `link.accounts` row's; `connecting to <brokerage>[, …]` for an order naming no row while a row on its side of the paper/live line reads `connecting`), `live_intent`/`not_live`, `ambiguous {holders}`, `account_required {rows}` (every bound handle; `place` only) or `no_route {rows}`, each row `skipped` — `not approved` (a live row the user has not approved), `buying_power`, `does not trade <class>` for a row whose `classes` lacks it, the exit-pair words (`<acct> does not send bracket`, `a bracket's entry is market, limit, stop or stop limit`, `a bracket is day or gtc`, the extended-hours words), `does not hold <words>` naming each `constraints` word the row does not declare (its execution row's `constraints` on `data/coverage`; a class whose `capability.activate` is `taji` holds `activate`, as any row does a rule naming `judge`); `not tradable`, `halted`, `not shortable` or `not easy to borrow` (a short) off `get/instrument`, and the venue's refusals, each a sentence, first true wins, on the named row and the holder as on every other: `a price must be above 0, got <px>` (any price an equity, option or crypto order states), `<class> takes <tifs>, not <tif>` (the row's declared `tifs`), `qty <n> is off the step of <step>` (shares or contracts off `facts.qty_step`; a notional order never), `qty <n> is under the minimum of <min>`, `$<cost> is under the minimum order of $<min>` (`min_notional`, an opening buy's or a short's stated cost), `<px> is off the tick of <tick>` (any price the kind states off the `facts.ticks` rung at that price) and `this name trades whole shares only` (a notional or fractional order, `fractionable` false), off `get/instrument` for the row's venue on a single order's own item (its instrument's id; a spread reads none), read once per provider per order, for the providers of the bound rows on the order's side (a live one approved) whose venue trades the class, the named row's, or the bound holders' of the symbol, passing where unknown or refused; `shorting disabled` (a short), `no options level`, or `options level under spreads` (more than one leg under level 3) off the row's own `money`, passing where unknown; a named row that does not declare them takes the place and answers `failed orders/<id>` `<handle> does not hold <words>`, and the stadium actor refuses the same words, and a session off `regular` the adapter does not declare, before every venue call (`IntentRejected`, never sent). The outcome is `changed` or `failed orders/<id>` on `/ws/live` and the node's `answer` `PLACED <SIDE> <WORD>`, else the venue's refusal followed by `; routed: <why>`, which names the rows skipped; a refused place is never re-sent; a place whose submit to the venue began and errored with anything but a refusal (an unconfirmed ack, a timeout or 5xx after the request left) frames `changed orders/<id>` with `answer` `UNCONFIRMED · <why>` (then `; routed: <why>` on a routed place) and, its intent journaled, `state` `PendingIntent`, and is never re-placed by Taji: reconcile adopts it (`answer` `CONFIRMED`, `state` `Acked`) or, past 60 s with no venue row, ends it: on a venue whose listing carries every placed ref, ended orders too (Alpaca, the sim), `Rejected` (`answer` and `why` `not placed: <venue> has no such order`), holding nothing; on any other, `Unknown` (`answer` `LOST · <why>`, a break on the instrument); until then a new opening order on that instrument is refused `IntentUnconfirmed`, a reduce-only close passes; 409 `one_click_off`/`settling`",
        "parameters": [
          {
            "in": "path",
            "name": "class",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderPlacing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RouteAnswer"
                }
              }
            },
            "description": "What `orders/<class>/route` answers: where the order would land, and who\non that row holds its `activate` rules."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Route an order",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "stage",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/account/market": {
      "post": {
        "description": "`MarketOrder` (`symbol` an item as `draft/stage` takes it): the account sends `qty` of `symbol` at market now, opening, adding to or reducing a position. `intent_id`, a UUIDv7 the sender mints (another version 400 `bad_ask` `intent_id is a UUIDv7 the sender mints`), is the id the order goes out under, the kernel minting one where it is omitted: a repeat whose order an account's journal holds, refused there or not, answers 200 `IntentSent` `{node: trading/<acct>/orders/<id>, intent_id}` and places nothing; one naming another account's order, another sender's, or another instrument or side 422 `intent_id_reused`; one while a place under it is under way 409 `in_flight` `an order under <id> is being placed; send it again once that answers`. An id is kept as long as the journal keeps its intent: no expiry. 202 `IntentSent` once the order is journaled, or its place has ended (a refusal before the journal frames `failed` as before), so it may wait for commands already running on that account; one refused after the 202 (a symbol nothing prices, a quantity the gate refuses) reads at `orders/<intent_id>` and in `orders` `Rejected`, its reason in `why`; on `taji_sim` an equity fills at the ask (a buy) or bid of the quote streaming when it arrives, else at the order's `ref_price` (the last price Taji read), its `why` naming which, the quote's provider and instant, and `delayed` where that tick says so; 409 `settling`/`not_bound` (as any `trading/<acct>/…` verb's), 409 `live_intent`/`not_live`; 409 `one_click_off`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketOrder"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSent"
                }
              }
            },
            "description": "What `draft/place`, `account/market` and a position's `close` and `reverse` answer, and an order door's repeat of an `intent_id`: the node, and the id the order goes out under."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSentOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Place a market order",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/breaks/{break_id}/adopt": {
      "post": {
        "description": "`Adoption`: the operator moves the book to the venue's quantity and average entry price, as the last refresh pass read them, for one confirmed break and resolves it, `reason` journaled; `class` (`equity`, `option`, `future`, `crypto`; another word 400) is required only when Taji holds no single filled key for the instrument (a position it never placed or never heard fill), and never overrides one. 200 `BreakAdopted`; 409 `{\"error\", \"reason\"}`: `not_open` (unknown or already resolved), `not_confirmed` (the `reason` carries the sightings), `not_adoptable` (a lost order with no intent, or an `UnspelledLeg`: fix it at the venue), `class_required`, `no_basis` (the venue reports no average entry price), `moved` (the venue's quantity changed since the sighting: the next pass re-sights it), `not_sighted` (no refresh pass has read the venue yet) or `reason_required`. The reconcile pass it wakes lifts the seats' halt the break latched; 409 `one_click_off`/`settling`/`not_bound`; 409 `class_unsupported` for a class the break cannot be adopted as",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "break_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Adoption"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakAdopted"
                }
              }
            },
            "description": "What `breaks/<break_id>/adopt` answers once the journal has."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Adopt a venue break",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/draft/clear": {
      "post": {
        "description": "`OneClick`: the staged draft dropped: 200 `Changed`, also when none was staged; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OneClick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Clear the order draft",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "stage",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/draft/edit": {
      "post": {
        "description": "`DraftStaging` or `DraftEdit`, the draft's own fields their `DraftTerms`: a key absent keeps it, `null` clears it, a value sets it (`session: null` returns it to the default: the clock's for a limit, regular otherwise; a chosen session is sent as chosen; a limit defaulted to the clock's extended hours carrying pairs is sent in the regular session, its bracket working from 09:30 ET, since no venue takes a bracket beside extended hours, and pairs beside a chosen extended or 24h session are 409 `extended_bracket`, the ticket's `controls` serving those chips and `exits` disabled with that `reason`, and its `outside_rth` the session the window's \"Fill order outside RTH\" sends, the one holding the hour: `24h` at night, else `extended`); `stage` takes them beside `{symbol, price, spot, side}`, `symbol` an item (`equity:RKLB`; bare text 400 naming `equity:<it>`), which the draft node's `symbol` echoes, and `edit` writes them onto the seated draft, naming `rev`, the draft's as the editor read it (the ticket's or the draft node's, or its own last `stage` or `edit` answer's): 409 `stale_draft` (`draft/place`'s refusal) once another seat replaced it, nothing edited. `stage` also takes `object`, the id of the chart drawing it came from, which the draft node carries until the next stage, and `replaces`, a working order's `intent_id` that `place` cancels first (the node's `replaces`, `null` absent; an `edit` keeps it): 409 `{\"error\": \"not_working\", \"reason\"}` unless it is an unfilled working order of the hand's or the agent's on the draft's symbol, no plan's (`<id> is the plan's; edit the plan`), not placed outside Taji (`<id> was placed outside Taji; reprice it, or cancel it`), not `the venue holds <id> inside a bracket group; reprice it, or cancel the group`, with no `reprice in flight`. `pairs` is `[{take?, stop}]`, each a price or `{unit, value}` off the anchor (`unit` `ticks`, `pct` of the anchor, `usd` over the pair's own share of the size, `balance_pct` of equity; whole ticks of the symbol's own increment, a take's the nearest and a stop's floored in every unit, so it never sits farther off than stated; 400 `<symbol> has no known tick; state a price` on a symbol whose tick Taji does not know (a crypto or forex pair); 400 `a pair's distance is above zero`, `<take\\|stop> is under one tick`, `usd needs the contract's point value`, `balance_pct needs the account's equity`, `a risk budget sizes off the stops; state usd exits on a qty`), the quantity split evenly over them, the remainder on the first; at most one stop-only pair (the runner, sent as an OTO), and each leg on its side of the anchor (`price`, `spot` for a market entry): a Buy's take above it and its stop below, a Sell the reverse. `{stop, takes?, runner?}` is sugar in prices: one pair per take at that stop plus a stop-only runner unless `runner: false`, `stop` alone one stop-only pair. `order_type` (`limit`, `stop`, `stop_limit`, `market`, `trailing_stop` with `trail: {amount}`\\|`{percent}`, `moo`, `moc`, `loo`, `loc`) OVERRULES the quadrant, which infers `limit` or `stop_limit` (`stop` off an equity); `limit` is a `stop_limit`'s limit price, unstated or `null` at the stop, which the draft node's `limit` reads (`null` off a stop limit); a future, an option or a pair takes `limit`, `stop` or `market` alone, and a pair's `tif` starts `GTC`. `risk_budget` sizes floor(budget ÷ the mean per-share distance to the stops); with none, `notional` sizes a crypto pair in dollars, floor(notional ÷ price) to the pair's step (eight decimals with none), the draft node carrying it, and a `qty` without it clears it. `risk_pct` is the budget as a percent of the row's equity, to the cent toward zero (400 `risk_pct is above zero`, `risk_pct needs the account's equity`, `risk_pct risks under one cent`; 400 `risk_budget or risk_pct`); `funds_pct` sets `qty` to that percent of the row's buying power for the class at the anchor, floored to the lot (a pair's step), clearing `risk_budget` and `notional` (400 `funds_pct is above zero`, `a spread is sized by sizes, not funds_pct`, `funds_pct needs buying power and a point value`, `funds_pct buys under one unit`; 400 `funds_pct or a size` beside `qty`, `notional`, `risk_budget` or `risk_pct`). An `edit`'s `side` flips the draft as a restage would: its shape kept, its pairs mirrored about its price (the spot for a market, moo or moc entry) unless `pairs` restates them, a stop limit's limit about its stop, its `chase` and `object` dropped (400 `a spread's side is its legs'`; 400 `side is buy or sell`). Every price lands on the instrument's ticks where Taji knows them, else the cent for an equity or option, else as given. An `edit` of `price` carries every pair and a stated limit by the entry's delta. `chase` `{every_secs, step, cap, then?}` as `orders/<class>/place` takes it, on a limit without pairs or `replaces` (400 `a chase takes no bracket`, `a replace takes no chase`, and `<acct> does not replace a <class> order` where the row cannot walk it); `place` holds it to the venue and the tick as that door does, framing the refusal `failed trading/<acct>/draft`; the draft node carries `chase`. `legs` (1 to 4 `{instrument, side, ratio, effect?}`, `kind.Spread.legs`' own spelling, options on `symbol`; else 400 `legs is 1 to 4 {instrument, side, ratio, effect?}`) makes the draft one spread at `net` (`{\"Debit\": <px>}`, `{\"Credit\": <px>}` or `\"Even\"`), `qty` its combos (default 1), or `sizes` the contracts per leg, the legs' ratios their quotient by the greatest common divisor and `qty` that divisor (400 `sizes is one whole count ≥ 1 per leg`, `sizes are a spread's`; 400 `sizes or qty`; an `edit` stating `sizes` without a `net` re-mids it), `tif`, `session` (default regular) and `chase` on its net: a `stage` with `legs` reads no `price` or `side`, and a stage stating no `net`, an `edit` naming `legs` without one, or `net: null` sets it at the legs' mid on its net tick (Taji's ladder for the contract, half away from zero; the cent with none), its word the mid's sign, answering once quoted (409 `declined` `no net quote: …`; on a live row a mid off a venue's indicative feed is refused 409 `declined` `<provider> quotes these legs off its indicative feed, not OPRA: state a net to rest a live spread`). 400 `a spread is 1 to 4 option legs on its symbol`, `a spread takes no pairs, risk_budget, notional or trail`, `a spread replaces no order`; the draft node carries `legs` and `net` (`[]` and `null` off a spread). A spread's `exits` `[{take?, stop}]` are net-priced, positive amounts in the net's word (a credit's stop above it and take below, a debit's the other way), the combos split evenly over them (the remainder on the first), and Taji supervises them on the net from the entry's first fill, as `orders/option/place`'s `Spread.exits`; they never move with the net: 400 `exits are a spread's; a single leg takes pairs`, `an even spread takes no exits`, `a credit's stop is above its net and its take below`, `a debit's stop is below its net and its take above`, `more exits than combos`, 400 `exits is [{take?, stop}]`; the node carries `exits` `[{take, stop, qty}]` (`[]` with none). 200 `DraftSeated`, the draft seated with its size re-derived; 400 the model's refusal, `one stop-only pair at most`, `a take rests past the entry`, `a stop rests past the entry`, `a trailing stop is day or gtc`, `<class> takes limit, stop or market`, `notional sizes a crypto pair`; 400 `price is a price` for `price: null`, `pairs or stop and takes` for both forms, `trailing_stop takes trail`. A `stage` stating `order_type` `stop` or `stop_limit` whose stop is through the market off the newest bid and ask of a live quote stream of the symbol (never a vendor read), a buy's under the ask or a sell's over the bid, is 409 `through_market` `Selected price isn't valid for this order type: a buy stop at <px> is under the ask <ask>`, nothing staged; no live stream, a delayed one, or no quote on the stop's side passes, the venue judging it; a `qty` at or under zero is 400 `bad_ask` (`qty is above zero`) before anything is staged; 409 `nothing_staged` on `edit` with no draft, 409 `live_intent`/`not_live`; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftEdit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DraftSeated"
                }
              }
            },
            "description": "What `draft/stage` and `draft/edit` answer: the draft's node and the `rev` it was seated under."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Edit the order draft",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "stage",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/draft/place": {
      "post": {
        "description": "`DraftPlacing`, `rev` the staged draft's as the sender was shown it (the ticket's, or a `stage`/`edit` answer's): 400 `bad_ask` `draft/place names the draft's rev` without a uuid, 409 `expired` `expired at <hh:mm:ss>, arrived <n> s late; nothing was sent` when it reaches the kernel past its `expires_at`, the draft kept, judged as it arrives, so one held for approval is sent when approved, 409 `{\"error\": \"stale_draft\", \"reason\": \"the draft changed since it was read; nothing placed\"}` once another is staged or while a place is out on it, nothing framed; the draft read once here is what is placed. The live-intent rule, repeated (409 `live_intent`/`not_live`, `one_click_off`, `settling`): a staged draft's own `live` authorizes nothing. `intent_id`, a UUIDv7 the sender mints (another version 400 `bad_ask` `intent_id is a UUIDv7 the sender mints`), is the id the order goes out under, the kernel minting one where it is omitted: a repeat whose order an account's journal holds, refused there or not, answers 200 `IntentSent` `{node: trading/<acct>/orders/<id>, intent_id}` and places nothing; one naming another account's order or another sender's 422 `intent_id_reused`; one while a place under it is under way 409 `in_flight` `an order under <id> is being placed; send it again once that answers`. An id is kept as long as the journal keeps its intent: no expiry; an `intent_id` beside a draft that `replaces` an order is 400 `bad_ask` `intent_id names a new order; this draft modifies <id>`. 202 `IntentSent` once the order is journaled, or its place has ended (a refusal before the journal frames `failed` as before), so it may wait for commands already running on that account; each order it places framed `changed trading/<acct>/orders/<id>`: at a row that holds a pair natively one bracket per take pair and one OTO for the stop-only pair, each an `Order` with one tranche, else the plain entry with the legs supervised; at a row whose class declares `multi_bracket` (a futures venue) a limit entry whose every share rides a take is ONE `Order` with a tranche per pair instead, every tranche bound to it. A spread draft is ONE `Spread` with its chase and its `exits` as tranches (the combos split evenly, the remainder on the first), held to `trading/orders/option/place`'s net word, chase and tick, a refusal of those framed `failed trading/<acct>/draft` and the venue's on its order. 409 `declined` `<the ticket's drops>; clear the pairs` when the pairs cannot ride this row. 409 `held_exits` (as `plans/arm`'s) when the draft leaves a leg Taji holds itself, its `exits` or a pair the row would not seat on the entry, and `held` is not `true`, the draft kept. 409 `nothing_staged` with no draft to `edit` or `place` (a place's before its `rev` is read) and 400 `continuous` on a draft whose symbol is a continuous future (`@ES`) — the ticket's Send needs those answers synchronously, and every refusal after it frames `failed` on `/ws/live` once: on `trading/<acct>/orders/<id>` where it names an order, else on `trading/<acct>/draft` (a bracket's on `trading/<acct>/plans/<item>` and again on `draft`). Every place spends only the draft it placed, one staged meanwhile staying. A draft that `replaces` an order and moves only its price, on a row that re-prices that shape in place, is that order's `reprice` (the same id where the venue replaces it); any other cancels it as a reprice's fallback does and places only once the venue confirmed the cancel, after which it replaces nothing: 409 `not_working` (the stage's words) when the order no longer qualifies, and the same words, ending `; nothing placed`, framed `failed trading/<acct>/draft` when it stops qualifying before the place runs; a cancel that filled instead places nothing, framing `failed trading/<acct>/orders/<id>` `filled before the move · nothing re-placed`, and one the venue has not confirmed within its wait places nothing, framing `The cancel hasn't been confirmed; the old order may still be working and the change was not made`; the draft kept either way. A stop through the market as `stage` refuses one (the quadrant's stop limit over the last and under the ask included) frames those words `failed trading/<acct>/draft`, the draft kept; 409 `not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftPlacing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSent"
                }
              }
            },
            "description": "What `draft/place`, `account/market` and a position's `close` and `reverse` answer, and an order door's repeat of an `intent_id`: the node, and the id the order goes out under."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSentOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Place the order draft",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/draft/stage": {
      "post": {
        "description": "`DraftStaging` or `DraftEdit`, the draft's own fields their `DraftTerms`: a key absent keeps it, `null` clears it, a value sets it (`session: null` returns it to the default: the clock's for a limit, regular otherwise; a chosen session is sent as chosen; a limit defaulted to the clock's extended hours carrying pairs is sent in the regular session, its bracket working from 09:30 ET, since no venue takes a bracket beside extended hours, and pairs beside a chosen extended or 24h session are 409 `extended_bracket`, the ticket's `controls` serving those chips and `exits` disabled with that `reason`, and its `outside_rth` the session the window's \"Fill order outside RTH\" sends, the one holding the hour: `24h` at night, else `extended`); `stage` takes them beside `{symbol, price, spot, side}`, `symbol` an item (`equity:RKLB`; bare text 400 naming `equity:<it>`), which the draft node's `symbol` echoes, and `edit` writes them onto the seated draft, naming `rev`, the draft's as the editor read it (the ticket's or the draft node's, or its own last `stage` or `edit` answer's): 409 `stale_draft` (`draft/place`'s refusal) once another seat replaced it, nothing edited. `stage` also takes `object`, the id of the chart drawing it came from, which the draft node carries until the next stage, and `replaces`, a working order's `intent_id` that `place` cancels first (the node's `replaces`, `null` absent; an `edit` keeps it): 409 `{\"error\": \"not_working\", \"reason\"}` unless it is an unfilled working order of the hand's or the agent's on the draft's symbol, no plan's (`<id> is the plan's; edit the plan`), not placed outside Taji (`<id> was placed outside Taji; reprice it, or cancel it`), not `the venue holds <id> inside a bracket group; reprice it, or cancel the group`, with no `reprice in flight`. `pairs` is `[{take?, stop}]`, each a price or `{unit, value}` off the anchor (`unit` `ticks`, `pct` of the anchor, `usd` over the pair's own share of the size, `balance_pct` of equity; whole ticks of the symbol's own increment, a take's the nearest and a stop's floored in every unit, so it never sits farther off than stated; 400 `<symbol> has no known tick; state a price` on a symbol whose tick Taji does not know (a crypto or forex pair); 400 `a pair's distance is above zero`, `<take\\|stop> is under one tick`, `usd needs the contract's point value`, `balance_pct needs the account's equity`, `a risk budget sizes off the stops; state usd exits on a qty`), the quantity split evenly over them, the remainder on the first; at most one stop-only pair (the runner, sent as an OTO), and each leg on its side of the anchor (`price`, `spot` for a market entry): a Buy's take above it and its stop below, a Sell the reverse. `{stop, takes?, runner?}` is sugar in prices: one pair per take at that stop plus a stop-only runner unless `runner: false`, `stop` alone one stop-only pair. `order_type` (`limit`, `stop`, `stop_limit`, `market`, `trailing_stop` with `trail: {amount}`\\|`{percent}`, `moo`, `moc`, `loo`, `loc`) OVERRULES the quadrant, which infers `limit` or `stop_limit` (`stop` off an equity); `limit` is a `stop_limit`'s limit price, unstated or `null` at the stop, which the draft node's `limit` reads (`null` off a stop limit); a future, an option or a pair takes `limit`, `stop` or `market` alone, and a pair's `tif` starts `GTC`. `risk_budget` sizes floor(budget ÷ the mean per-share distance to the stops); with none, `notional` sizes a crypto pair in dollars, floor(notional ÷ price) to the pair's step (eight decimals with none), the draft node carrying it, and a `qty` without it clears it. `risk_pct` is the budget as a percent of the row's equity, to the cent toward zero (400 `risk_pct is above zero`, `risk_pct needs the account's equity`, `risk_pct risks under one cent`; 400 `risk_budget or risk_pct`); `funds_pct` sets `qty` to that percent of the row's buying power for the class at the anchor, floored to the lot (a pair's step), clearing `risk_budget` and `notional` (400 `funds_pct is above zero`, `a spread is sized by sizes, not funds_pct`, `funds_pct needs buying power and a point value`, `funds_pct buys under one unit`; 400 `funds_pct or a size` beside `qty`, `notional`, `risk_budget` or `risk_pct`). An `edit`'s `side` flips the draft as a restage would: its shape kept, its pairs mirrored about its price (the spot for a market, moo or moc entry) unless `pairs` restates them, a stop limit's limit about its stop, its `chase` and `object` dropped (400 `a spread's side is its legs'`; 400 `side is buy or sell`). Every price lands on the instrument's ticks where Taji knows them, else the cent for an equity or option, else as given. An `edit` of `price` carries every pair and a stated limit by the entry's delta. `chase` `{every_secs, step, cap, then?}` as `orders/<class>/place` takes it, on a limit without pairs or `replaces` (400 `a chase takes no bracket`, `a replace takes no chase`, and `<acct> does not replace a <class> order` where the row cannot walk it); `place` holds it to the venue and the tick as that door does, framing the refusal `failed trading/<acct>/draft`; the draft node carries `chase`. `legs` (1 to 4 `{instrument, side, ratio, effect?}`, `kind.Spread.legs`' own spelling, options on `symbol`; else 400 `legs is 1 to 4 {instrument, side, ratio, effect?}`) makes the draft one spread at `net` (`{\"Debit\": <px>}`, `{\"Credit\": <px>}` or `\"Even\"`), `qty` its combos (default 1), or `sizes` the contracts per leg, the legs' ratios their quotient by the greatest common divisor and `qty` that divisor (400 `sizes is one whole count ≥ 1 per leg`, `sizes are a spread's`; 400 `sizes or qty`; an `edit` stating `sizes` without a `net` re-mids it), `tif`, `session` (default regular) and `chase` on its net: a `stage` with `legs` reads no `price` or `side`, and a stage stating no `net`, an `edit` naming `legs` without one, or `net: null` sets it at the legs' mid on its net tick (Taji's ladder for the contract, half away from zero; the cent with none), its word the mid's sign, answering once quoted (409 `declined` `no net quote: …`; on a live row a mid off a venue's indicative feed is refused 409 `declined` `<provider> quotes these legs off its indicative feed, not OPRA: state a net to rest a live spread`). 400 `a spread is 1 to 4 option legs on its symbol`, `a spread takes no pairs, risk_budget, notional or trail`, `a spread replaces no order`; the draft node carries `legs` and `net` (`[]` and `null` off a spread). A spread's `exits` `[{take?, stop}]` are net-priced, positive amounts in the net's word (a credit's stop above it and take below, a debit's the other way), the combos split evenly over them (the remainder on the first), and Taji supervises them on the net from the entry's first fill, as `orders/option/place`'s `Spread.exits`; they never move with the net: 400 `exits are a spread's; a single leg takes pairs`, `an even spread takes no exits`, `a credit's stop is above its net and its take below`, `a debit's stop is below its net and its take above`, `more exits than combos`, 400 `exits is [{take?, stop}]`; the node carries `exits` `[{take, stop, qty}]` (`[]` with none). 200 `DraftSeated`, the draft seated with its size re-derived; 400 the model's refusal, `one stop-only pair at most`, `a take rests past the entry`, `a stop rests past the entry`, `a trailing stop is day or gtc`, `<class> takes limit, stop or market`, `notional sizes a crypto pair`; 400 `price is a price` for `price: null`, `pairs or stop and takes` for both forms, `trailing_stop takes trail`. A `stage` stating `order_type` `stop` or `stop_limit` whose stop is through the market off the newest bid and ask of a live quote stream of the symbol (never a vendor read), a buy's under the ask or a sell's over the bid, is 409 `through_market` `Selected price isn't valid for this order type: a buy stop at <px> is under the ask <ask>`, nothing staged; no live stream, a delayed one, or no quote on the stop's side passes, the venue judging it; a `qty` at or under zero is 400 `bad_ask` (`qty is above zero`) before anything is staged; 409 `nothing_staged` on `edit` with no draft, 409 `live_intent`/`not_live`; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftStaging"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DraftSeated"
                }
              }
            },
            "description": "What `draft/stage` and `draft/edit` answer: the draft's node and the `rev` it was seated under."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Stage an order draft",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "stage",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/groups/create": {
      "post": {
        "description": "`GroupCreation`, `GroupUpdate`, `GroupSplit` or `GroupMerge`, each member an item and the signed whole part of its position the group holds; sends no order. The kernel's rules first, the same on every venue: 2 to 4 distinct held equity or option members of one underlying, each on the held side and at most what no other group holds. Answered once the holder has, on the connection thread: 200 `Regrouped`, the ids of the groups the edit left; 400 `bad_ask` (malformed, a fractional `qty`, a group or part of one member), 404 `no_group`, 409 `declined` (a rule, or the venue has not yet answered its groups), 409 `refused` (the holder's words), 500 `unsaved` (the kernel's file would not take it; nothing changed). Framed `changed trading/<acct>/groups`, a venue-held edit's once its refresh seats it",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupCreation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Regrouped"
                }
              }
            },
            "description": "What `groups/{create,update,split,merge}` answer once the holder has."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Create a position group",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/groups/merge": {
      "post": {
        "description": "`GroupCreation`, `GroupUpdate`, `GroupSplit` or `GroupMerge`, each member an item and the signed whole part of its position the group holds; sends no order. The kernel's rules first, the same on every venue: 2 to 4 distinct held equity or option members of one underlying, each on the held side and at most what no other group holds. Answered once the holder has, on the connection thread: 200 `Regrouped`, the ids of the groups the edit left; 400 `bad_ask` (malformed, a fractional `qty`, a group or part of one member), 404 `no_group`, 409 `declined` (a rule, or the venue has not yet answered its groups), 409 `refused` (the holder's words), 500 `unsaved` (the kernel's file would not take it; nothing changed). Framed `changed trading/<acct>/groups`, a venue-held edit's once its refresh seats it",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupMerge"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Regrouped"
                }
              }
            },
            "description": "What `groups/{create,update,split,merge}` answer once the holder has."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Merge position groups",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/groups/split": {
      "post": {
        "description": "`GroupCreation`, `GroupUpdate`, `GroupSplit` or `GroupMerge`, each member an item and the signed whole part of its position the group holds; sends no order. The kernel's rules first, the same on every venue: 2 to 4 distinct held equity or option members of one underlying, each on the held side and at most what no other group holds. Answered once the holder has, on the connection thread: 200 `Regrouped`, the ids of the groups the edit left; 400 `bad_ask` (malformed, a fractional `qty`, a group or part of one member), 404 `no_group`, 409 `declined` (a rule, or the venue has not yet answered its groups), 409 `refused` (the holder's words), 500 `unsaved` (the kernel's file would not take it; nothing changed). Framed `changed trading/<acct>/groups`, a venue-held edit's once its refresh seats it",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupSplit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Regrouped"
                }
              }
            },
            "description": "What `groups/{create,update,split,merge}` answer once the holder has."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Split a position group",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/groups/update": {
      "post": {
        "description": "`GroupCreation`, `GroupUpdate`, `GroupSplit` or `GroupMerge`, each member an item and the signed whole part of its position the group holds; sends no order. The kernel's rules first, the same on every venue: 2 to 4 distinct held equity or option members of one underlying, each on the held side and at most what no other group holds. Answered once the holder has, on the connection thread: 200 `Regrouped`, the ids of the groups the edit left; 400 `bad_ask` (malformed, a fractional `qty`, a group or part of one member), 404 `no_group`, 409 `declined` (a rule, or the venue has not yet answered its groups), 409 `refused` (the holder's words), 500 `unsaved` (the kernel's file would not take it; nothing changed). Framed `changed trading/<acct>/groups`, a venue-held edit's once its refresh seats it",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Regrouped"
                }
              }
            },
            "description": "What `groups/{create,update,split,merge}` answer once the holder has."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Update a position group",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/orders/cancel_all": {
      "post": {
        "description": "`OneClick`; 200 `Cancellations` after every cancel resolved — every order this app placed or adopted that is working, or journaled and not yet acknowledged, on every symbol, asked to cancel; each also frames `changed`/`failed orders/<id>`. `CANCELLED 0 of 0` and four empty lists with nothing working. A venue-held row not yet adopted keeps `orders/<venue order_id>/cancel`; 409 `not_bound` on an unbound account; 409 `one_click_off`/`settling`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OneClick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cancellations"
                }
              }
            },
            "description": "What `orders/cancel_all` answers once every cancel resolved."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Cancel all orders",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "protective",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/orders/{order}/cancel": {
      "post": {
        "description": "`<order>` the venue's order id of the row the venue holds and this app did not place (`venue_held: true` on the `orders` node, `{order_id, venue_held, symbol, item, side, exec, price, limit, stop, qty, tif, state, cancelable, group}` (`item` the venue's `symbol` as an item, `null` where it names no instrument), `limit` and `stop` the legs it rests at in decimal text (`null` when none; on a bracket parent the working leg's price), `exec` `STP LMT` when both and `price` then the stop it folds to, `group` the other orders of its venue group `[{relationship, order_id}]` in the venue's words — the refresh-token venue's `ConditionalOrders`: `OSO` a child, `OSP` the parent, `BRK` or `OCO` a sibling, a resting pair listed once as its lower id — `[]` for a plain order), keyed by the venue's own id. The first act adopts it: minted into the journal as the human's order acked under that id, a venue-held position on its symbol adopted with it, then the act runs as on an order of ours; from then on the row is ours on `orders`, under its intent id, and `orders/<venue order_id>` (any venue id an order of ours was acked, replaced or adopted under) reads and acts as `orders/<intent id>`. `reprice` takes `Repricing` as `orders/<id>/reprice` does (`{price, live?, leg?, tranche?}`, `leg` naming a group's take or stop): 202 `Changed`, 400 `a price must be above 0, got <price>`, or 409 `{\"error\", \"reason\"}` `partly_filled` (`<order> has filled <f> of <q>; cancel it instead`) when the member it moves has a fill of its own, nothing sent, `not_adoptable` (a limit or stop on an equity, a future or an option, a bracket, OTO or OCO of one tranche, or a spread its venue describes adopts; never one the venue lets no other client modify) or `not_working`; an adopted order moves in place only: where the venue cannot, the 202's outcome is `failed orders/<order>` naming why, nothing cancelled. `cancel` takes no body: 202 `Changed`; a row that cannot adopt is cancelled at the venue directly. A failure after the 202, of the adoption or of the act, frames `failed` on `orders/<venue order_id>` in the model's words. Every other verb on it is 404; 409 `one_click_off`/`settling`/`not_bound`\n/verb/trading/<acct>/orders/<id>/cancel: `OneClick`; 202 `Changed` — the working order cancelled, the outcome framed `changed` or `failed orders/<id>`; 409 `one_click_off` (`one_click` while One-click trading is off), 409 `{\"error\": \"not_working\", \"reason\": \"<id> is no longer working on <acct>\"}` when `<id>` is filled, cancelled or rejected, nothing sent; a cancel the venue refuses (a 429) is sent once, the order working, its `answer` `CANCEL REFUSED · <why> · still working`, framed `failed orders/<id>` `the venue refused the cancel (<why>); the order still works`, its `outcomes` row `refused`, `<shape> order cancel refused on <symbol>`; a cancel the venue has not confirmed in its wait is framed `changed`, its `answer` `CANCELLING · <why>`, its `outcomes` row `modified`, `<shape> order cancelling on <symbol>`, until a pass reads its end: `CANCELLED`, `FILLED · before the cancel`, or, read working with no cancel pending at the venue, `STILL WORKING · <venue> did not cancel it`, framed `failed orders/<id>` `Still working: <venue> did not cancel it`, its `outcomes` row `refused`, `<shape> order still working on <symbol>`. `<id>` a plan leg's: its pair removed — a venue OCO, or a lone GTC limit or stop, that is the pair cancelled with it — and the shares re-split over the rest, the held legs re-held; the last pair's drop closes the plan where the venue held the pair, and `failed plans/<item>` names the shares left unprotected, else is refused (`a plan keeps one pair; discard the plan instead`); a bracket's child refused (`the venue holds the … inside a bracket group`); each refusal framed `failed`. `<id>` a plan's own seat: cancelled only; the plan and its held legs stay and `failed plans/<item>` names the shares that lost that pair's protection; 409 `settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "order",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OneClick"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangedOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Cancel an order",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "protective",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/orders/{order}/reprice": {
      "post": {
        "description": "`<order>` the venue's order id of the row the venue holds and this app did not place (`venue_held: true` on the `orders` node, `{order_id, venue_held, symbol, item, side, exec, price, limit, stop, qty, tif, state, cancelable, group}` (`item` the venue's `symbol` as an item, `null` where it names no instrument), `limit` and `stop` the legs it rests at in decimal text (`null` when none; on a bracket parent the working leg's price), `exec` `STP LMT` when both and `price` then the stop it folds to, `group` the other orders of its venue group `[{relationship, order_id}]` in the venue's words — the refresh-token venue's `ConditionalOrders`: `OSO` a child, `OSP` the parent, `BRK` or `OCO` a sibling, a resting pair listed once as its lower id — `[]` for a plain order), keyed by the venue's own id. The first act adopts it: minted into the journal as the human's order acked under that id, a venue-held position on its symbol adopted with it, then the act runs as on an order of ours; from then on the row is ours on `orders`, under its intent id, and `orders/<venue order_id>` (any venue id an order of ours was acked, replaced or adopted under) reads and acts as `orders/<intent id>`. `reprice` takes `Repricing` as `orders/<id>/reprice` does (`{price, live?, leg?, tranche?}`, `leg` naming a group's take or stop): 202 `Changed`, 400 `a price must be above 0, got <price>`, or 409 `{\"error\", \"reason\"}` `partly_filled` (`<order> has filled <f> of <q>; cancel it instead`) when the member it moves has a fill of its own, nothing sent, `not_adoptable` (a limit or stop on an equity, a future or an option, a bracket, OTO or OCO of one tranche, or a spread its venue describes adopts; never one the venue lets no other client modify) or `not_working`; an adopted order moves in place only: where the venue cannot, the 202's outcome is `failed orders/<order>` naming why, nothing cancelled. `cancel` takes no body: 202 `Changed`; a row that cannot adopt is cancelled at the venue directly. A failure after the 202, of the adoption or of the act, frames `failed` on `orders/<venue order_id>` in the model's words. Every other verb on it is 404; 409 `one_click_off`/`settling`/`not_bound`\n/verb/trading/<acct>/orders/<id>/reprice: `Repricing`; 202 `Changed` — the working order re-priced at the venue, its entry, or with `leg` (`take` or `stop`) that exit of tranche `tranche` (absent 0), the outcome on `/ws/live` as `changed` or `failed orders/<id>`, a stop entry moved through the market failing in `draft/stage`'s `through_market` words with nothing sent; where the venue could not replace it in place and Taji cancelled it and placed it anew, `orders/<id>` reads `successor`, the id of the order now working, and `orders/<id>/cancel` cancels that one. 400 `tranche names a leg's; add leg`, `a price must be above 0, got <price>`. 409 `{\"error\": \"not_working\", \"reason\"}` when `<id>` is no longer working (filled, cancelled or rejected), `{\"error\": \"held\", \"reason\": \"held by Taji; cancel and place again\"}` on an order Taji holds until its `activate` rule passes. 409 `partly_filled` (`<id> has filled <f> of <q>; cancel it instead`) on an order with a fill of its own, nothing sent; a bracket whose entry has filled reprices its held exits, `leg` required; where the venue cannot move such an exit, or an OCO's, in place, or a fallback's cancel takes a filled group's exits, Taji places an OCO over the same shares with the edit, one per tranche, `successor` naming the first; the position holds no exit between the two; a seat's order, or a venue holding no pair over a position for the class, is refused with nothing sent. `<id>` a plan leg's (`plans/<item>/legs`): that one tranche's leg moves (`tranche`, `leg` ignored), a leg the plan holds framed `changed trading/<acct>/plans/<item>/legs/<label>` whose node reads `by` `\"Human\"`, a refusal (the clamp words) framed `failed`. A stop on another symbol moves in `on`'s points, read first against its live price on an armed plan: past it or with none, framed `failed plans/<item>/legs/<label>` `<on> <judge> is <price>, already past the stop <level>; nothing changed`, the level unchanged; `on` itself never moves (cancel the leg, `legs/create` again). An ask, an order's, a held leg's or a plan leg's, while that order's reprice is in flight is held and sent once it resolves, the newest price winning, against the fallback's new id when one was minted, its outcome framed like the first's; 409 `one_click_off`/`settling`/`not_bound`/`live_intent`/`not_live`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "order",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Repricing"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangedOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Reprice an order",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/plans/arm": {
      "post": {
        "description": "`Arming` (`symbol` an item; `plan_rev`, required, the plan node's `rev` as the sender read it, which every change to the plan moves: 409 `rev` when the plan reads another or none, 409 `arming` while an arm is in flight, nothing armed, 400 `bad_ask` for one that is not a whole number; `rev` exactly when the plan's entry is the staged draft, as `draft/place`'s: 400 `bad_ask` `arming a staged entry names the draft's rev`, 409 `stale_draft`, and that draft is the entry sent) — that item's unarmed plan sent, every other management untouched. Over a venue-held position, that position adopted into the book first. Over an order, the entry's slices, each pair riding its slice's venue group; over held shares one venue order per tranche within the row's depth: an OCO for a pair, a GTC limit for a lone take, a GTC stop for a lone stop where the row rests a standalone stop, and the rest are legs Taji holds itself (`trading/exits`), which trip only while Taji runs with a live feed: without `held: true` such a plan answers 409 `{\"error\": \"held_exits\", \"reason\", \"legs\"}` naming them (`SL1`, …), and nothing is sent; 409 `{\"error\": \"no_feed\", \"reason\"}` when no live stream would judge a held leg (the hub opens none, or a tick stop's quotes give no print within 3 s), nothing sent (a feed lost after that check frames `failed plans/<item>` `no_feed: <why>` on a 202). A stop on another symbol (`on`) opens no 1m feed: its symbol's live stream instead, read before anything is sent, 409 `no_feed` when only a delayed source streams it or no live price arrives in 3 s, 409 `declined` `<on> <judge> is <price>, already past the stop <level>; nothing changed` when the level is reached, nothing armed. 202 `Changed`, the outcome framed on `/ws/live`: `changed plans/<item>`, or `failed plans/<item>` with nothing armed and every accepted pair cancelled — `the venue refused k of n protective seats` (a refused seat is never Taji-held). A plan node reads `held`, the opt-in an armed plan was given, `true` too once a refused close puts back any of its legs held in Taji, saved so a relaunch keeps it; 409 `one_click_off`/`settling`/`not_bound`/`live_intent`/`not_live`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Arming"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangedOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Arm a position plan",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/plans/disarm": {
      "post": {
        "description": "`PlanItem`: 404 `no_plan` (`no armed plan on <symbol> to disarm`), else 202 `Changed`: every pair and entry that plan placed cancelled (confirmed), executed or not, the legs Taji held released (`trading/exits`), the plan kept unarmed with `held` false, `changed plans/<item>` and `changed orders/<id>` each; `failed plans/<item>` `disarmed; <n> <symbol> shares are unprotected` when shares the plan covered now rest bare, `… may still rest, reconcile` appended for a cancel left unresolved; a cancel the venue refuses (a 429) leaves that order resting and bound and the plan armed with its held legs, `failed plans/<item>` `not disarmed; <id> still rests: the venue refused its cancel (<why>)`, `; <n> <symbol> shares are unprotected` for the seats it did cancel, `; the plan stays armed`; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanItem"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangedOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Disarm a position plan",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "protective",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/plans/discard": {
      "post": {
        "description": "`PlanItem`: that item's unarmed plan dropped, nothing sent: 200 `Changed`, 404 `no_plan` (`no unarmed plan on <symbol> to discard`); 409 `one_click_off`/`settling`/`not_bound`/`arming`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanItem"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Discard a position plan",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/plans/draft": {
      "post": {
        "description": "`symbol` an item as `draft/stage` takes it, echoed on the plan node. An account holds one position management per item, each its own node `trading/<acct>/plans/<item>` (`<item>` the item, a space, `/`, `%`, `?`, `#` or a byte outside printable ASCII in it as `%XX`), and `plans` lists them all; `open` over an unarmed one replaces it, over an armed one is 409 `declined` `<item> has an armed plan; …` and nothing changes (409 `arming` while an arm is in flight; 409 `live_intent`/`not_live` the live-intent rule); `PlanDrafting` over the shares held (a venue-held position's net and basis, adopted at `plans/arm`) or the staged draft, for the model's own plan — the staged draft's pairs, the configured ladder otherwise — and `PlanOpening`'s `pairs` (prices: a `{unit, value}` is 400 `a plan's pairs are prices`) or its sugar `{symbol, stop, takes?, runner?}` for one written by hand: `{symbol, stop}` alone is one stop-only pair (an OTO over an order; over shares a venue stop where the row rests one within its depth, else a stop Taji holds), `{symbol, stop, takes}` one pair per take at that stop plus a stop-only runner unless `runner: false`. A stop, the sugar's or a pair's, is a price or `{on, le\\|ge, judge?}`: a stop judged on another symbol, `on` an item (400 `on is an item, as index:SPX`), exactly one of `le`/`ge` a positive price in `on`'s points (400 `le or ge: one price`), `judge` `\"tick\"` (default) or `{\"quote\": \"bid\"\\|\"ask\"\\|\"mid\"}`; a take never takes one, a spread refuses one (400 `a spread's stop is its own price`). It is held by Taji only (`plans/arm` `held: true`, `trading/exits`); its leg and tranche rows read `on`, and the plan node's `risk_partial` is `true`: no risk is read off a level in another symbol's points. `runner` absent is `true` on both (a stop-only pair beside the takes); `false` puts every share on the takes so each rides its own venue bracket. Each pair is one tranche, `tp{n}` in pair order; its legs read `TP{n}` and `SL{n}` on `plans/<item>/legs`, each with the `id` that `orders/<id>/{reprice,cancel}` takes and `seat`, the id of the venue order holding that pair over held shares (an OCO, a lone GTC limit or stop), `null` where Taji holds the leg, the plan is unarmed, or the pair rides an entry's bracket. 200 `Changed`, `node` `trading/<acct>/plans`, 400 `pairs or stop and takes`, 400 the model's refusal and the draft's clamp words; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanDrafting"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Draft a position plan",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "stage",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/plans/legs/create": {
      "post": {
        "description": "`PairDrawing`, `symbol` an item as `draft/stage` takes it, at least one of the others, `stop` a price or `plans/open`'s `{on, le\\|ge, judge?}`: 200 `Changed`, exactly the legs named written to the item's plan (a new one opened over the shares held or the staged draft when it has none), never a leg not named: a take takes the runner's shares as a new `tp{n}` with the runner's stop or none, else where no share has a stop a take-only `tp{n}`, the shares re-split evenly; a stop goes under every tranche without one, else is the stop-only runner, re-split evenly; both are one more pair; on an armed position plan 202 `Changed`, each venue seat whose quantity or legs changed cancelled (confirmed) and placed again (a pair an OCO, a lone take a GTC limit, a lone stop a GTC stop) at its quantity less what the cancelled order filled, nothing placed when none is left, then `changed plans/<item>`; on any refusal the pre-edit seats rest and `failed plans/<item>` says so with the plan unchanged; on an armed plan a stop on another symbol is first read against `on`'s live price: 409 `no_feed` without one in 3 s, 409 `declined` `<on> <judge> is <price>, already past the stop <level>; nothing changed` when reached, nothing changed. A leg's `orders/<id>/cancel` on an armed position plan re-seats the same way; 400 `a pair names a take or a stop`, 400 the clamp words, `one stop-only pair at most` or `every share has a stop; name the stop too`, 409 `held_exits` (as `plans/arm`'s) when the plan was armed without `held` and the pair would be Taji's, nothing changed; 409 `arming` while an arm is in flight; a leg's `reprice` or `cancel` (`orders/<id>/…`) that would do the same is refused the same words, framed `failed`; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PairDrawing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangedOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a stop and target to a plan",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/plans/open": {
      "post": {
        "description": "`symbol` an item as `draft/stage` takes it, echoed on the plan node. An account holds one position management per item, each its own node `trading/<acct>/plans/<item>` (`<item>` the item, a space, `/`, `%`, `?`, `#` or a byte outside printable ASCII in it as `%XX`), and `plans` lists them all; `open` over an unarmed one replaces it, over an armed one is 409 `declined` `<item> has an armed plan; …` and nothing changes (409 `arming` while an arm is in flight; 409 `live_intent`/`not_live` the live-intent rule); `PlanDrafting` over the shares held (a venue-held position's net and basis, adopted at `plans/arm`) or the staged draft, for the model's own plan — the staged draft's pairs, the configured ladder otherwise — and `PlanOpening`'s `pairs` (prices: a `{unit, value}` is 400 `a plan's pairs are prices`) or its sugar `{symbol, stop, takes?, runner?}` for one written by hand: `{symbol, stop}` alone is one stop-only pair (an OTO over an order; over shares a venue stop where the row rests one within its depth, else a stop Taji holds), `{symbol, stop, takes}` one pair per take at that stop plus a stop-only runner unless `runner: false`. A stop, the sugar's or a pair's, is a price or `{on, le\\|ge, judge?}`: a stop judged on another symbol, `on` an item (400 `on is an item, as index:SPX`), exactly one of `le`/`ge` a positive price in `on`'s points (400 `le or ge: one price`), `judge` `\"tick\"` (default) or `{\"quote\": \"bid\"\\|\"ask\"\\|\"mid\"}`; a take never takes one, a spread refuses one (400 `a spread's stop is its own price`). It is held by Taji only (`plans/arm` `held: true`, `trading/exits`); its leg and tranche rows read `on`, and the plan node's `risk_partial` is `true`: no risk is read off a level in another symbol's points. `runner` absent is `true` on both (a stop-only pair beside the takes); `false` puts every share on the takes so each rides its own venue bracket. Each pair is one tranche, `tp{n}` in pair order; its legs read `TP{n}` and `SL{n}` on `plans/<item>/legs`, each with the `id` that `orders/<id>/{reprice,cancel}` takes and `seat`, the id of the venue order holding that pair over held shares (an OCO, a lone GTC limit or stop), `null` where Taji holds the leg, the plan is unarmed, or the pair rides an entry's bracket. 200 `Changed`, `node` `trading/<acct>/plans`, 400 `pairs or stop and takes`, 400 the model's refusal and the draft's clamp words; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanOpening"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Changed"
                }
              }
            },
            "description": "What a plain verb answers: the node it acted on."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Open a position plan",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/positions/{contract}/exercise": {
      "post": {
        "description": "`Exercising`, `override: true` exercising regardless of the money (a gateway venue alone; refused elsewhere), `<contract>` the OCC symbol the venue's positions read spells, or on a gateway venue a future option's (`NQZ26 C30750`); answered once the venue has, on the connection thread: 200 `Exercised`, 202 `Awaiting` where it parks, 409 `live_intent`/`not_live` (the live-intent rule), `halted` (while the caller's seat or all trading is halted; nothing sent), `unsupported` (where the adapter has no exercise: the key-and-secret venue, a gateway venue and the agentic venue have it, the agentic venue no `do_not_exercise`; the refresh-token venue and the sim refuse) or `refused` with the venue's words; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "contract",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Exercising"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Exercised"
                }
              }
            },
            "description": "What `positions/<contract>/exercise` answers once the venue has."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Awaiting"
                }
              }
            },
            "description": "What a parked verb answers, 202."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Exercise an option",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/positions/{symbol}/close": {
      "post": {
        "description": "`PositionAct`; 202 `IntentSent`, `intent_id` the close's market order's, which a close that sends nothing after the 202 frames `failed` as well as `account` — this app's own shares in `<symbol>` closed in one act, nothing Taji holds on the symbol firing from its start and an exit already sent there answered first (one unanswered in 40 s refuses the close, `failed account` `close <symbol>: nothing sent: an exit sent on <symbol> has not answered in 40 s`), a venue-held position adopted into the book first (at the venue's net and basis; 409 `no_basis` framed `failed account` when the venue reports none): every order of ours the venue still works there withdrawn first, a filled bracket's or OTO's exits included whether a plan holds them or not (a resting sell holds the shares), then the net left once every cancel is confirmed at market on the opposing side (an exit that filled meanwhile is in it; none left sends nothing and frames `failed account`, as does a cancel the venue did not confirm, which aborts the close, and an order working on the closing side that the close did not withdraw, `close <symbol>: nothing sent: <n> held by your <queued|working> <line>; cancel it first`, `<line>` an order's `SELL MKT 1 NIO`, and an outside one `<n> held by working order <ids>`); the outcome frames on `/ws/live` as `account/market`'s does, and a market order sent outside the regular session is titled `Queued for the open (Mon 09:30 ET): SELL MKT 1 NIO` (the next open from the US equities calendar), its order's `answer` `QUEUED SELL MKT · Mon 09:30 ET`. The agent's close parked for approval with no `expect` is parked with the net as it reads then, so a position that changed before the approval is 409 `moved`. The agent's close over a working order on `<symbol>` that Taji adopted (`adopted` on its row) parks always, `withdraws <n> orders placed outside Taji (<ids>)`. A close that does not flatten puts back what it withdrew: the plan armed again as a refused close's is, a pair whose level the last mark has passed held in Taji, never at the venue, and every pair once the venue refuses a seat (`failed plans/<item>` `Taji holds every pair of <item> instead: <why>`); where Taji cannot hold a leg (no live feed), the venue seats every pair it will and each leg left bare goes out of the plan, framed `failed plans/<item>` `<item>: <leg> <price> left unprotected: <why>`; with nothing seated or held, the plan is released, `the refused close left <item> unprotected: <why>`; the exits no plan held (a bracket's, an OTO's, a plain order's on the closing side) held in Taji at the levels the venue held, under the closer. A close whose answer was lost, or that the venue takes and then rejects, keeps what Taji holds there unfired, and further closes `closing`, until the venue's orders say: filled, it is released; ended unfilled, or never listed by a venue whose listing carries every placed ref (not placed), it is put back; lost (never listed by any other venue, so it may have filled), it stays withdrawn, `failed account` `close <symbol>: the venue never listed the close order; the exits it withdrew stay withdrawn; check the position, then close again`. 409 `live_intent`/`not_live` (the live-intent rule), `not_bound` (as any `trading/<acct>/…` verb's), `flat` (when neither this app nor the venue holds any), `closing` (while a close of the symbol is in flight), `moved` (`<symbol> on <acct> is now <net>, not <expect> as shown; nothing was sent` when the net is not the body's `expect` as the close is sent after any approval, nothing withdrawn), `expired` (as `draft/place`'s), `venue_closed` (for an option while the account's clock reads closed; an option market is regular hours only; a limit, `DAY` or `GTC`, through `orders/option/place`, and a future or future option outside its own Globex session); an equity closed is sent anyway, its day market queued by the venue to the open; a crypto pair is never refused; 409 `one_click_off`/`settling`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "symbol",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PositionAct"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSentOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Close a position",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/trading/{acct}/positions/{symbol}/reverse": {
      "post": {
        "description": "`PositionAct`; 202 `IntentSent` as `close`'s, `intent_id` the closing order's — `close`, then once the symbol reads flat the net it closed sent the other way at market (long 10 becomes short 10), the second order framed on `/ws/live` as the first; a close that leaves shares behind sends nothing more and frames `failed account`. The same 409s as `close`: 409 `flat`, `closing`, `moved`, `expired`, `venue_closed`, `live_intent`/`not_live` — a second reverse naming the net the first was sent on is `moved`. Parked for the agent, a reverse with no `expect` is parked with the net as it reads then, and parks always over an adopted order, as `close`'s does; 409 `one_click_off`/`settling`/`not_bound`",
        "parameters": [
          {
            "in": "path",
            "name": "acct",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "symbol",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PositionAct"
              }
            }
          }
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSentOrAwaiting"
                }
              }
            },
            "description": "A parkable verb's 202, as a schema: the verb's own answer when sent, else\n[`Awaiting`]. Each half is serialized by its own builder."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Reverse a position",
        "tags": [
          "Trading"
        ],
        "x-taji": {
          "effect": "order",
          "gate": "policy",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/captured": {
      "post": {
        "description": "`Captured` — the page's answer to `changed ui/capture`, which the held `GET /read/ui/capture` answers with; 204, the id dropped. 404 `no_capture` for an id no capture holds (answered, timed out or never minted), 400 `bad_ask` for another body. Answered on the connection thread",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Captured"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "`Captured`"
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Return a window capture",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/cursor": {
      "post": {
        "description": "`DisplayZone` / `StageChoice` / `Cursor` / `Pointing`; 200 `DisplayZoneSet` / `StageSet` / `Crosshair` / `Pointer`; `cursor` is the window's, replaces the node whole and 404s `desk`/`pane`; `point` is the agent's, replaces the last one, 400 a missing `desk`, `time` or `price` or a `label` past 80 chars, 404 `desk`/`pane` (a Desk or pane that is not there)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cursor"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Crosshair"
                }
              }
            },
            "description": "Where the user's crosshair rests and what they selected, as the window last posted it: every member `null` until it posts one, always headless, and once its Desk is deleted. Never recorded."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Report the window cursor",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/display_tz": {
      "post": {
        "description": "`DisplayZone` / `StageChoice` / `Cursor` / `Pointing`; 200 `DisplayZoneSet` / `StageSet` / `Crosshair` / `Pointer`; `cursor` is the window's, replaces the node whole and 404s `desk`/`pane`; `point` is the agent's, replaces the last one, 400 a missing `desk`, `time` or `price` or a `label` past 80 chars, 404 `desk`/`pane` (a Desk or pane that is not there)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisplayZone"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DisplayZoneSet"
                }
              }
            },
            "description": "The zone now set."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the display time zone",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/gone": {
      "post": {
        "description": "`Departure`, no undo step (the socket's close posts it); 200 `Departed`; 400 without `client`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Departure"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Departed"
                }
              }
            },
            "description": "A closed window's leases ended."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Report a window client left",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/open": {
      "post": {
        "description": "`PageOpening`; 200 `PageOpened` — the web UI, for the window's main process or a script on the `local` token to open. The nonce is 32 random bytes hex, lives 60 s, is single use and replaces the last of its kind, so a plain one never kills a keyed one; `gl` forces the page's WebGL2 backend. 501 `no_bundle` where this binary embedded none and `TAJI_UI_DIR` names none. The nonce buys the `page` token, or, where `key` is this run's window key, the by-hand token. Answered on the connection thread: the nonce is the wire's own ([`app`])",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PageOpening"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOpened"
                }
              }
            },
            "description": "The page a nonce opens."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Open a window page",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local"
          ]
        }
      }
    },
    "/verb/ui/point": {
      "post": {
        "description": "`DisplayZone` / `StageChoice` / `Cursor` / `Pointing`; 200 `DisplayZoneSet` / `StageSet` / `Crosshair` / `Pointer`; `cursor` is the window's, replaces the node whole and 404s `desk`/`pane`; `point` is the agent's, replaces the last one, 400 a missing `desk`, `time` or `price` or a `label` past 80 chars, 404 `desk`/`pane` (a Desk or pane that is not there)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pointing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pointer"
                }
              }
            },
            "description": "The mark the agent asked the window to draw, at that bar and price for 30 s after `at_utc`: every member `null` until one is posted, once cleared, or once its Desk is deleted. Never recorded."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Point at a chart spot",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/quit": {
      "post": {
        "description": "`QuitAsk`; 200 `Quitting`, then the process flushes the store and exits. While `GET /read/busy` reads anything `held`, 409 `{\"error\": \"holds_exits\", \"reason\", \"held\"}` naming them, nothing stopped, unless `stop_exits` is `true`, which the `agent` token is refused 403 `scope`: quitting stops what Taji watches itself, a person's call. On the phone's door 403 `hand`, since nothing there starts Taji again",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuitAsk"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Quitting"
                }
              }
            },
            "description": "What `ui/quit` answers before the process ends."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Quit Taji",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/settings/set": {
      "post": {
        "description": "`Setting`; the file written `<file>.tmp` then renamed on every set. 200 `SettingSet` and `changed ui/settings`, and `changed link` for a `data.<provider>` key: `false` switches that provider's data off, `true` or `null` on. Off, no read or stream routes to it, one naming it (`provider`, or the class's `link.prefer` where it serves the read) is 422 `not_linked` `<provider> data is off: turn it on in Connections`, its open streams lapse in those words and re-route, and its accounts stay linked and tradable; 400 a missing or malformed `key` (`^[a-z0-9._-]{1,128}$`) or a missing `value`, 413 a value whose JSON passes 256 KiB, a map passing 4 MiB, or one plugin's `plugin.<id>.*` keys together passing 256 KiB; the `agent` token's set of `taji.trading` (One-click trading), `taji.plugins.registry` (where plugins install from), `taji.keys` (the hotkeys, an order's among them), `update_url` (where the update page is read from) or `report_url` (where a report is sent) parks for approval (any verb, below). `desks.active`, `desks.order` and `ui.display_tz` are the kernel's keys, the active Desk, the Desks' order (`desks/order` sets it) and the display zone it reopens on (none under `TAJI_STATELESS=1`): it rewrites each with its own value on its next pass, within half a second, after a set that changes or removes it",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Setting"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingSet"
                }
              }
            },
            "description": "What `ui/settings/set` answers: the key set."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Change a setting",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/sheet": {
      "post": {
        "description": "`SheetOpening`; 200 `PageOpened` — the sheet's view in the window. Its nonce is `ui/open`'s but in slots of its own, so minting or spending one leaves a page's pending, and it buys the `sheet` token, or, where `key` is this run's window key, the by-hand sheet token; 501 `no_bundle` as `ui/open`. Answered on the connection thread",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SheetOpening"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageOpened"
                }
              }
            },
            "description": "The page a nonce opens."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Open a window sheet",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local"
          ]
        }
      }
    },
    "/verb/ui/snapshot": {
      "post": {
        "description": "`Recording`; 200 `Recorded` — the recording the quit path writes (`desk.json`, `layout.json`, `notes.jsonl`, `bars/<pane>.json` per pane, `trading.json` when a book is seated, `tree.json`), written for the ACTIVE Desk while the process runs. 400 a `dir` that is missing or relative, 404 `desk`, 500 `io` the filesystem's own words",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Recording"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Recorded"
                }
              }
            },
            "description": "The recording `ui/snapshot` wrote."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Record a desk snapshot",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/sounds/add": {
      "post": {
        "description": "`NewSound`; stored as `<name, lowercased, its runs of other characters one ->.<kind>`, a name already held replaced. 200 `OwnSound` and `changed ui/sounds`; 400 a name, kind or base64 that is not one; 413 `too_large`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewSound"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnSound"
                }
              }
            },
            "description": "One own sound, as `sounds/add` and the read answer it."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Add a custom sound",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/sounds/remove": {
      "post": {
        "description": "`SoundName` — the file and its row go. 200 `Unsounded` and `changed ui/sounds`; 404 `sound` for a name none has",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SoundName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unsounded"
                }
              }
            },
            "description": "What `sounds/remove` answers: the name of the sound removed."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Remove a custom sound",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/stage": {
      "post": {
        "description": "`DisplayZone` / `StageChoice` / `Cursor` / `Pointing`; 200 `DisplayZoneSet` / `StageSet` / `Crosshair` / `Pointer`; `cursor` is the window's, replaces the node whole and 404s `desk`/`pane`; `point` is the agent's, replaces the last one, 400 a missing `desk`, `time` or `price` or a `label` past 80 chars, 404 `desk`/`pane` (a Desk or pane that is not there)",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StageChoice"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StageSet"
                }
              }
            },
            "description": "The stage now set."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Set the paper or live stage",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page"
          ]
        }
      }
    },
    "/verb/ui/window": {
      "post": {
        "description": "`WindowStart` (400 `bad_ask` for flags `taji ui` refuses); 200 `WindowStarted` — the kernel starts its own build's window (`<repo>/window` on a debug build, else the package's) with `args`, on an environment it sets (a few of its own variables by name, never its whole one), and writes this run's window key to that process's standard input after `--keyed`: no file, argument or environment variable holds it. With `TAJI_UI_DIR` set it starts the window unkeyed. The window's standard error appends to `<state dir>/window.log`. 500 `no_window_build` with the reason where the build's window is not there. Answered on the connection thread beside `ui/open`",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WindowStart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WindowStarted"
                }
              }
            },
            "description": "The window the kernel started."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Start the Taji window",
        "tags": [
          "Window"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local"
          ]
        }
      }
    },
    "/verb/voice/link": {
      "post": {
        "description": "`VoiceLink` — the row's `fields` beside `provider`, each a non-empty string, and no other key, proved by the arm against its provider, sealed under vault record `voice_<id>` and the provider linked, a link before it replaced; 200 `VoiceLinked`; 404 `provider` for a word no arm has, 400 `fields`, 409 `vault_locked` for a provider with fields while the vault is not open, 502 `voice` the arm's sentence",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoiceLink"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceLinked"
                }
              }
            },
            "description": "What `voice/link` answers: the voice provider linked."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Link a voice provider",
        "tags": [
          "Voice"
        ],
        "x-taji": {
          "effect": "write",
          "gate": "none",
          "scopes": [
            "local",
            "sheet"
          ]
        }
      }
    },
    "/verb/voice/unlink": {
      "post": {
        "description": "`VoiceName` — its sealed secret deleted and forgotten; 200 `VoiceUnlinked`, 404 `provider`, 409 `vault_locked` for a linked provider with fields while the vault is not open",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoiceName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceUnlinked"
                }
              }
            },
            "description": "What `voice/unlink` answers: the voice provider unlinked."
          },
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Unlink a voice provider",
        "tags": [
          "Voice"
        ],
        "x-taji": {
          "effect": "asks",
          "gate": "none",
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/ws/agent": {
      "get": {
        "description": "a Agent chat's frames on a WebSocket: upgraded, refused, authed and framed as `/ws/live`, but an `agent` or `sheet` token closes 4403 `scope` after the auth. The client sends text `{\"type\":\"subscribe\",\"id\":<its own>,\"agent\":<session>}` and `{\"type\":\"unsubscribe\",\"id\"}`; a frame not yet sent for an id since resubscribed or unsubscribed, or its lag, is never sent. Per frame of a subscribed chat `{\"type\":\"agent\",\"seq\",\"id\",\"event\",\"data\"}`, `event` one of `prompt` `{text, mentions, images, steer?}` (`steer` a question taken into the running turn), `update` (an ACP `session/update`'s params as received but a `user_message_chunk` of the chat's own during a turn, the agent echoing a question framed `prompt` (Antigravity's), a subagent's session's too, framed on its parent chat with `sessionId` the subagent's, and a `subagent_update` stamped `at` (Unix ms); a replayed `user_message_chunk` image is the agent's own record of the question's), `queue` `{queue: [{id, text, mentions, images}]}` (the messages that wait for the running turn's end, whole on every change), `permission` (a `session/request_permission`'s params, a subagent's on its parent chat, plus `request`, `toolCall` merged over the call's last update, `options` the adapter's `allow_once`, `allow_always` and `reject_once`, never one whose `optionId` holds `bypass` nor an `allow_always` for a tool that reaches a venue or destroys (for a `switch_mode` call, Claude Code's ExitPlanMode or Codex's plan review with the plan in `rawInput.plan`, every option the adapter sent but a bypass), and, for a tool that reaches a venue or destroys, `acts` `{account?, stage?, on}`: `account` (null when Taji picks it) for a tool that takes one, `stage` `Live` or `Paper` for one that takes `live`, `on` its other required word or number inputs as `[name, value]`), `question` (an ACP `elicitation/create` form's params plus `request`: `message`, `requestedSchema` `{type: \"object\", properties, required?}`, `toolCallId?`; the agent asks the user, and a `mode: \"url\"` one is cancelled unframed), `answered` `{request, option?, action?}`, `config` `{config}` whenever the chat's options move (a set's answer, the agent's `config_option_update`, its `current_mode_update` folded into the `mode` option's `currentValue`): the session's `configOptions` as the agent names them, each `{id, name, description?, category?, type, currentValue, options?}`, `type` `select` or `boolean` (Taji advertises `session.configOptions.boolean`), a select's groups flattened to `{value, name, description?}`, its `mode` less Claude Code's `bypassPermissions` and Codex's `agent-full-access`, a chat whose agent reports one as its mode ended (`error`, `closed`), `note` `{note}` (a sentence for the chat, not a failure), `done` (the turn's `PromptResponse`), `error` `{error}`, `closed`, `moved` (`agent/start`'s 200 body: a phone's `taji new` or `taji agent` moved the desk off this chat to `session`; after its `closed` when the chat ended); a subscription hears first every frame the session has had but `closed` and `moved` (of `queue` only its last), then `turn` `{busy, done}` (whether a turn runs, the last one's `PromptResponse` or null). A permission comes only where the agent asks: every Taji tool in an asking mode (Claude Code's `default`, Codex's `read-only`), only what its own classifier escalates in auto; Antigravity asks for its own shell and file edits, never a Taji tool; Grok asks for every Taji tool and its file edits, and its own policy runs its shell. An `update` of no ACP kind (Grok's `turn_completed`, `tool_call_delta_chunk`) is not framed, nor is an agent's own notification (Grok's `_x.ai/*`). Claude Code's `Skill` loading `taji` is answered `allow_once` and never framed. `{\"type\":\"error\",\"seq\",\"id\",\"status\":404,\"error\":\"session\"}` answers a `subscribe` to a chat not open on the running adapter. A chat that lags, or a frame unread for 30 s, closes 4409 `overflow`; an unparseable message 4400",
        "parameters": [],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Stream an agent chat",
        "tags": [
          "Agent"
        ],
        "x-taji": {
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    },
    "/ws/live": {
      "get": {
        "description": "the change feed, a WebSocket (`Upgrade: websocket`): 403 `origin` before any 101 for an `Origin` but none, `http://127.0.0.1:<port>` or `http://localhost:<port>`; 400 `upgrade` without `Sec-WebSocket-Key` or with bytes sent before the 101. No `x-taji-token` header: the first message, within 5 s, is text, an `Auth` holding one of this run's tokens, else close 4401 `unauthorized`; a client message over 64 KiB, on any socket, closes 4400. Every kernel frame is binary, a u32 LE header length, the header's JSON, then Arrow IPC bytes if any. A `hidden` auth's socket hears a page's `CaptureAsk`s but is no window, so a parked approval's `window` and `ui/window`'s `open` stay `false` with only it open. `Hello` comes first, its `seq` past any a previous run reached (`/ws/market` and `/ws/agent` number each of their own frames from `hello` `seq` 0 and ignore `since`), with `resync` where the auth's `since` is older than the 4,096 changes the kernel keeps or a previous run's (under the boot's or above `seq`). Then, at most once per 16 ms, the changes since the last as an `Envelope`; `failed` (`Failure`) and a link ceremony's verdict (`Linked`, or a `Failure` naming `record`) are their own frames, never merged, in the order they came, the envelope of the changes before each sent ahead of it, a path changed again later going only at its newest place; `Lagged` when the change source outran the socket. `RateLimitsChanged` holds `GET /read/link/rate_limits`'s rows; `Beat` is sent every 10 s, no `seq`, so a client hearing nothing for 25 s may count the socket dead; neither changes a node, so neither carries a `seq`. Any other frame's `seq` is the newest change it covers: it rises on each socket and skips (a merge, a lag), and every change after `hello`'s `seq` is covered by one frame. Paths `desk/<id>/…` under a Desk, `trading/<acct>/…` under the trading node, and `ui/active`, `ui/display_tz`, `ui/stage`, `ui/cursor`, `ui/point`, `ui/settings`, `link` above them, `data/hub` with `data/liveness` when an upstream opens, closes or changes status (never on a bar), and `get/<product>` when a joined read's background candidate landed; an applied layout verb frames `changed desk/<id>/layout`; a pane's rows, live ticks and indicator values are not on this socket, they are `/ws/market`'s. The kernel keeps paths, not frames: a `failed` framed while a client was away is never heard again. The client sends nothing after its auth: any message closes 4400. A frame the client leaves unread for 30 s closes 4409 `overflow`",
        "parameters": [],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Stream live changes",
        "tags": [
          "Wire"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/ws/market": {
      "get": {
        "description": "market data on a WebSocket: upgraded, refused, authed and framed as `/ws/live`, but it also takes `x-taji-token` on the upgrade, as an HTTP route does (wrong is 401 before any 101, right needs no auth message). The client sends text `{\"type\":\"stream\",\"id\":<its own>,\"product\":\"bars\",\"symbols\":[…],\"timeframe\",\"adjustment\"?,\"session\",\"provider\"?,\"from\"?,\"style\"?,\"box\"?,\"reversal\"?,\"lines\"?,\"one_step_back\"?}` (one subscription per item under the `id`, each `kind:text` as a read's, an item named twice once, `parent:` and `class` 400; `adjustment` one of `get/bars`' four (`raw`, `split`, `split-spinoff`, `split-dividend-spinoff`), absent the provider's own basis, a provider without the basis asked answering `status` `provider: \"failed\"` with the hub's words as `error`; `session` `regular`\\|`extended`\\|`24h`\\|`pre`\\|`post`, required of an equity (on D, W and M bars `regular` alone); a future's `regular`\\|`extended`, absent `extended`; an option's intraday `extended` (07:30 to 16:15 ET, an index option's 09:30 to 17:00), absent `regular`; else ignored, absent on an equity's bars 400 `bad_ask`, an equity's `24h` minutes upstream on a live provider before a delayed one and, from 20:00 to 04:00 ET, only on one whose live runs through the night (`data/freshness` `hours`), moving at those edges; `provider` a pin as `get`'s, an unlinked one 422 `not_linked`, every read and the live upstream on it alone, never falling through to another; `from` reaches the first load back to that UTC second; a refusal an `error` frame `{\"type\":\"error\",\"seq\",\"id\",\"status\",\"error\":<a `ReadError` body>}`, as every refusal on this socket), `{\"type\":\"stream\",\"id\",\"product\":\"quotes\"\\|\"depth\"\\|\"trades\"\\|\"status\"\\|\"imbalance\"\\|\"statistics\"\\|\"chains\"\\|<a plugin's product, `<id>.<name>`>,\"symbols\":[…],\"provider\"?,\"session\"?,\"ticks\"?,\"levels\"?,\"expiry\"?,\"right\"?,\"strike_min\"?,\"strike_max\"?}` (a depth stream's `ticks` and `levels` as `get/depth`'s, each frame folded, any other product's 400 `bad_ask`; a `chains` stream's `expiry`, `right`, `strike_min` and `strike_max` as the live `get/chains`' (`hold=`), its frames on `chains_schema`, any other tick product's 400 `bad_ask`; a `statistics` stream's live rows are robinhood-web's, a day figure's `ts_ref` its session's UTC midnight, a `close` stated only once final, an `expiry_iv`'s `ts_ref` its expiration's; a plugin's product's own words beside them, its frames on its `GET /read/plugins` columns, as `status`' are framed; each item `kind:text` as a read's, once; `class` 400; `provider` a pin as `get`'s, an unlinked one 422 `not_linked`; `session`, a bars stream's word, required of an equity's `quotes`, `trades` and `depth` (absent 400 `bad_ask`) and else ignored, keeps on `quotes` and `trades` the ticks whose event time (else arrival) is in it on the NYSE calendar, `24h` every session's), `{\"type\":\"stream\",\"id\",\"product\":\"positions\",\"accounts\":[…]}` (each account once; none 400 `bad_ask`, one not bound 404 `not_listed`), `{\"type\":\"unsubscribe\",\"id\"}`, and `{\"type\":\"get\",\"id\",\"product\":<any `GET /get/<product>` product>,\"query\":<that product's query string, cursor=<id> included>}`. A subscription is the chart's own pipeline on the (symbol, timeframe, adjustment, session, pin), charted by a pane or not, identical keys sharing one load: per subscription, Arrow `taji_brokerage::read::bars_stream_schema` (`get/bars`' `bars_schema`, then `closed Boolean`; `provider` per row, `vwap` null, `timeframe` and `adjustment` in the schema metadata as `get/bars` writes them), first `{\"type\":\"rows\",\"seq\",\"id\",\"history\":true}` its history in frames of at most 4,096 rows, oldest first, every row closed but a tail whose bucket still runs (again for the reach before it, older rows, and for a gap once filled, its rows; neither is final, so a client merges by bucket; a load's first frame, whether its first or one afresh (a relink, a reload, a joiner's greet), adds `\"load\":true`, and replaces whatever rows the client held), then `{\"type\":\"rows\",\"seq\",\"id\",\"history\":false}` its live bars, a later row for a bucket replacing one not yet sent, none dropped, and `{\"type\":\"status\",\"seq\",\"id\",\"symbol\",\"provider\",\"liveness\",\"delay_s\",\"last_tick_utc\",\"session\",\"adjusted\",\"prev_close\",\"gaps\"?,\"segments\"?,\"older\"?,\"older_error\"?,\"partial\"?,\"error\",\"code\",\"draws\",\"providers\",\"pin\"}` whenever one of them changes: `provider` the provider of the newest bars (the history load's — read where the class streams unless the class's `link/prefer` list names a source — until a live upstream delivers, then that upstream's), `delay_s` how many seconds late a `delayed` feed's bars arrive (the `lag_s` `data/freshness` reports, the key-and-secret venue off `atp` 900; `null` unless `delayed`), `session` the session word its bars cover, the subscription's (its history, seed and live fold each keep only that session's minutes, an hour or more counting from that session's open; a future's intraday bar its view, a coin and a daily bar `regular`), `adjusted` `true` off a venue fetch, `null` off the store, which does not say; both `null` until a load stamps them; `prev_close` the close of the trading day before the newest bar's (an equity's, option's or index's New York date, in the `24h` view its day from 20:00 ET; a future's Globex trade date; a coin's UTC date; a pair's UTC date, Friday's from Friday's 17:00 ET to Sunday's, its day before the UTC weekday before): that day's daily bar's close exactly as the vendor serves it (`taji_trading::quotes::close_before`, as `get/quotes`' `prev_close`), a decimal string, read again once a bar opens the next trading day and said before that bar, `null` on D, W and M bars and where none is served (an agent's `get/bars` carries none: the session's is `get/quotes`' `prev_close`); `gaps` `[[from_utc, to_utc]]` the spans inside the history no source vouches for, each asked to fill once per stream span and once its provider holds it, absent when none; `segments` `[{provider, from_utc, to_utc}]` which provider answers each stretch of a composed history (as `get/bars`' `segments`), absent when one series answers; `draws` `[{provider, login, limit}]` the rate limits the series spends, each scope serving bars of every login of each provider that answered it (history, `segments` or live), named as `link/rate_limits` names them; `providers` `[{provider, serves, tier, basis, reason?}]` every provider reading the class's bars, those serving the item, timeframe and adjustment first in the hub's order, then the rest with `serves: false` and `reason` the hub's word (`not_linked`, `vault_locked`, the basis it lacks, `delayed`, `not_served`), `tier` its plan's access to the class's bars (`realtime`\\|`delayed`\\|`history`\\|`refused`\\|`unknown`), `basis` the adjustment it answers on; `pin` the ask's `provider`, else `null`; `older` `\"none\"` once a read before the first row found nothing (the sources hold no older bars; a client stops asking), `\"refused\"` with the hub's words as `older_error` when one was refused; absent while older bars may exist, cleared by a load afresh or older rows; `partial` `true` while a daily equity bar's forming day carries no vendor day bar (its volume the sum of the regular-session minutes Taji streams), absent otherwise; `error` a refused load's reason and `code` its `ReadError` tag (`not_served` no linked source serves it, `not_listed` the vendor lists no such symbol, `fetch_first` the store lacks a span), `null` while none. A spread, a symbol spelled as its 2-4 option legs in the `spread:` grammar (`buy:1:<OCC>,sell:1:<OCC>`): its rows are the net of its legs' closes, bar for bar (`o = h = l = c` = Σ ±ratio × close, buy +, sell −, `v` 0), only at a `t` every leg has; live, the `spread:` quotes stream's newest net mid at each minute's end. A styled `stream` (`style` and its words as `get/bars` takes them, each a string, number or boolean) carries that read's rows, one fold a subscription: `{\"type\":\"rows\",\"seq\",\"id\",\"history\":true}` the whole series (the first load, every older reach, a closed bar at or before the last closed one) in frames of at most 4,096 rows, oldest first, the first (rows from `n` 0) in place of the client's rows and each next appended (`heikin`'s merged by bucket, as time bars), and `{\"type\":\"rows\",\"seq\",\"id\",\"from\":<n>}` the rows from `n` for an in-order live bar, closed or forming, which the client truncates at `n` then appends (no rows: truncate only, a vanished projection); `heikin` in `bars_stream_schema`, the others in `get/bars`' styled schema; past 50,000 rows an `error` frame 422 `too_many_rows` and the subscription ends. A tick stream attaches to the hub's one upstream per symbol, as a `hold=` read: `{\"type\":\"rows\",\"seq\",\"id\",\"history\":false}` one Arrow batch on that product's `get` schema, every symbol's frames since the last drain (a `depth` symbol's newest book alone, a `quotes` symbol's newest row, as a `hold=` read's), and per symbol a `status` when it opens, its provider changes (`provider`, `liveness` `live`, else `delayed` with `delay_s`) or its `prev_close` moves (the symbol's `get/quotes` `prev_close`, on every status: a `quotes` row's own, else read beside the ticks, never holding one back, at the open and again once its day turns; `null` until read and where none is served), when its upstream lapses or its source is shut for its hours (`liveness: \"disconnected\"`, the lapse or the hours as `error`; a shut symbol `live` again on its next row) or when it is refused (`provider: \"failed\"`, `error` and `code`); a stream is best effort and latest first, an upstream keeping its newest 128 rows, so a consumer further behind resumes at the oldest kept row and is never told; the whole ask refused (a product no linked source streams `not_served`) is an `error` frame. A `spread:` symbol's `quotes` row is its legs' net, on the first linked provider in routing order that streams every leg, legs never mixing providers: class `option`, `bid`/`ask` the net's (sizes the refresh-token venue's alone), `last` and `last_ts` null (no vendor prints a complex order), the day figures null; streamed as one instrument where its provider does (the refresh-token venue's `stream/options/quotes`, its option-quote streams not full), `book_ts` then null, else composed of each leg's own upstream (shared with any reader of the leg), `book_ts` the oldest leg's; a leg with no bid counts 0.00, as that venue's own net does; a leg lapsed, with no ask or crossed is its `disconnected` with `error` `<leg>: <why>`, no row until every leg is priced again (a lapse ends the stream); its statuses add `native`, whether streamed as one instrument; a leg no linked provider streams is `not_served` naming it. A `positions` stream is the account node's own figures, pushed: `{\"type\":\"rows\",\"seq\",\"id\",\"view\":\"positions\",\"rows\":[{id, body}]}` with no Arrow, first every row, then only the rows a mark or an account change touched, the latest per row id, a `body` `null` a row closed; a row `<account>/<symbol>` is `{account, symbol, item, net, basis, mark, unrealized, day_pnl, pct, ticks, pnl_per_point, tick, as_of, liveness, unconfirmed}` as `…/account`'s `positions` row, the totals `<account>/*` `{unrealized, day}`, `unrealized` the rows' own summed (since entry) and `day` its `day`. An `indicators` stream, `{\"type\":\"stream\",\"id\",\"product\":\"indicators\",\"chart\":\"desk/<id>/chart[/<pane>]\"}`, is the chart's bound indicators' values in `get/indicators`' schema, one binding a frame, `{\"type\":\"rows\",\"seq\",\"id\",\"binding\":<its object id>}`: on subscribe every binding's full slice in frames of at most 4,096 rows, oldest first; after that each changed binding's rows from the first that changed, one row on a tick, a binding's changes inside one drain merged from the earliest. A frame's rows replace every row held for its binding at or after its first `start_dt`. `{\"type\":\"dropped\",\"seq\",\"id\",\"binding\"}` is a binding gone, and comes before a binding resent whole, so none of its older rows stay: every binding when the pane's bindings or their looks change (a bind or params, a style edit among them), and one whose changed rows start at its first (a reload, none). A chart off the active Desk frames nothing, and every binding whole once its Desk is active again; no `chart` is 400 `bad_ask`, and a chart no Desk has, or one that stops naming a pane, an `error` frame 404 `not_listed` that ends the stream. A `quotes` row's day figures (`taji_trading::quotes`), a live read's and a stream's alike: `prev_close` the close of the trading day before this one's daily bar exactly as the vendor serves it (an equity's, option's or index's session before, a future's previous trade date, a coin's previous UTC date), `null` while that bar is not served, read again 15 min on; `session_close` the session's regular close once it ended; `change` `session_close`, else `last`, less `prev_close`; `session_change` `last` less `session_close` where `last` traded after that close (an equity's alone: an index has one session), `null` where nothing traded past it; each `*_pct` over its base × 100 at 4 dp, `null` at a base ≤ 0; `market_session` `pre`\\|`regular`\\|`post`\\|`overnight`\\|`closed` (an equity `overnight` from 20:00 to 04:00 ET on the night before a session day, its chart's word, a weekend's and a holiday eve's `closed`; an index `regular` in its one session, 09:30 to 16:10 ET, to the equities' close on an early-close day, else `closed`; an option `regular` in its root's session (to 16:15 ET, 13:15 on an early-close day, on an index or ETF root but an expiring PM index series' last day, else to the equities' close), else `closed`, never `pre`, `post` or `overnight`; a future `regular` inside its trade date's hours, the daily break `closed`; a coin always `regular`); `next_session` and `next_at` the next word and its instant (a coin's `regular` at the next 00:00 UTC, where its day and `prev_close` roll). An equity's session turns at its regular open, so before it `change` is the last session's. A stream's row comes on each book or print of its symbol, the closes read again on the first past `next_at`. Frames drain at most once per 16 ms, a burst inside one window one frame. A `get` answers `{\"type\":\"rows\",\"seq\",\"id\",\"cursor\"}` with the read's Arrow page, `cursor` its metadata's or `null`, `{\"type\":\"json\",\"seq\",\"id\",\"body\"}` with the parsed body of a product that answers JSON, or `{\"type\":\"error\",\"seq\",\"id\",\"status\",\"error\"}` with the read's refusal. Another `product` than one of `GET /get/<product>`'s, an unread timeframe, adjustment or session, or no `symbols`, is `{\"type\":\"error\",\"seq\",\"id\",\"status\":400,\"error\"}`. A row the Arrow cannot carry exactly (a price or volume past `Decimal128(38,10)`, a negative volume) is not sent: `status` `provider: \"failed\"` with the reason as `error`, and later rows stream. A subscription whose pipeline died is `status` `provider: \"failed\"`, `liveness: \"disconnected\"` and its `error`, never left standing on `live`. On a `TAJI_SNAPSHOT` boot a pair the recording holds streams the recording, its rows as history then `provider: \"store\"`, `liveness: \"not_connected\"` and nothing live, and a bars `get` of one symbol it holds reads the recording as `get/bars` words it (`at`, a `limit` tail), a word it cannot honour (another basis, `session`, `provider`, `refresh`, a span over `limit`) a 400 naming it. A frame unread for 30 s closes 4409 `overflow`; a closed socket ends its subscriptions",
        "parameters": [],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Stream market data",
        "tags": [
          "Market data"
        ],
        "x-taji": {
          "scopes": [
            "agent",
            "local",
            "page",
            "sheet"
          ]
        }
      }
    },
    "/ws/voice": {
      "get": {
        "description": "the voice session on a WebSocket (`voice::Voices::serve`): upgraded, refused, authed and framed as `/ws/agent`, `hello` first; one session a kernel, a newer `start` on another socket ending the older `replaced`. The client sends text `start` (`VoiceStart`: the desk's conversation bound as `Agent::listen` binds it, the arm `provider` names, else the first linked, speaking in the `voice` it lists, else its first; sent again, it re-binds with no new provider session, its `provider` and `voice` unread), `played` (`VoicePlayed`: the milliseconds of a cut utterance's audio the client played, passed to the arm as `Input::Played` once when `id` names the utterance the last `cut` ended, else ignored) and `audio`, the first binary client frame on any socket: `frame`'s layout, header `VoiceHeard`, then PCM s16le mono at `ready.input_hz`, the open microphone, heard from `ready` to the socket's end, the provider detecting each turn; any other message closes 4400. Kernel frames, each numbered `seq`: `ready` (`VoiceReady`, again on each re-bind), `audio` (`VoiceAudio`, `id` the `caption` id of the utterance it belongs to, then PCM at `output_hz`), `cut` (`VoiceCut`: the user's speech interrupted the voice, the kernel cut a stuck turn, or the provider's connection dropped with a turn running), `status` (`VoiceStatus`: `reconnecting` while the arm reconnects, `cut` when that cut a turn, then `listening`), `caption` (`VoiceCaption`, a later one of the same `id` replacing it), `ended` (`VoiceEnded`: `not_linked`, `vault_locked`, `no_agent`, `replaced`, `provider` or `voice`, a voice the provider does not list; `hung_up` and `idle` are declared, not yet sent), then the socket closes. The voice's tools: `send` hands the user's words to the bound chat as `Agent::hand_off` (`origin.channel` `voice`), `read` is `Agent::recap`, `stop` cancels its turn, `open_desk` is the best `desks?q=` row's `desk/<id>/switch` and a re-bind; `send`, `stop` and `open_desk` run only in a model turn the user's speech began (the arm's `Began { spoken: true }`), a turn's calls one at a time. Each reply, waiting card and failure of a turn a hand-off of this bind prompted is told to the voice once, when no turn runs and no Tell sent waits for its turn, and framed `caption` `agent`; nothing answers a card. A closed chat or a lost relay tells a pending hand-off failed once; a closed one then binds the desk's current chat. Audio and transcripts are never logged",
        "parameters": [],
        "responses": {
          "default": {
            "$ref": "#/components/responses/Refusal"
          }
        },
        "summary": "Stream a voice session",
        "tags": [
          "Voice"
        ],
        "x-taji": {
          "scopes": [
            "local",
            "page"
          ]
        }
      }
    }
  },
  "security": [
    {
      "token": []
    }
  ],
  "servers": [
    {
      "url": "http://127.0.0.1:{port}",
      "variables": {
        "port": {
          "default": "7780"
        }
      }
    }
  ],
  "tags": [
    {
      "description": "Bars, quotes, chains and every other data product, what the store holds, and the market socket.\n\n#### Every data read\n\nthe rules every data product shares, beside its own row: it takes `class`, `provider`, `refresh`, `wait` and the words its `takes` names (`data-products.json`). `class` (`equity`, `index`, `future`, `option`, `crypto`, `future_option`, `forex`) only on a read of no `symbols`, required but on `search` (a listing's is `equity`, or `future` with `contracts`), the SEC forms (`equity`) and `ipos` (none), and beside `symbols` 400 `bad_ask`: each item names its own kind. An item is `kind:text` (`taji_brokerage::Subject`), split on its first `:`, the kind one of the seven classes, `continuous` (a continuous future, its root upper case and a `.c.` roll lower case however typed: `continuous:es.C.0` is `continuous:ES.c.0`; `continuous:@ES`, `continuous:ES1!`), `parent` (a root's every contract, `parent:ES.FUT`), `spread` (`spread:buy:1:<OCC>,sell:1:<OCC>`, each `buy:`/`sell:` item after it one of its 1-4 option legs; bars and quotes take 2-4 and refuse one leg 400 naming its `option:`) or `series` (`series:GDP`); an index is `index:SPX`, `index:$SPX`, `index:SPX.X` or `index:$SPX.X`, all `$SPX`; a bare item (400 naming `equity:<it>`), an unknown kind (400 listing the kinds), text its kind refuses (`equity:$SPX`; `future:@ES`, naming `continuous:`; `future:ESZ6`, naming `future:ESZ26`) and a leg with no spread before it are 400 before any provider is asked; one read mixes kinds, each item read as its own class, the parts in the asked order; a `future_option` symbol is `<dated future> <C\\|P><strike>`, `NQZ26 C30750`, and on a gateway venue a trading class off the root's its third token, `CLZ26 C80 LO`, the two-token spelling of such a contract refused naming it; the refresh-token venue refuses the token. `provider` (optional; a provider word or an account handle off `link.accounts`), `refresh` (`0`\\|`1`), `wait` (`0`\\|`1`: a joined read answers only once every candidate is read, never `pending`); a word it does not take, a word its `requires` names missing (`data-products.json`: `get/<product> needs <word>`, or `needs one of <a>, <b>`, before any provider is asked), an unknown `class`, an unknown `provider`, or a malformed filter or bars word (`right=sideways`, `session` on daily bars) is 400. Every product keyed by a symbol (`bars`, `chains` by its underlyings, `quotes`, `trades`, `option_flow` by its underlyings, `depth`, `statistics`, `imbalance`, `status`, `instrument`, `details`, `fundamentals`, `filings`, `index_daily`, `constituents`, and `news`, `earnings`, `corporate_actions` (splits), `insider_trades`, `holdings`, `ownership_stakes` and `executive_comp`, the market's without it) takes `symbols`, a comma list of items (`symbol` is 400 on every product); one item is a list of one (an item named twice read once, an empty item 400); A product takes only the items `taji_brokerage::read::takes` admits, else 400: `chains` an `equity:`, `index:` or dated `future:` underlying, `option_flow` an `equity:` or `index:` one; `series:` only `get/series`; `spread:` `bars` and `quotes`; `continuous:` `bars`, `trades`, `quotes`, `depth`, `statistics` and `imbalance`; `parent:` `instrument`, `search`, `statistics` and `imbalance` (on `bars`, `trades`, `quotes` and `depth` its rows would name no contract). Each part's `symbol` and each `missing` entry's echo the item as `kind:key` (`future:ESZ26`, `index:$SPX`, `continuous:ES.c.0`); its rows name the key (`ESZ26`, `$SPX`), as the store keys the series. A reference row naming a symbol (`instrument`, `details`, `fundamentals`, `corporate_actions`, `earnings`, `insider_trades`, `holdings`, `ownership_stakes`, `executive_comp`, `ipos`, `screener`) names it again as `item` beside its `symbol`, an item of the kind the vendor states for the row, else of the part's class, never of its spelling, null only where `symbol` is (a screener row may carry `EXCHANGE:SYMBOL` and a type, some sources' an asset type: the row names its own kind); a row no class names is left out, its symbol listed under the part's `summary` as `unnamed`. `bars`, `chains`, `quotes`, `trades`, `option_flow`, `series`, `instrument`, `search`, `details`, `fundamentals`, `news`, `corporate_actions`, `earnings`, `filings`, `screener`, `statistics`, `imbalance`, `status` and `depth`, each but with `hold`, answer 200 `application/vnd.apache.arrow.stream`, one IPC stream of one batch, the symbols' rows in the asked order, an empty answer a zero-row batch of its schema (its own row names it; `taji_brokerage::reference`'s are the reference products'; prices, sizes and volumes `Decimal128(38,10)`, instants `Timestamp(µs, UTC)` (a reference row's `Int64` UTC seconds, a tick row's `ts_event` and `ts_init` `Int64` ns), a calendar date `Date32`). Its schema metadata, each a string: `source` a JSON object by item (as echoed), each its part's `source` word (`store` or `vendor`), an array of them in part order where several parts served it; `provider` alike, each its part's provider id (`null` for a custom dataset's part); `cursor` on a clamped page, an empty one included, absent on the last; any product's `summary`, a JSON object by symbol (`\"\"` for a part with none) of the part's figures that are not rows, a key absent where no part states one; and `missing` beside served rows, a JSON array of `{product, symbol, timeframe, error, status}`, `status` and `error` that symbol's own refusal (a `ReadError` body below); its own row names any more. Every symbol missing is the first entry's refusal, its status and its body, plus `missing` beside it, every entry. `cursor` is the one paging word: a span product's `limit` (default 5,000, max 10,000) is a page that ends on a whole second, and a clamped page's metadata names `cursor`, read as the `?cursor=<id>` row says; a point product's `limit` (`screener`, `instrument`, a point `statistics` or `status`) is a top-N and its answer is never `clamped`. The provider is the one named, else the linked ones in `hub::source`'s rank, `link.prefer.data[class]` first, each one whose source reads the product for the class (`plugins/<provider>/src/source.rs` `READS`, `data/coverage` `reads`) and takes every word the ask carries: a word only some providers take (their `WORDS`, `data/coverage` `more`; the product's own row names them) routes to one of them; a `continuous:` item spelled `<ROOT>.c.<n>` and a `parent:` item on `bars`, `trades`, `quotes`, `depth`, `statistics` and `imbalance` are the metered source's alone (its own symbology), another continuous spelling (`@ES`, `ES1!`) its vendor's own symbol; a value the first lacks passes to the next, 400 only when named or when none takes it, and a named provider that does not take it is `not_served`; an unnamed metered provider that would have to buy is passed over for a free one. Cache-first: every answer the hub fetches is written to the store under the provider that gave it (but ticks and `depth` read through, identical asks in flight at once sharing one vendor call). A RANGE product (`bars`, `corporate_actions`, `earnings`, `news`, `statistics`, `imbalance`) grows one series per (provider, class, symbol, product): a covered ask is the cache, a partial one fetches only the uncovered head or tail (`bars`: each gap against the intervals held) and a restated overlap refetches and replaces the whole span (`bars`: the ask's span alone), rows of a session still running (`bars`: a bar still forming) are answered and never stored, and a vendor refusal on a partial hit answers the stored part with the refusal under `error`; they take `from`/`to` (an instant: epoch seconds, RFC 3339 with `Z` or an offset, a fraction floored, or a `YYYY-MM-DD` New York session date; `to` defaulting to now), `at` (an instant alike) and `limit` (default 5,000, max 10,000) and answer typed rows, a clamped page its `cursor`. `from`/`to` are `[from, to)` on a row's own stamp, but a plugin product's read with no `from` answers the rows of its newest instant at or before `to`; a `YYYY-MM-DD` is a New York session date, `to` the next day's start so the date is whole, a daily-or-coarser `bars` ask, `earnings`, `corporate_actions` and `ipos` reading both at UTC midnight because their rows are stamped at their date's midnight (UTC, or a venue's New York, inside that UTC day); a market calendar (`earnings` or `corporate_actions` without `symbols`, `ipos`) spans 31 days at most, else 400; `at` is inclusive, a row knowable at `at` is in; `chains` held snapshots are the one `[from, to]`. Every other ask (a range product without a span or off a provider that holds no history included) is a NOW ask, its stored answer served again while reusable (`chains`, `status` and `imbalance` 5 s, `screener` 1 min, `instrument`, `statistics`, `news` and `corporate_actions` 5 min, every other, and every one off a metered provider, until the next session opens) unless `refresh=1`; a now answer is appended to its history; a past `at` on a now-only provider answers the newest stored at or before it, else `not_served`; `limit` cuts its rows, a top-N. `instrument`, `search`, `details`, `fundamentals`, `news`, `corporate_actions`, `filings` and `screener` take `at` (an instant, as `bars`' `at`; `to` defaults to it, but on a `news` or `corporate_actions` span, whose `to` bounds the events) and answer rows on their `taji_brokerage::reference` schemas, each with `symbol` (`news` and `filings` `symbols`, a list) and `knowable_utc` (UTC seconds: when the row became knowable, a filing's acceptance, a definition's receipt or a story's last update, else the fetch), a row leaving only once `knowable_utc` is at or before `at` (else the read's instant), a field the vendor does not state `null`; a provider that holds no history (each on `search`, `details` and `screener`, all but the realtime-socket source and the metered source on `instrument`, all but the realtime-socket source on `fundamentals`, a gateway, an OAuth and the agentic venue on `corporate_actions`) asked at an `at`, or a span-less `to`, over a minute past answers the newest it stored at or before it, else is skipped, its `not_served` reason `<product> is now-only on <provider>; nothing stored at <at>`, and no `not_served` reason is empty. `statistics`, `imbalance`, `status` and `depth` take `at` alike and answer rows on their `taji_brokerage::reference` schemas, each with `symbol` (a one-instrument body's the asked one), `ts_event` (the venue's instant) and `ts_init` (`Int64` ns: when the source received it, a metered source's `ts_recv`, else when the source makes it known, a gateway venue's volatility bar the end of its New York date, a realtime-socket source's settlement the end of its session's), a row leaving only once `ts_init` is at or before `at`; they ask the providers serving them in rank. 409 `fetch_first` when a named metered provider would have to buy that span: `fetch` it; 501 `{error: \"not_served\", product, class, skipped, reason}` when no linked provider serves the ask, `skipped` every linked one passed over and `reason` why, `\"<provider>: <why>; …\"`. Every refusal of a data read is one `ReadError` body `{error: <code>, reason, …}` at its own status, the body a `missing` entry's `error` carries: 400 `bad_ask` or `lookahead` `{at, to}`, 402 `budget` `{scope, spent_usd, budget_usd, quote_usd}`, 404 `not_listed` `{symbol}`, 409 `fetch_first` `{provider, from, to, gaps, quote_usd}`, 410 `cursor_expired`, 422 `not_linked` or `no_replay` `{provider}`, 429 `rate_limited` `{provider, rest_after}` (the not-before epoch second, else `null`), 202 `pending` `{provider}` only on a joined read's error part (that provider's figures read behind it, framed `changed get/<product>` when they land), 501 `not_served` `{product, class, skipped: [{provider, reason}]}`, 502 `vendor` `{provider}`, 504 `timeout` `{after_s}`, and 500 `unknowable` for rows the kernel cannot cut at `at` (no `knowable_utc` or `ts_init`: its defect, never a pass). Answered on the connection thread ([`data::intercept`]), never on the app's\n\n#### `cursor`: the next page\n\nthe next page of the clamped `get/bars`, `get/chains`, `get/news` (with or without `symbols`), `get/corporate_actions`, `get/statistics`, `get/imbalance`, `get/status`, `get/depth` or `get/series` read, or `get/trades`, `get/quotes` or `get/option_flow` span, that minted `id`, answered as that read answers, its metadata's `cursor` while more remain (a word beside `cursor` 400, a cursor of another product 400); a cursor reads once, 64 are held (the least recent dropped) and one unread 60 s is gone: 410 `cursor_expired`\n\n#### `hold`: stream instead\n\nstreams instead (`hold` 100..60000 ms). It takes `symbols` (a list), `from` (a replay, the metered source alone), `expiry`, `right`, `strike_min` and `strike_max` (`chains`), each only where the provider declares it, else `not_served` `does not take from` (or the chain's word) for each provider, so no provider replays `chains` and `session` (as a `stream`'s below: required of an equity's `quotes`, `trades` and `depth`, keeping on `quotes` and `trades` an equity's ticks in that session) and `limit` (default one frame per symbol on `quotes` and `depth`, which restate their whole state, 100 on `chains`, one strike a row, `trades`, `status` and `imbalance`, max 1000) and nothing else, attaches to the hub's one upstream per (provider, class, product, symbol) (`hub::stream`), and answers 200 at `limit` frames or `ms`, market closed included: one Arrow batch on the product's `get` schema (a zero-row one when nothing came), each source's frame mapped as its `get` maps it, a `quotes` frame a quote or a trade no quote of its symbol follows (an index streams trades only), its row the symbol's newest book beside its newest print with the day figures, a `trades` frame one print, a `depth` frame its symbol's whole book, the metadata `provider`, `source` (`{<symbol>: \"live\"}`) and, where any lapsed, `lapsed`; none is stored; `lapsed` the words of an upstream that ended or whose source is shut for its hours, a list's each symbol's as `<symbol>: <reason>` joined by `; `; refused as the reads are, `not_served` adding `reason` per provider skipped, plus 422 `{error: \"no_replay\", provider}` for a `from` outside the metered source's last 24 hours. The key-and-secret venue's live rows ride the socket its bars do and carry the answering `feed`: a correction (`T: \"c\"`) is priced at `cp`/`cs`, a cancel or error (`T: \"x\"`) no row; equity `status` a halt, pause or resumption (`action` the status code, `reason` the reason code, `is_trading` false on `H`, `P` and `2` and true on `T` and `3`) and a limit-up/limit-down band (a row stating none); crypto (`feed` `us`) `depth` a frame per `orderbooks` message, the book folded so far, whole, as `get/depth` maps it; option `feed` `opra`, else `indicative`, one subscribe per contract. The realtime-socket source's live rows (a class whose `link.data.<id>.tier` is `realtime` or `delayed`, the latter 15 minutes late, `delayed: true`) off the socket's elements (`client-python` `websocket/models/models.py`): `trades` (`T`, `XT`) `TradeTick`s, `quotes` (`Q`, `XQ`) `QuoteTick`s and an index `V`'s `val` a `TradeTick`; equity `status` off `LULD` and equity `imbalance` off `NOI` as `get` maps them, `ts_init` the second after receipt; an upstream the plan refuses lapses with the vendor's status `message`. Its 1m bars reach `/ws/market` on a `realtime` class alone, closed off `AM`/`XA` and forming off `A`/`XAS` folded into the minute; a key real-time refuses lapses them. The OAuth venue's on `quotes` (not `index`) and `depth` (`equity` off `NYSE_BOOK` and `NASDAQ_BOOK`, `option` off `OPTIONS_BOOK`) off the streamer's content with its numbered fields named (its client library's `streaming.py`), a level-one quote the whole quote so far (the vendor sends changes alone) as its two ticks, `halted` off `SECURITY_STATUS` as `securityStatus`, a book frame its levels as `get/depth` maps them, `ts_init` its receipt; its equity and future 1m bars reach `/ws/market` closed, one per `CHART_*` frame",
      "name": "Market data"
    },
    {
      "description": "Each account's book, orders, drafts, plans and approvals.",
      "name": "Trading"
    },
    {
      "description": "Desks, panes, charts, indicators, drawings, watchlists and alerts.",
      "name": "Desks and charts"
    },
    {
      "description": "Linking providers and accounts: the forms, guided flows and keys.",
      "name": "Connections"
    },
    {
      "description": "Your agent's sessions, tools and socket.",
      "name": "Agent"
    },
    {
      "description": "Installed plugins, their pages and nodes, and the indicators they register.",
      "name": "Plugins"
    },
    {
      "description": "Messaging channels and Remote Control.",
      "name": "Phone and channels"
    },
    {
      "description": "The realtime voice in front of your agent.",
      "name": "Voice"
    },
    {
      "description": "The window's page, its state and quitting.",
      "name": "Window"
    },
    {
      "description": "The root, the route catalog, the OpenAPI document, the change feed, the event log and reports.",
      "name": "Wire"
    }
  ],
  "x-taji": {
    "fields": {},
    "nodes": {},
    "prose": [],
    "prose_asks": [],
    "sockets": {
      "/ws/agent": {
        "client": {
          "auth": {
            "$ref": "#/components/schemas/Auth"
          },
          "subscribe": {
            "$ref": "#/components/schemas/ChatSubscribe"
          },
          "unsubscribe": {
            "$ref": "#/components/schemas/ChatUnsubscribe"
          }
        },
        "kernel": {
          "agent": {
            "$ref": "#/components/schemas/ChatEvent"
          },
          "error": {
            "$ref": "#/components/schemas/ChatError"
          },
          "hello": {
            "$ref": "#/components/schemas/NumberedGreeting"
          }
        }
      },
      "/ws/live": {
        "client": {
          "auth": {
            "$ref": "#/components/schemas/Auth"
          }
        },
        "kernel": {
          "beat": {
            "$ref": "#/components/schemas/Beat"
          },
          "changed": {
            "$ref": "#/components/schemas/Changes"
          },
          "failed": {
            "$ref": "#/components/schemas/Failure"
          },
          "hello": {
            "$ref": "#/components/schemas/Hello"
          },
          "lagged": {
            "$ref": "#/components/schemas/Lagged"
          },
          "rate_limits": {
            "$ref": "#/components/schemas/RateLimitsChanged"
          }
        }
      },
      "/ws/market": {
        "client": {
          "auth": {
            "$ref": "#/components/schemas/Auth"
          },
          "get": {
            "$ref": "#/components/schemas/Get"
          },
          "stream": {
            "$ref": "#/components/schemas/Stream"
          },
          "unsubscribe": {
            "$ref": "#/components/schemas/Unsubscribe"
          }
        },
        "kernel": {
          "dropped": {
            "$ref": "#/components/schemas/NumberedDropped"
          },
          "error": {
            "$ref": "#/components/schemas/NumberedRefused"
          },
          "hello": {
            "$ref": "#/components/schemas/NumberedGreeting"
          },
          "json": {
            "$ref": "#/components/schemas/NumberedAnswered"
          },
          "rows": {
            "$ref": "#/components/schemas/NumberedRows"
          },
          "status": {
            "$ref": "#/components/schemas/NumberedStatus"
          }
        }
      },
      "/ws/voice": {
        "client": {
          "audio": {
            "$ref": "#/components/schemas/VoiceHeard"
          },
          "auth": {
            "$ref": "#/components/schemas/Auth"
          },
          "played": {
            "$ref": "#/components/schemas/VoicePlayed"
          },
          "start": {
            "$ref": "#/components/schemas/VoiceStart"
          }
        },
        "kernel": {
          "audio": {
            "$ref": "#/components/schemas/VoiceAudio"
          },
          "caption": {
            "$ref": "#/components/schemas/VoiceCaption"
          },
          "cut": {
            "$ref": "#/components/schemas/VoiceCut"
          },
          "ended": {
            "$ref": "#/components/schemas/VoiceEnded"
          },
          "hello": {
            "$ref": "#/components/schemas/NumberedGreeting"
          },
          "ready": {
            "$ref": "#/components/schemas/VoiceReady"
          },
          "status": {
            "$ref": "#/components/schemas/VoiceStatus"
          }
        }
      }
    },
    "words": {
      "adjustment": [
        "raw",
        "split",
        "split-dividend-spinoff",
        "split-spinoff"
      ],
      "calendar_class": [
        "equity",
        "future",
        "future_option",
        "index",
        "option"
      ],
      "class": [
        "crypto",
        "equity",
        "forex",
        "future",
        "future_option",
        "index",
        "option"
      ],
      "fetch_timeframe": [
        "1h",
        "1m",
        "30m",
        "4h",
        "5m",
        "D"
      ],
      "provider": [
        "alpaca",
        "cboe-daily",
        "databento",
        "edgar",
        "fred",
        "ibkr",
        "massive",
        "robinhood-agentic",
        "robinhood-web",
        "schwab",
        "ssga",
        "tradestation",
        "tradovate",
        "yahoo"
      ],
      "session": [
        "24h",
        "extended",
        "post",
        "pre",
        "regular"
      ],
      "timeframe": [
        "15m",
        "1h",
        "1m",
        "30m",
        "4h",
        "5m",
        "D",
        "M",
        "W",
        "Y"
      ]
    }
  }
}
