Properties
| Name | Type | Description |
|---|---|---|
| slug | string | |
| factor_unwind | object | |
| delayed_to | object | |
| book | object | |
| asof | object | |
| holdings | array | |
| overlay | array | |
| events | array | |
| nav | array | |
| windows | array | |
| metrics | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/rayana-ai/json-schema/rayana-ai-portfolio-book-schema.json",
"title": "PortfolioBook",
"x-generated": "2026-11-22",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/rayana-ai-openapi.json#/components/schemas/PortfolioBook",
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"factor_unwind": {
"anyOf": [
{
"$ref": "#/$defs/FactorUnwind"
},
{
"type": "null"
}
]
},
"delayed_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Delayed To"
},
"book": {
"$ref": "#/$defs/PortfolioRegistry"
},
"asof": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Asof"
},
"holdings": {
"items": {
"$ref": "#/$defs/Holding"
},
"type": "array",
"title": "Holdings",
"default": []
},
"overlay": {
"items": {
"$ref": "#/$defs/OverlayLeg"
},
"type": "array",
"title": "Overlay",
"default": []
},
"events": {
"items": {
"$ref": "#/$defs/BookEvent"
},
"type": "array",
"title": "Events",
"default": []
},
"nav": {
"items": {
"$ref": "#/$defs/NavPoint"
},
"type": "array",
"title": "Nav",
"default": []
},
"windows": {
"items": {
"$ref": "#/$defs/NavWindow"
},
"type": "array",
"title": "Windows",
"default": []
},
"metrics": {
"$ref": "#/$defs/PortfolioMetrics",
"default": {
"n_holdings": 0,
"n_overlay": 0
}
}
},
"type": "object",
"required": [
"slug",
"book"
],
"$defs": {
"BookEvent": {
"properties": {
"event_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Event Date"
},
"action": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Action"
},
"ticker": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Ticker"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"side": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Side"
},
"delta_weight_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Delta Weight Pct"
},
"instrument_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Instrument Type"
},
"reason": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reason"
}
},
"type": "object",
"title": "BookEvent",
"description": "One row of the public event feed — the projection of the diff log, not\nthe log. ``reason`` has already been rewritten into the fixed public\nvocabulary by ``_public_reason``; the stored text never reaches here, and\n``source_metric`` (the number behind it) is undeclared on purpose."
},
"Contract": {
"properties": {
"underlying": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Underlying"
},
"expiry": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expiry"
},
"strike": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Strike"
},
"right": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Right"
},
"multiplier": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Multiplier"
},
"premium": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Premium"
},
"dte": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Dte"
},
"contract": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Contract"
}
},
"type": "object",
"title": "Contract",
"description": "The option contract an overlay leg is written on: its identity\n(expiry/strike/right, per ``_contract_id`` in strategy/model_portfolios.py)\nplus what a reader needs to price it.\n\nDeliberately absent: ``delta`` and ``implied_vol`` — the leg already\npublishes ``assignment_prob``, which IS |delta| — and ``iv_rank`` / ``vrp``\n/ ``timing_mult``, the overlay's timing provenance, which is selection\nmechanism (strategy/premium_overlay.py::contract_spec)."
},
"DistributionSummary": {
"properties": {
"policy": {
"type": "string",
"title": "Policy"
},
"since": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Since"
},
"covered_12m": {
"type": "boolean",
"title": "Covered 12M",
"default": false
},
"distributions_to_date_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Distributions To Date Pct"
},
"trailing_12m_yield_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Trailing 12M Yield Pct"
},
"sustain_gap_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Sustain Gap Pct"
},
"return_of_capital_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Return Of Capital Pct"
}
},
"type": "object",
"required": [
"policy"
],
"title": "DistributionSummary",
"description": "The book's distribution record (docs/distribution_layer.md §5). ``None``\non ``PortfolioMetrics.distribution`` means not a distributing book at all;\npresent with ``since`` and ``distributions_to_date_pct`` None means it IS\ndistributing but no session has crossed the seam yet — a real state, and it\nrenders differently. Nothing here is annualised. Any surface rendering a\ndistribution or yield figure must render ``sustain_gap_pct`` and\n``return_of_capital_pct`` beside it (spec §11, D3)."
},
"FactorUnwind": {
"properties": {
"flag": {
"type": "string",
"title": "Flag"
},
"date": {
"type": "string",
"title": "Date"
},
"index": {
"type": "string",
"title": "Index"
},
"held": {
"type": "integer",
"title": "Held"
},
"leg_size": {
"type": "integer",
"title": "Leg Size"
}
},
"type": "object",
"required": [
"flag",
"date",
"index",
"held",
"leg_size"
],
"title": "FactorUnwind",
"description": "Market-context banner: a recent crowded-winners unwind\n(forensics/momentum_crash_monitor.py) that touched this book's holdings.\n\nCarries only a COUNT of overlapping names, never the monitor's leg list.\nWhich names count as \"recent leaders\" is close to the momentum books' own\nselection lens, and the holdings themselves are already on the page."
},
"Holding": {
"properties": {
"ticker": {
"type": "string",
"title": "Ticker"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"sector": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sector"
},
"cluster": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cluster"
},
"rank": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Rank"
},
"weight_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Weight Pct"
},
"side": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Side"
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Price"
},
"entry_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Entry Date"
},
"select_metric": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Select Metric"
},
"sel_metric_kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sel Metric Kind"
},
"instrument_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Instrument Type"
},
"assigned": {
"type": "boolean",
"title": "Assigned",
"default": false
},
"effective_basis": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Effective Basis"
}
},
"type": "object",
"required": [
"ticker"
],
"title": "Holding",
"description": "One equity (or cash) position in today's snapshot.\n\n``weight_pct`` is the only position quantity that exists — no shares, no\ndollars, by construction of the tables themselves (the FIREWALL note on the\nmodel_portfolio_* DDL in data/db.py). ``side`` is 'long' (NULL = long) or\n'short', and ``weight_pct`` stays POSITIVE either way.\n\nDeliberately absent, all of which the ``list[dict]`` this replaced shipped:\n``rationale`` — engine text that names the selection mechanism and quotes\nits live cut-points (\"invest composite 72 (BUY); tech 68 / fund 55\",\n\"Donchian breakdown below the 200-SMA; 2N buy-stop $41.80\"), i.e. exactly\nthe disclosure ``_public_events`` rewrites event reasons to prevent, one\ntable over; ``metrics`` — the per-name selection metrics JSON, whose\npublishable aggregate is ``PortfolioMetrics`` below; ``stop_price`` and\n``target_price`` — the exit rule's live cut-points; and the row's internal\nidentity (``id`` / ``portfolio_id`` / ``run_id`` / ``recorded_at``).\n\n``assigned`` / ``effective_basis`` are the one allowlisted lift OUT of that\ndropped ``metrics`` block (data/reads.py::_assigned_view), and they are not an\nexception to the rule above: an assignment is an OUTCOME the event feed\nalready publishes in full, not a selection decision. Without them the single\nrow in the book that the picker did NOT choose arrives indistinguishable from\none it did — a new ticker with ``select_metric: null`` and no basis — which is\nthe whole of docs/subscriber_followability.md §5."
},
"NavPoint": {
"properties": {
"nav_date": {
"type": "string",
"title": "Nav Date"
},
"nav": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Nav"
},
"daily_return_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Daily Return Pct"
},
"cum_return_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cum Return Pct"
},
"drawdown_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Drawdown Pct"
},
"benchmark_ret_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Benchmark Ret Pct"
},
"n_holdings": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "N Holdings"
},
"turnover_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Turnover Pct"
},
"distribution_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Distribution Pct"
},
"capital_nav": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Capital Nav"
},
"cum_distribution_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Cum Distribution Pct"
}
},
"type": "object",
"required": [
"nav_date"
],
"title": "NavPoint",
"description": "One session on the track record. ``nav`` is TOTAL return indexed to 100\nat inception and is never restated; ``capital_nav`` is the parallel curve a\nholder sees if they take the distributions out (docs/distribution_layer.md).\n``distribution_pct`` NULL means the book does not distribute at all — 0.0\nmeans it does and nothing settled this session."
},
"NavWindow": {
"properties": {
"label": {
"type": "string",
"title": "Label"
},
"return_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Return Pct"
},
"from_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "From Date"
},
"covered": {
"type": "boolean",
"title": "Covered",
"default": false
},
"capital_return_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Capital Return Pct"
},
"distribution_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Distribution Pct"
}
},
"type": "object",
"required": [
"label"
],
"title": "NavWindow",
"description": "MTD / 3M / 6M / 12M / ITD total return. ``covered`` False (with\n``return_pct`` None) means the record does not yet reach back past that\nwindow's cutoff — render it as unavailable, never as the ITD number."
},
"OverlayLeg": {
"properties": {
"ticker": {
"type": "string",
"title": "Ticker"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Name"
},
"instrument_type": {
"type": "string",
"title": "Instrument Type"
},
"instrument": {
"$ref": "#/$defs/Contract",
"default": {}
},
"position_group": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Position Group"
},
"notional_weight_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Notional Weight Pct"
},
"premium_yield_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Premium Yield Pct"
},
"assignment_prob": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Assignment Prob"
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Price"
}
},
"type": "object",
"required": [
"ticker",
"instrument_type"
],
"title": "OverlayLeg",
"description": "One written CSP / covered-call leg currently open against the core.\n\nA leg carries the SAME ticker as the underlying it is written against and\nis sized by NOTIONAL, not book weight — the two must never be summed, which\nis why the read layer splits them out of ``holdings`` by ``instrument_type``.\n\n``premium_yield_pct`` and ``assignment_prob`` are 0-1 FRACTIONS, unlike\nevery other ``_pct`` field in this API (strategy/premium_overlay.py's\n``annual_yield`` / ``abs(delta)``) — clients must format them accordingly."
},
"PortfolioMetrics": {
"properties": {
"n_holdings": {
"type": "integer",
"title": "N Holdings",
"default": 0
},
"n_overlay": {
"type": "integer",
"title": "N Overlay",
"default": 0
},
"sleeve_state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sleeve State"
},
"total_weight_pct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Total Weight Pct"
},
"weighted_select_metric": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Weighted Select Metric"
},
"sel_metric_kind": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Sel Metric Kind"
},
"overlay_annual_yield": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Overlay Annual Yield"
},
"weighted_income_rate": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Weighted Income Rate"
},
"weighted_sustainable_yield": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Weighted Sustainable Yield"
},
"weighted_reinvest_required": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Weighted Reinvest Required"
},
"income_coverage": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Income Coverage"
},
"total_income_yield": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Total Income Yield"
},
"distribution": {
"anyOf": [
{
"$ref": "#/$defs/DistributionSummary"
},
{
"type": "null"
}
]
}
},
"type": "object",
"title": "PortfolioMetrics",
"description": "Book-level aggregates over today's snapshot (data/reads.py's\n``_book_metrics``). The income figures are weight-weighted over the book's\nTOTAL weight, so an unmeasured name drags the average down rather than being\nassumed to yield like its peers."
},
"PortfolioRegistry": {
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Display Name"
},
"objective": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Objective"
},
"risk_tier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Risk Tier"
},
"mechanism_blurb": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Mechanism Blurb"
},
"asset_class": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Asset Class"
},
"benchmark": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Benchmark"
},
"tier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Tier"
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Status"
},
"inception_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Inception Date"
},
"construction": {
"$ref": "#/$defs/PublicConstruction",
"default": {}
}
},
"type": "object",
"required": [
"slug"
],
"title": "PortfolioRegistry",
"description": "The book's registry row as its detail page sees it: the same\nmerchandising identity as ``ShelfCard``, plus the parsed construction and\nminus the per-caller flags (the detail endpoint's own gate already answered\nthose)."
},
"PublicConstruction": {
"properties": {
"holdings_min": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Holdings Min"
},
"holdings_max": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Holdings Max"
},
"turnover_tier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Turnover Tier"
},
"exit_rule": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Exit Rule"
},
"distribution_policy": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Distribution Policy"
}
},
"type": "object",
"title": "PublicConstruction",
"description": "The book's construction rules, trimmed to what is safe to publish — the\nsame set ``_PUBLIC_CONSTRUCTION_KEYS`` names in api/routers/portfolios.py,\nwhich stays the enforcing copy (it runs before this model is built)."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/rayana-ai-portfolio-book"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.