{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wealthnow-io/json-schema/wealthnow-io-apex-equity-response-schema.json",
  "title": "ApexEquityResponse",
  "description": "The 200 answer of ``GET /api/v3/skills/apex_equity/{ticker}`` inside the\nstandard v3 envelope. Only ``fundamentals``' declared fields are pinned;\n``intel``, ``intel_windows``, ``flags``, ``chart``, ``charts``,\n``components`` and ``vendor_errors`` are served as the tool description says.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wealthnow-io-openapi.yml#/components/schemas/ApexEquityResponse",
  "additionalProperties": true,
  "properties": {
    "ok": {
      "title": "Ok",
      "type": "boolean"
    },
    "timestamp": {
      "title": "Timestamp",
      "type": "string"
    },
    "skill": {
      "const": "apex_equity",
      "title": "Skill",
      "type": "string"
    },
    "ticker": {
      "title": "Ticker",
      "type": "string"
    },
    "fundamentals": {
      "$ref": "#/$defs/ApexEquityFundamentals"
    },
    "partial": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "True exactly when 'missing' is not empty.",
      "title": "Partial"
    },
    "missing": {
      "anyOf": [
        {
          "items": {
            "enum": [
              "price_daily",
              "price_hourly",
              "price_snapshot",
              "company_facts",
              "income_statements",
              "balance_sheets",
              "insider",
              "chart_daily",
              "chart_hourly"
            ],
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Each section whose live read failed or was not answered inside the build's 3 s budget, in this order; asking again shortly can fill it.",
      "title": "Missing"
    }
  },
  "required": [
    "ok",
    "timestamp",
    "skill",
    "ticker",
    "fundamentals"
  ],
  "type": "object",
  "$defs": {
    "ApexEquityFundamentals": {
      "additionalProperties": true,
      "description": "The ``fundamentals`` block of ``GET /api/v3/skills/apex_equity/{ticker}``.\nThe fields declared here are typed, with their units, formats and null rules;\nthe block's other fields are described in the tool's description.",
      "properties": {
        "market_cap": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "USD. When market_cap_price is non-null: exactly market_cap_shares x market_cap_price (that double-precision product, unrounded), the close of market_cap_as_of on the count price_snapshot multiplies by, so market_cap / market_cap_price x a later price re-prices it. When market_cap_price is null: the market data's own figure, which it defines as a prior session's close x its reference count (market_cap_shares, basis reference_data, when that count is known) and whose session it does not name; do not re-price it. Null when neither is available, and always when market_cap_shares is null (no count, no figure: a note, ETN, warrant, unit or fund, or a split list not read now).",
          "title": "Market Cap"
        },
        "market_cap_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "USD per share: the regular-session close market_cap is computed at, on today's split basis. Null exactly when market_cap_as_of is null: no share count or no completed daily close was in hand, and market_cap (if any) is the market data's undated figure.",
          "title": "Market Cap Price"
        },
        "market_cap_as_of": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Date (YYYY-MM-DD, the New York trading date) of the regular session whose close is market_cap_price: the latest completed session when the answer was built (today's from five minutes after the closing bell; the answer is cached up to 30 minutes). Null exactly when market_cap_price is null.",
          "title": "Market Cap As Of"
        },
        "market_cap_shares": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Shares (whole), on today's split basis: the count market_cap is built on, every share class included. Null when no count applies: only common stock or an ADR whose reference row carries a share count of its own gets one (a note, ETN, warrant, unit or preferred listed under its issuer's filings gets none), and none without a split list read now (market_cap_shares_status says why).",
          "title": "Market Cap Shares"
        },
        "market_cap_shares_basis": {
          "anyOf": [
            {
              "enum": [
                "cover_page",
                "reference_data",
                "balance_sheet_period_end",
                "latest_quarter_weighted_average_basic"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Which count market_cap_shares is, as price_snapshot names it: cover_page (the latest 10-Q/10-K cover, every issued share), reference_data (the market data's count, every class as converted to this listing's), balance_sheet_period_end, or latest_quarter_weighted_average_basic. Null exactly when market_cap_shares is null.",
          "title": "Market Cap Shares Basis"
        },
        "market_cap_shares_as_of": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Date (YYYY-MM-DD) the count is as of: the cover date for cover_page, the day the reference count was read for reference_data, the period end for the balance sheet and the weighted average. Null when market_cap_shares is null or its date is unknown.",
          "title": "Market Cap Shares As Of"
        },
        "market_cap_shares_status": {
          "anyOf": [
            {
              "pattern": "^(ok|split_history_unknown|listing_type_unread|sec_unavailable|sec_pending|listing_type_absent|listing_without_share_count|reference_split_ambiguous|listing_is_[a-z_]+)$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "As price_snapshot and /api/snapshot serve it (share_count.resolve_with_status): 'ok'; a PROVISIONAL reason, an input that could not be read (split_history_unknown, listing_type_unread, sec_unavailable, sec_pending), the answer then kept a minute; or why there is no count: listing_is_<type> (listing_is_warrant, listing_is_unit, listing_is_structured_product, listing_is_etn, ...: the listing is not common stock or an ADR), listing_type_absent, listing_without_share_count (its reference row carries no count of its own), reference_split_ambiguous. Without a split list read now there is no count at all (split_history_unknown). Never null when market_cap_shares is set.",
          "title": "Market Cap Shares Status"
        },
        "shares_outstanding": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Shares (whole): the count market_cap is built on, every share class included; always equal to market_cap_shares. Null exactly when market_cap_shares is null.",
          "title": "Shares Outstanding"
        },
        "shares_outstanding_basis": {
          "anyOf": [
            {
              "enum": [
                "cover_page",
                "reference_data",
                "balance_sheet_period_end",
                "latest_quarter_weighted_average_basic"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Which count shares_outstanding is; always equal to market_cap_shares_basis. Null exactly when shares_outstanding is null.",
          "title": "Shares Outstanding Basis"
        },
        "share_class_shares_outstanding": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "description": "Shares (whole): the listed share class's own count, as the market data gives it, undated. For a multi-class issuer it is one class only (META class A 2,205,128,509 of 2,547,506,225), so it is not the count market_cap is built on. Null when the market data gives none, and for a listing share_count's gate refuses (a warrant's or a fund's count is no share class's).",
          "title": "Share Class Shares Outstanding"
        },
        "last_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "USD per share: the latest price from the quote snapshot (price_as_of, price_is_stale), not market_cap_price.",
          "title": "Last Price"
        },
        "latest_eps": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "USD per share: BASIC EPS of the newest income-statement row. When that row is the TTM window's newest quarter it shares ttm_eps_split_status: on today's share basis (divided by its own split factor when restated), null when split_history_unknown. Without a TTM block it is as filed.",
          "title": "Latest Eps"
        },
        "ttm_eps": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "USD per share: the sum of BASIC quarterly EPS over the four newest quarterly rows (ttm_eps_basis), on today's share basis (ttm_eps_split_status); a quarter without EPS is left out of the sum (ttm_quarters_with_eps). Null when ttm_eps_split_status is split_history_unknown. Absent, like every ttm_* field, when fewer than four quarterly rows were read.",
          "title": "Ttm Eps"
        },
        "ttm_eps_basis": {
          "anyOf": [
            {
              "const": "basic",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "'basic' whenever ttm_eps is present.",
          "title": "Ttm Eps Basis"
        },
        "ttm_eps_diluted": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "USD per share: the sum of DILUTED quarterly EPS over the same four quarters, on the same share basis as ttm_eps (ttm_eps_split_status). Null unless all four carry a diluted EPS (ttm_quarters_with_eps_diluted is then 4), and null when ttm_eps_split_status is split_history_unknown; absent with the TTM block.",
          "title": "Ttm Eps Diluted"
        },
        "ttm_eps_split_status": {
          "anyOf": [
            {
              "enum": [
                "no_split_in_window",
                "restated",
                "split_history_unknown"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The share basis of ttm_eps, ttm_eps_diluted and (when it is the window's newest quarter) latest_eps. Each quarter's EPS is on the share basis of the day it was FILED (a quarter re-filed after a split already carries the restated figure), so it is divided by the cumulative ratio of the splits executed after its filing date, up to today. no_split_in_window: the split list is known and no split applies to any of the four quarters; the sums are plain sums. restated: a split was applied (ttm_eps_split_ratio, ttm_eps_split_ex_dates); the sums are on today's share basis. split_history_unknown: the split read failed or timed out, or no split list was read for this listing (a note, ETN, warrant or preferred, whose statements are its issuer's); ttm_eps, ttm_eps_diluted and latest_eps are then null, since a sum that may cross an unrestated split is a wrong number. Absent with the TTM block.",
          "title": "Ttm Eps Split Status"
        },
        "ttm_eps_split_ratio": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "New shares per old share: the cumulative split ratio applied to the most-restated quarter (the one furthest from 1; NVDA's 2024-06-10 10-for-1 gives 10.0, a 1-for-10 reverse split 0.1). Non-null exactly when ttm_eps_split_status is restated.",
          "title": "Ttm Eps Split Ratio"
        },
        "ttm_eps_split_ex_dates": {
          "anyOf": [
            {
              "items": {
                "format": "date",
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Ex-dates (YYYY-MM-DD) of the splits applied, oldest first. Non-null exactly when ttm_eps_split_status is restated.",
          "title": "Ttm Eps Split Ex Dates"
        },
        "ttm_eps_source": {
          "anyOf": [
            {
              "enum": [
                "sec_companyfacts",
                "market_data_quarter_sum"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Where ttm_eps and ttm_eps_diluted come from. sec_companyfacts: the issuer's own filings, the annual report's EPS when the newest period is a fiscal year end, else the last fiscal year's EPS plus this year's year-to-date EPS less the prior year's (both year-to-date figures from one report), each on today's share basis (ttm_eps_method, ttm_eps_sec). market_data_quarter_sum: the market data's four newest quarterly rows summed, used only when the filings cannot answer. Absent with the TTM block.",
          "title": "Ttm Eps Source"
        },
        "ttm_eps_method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "fiscal_year_reported or fiscal_year_plus_ytd_less_prior_ytd when ttm_eps_source is sec_companyfacts.",
          "title": "Ttm Eps Method"
        },
        "ttm_eps_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "ok, or why the filings give no TTM EPS: share_basis_changed (the weighted share count moved more than 1.5x inside the window, for example an IPO year, so per-share figures of different periods do not add up to a TTM; ttm_eps and ttm_eps_diluted are then null).",
          "title": "Ttm Eps Status"
        },
        "ttm_eps_period_end": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The newest period end the filings' TTM EPS covers.",
          "title": "Ttm Eps Period End"
        },
        "ttm_eps_sec": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "The filing figures behind ttm_eps and ttm_eps_diluted: concept, method and each component (form, filed, accession, value as filed and on today's share basis).",
          "title": "Ttm Eps Sec"
        },
        "ttm_quarters_with_eps": {
          "anyOf": [
            {
              "maximum": 4,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Quarters of the four with a basic EPS.",
          "title": "Ttm Quarters With Eps"
        },
        "ttm_quarters_with_eps_diluted": {
          "anyOf": [
            {
              "maximum": 4,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Quarters of the four with a diluted EPS.",
          "title": "Ttm Quarters With Eps Diluted"
        }
      },
      "required": [
        "market_cap",
        "market_cap_price",
        "market_cap_as_of",
        "market_cap_shares",
        "market_cap_shares_basis",
        "market_cap_shares_as_of",
        "market_cap_shares_status",
        "shares_outstanding",
        "shares_outstanding_basis",
        "share_class_shares_outstanding",
        "last_price",
        "latest_eps"
      ],
      "title": "ApexEquityFundamentals",
      "type": "object"
    }
  }
}