{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tapetide-com/json-schema/tapetide-com-fund-scheme-debt-figures-item-schema.json",
  "title": "FundSchemeDebtFiguresItem",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tapetide-com-openapi.json#/components/schemas/FundSchemeDebtFiguresItem",
  "type": "object",
  "properties": {
    "month": {
      "type": "string",
      "description": "Statement month (YYYY-MM); figures are as at the month's last day."
    },
    "portfolio_code": {
      "type": "string",
      "description": "Portfolio code of the statement that month; it can change over a fund's history."
    },
    "link": {
      "type": "string",
      "enum": [
        "confirmed",
        "inferred"
      ],
      "description": "How certain it is that this portfolio belongs to this fund: confirmed (high certainty) or inferred (likely, but not certain). It is about which fund the monthly portfolio is, not about the securities or ISINs on its lines."
    },
    "provisional": {
      "type": "boolean",
      "description": "true while the month's link to the fund may still be revised, as on `/portfolio`."
    },
    "ytm": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "number",
            "null"
          ],
          "description": "Annualised portfolio yield to maturity, in percent (7.25 = 7.25%). Null unless status is printed."
        },
        "unit": {
          "type": "string",
          "const": "percent",
          "description": "Always \"percent\"."
        },
        "status": {
          "type": "string",
          "enum": [
            "printed",
            "unusable",
            "not_printed"
          ],
          "description": "printed: the figure is fund-reported and `value` gives it; unusable: it is fund-reported, but not as a value that can be given (unreadable, without a unit, out of range, given twice with different values, or implausible for the fund: a maturity or duration under half a day outside overnight funds, over 30 days in one, Macaulay over 1.5 times the average maturity, modified above Macaulay, a yield outside 2-20%, a yield and Macaulay duration that equal another fund's of the same fund house for the month and are not supported by the yields of the fund's own holdings), and `printed_text` gives the fund's own wording; not_printed: it is not fund-reported."
        },
        "printed_text": {
          "type": [
            "string",
            "null"
          ],
          "description": "The fund's own wording of the figure, when status is unusable; null otherwise."
        },
        "source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "statement",
                "factsheet"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Who reported the figure: `statement`, reported by the fund in its monthly portfolio disclosure; `factsheet`, reported by the fund in its factsheet for the same month, given only when there is no `statement` figure. Null when status is not_printed."
        }
      },
      "required": [
        "value",
        "unit",
        "status",
        "printed_text",
        "source"
      ],
      "additionalProperties": false,
      "description": "Annualised portfolio yield to maturity, fund-reported. For a fund that also holds equity or other non-debt assets (hybrid, arbitrage, equity and other funds), the statement's figure describes its debt and money-market holdings only, not the whole portfolio."
    },
    "macaulay_duration": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "number",
            "null"
          ],
          "description": "Macaulay duration of the portfolio, in years (a figure printed in days or months is converted: days / 365, months / 12). Null unless status is printed."
        },
        "unit": {
          "type": "string",
          "const": "years",
          "description": "Always \"years\"."
        },
        "status": {
          "type": "string",
          "enum": [
            "printed",
            "unusable",
            "not_printed"
          ],
          "description": "printed: the figure is fund-reported and `value` gives it; unusable: it is fund-reported, but not as a value that can be given (unreadable, without a unit, out of range, given twice with different values, or implausible for the fund: a maturity or duration under half a day outside overnight funds, over 30 days in one, Macaulay over 1.5 times the average maturity, modified above Macaulay, a yield outside 2-20%, a yield and Macaulay duration that equal another fund's of the same fund house for the month and are not supported by the yields of the fund's own holdings), and `printed_text` gives the fund's own wording; not_printed: it is not fund-reported."
        },
        "printed_text": {
          "type": [
            "string",
            "null"
          ],
          "description": "The fund's own wording of the figure, when status is unusable; null otherwise."
        },
        "source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "statement",
                "factsheet"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Who reported the figure: `statement`, reported by the fund in its monthly portfolio disclosure; `factsheet`, reported by the fund in its factsheet for the same month, given only when there is no `statement` figure. Null when status is not_printed."
        }
      },
      "required": [
        "value",
        "unit",
        "status",
        "printed_text",
        "source"
      ],
      "additionalProperties": false,
      "description": "Macaulay duration of the portfolio, fund-reported. For a fund that also holds equity or other non-debt assets (hybrid, arbitrage, equity and other funds), the statement's figure describes its debt and money-market holdings only, not the whole portfolio."
    },
    "modified_duration": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "number",
            "null"
          ],
          "description": "Modified duration of the portfolio, in years (a figure printed in days or months is converted: days / 365, months / 12). Null unless status is printed."
        },
        "unit": {
          "type": "string",
          "const": "years",
          "description": "Always \"years\"."
        },
        "status": {
          "type": "string",
          "enum": [
            "printed",
            "unusable",
            "not_printed"
          ],
          "description": "printed: the figure is fund-reported and `value` gives it; unusable: it is fund-reported, but not as a value that can be given (unreadable, without a unit, out of range, given twice with different values, or implausible for the fund: a maturity or duration under half a day outside overnight funds, over 30 days in one, Macaulay over 1.5 times the average maturity, modified above Macaulay, a yield outside 2-20%, a yield and Macaulay duration that equal another fund's of the same fund house for the month and are not supported by the yields of the fund's own holdings), and `printed_text` gives the fund's own wording; not_printed: it is not fund-reported."
        },
        "printed_text": {
          "type": [
            "string",
            "null"
          ],
          "description": "The fund's own wording of the figure, when status is unusable; null otherwise."
        },
        "source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "statement",
                "factsheet"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Who reported the figure: `statement`, reported by the fund in its monthly portfolio disclosure; `factsheet`, reported by the fund in its factsheet for the same month, given only when there is no `statement` figure. Null when status is not_printed."
        }
      },
      "required": [
        "value",
        "unit",
        "status",
        "printed_text",
        "source"
      ],
      "additionalProperties": false,
      "description": "Modified duration of the portfolio, fund-reported. For a fund that also holds equity or other non-debt assets (hybrid, arbitrage, equity and other funds), the statement's figure describes its debt and money-market holdings only, not the whole portfolio."
    },
    "average_maturity": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "number",
            "null"
          ],
          "description": "Average (residual) maturity of the portfolio, in years (a figure printed in days or months is converted: days / 365, months / 12). Null unless status is printed."
        },
        "unit": {
          "type": "string",
          "const": "years",
          "description": "Always \"years\"."
        },
        "status": {
          "type": "string",
          "enum": [
            "printed",
            "unusable",
            "not_printed"
          ],
          "description": "printed: the figure is fund-reported and `value` gives it; unusable: it is fund-reported, but not as a value that can be given (unreadable, without a unit, out of range, given twice with different values, or implausible for the fund: a maturity or duration under half a day outside overnight funds, over 30 days in one, Macaulay over 1.5 times the average maturity, modified above Macaulay, a yield outside 2-20%, a yield and Macaulay duration that equal another fund's of the same fund house for the month and are not supported by the yields of the fund's own holdings), and `printed_text` gives the fund's own wording; not_printed: it is not fund-reported."
        },
        "printed_text": {
          "type": [
            "string",
            "null"
          ],
          "description": "The fund's own wording of the figure, when status is unusable; null otherwise."
        },
        "source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "statement",
                "factsheet"
              ]
            },
            {
              "type": "null"
            }
          ],
          "description": "Who reported the figure: `statement`, reported by the fund in its monthly portfolio disclosure; `factsheet`, reported by the fund in its factsheet for the same month, given only when there is no `statement` figure. Null when status is not_printed."
        }
      },
      "required": [
        "value",
        "unit",
        "status",
        "printed_text",
        "source"
      ],
      "additionalProperties": false,
      "description": "Average (residual) maturity of the portfolio, fund-reported. For a fund that also holds equity or other non-debt assets (hybrid, arbitrage, equity and other funds), the statement's figure describes its debt and money-market holdings only, not the whole portfolio."
    },
    "computed_ytm": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "value": {
              "type": "number",
              "description": "Value-weighted mean yield of the lines, in percent."
            },
            "unit": {
              "type": "string",
              "const": "percent",
              "description": "Always \"percent\"."
            },
            "yield_lines": {
              "type": "integer",
              "description": "Lines with a yield that enter the mean."
            },
            "coverage_pct": {
              "type": "number",
              "description": "Their total weight, percent of net assets; it can exceed 100 when the statement's other lines (net current assets, payables) are negative."
            }
          },
          "required": [
            "value",
            "unit",
            "yield_lines",
            "coverage_pct"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Computed by us, not fund-reported: the mean of the lines' yields weighted by their percent of net assets, over the non-derivative lines that carry a yield. Given only when there is no usable fund-reported yield to maturity and at least 3 such lines make up at least 90% of net assets; null otherwise. It can differ from the portfolio yield a fund states: cash, repo and net current assets usually carry no yield and are left out, and a fund may annualise yields or treat callable bonds differently."
    }
  },
  "required": [
    "month",
    "portfolio_code",
    "link",
    "provisional",
    "ytm",
    "macaulay_duration",
    "modified_duration",
    "average_maturity",
    "computed_ytm"
  ],
  "additionalProperties": false
}