{
  "x402Version": 2,
  "id": 5282,
  "slug": "5282",
  "resource": "https://x402stock.xyz/api/v1/portfolio/xray",
  "description": "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",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "250000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "tickers": "AAPL,MSFT,NVDA"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "as_of": "2026-06-08T12:00:00.000Z",
            "disclaimer": "Factual quantitative analysis, not investment advice. Inputs are delayed/periodic; verify before acting.",
            "holding_count": 3,
            "holdings": [
              {
                "cap_bucket": "mega",
                "change_percent": 0.2,
                "market_cap": 3100000000000,
                "name": "Apple Inc.",
                "price": 205.4,
                "sector": "Electronic Computers",
                "ticker": "AAPL",
                "weight": 0.3333
              },
              {
                "cap_bucket": "mega",
                "change_percent": 0.7,
                "market_cap": 3400000000000,
                "name": "Microsoft Corp",
                "price": 462.1,
                "sector": "Services-Prepackaged Software",
                "ticker": "MSFT",
                "weight": 0.3333
              },
              {
                "cap_bucket": "mega",
                "change_percent": 1.6,
                "market_cap": 3300000000000,
                "name": "NVIDIA Corp",
                "price": 138.9,
                "sector": "Electronic Computers",
                "ticker": "NVDA",
                "weight": 0.3333
              }
            ],
            "sections": {
              "prices": "ok",
              "profiles": "ok"
            },
            "source": "x402stock",
            "summary": {
              "concentration": {
                "diversification_score": 66.7,
                "hhi": 0.3333,
                "label": "moderate",
                "top3_weight": 1,
                "top_weight": 0.3333
              },
              "day_change_percent": 0.82,
              "market_cap_distribution": {
                "large": 0,
                "mega": 1,
                "micro": 0,
                "mid": 0,
                "small": 0,
                "unknown": 0
              },
              "performance": {
                "best": {
                  "change_percent": 1.6,
                  "ticker": "NVDA"
                },
                "worst": {
                  "change_percent": 0.2,
                  "ticker": "AAPL"
                }
              },
              "risk_flags": [
                "sector_concentration",
                "few_holdings"
              ],
              "sector_concentration": {
                "coverage": 1,
                "hhi": 0.56,
                "label": "high",
                "top_sectors": [
                  {
                    "sector": "Electronic Computers",
                    "weight": 0.6667
                  },
                  {
                    "sector": "Services-Prepackaged Software",
                    "weight": 0.3333
                  }
                ]
              }
            },
            "weighting": "equal"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "tickers": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "weights": {
                    "type": "string"
                  }
                },
                "required": [
                  "tickers"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "as_of": {
                    "type": "string"
                  },
                  "disclaimer": {
                    "type": "string"
                  },
                  "holding_count": {
                    "type": "number"
                  },
                  "holdings": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "cap_bucket": {
                          "type": "string"
                        },
                        "change_percent": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "market_cap": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "price": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sector": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ticker": {
                          "type": "string"
                        },
                        "weight": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "ticker",
                        "name",
                        "price",
                        "change_percent",
                        "market_cap",
                        "sector",
                        "cap_bucket",
                        "weight"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "sections": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "propertyNames": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "source": {
                    "const": "x402stock",
                    "type": "string"
                  },
                  "summary": {
                    "additionalProperties": false,
                    "properties": {
                      "concentration": {
                        "additionalProperties": false,
                        "properties": {
                          "diversification_score": {
                            "type": "number"
                          },
                          "hhi": {
                            "type": "number"
                          },
                          "label": {
                            "type": "string"
                          },
                          "top3_weight": {
                            "type": "number"
                          },
                          "top_weight": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "top_weight",
                          "top3_weight",
                          "hhi",
                          "diversification_score",
                          "label"
                        ],
                        "type": "object"
                      },
                      "day_change_percent": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "market_cap_distribution": {
                        "additionalProperties": {
                          "type": "number"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "performance": {
                        "additionalProperties": false,
                        "properties": {
                          "best": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "change_percent": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "ticker": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "ticker",
                                  "change_percent"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "worst": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "change_percent": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "ticker": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "ticker",
                                  "change_percent"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "best",
                          "worst"
                        ],
                        "type": "object"
                      },
                      "risk_flags": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "sector_concentration": {
                        "additionalProperties": false,
                        "properties": {
                          "coverage": {
                            "type": "number"
                          },
                          "hhi": {
                            "type": "number"
                          },
                          "label": {
                            "type": "string"
                          },
                          "top_sectors": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "sector": {
                                  "type": "string"
                                },
                                "weight": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "sector",
                                "weight"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "hhi",
                          "label",
                          "coverage",
                          "top_sectors"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "day_change_percent",
                      "sector_concentration",
                      "market_cap_distribution",
                      "concentration",
                      "performance",
                      "risk_flags"
                    ],
                    "type": "object"
                  },
                  "weighting": {
                    "enum": [
                      "equal",
                      "custom"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "source",
                  "as_of",
                  "holding_count",
                  "weighting",
                  "sections",
                  "summary",
                  "holdings",
                  "disclaimer"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402stock.xyz",
  "lastUpdated": "2026-09-14T19:14:32.98Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-14T19:14:32.76Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402stock.xyz",
    "manifest_name": "x402stock.xyz",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}