Unnamed service
GET x402stock.xyz/api/v1/portfolio/xray
Why an agent can trust this route.
Sonar evidence is advisory. Paid delivery is shown as verified only when paid probes are available; otherwise route estimates use the unpaid handshake as a clearly labeled proxy.
Observed outcomes
Risk x-ray for a whole watchlist or portfolio in one call. Pass `?tickers=AAPL,MSFT,NVDA` (up to 25; optional `?weights=`). Returns per-holding price, sector and cap, plus portfolio concentration (top-weight, Herfindahl, diversification score), sector concentration, market-cap distribution, weighted day performance and risk flags. Replaces dozens of per-holding calls. From x402stock
Resource: x402stock.xyz/api/v1/portfolio/xray
Network: eip155:8453 · Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · Pay to: 0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85
Payment methods: — · Last validation: 2026-09-14 08:29:58.871+00
{
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"tickers"
],
"properties": {
"tickers": {
"type": "string",
"minLength": 1
},
"weights": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"source",
"as_of",
"holding_count",
"weighting",
"sections",
"summary",
"holdings",
"disclaimer"
],
"properties": {
"as_of": {
"type": "string"
},
"source": {
"type": "string",
"const": "x402stock"
},
"summary": {
"type": "object",
"required": [
"day_change_percent",
"sector_concentration",
"market_cap_distribution",
"concentration",
"performance",
"risk_flags"
],
"properties": {
"risk_flags": {
"type": "array",
"items": {
"type": "string"
}
},
"performance": {
"type": "object",
"required": [
"best",
"worst"
],
"properties": {
"best": {
"anyOf": [
{
"type": "object",
"required": [
"ticker",
"change_percent"
],
"properties": {
"ticker": {
"type": "string"
},
"change_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
},
"worst": {
"anyOf": [
{
"type": "object",
"required": [
"ticker",
"change_percent"
],
"properties": {
"ticker": {
"type": "string"
},
"change_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"concentration": {
"type": "object",
"required": [
"top_weight",
"top3_weight",
"hhi",
"diversification_score",
"label"
],
"properties": {
"hhi": {
"type": "number"
},
"label": {
"type": "string"
},
"top_weight": {
"type": "number"
},
"top3_weight": {
"type": "number"
},
"diversification_score": {
"type": "number"
}
},
"additionalProperties": false
},
"day_change_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"sector_concentration": {
"type": "object",
"required": [
"hhi",
"label",
"coverage",
"top_sectors"
],
"properties": {
"hhi": {
"type": "number"
},
"label": {
"type": "string"
},
"coverage": {
"type": "number"
},
"top_sectors": {
"type": "array",
"items": {
"type": "object",
"required": [
"sector",
"weight"
],
"properties": {
"sector": {
"type": "string"
},
"weight": {
"type": "number"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"market_cap_distribution": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
}
},
"additionalProperties": false
},
"holdings": {
"type": "array",
"items": {
"type": "object",
"required": [
"ticker",
"name",
"price",
"change_percent",
"market_cap",
"sector",
"cap_bucket",
"weight"
],
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"sector": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"ticker": {
"type": "string"
},
"weight": {
"type": "number"
},
"cap_bucket": {
"type": "string"
},
"market_cap": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"change_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
},
"sections": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"weighting": {
"enum": [
"equal",
"custom"
],
"type": "string"
},
"disclaimer": {
"type": "string"
},
"holding_count": {
"type": "number"
}
},
"additionalProperties": false
}
}
},
"paymentRequirements": [
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
"amount": "250000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
"scheme": "exact",
"network": "eip155:8453",
"amountAtomic": "250000"
}
]
}Source catalog records are retained separately from live endpoint observations. Sonar score, uptime, and latency are advisory metrics. CDP indexing is not inferred from validation.