Overview
The Portfolio Analysis API provides stateless analysis tools for yield portfolio construction. Use it to inspect a single instrument, score a weighted allocation book, compare two books, or simulate historical compounded yield at fixed weights. All endpoints are under the global/api/v1 prefix and use x-api-key authentication.
Portfolio analysis APY values are returned as percentages. For example,
5.2 means 5.2% APY.Allocation Format
Portfolio endpoints accept allocations as instrument IDs with weights in basis points.10000. If some instruments cannot be resolved, the backend excludes them, returns a warning, and normalizes over the resolved positions.
Analyze Instrument
GET/instruments/:instrumentId/analysis
Return a per-instrument analyst card with current yield, APY stability, liquidity, price-risk flag, and data-derived tier.
Request
Path Parameters
Response
Key Response Fields
Analyze Portfolio
POST/portfolios/analyze
Score a weighted allocation book across yield, stability, diversification, concentration, structural tail risk, and tier sleeves.
Request
Request Body
Response
Key Response Fields
Compare Allocations
POST/portfolios/compare
Compare two allocation books and return before/after analyses with metric and factor-exposure deltas.
Request
Request Body
Response
before and after objects use the same full response shape as Analyze Portfolio. The example above is shortened for readability.
Simulate History
POST/portfolios/simulate
Compound the realized blended APY history for a fixed-weight allocation book. This is descriptive and should not be treated as a forecast.
Request
Request Body
Response
Response Fields
TypeScript Example
Next Steps
Instruments API
Discover instruments and use enriched stability filters
Yield Index API
Query benchmark yield series and correlations