# Portfolio Concentration Risk Analyzer

> Portfolio Concentration Risk Analyzer is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Analyzes a Base wallet's portfolio for concentration risk, returning top-holding percentage, HHI index, stablecoin allocation, and diversification flags.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/portfolio/risk
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/portfolio-concentration-risk-analyzer-392d7145
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oWlfSPmyTVNnZms51Y3tH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability portfolio-concentration-risk-analyzer-392d7145 -d '<json body>'
```

Example prompt: Can you check if my Base wallet 0x4f3a...b7c2 is dangerously concentrated — I want to know my top holding percentage, the HHI index, and whether I need to diversify?

## When to prefer this

Use this endpoint when you need a structured concentration risk snapshot for a Base wallet — specifically the HHI metric, top-holding dominance percentage, and stablecoin ratio — rather than raw token balances or portfolio value. Prefer this over generic balance checkers when the goal is risk assessment or diversification analysis.

## Known failure modes

- Invalid or malformed wallet address returns 400 error
- Address with no on-chain holdings may return zeroed metrics or empty result
- Network timeout if Base RPC is slow or unavailable
- Non-Base (e.g. Ethereum mainnet) addresses may return empty or incorrect data

## How this service works

Portfolio concentration risk: top-holding %, HHI concentration index, stablecoin %, diversification flags. Send { address }. Spot dangerous concentration before it hurts.

## Output

Returns the percentage held in the top asset, the Herfindahl-Hirschman Index (HHI) measuring overall concentration, stablecoin allocation percentage, and boolean diversification flags indicating potentially dangerous concentration.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "address": {
   "type": "string",
   "description": "0x wallet address (Base)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/portfolio-concentration-risk-analyzer-392d7145/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
