Moment · Schema
Portfolio Statistics
Aggregate statistics for a portfolio, including the yield to worst and yield to maturity for the portfolio.
CompanyFixed IncomeBondsTradingMarket DataReference DataInvestment ManagementWealth ManagementBrokerageFinancial ServicesFintech
Properties
| Name | Type | Description |
|---|---|---|
| yield_to_worst | objectnull | Yield to worst statistics for the portfolio, when available. |
| yield_to_maturity | objectnull | Yield to maturity statistics for the portfolio, when available. |
| sp_rating | objectnull | The S&P rating statistics for the portfolio, when available. |
| coupon | objectnull | The coupon statistics for the portfolio, when available. |
| duration | objectnull | The (modified) duration statistics for the portfolio, when available. |
| maturity_years | objectnull | The time to maturity statistics (in years) for the portfolio, when available. |
| cashflows | object | The cashflows for the portfolio, when available. Split into yearly, monthly and all cashflows, as well as by type (coupon or principal). All cashflow amounts are in USD. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/moment/main/json-schema/moment-portfolio-stats-schema.json",
"title": "Portfolio Statistics",
"description": "Aggregate statistics for a portfolio, including the yield to worst and yield to maturity for the portfolio.",
"x-generated": "2026-10-14",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/moment-analytics-api-openapi.yml#/components/schemas/PortfolioStats",
"type": "object",
"properties": {
"yield_to_worst": {
"type": [
"object",
"null"
],
"description": "Yield to worst statistics for the portfolio, when available.",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"avg": {
"type": "number"
},
"avg_with_cash": {
"type": "number"
}
}
},
"yield_to_maturity": {
"type": [
"object",
"null"
],
"description": "Yield to maturity statistics for the portfolio, when available.",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"avg": {
"type": "number"
},
"avg_with_cash": {
"type": "number"
}
}
},
"sp_rating": {
"type": [
"object",
"null"
],
"description": "The S&P rating statistics for the portfolio, when available.",
"properties": {
"min": {
"type": [
"string",
"null"
]
},
"max": {
"type": [
"string",
"null"
]
},
"avg": {
"type": [
"string",
"null"
]
}
}
},
"coupon": {
"type": [
"object",
"null"
],
"description": "The coupon statistics for the portfolio, when available.",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"avg": {
"type": "number"
}
}
},
"duration": {
"type": [
"object",
"null"
],
"description": "The (modified) duration statistics for the portfolio, when available.",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"avg": {
"type": "number"
}
}
},
"maturity_years": {
"type": [
"object",
"null"
],
"description": "The time to maturity statistics (in years) for the portfolio, when available.",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"avg": {
"type": "number"
}
}
},
"cashflows": {
"description": "The cashflows for the portfolio, when available. Split into yearly, monthly and all cashflows, as well as by type (coupon or principal). All cashflow amounts are in USD.",
"type": "object",
"properties": {
"yearly": {
"type": "array",
"items": {
"$ref": "#/$defs/CashFlowEvent"
}
},
"monthly": {
"type": "array",
"items": {
"$ref": "#/$defs/CashFlowEvent"
}
},
"all": {
"type": "array",
"items": {
"$ref": "#/$defs/CashFlowEvent"
}
}
}
}
},
"$defs": {
"CashFlowEvent": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"amount": {
"type": "number"
},
"type": {
"type": "string",
"enum": [
"coupon",
"principal"
]
}
}
}
}
}
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/moment-portfolio-stats"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.