# FX-Adjusted P&L Calculator

> FX-Adjusted P&L Calculator is a paid API for AI agents from financial-analyst-api-production-b81a.up.railway.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Decomposes cross-border transaction returns into local currency gain and FX currency impact components for international investment analysis.

## Facts

- Endpoint: POST https://financial-analyst-api-production-b81a.up.railway.app/fx/pnl
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-adjusted-p-l-calculator-4e3791be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G6kY65r4FwevVj2KxZDkB

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 fx-adjusted-p-l-calculator-4e3791be -d '<json body>'
```

Example prompt: We invested €5M in a German real estate deal when EUR/USD was 1.08, and we're exiting now at EUR/USD 1.15 with a local Euro return of 18% — can you split the total USD P&L into how much came from the local market gain versus the currency movement?

## When to prefer this

Use this endpoint when you need to attribute returns between local market performance and currency effects for cross-border investments — particularly for international private equity, real estate, or M&A transactions where investors need to understand how much of their total return (or loss) came from the underlying asset versus FX movement. Prefer this over generic FX converters or return calculators when the decomposition of local vs. currency gain is specifically required for LP reporting or deal attribution.

## Known failure modes

- Missing or invalid FX rates cause computation failure
- Entry and exit currency are the same — no FX adjustment possible
- Negative or zero transaction amounts rejected
- Unsupported currency pair returns error
- Mismatched date and rate inputs produce incorrect decomposition

## How this service works

Financial Analyst API — FX P&L. Decompose investment returns into local asset performance and currency movement contribution. Given entry and exit prices in any currency pair with dated interim cash flows, returns total USD P&L, annualized return, and the exact basis points attributable to FX versus the underlying position. Applicable to cross-border private equity, international fixed income, commodity positions, and any multi-currency investment where currency attribution matters.

## Output

Returns the total FX-adjusted P&L broken down into two components: (1) local currency gain — the return attributable to the investment's performance in its home currency, and (2) currency impact — the gain or loss attributable purely to exchange rate movement between entry and exit. Likely expressed in base currency terms with percentage contributions from each component.

## Request schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-adjusted-p-l-calculator-4e3791be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from financial-analyst-api-production-b81a.up.railway.app](https://www.zero.xyz/host/financial-analyst-api-production-b81a.up.railway.app/llms.txt)
