{"uid":"cap_S-7443L7oVCvV7jnOaU_E","slug":"treasury-fx-exposure-analyzer-09bc19b9","name":"Treasury FX Exposure Analyzer","description":"Treasury Risk Analyzer — Deterministic FX exposure analysis: gross/net exposure by currency, natural hedges, stress scenarios, hedge priority.","url":"https://portfolio-risk-analyzer-g9ao.onrender.com/fx-exposure?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fxRates":{"type":"object","additionalProperties":{"type":"number"}},"positions":{"type":"array","items":{"type":"object","required":["currency","type","amount"],"properties":{"type":{"enum":["receivable","payable","cash"],"type":"string"},"amount":{"type":"number","minimum":0},"hedged":{"type":"boolean","default":false},"currency":{"type":"string"}}}},"baseCurrency":{"type":"string","default":"USD"},"stressShockPct":{"type":"number","default":0.1},"totalTreasuryValueBase":{"type":"number"}}},"responseSchema":{"type":"json","example":{"status":"success","warnings":["Over 75% of net FX exposure is unhedged."],"timestamp":"2026-11-05T06:08:41.990Z","fx_metrics":{"net_exposure":{"EUR":540000,"GBP":-254000},"gross_exposure":{"EUR":540000,"GBP":254000},"unhedged_ratio":1,"hedged_net_exposure":{"EUR":0,"GBP":0},"unhedged_net_exposure":{"EUR":540000,"GBP":-254000},"currency_concentration":{"hhi":0.5648725643840136,"effectiveCount":1.770310797605275}},"analysis_id":"318f3f32-f2a8-4d04-9324-3ccbcad0ccde","stress_test":[{"impact":-54000,"currency":"EUR","scenario":"EUR_10pct_move","impactBeforeHedges":-54000}],"base_currency":"USD","hedge_priority":["EUR"],"natural_hedges":[],"risk_classification":{"level":"MEDIUM","score":50}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ScKLG5Q8EXeLMgVj562hd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes foreign exchange exposure across treasury positions, calculating gross/net exposure by currency, identifying natural hedges, running stress scenarios, and prioritizing hedge actions.","exampleAgentPrompt":"Analyze my company's FX exposure — I have EUR receivables of 500,000, JPY payables of 80,000,000, and GBP cash of 200,000. Use USD as the base currency, apply FX rates of EUR/USD 1.09, JPY/USD 0.0067, GBP/USD 1.27, and run a 10% stress shock to tell me gross/net exposure by currency, any natural hedges, and which positions to hedge first.","exampleUseCases":[{"title":"Quarterly treasury FX risk review","prompt":"Run an FX exposure analysis on our Q3 treasury positions: we have EUR receivables of 2,000,000 (half hedged), MXN payables of 15,000,000 (unhedged), and CAD cash of 800,000 (unhedged). Base currency is USD, use rates EUR 1.09, MXN 0.058, CAD 0.74, apply a 15% stress shock, and total treasury value is 5,000,000 USD — show me net exposure, natural hedges, and hedge priorities."},{"title":"Pre-deal FX risk check","prompt":"Before we close this deal, I need to know our FX exposure: we're taking on GBP payables of 1,200,000 and already have GBP receivables of 900,000. Base currency USD, GBP/USD rate is 1.27, stress shock 10%, total treasury 3,500,000 USD — do these naturally offset each other and what's left to hedge?"},{"title":"Multi-currency startup treasury stress test","prompt":"Stress test our startup's FX positions with a 20% shock — we have JPY cash of 50,000,000 (unhedged), EUR receivables of 400,000 (hedged), and SGD payables of 300,000 (unhedged). Base currency USD with rates JPY 0.0067, EUR 1.09, SGD 0.74, total treasury value 2,000,000 USD. Rank which currencies we need to hedge most urgently."}],"resultDescription":"Returns a structured breakdown of gross and net FX exposure by currency converted to the base currency, identification of naturally offsetting positions (natural hedges), stress-tested exposure values based on the specified shock percentage, and a prioritized list of currency positions to hedge — all computed deterministically from the submitted positions and FX rates.","failureModes":["Missing required positions array returns 400 validation error","FX rates object missing a currency present in positions causes calculation failure or unresolved conversion","Negative or zero amounts may trigger schema validation rejection","Malformed currency codes produce incorrect or null exposure groupings","totalTreasuryValueBase of zero or missing may prevent percentage-of-treasury metrics from rendering","Network timeout on cold-start container (Render free-tier spin-up latency)"],"whenToPreferThis":"Use this endpoint when you need deterministic, rule-based FX exposure computation rather than probabilistic or ML-driven risk estimates. Ideal for treasury teams that need consistent, auditable calculations of currency exposure, natural hedge identification, and hedge prioritization from first-principles arithmetic. Prefer this over general portfolio risk endpoints when the specific concern is currency risk across receivables, payables, and cash — not equity volatility or broader portfolio metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-30T06:40:47.853Z","isFirstParty":false,"canonicalSlug":"treasury-fx-exposure-analyzer-09bc19b9"}