{"uid":"cap_ujLO7Ma4jDbZq7DXx72WE","slug":"gloom-portfolio-exposure-analyzer-58a5d7d2","name":"Gloom Portfolio Exposure Analyzer","description":"Gloom is a free, open-source finance terminal for desktop and TUI with charts, news, filings, portfolios, alerts, and plugins.","url":"https://api.gloom.sh/v1/exposure/analyze?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"holdings":{"type":"array"},"scenarioId":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"depth":2,"holdings":[{"name":null,"status":"unknown","symbol":"AAPL","weight":1}],"scenario":{"shocks":[{}]},"requestedHoldings":1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gPISEr9qsTCrXSja2cIOq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a portfolio's holdings against a stress scenario to produce exposure depth and per-holding status weights.","exampleAgentPrompt":"Can you run a scenario exposure analysis on my portfolio — I'm holding AAPL, TSLA, and MSFT — against scenario ID 'rate-shock-2024' and tell me the depth and weight of each position?","exampleUseCases":[{"title":"Rate hike stress test for equity portfolio","prompt":"Analyze my portfolio exposure for a rate hike scenario — I hold AAPL, MSFT, and JPM — using scenario ID 'rate-shock-2024'. Show me how each holding is affected and the overall exposure depth."},{"title":"Bear market scenario check before rebalancing","prompt":"Before I rebalance, run a bear market scenario called 'bear-2025' against my positions in SPY, QQQ, and BND so I can see each holding's weight and status under that shock."},{"title":"Concentrated single-stock exposure review","prompt":"I only hold NVDA right now — can you check my exposure using the scenario 'sector-correction-tech' so I know how deep my risk goes and what the scenario shocks look like?"}],"resultDescription":"Returns a JSON object containing the overall exposure depth score, a list of holdings each annotated with their symbol, weight, and status (e.g. 'unknown'), the scenario definition with associated shocks, and a count of the requested holdings.","failureModes":["Unknown or unsupported scenarioId returns an empty or null scenario object","Holdings with unrecognized ticker symbols return status 'unknown' with null name","Empty holdings array may return a zero-depth result with no per-holding data","Malformed request body (missing required fields) returns a 4xx error","Payment failure or insufficient USDC balance blocks the call with a 402 response"],"whenToPreferThis":"Use this endpoint when you need structured, scenario-based exposure analysis for a specific set of holdings and already have a scenario ID to apply. It is ideal for agents performing portfolio risk assessment, rebalancing decisions, or stress-testing workflows within the Gloom finance platform ecosystem, particularly when a quantitative depth score and per-holding status breakdown is needed rather than general market data or news.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:56:50.373Z","isFirstParty":false,"canonicalSlug":"gloom-portfolio-exposure-analyzer-58a5d7d2"}