# MadeOnSol Wallet PnL (FIFO Cost-Basis)

> MadeOnSol Wallet PnL (FIFO Cost-Basis) is a paid API for AI agents from madeonsol.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns FIFO cost-basis profit and loss for a Solana wallet, including realized and unrealized PnL, a daily PnL curve, and breakdowns of closed and open positions.

## Facts

- Endpoint: GET https://madeonsol.com/api/x402/wallet/2FxiPRPLYX3H84FZkdRiUHDgDm4U5u98etbL4yvZ3qRq/pnl
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/madeonsol-wallet-pnl-fifo-cost-basis-e2e378ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kzTnZvn1DOyU0PbbVRWSb

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 madeonsol-wallet-pnl-fifo-cost-basis-e2e378ce
```

Example prompt: What's the full FIFO PnL breakdown for Solana wallet 2FxiPRPLYX3H84FZkdRiUHDgDm4U5u98etbL4yvZ3qRq — I want to see realized and unrealized gains, the daily profit/loss curve, and all my closed and open positions.

## When to prefer this

Use this endpoint when you need a comprehensive, FIFO-accurate PnL report for a Solana wallet, including both the historical realized gains and the current unrealized gains, plus a daily curve. Prefer this over the sibling /open-positions endpoint when you need the full picture rather than just current open positions.

## Known failure modes

- Invalid or malformed wallet address returns an error or empty result
- Wallet with no transaction history may return zero values or minimal data
- Payment not received (x402 flow incomplete) results in 402 Payment Required
- Network or RPC latency may cause slow or failed responses during high Solana traffic
- Cache miss may slightly increase response time for recently active wallets

## How this service works

FIFO cost-basis PnL — realized + unrealized + daily curve + closed/open positions

## Output

A JSON object containing FIFO cost-basis PnL data for the specified Solana wallet: total realized PnL, total unrealized PnL, a time-series daily PnL curve, and detailed lists of both closed (realized) and open (unrealized) positions with per-position cost basis and gain/loss figures.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/madeonsol-wallet-pnl-fifo-cost-basis-e2e378ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from madeonsol.com](https://www.zero.xyz/host/madeonsol.com/llms.txt)
