# Portfolio 24h PnL (Unrealized P&L on Base Wallet)

> Portfolio 24h PnL (Unrealized P&L on Base Wallet) is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns the 24-hour unrealized profit/loss in USD and percentage for all current holdings of a Base wallet address, plus the biggest movers.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/portfolio/pnl
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/portfolio-24h-pnl-unrealized-p-l-on-base-wallet-311bda3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZmDkoQJQmTBdN9eX09paa

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 portfolio-24h-pnl-unrealized-p-l-on-base-wallet-311bda3e -d '<json body>'
```

Example prompt: How is my portfolio doing today? Check the 24h unrealized PnL for my Base wallet 0x1234...abcd and tell me which holdings are the biggest movers.

## When to prefer this

Use this endpoint when you need a quick snapshot of how a specific Base wallet's holdings have performed over the past 24 hours, including unrealized PnL in USD and percentage terms and which positions moved the most. Prefer this over raw transaction history endpoints when the goal is performance analytics rather than activity logging.

## Known failure modes

- Invalid or malformed wallet address returns a 400 error
- Wallet with no tracked holdings returns zero or empty results
- Pricing data unavailable for an exotic token causes partial results
- Payment not included or insufficient USDC triggers a 402 payment required response
- Network timeout if Base RPC or price feeds are slow

## How this service works

Portfolio 24h PnL: unrealized profit/loss in USD and % on current holdings, plus the biggest movers. Send { address }. Track how the book is doing.

## Output

Returns the total unrealized PnL for the wallet over the last 24 hours expressed in USD and as a percentage, along with a breakdown of the top gaining and losing token positions (biggest movers).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "address": {
   "type": "string",
   "description": "0x wallet address (Base)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/portfolio-24h-pnl-unrealized-p-l-on-base-wallet-311bda3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
