# 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/loss for a Solana wallet address, including realized PnL, unrealized PnL, a daily PnL curve, and a breakdown of closed and open positions.

## Facts

- Endpoint: GET https://madeonsol.com/api/x402/wallet/CyaE1VxvBrahnPWkqm5VsdCvyS2QmNht2UFrKJHga54o/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-c05e8b74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ccHkcSSzycL-2o6gLN604

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-c05e8b74
```

Example prompt: Pull the full FIFO cost-basis PnL breakdown for Solana wallet CyaE1VxvBrahnPWkqm5VsdCvyS2QmNht2UFrKJHga54o — I want realized and unrealized gains, the daily PnL curve, and a list of both open and closed positions.

## When to prefer this

Use this endpoint when you need a comprehensive FIFO-accounted PnL view of a Solana wallet, including both realized and unrealized gains, a time-series daily curve, and a split between open and closed positions. Prefer this over the lighter /open-positions sibling when you need the full historical picture or tax-relevant realized PnL data.

## Known failure modes

- Invalid or malformed Solana wallet address returns an error
- Wallet with no trading history may return empty or zero-value PnL fields
- Payment failure or insufficient USDC balance blocks access with a 402 response
- Temporary cache miss or upstream data lag may cause stale or incomplete results
- Rate limiting may apply under high-volume usage

## How this service works

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

## Output

Returns a structured breakdown including: realized PnL, unrealized PnL, a daily historical PnL curve, and lists of closed and open token positions — all computed using FIFO cost-basis accounting for the specified Solana wallet.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Solana wallet address (base58)"
      }
     }
    }
   },
   "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-c05e8b74/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)
