Developer guide

Portfolio diversification metrics for an API.

Holding count is the least informative diversification metric. A useful API measures how capital and common drivers are distributed—and tells you when its evidence is incomplete.

Show how much depends on the largest holding

Read max_position_ticker together with max_position_weight. The weight is a percentage of invested value. A 45% position can dominate a portfolio even when the account lists many other holdings. Show the portfolio’s cash separately.

Compare holding count with effective positions

count tells you how many positions were analysed. effective_positions tells you how many equally sized positions would have comparable concentration. A large gap between the two is a reason to look at position sizes. The concentration guide explains the underlying investment concept.

Read sector exposure and coverage together

Several stocks may belong to the same sector. Read top_sector alongside top_sector_weight. Check analysis_coverage before drawing conclusions. If the portfolio contains ETFs, their underlying holdings and overlap are outside the assessment.

Example response excerpt

{
  "max_position_weight": 45.45,
  "max_position_ticker": "AAPL",
  "effective_positions": 2.58,
  "top_sector": "Technology",
  "top_sector_weight": 100.0,
  "component_assessments": {
    "diversification": "middle",
    "risk": "upper"
  }
}

In this illustrative excerpt, one holding accounts for nearly half the invested value, and all classified sector exposure is in technology. The risk and diversification assessments answer different questions. Keep their labels visible alongside the headline portfolio score.

See the PORTIQA API reference for the authenticated request, complete public response and error handling.