# Zerion DNA Feed – Wallet Portfolio & PnL Lookup

> Zerion DNA Feed – Wallet Portfolio & PnL Lookup is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches a comprehensive DeFi portfolio snapshot for an EVM or Solana wallet address, including total value, PnL breakdown, asset allocation by type, top chains, and historical value chart data sourced from Zerion.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/zerion-dna-feed?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zerion-dna-feed-wallet-portfolio-pnl-lookup-1c0481b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_piv1FUHYPKP-Rwt5r3l2e

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 zerion-dna-feed-wallet-portfolio-pnl-lookup-1c0481b8
```

Example prompt: Pull the Zerion DNA portfolio snapshot for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — I want the total value, 1-day change, PnL breakdown, and a month-long value chart.

## When to prefer this

Choose this endpoint when you need a single unified DeFi portfolio snapshot for an EVM or Solana address, including both PnL analytics and historical chart data sourced directly from Zerion's v1 wallets API. It is ideal when you want multi-chain coverage with asset-type breakdown (staked, locked, deposited) without managing your own Zerion API key. At $0.002 per call with no signup required, it suits pay-per-use agent workflows. Prefer alternatives if you need token-level holdings detail, NFT data, or real-time streaming rather than a periodic snapshot.

## Known failure modes

- Missing or invalid wallet address returns a validation error
- Unsupported or malformed address format (non-EVM, non-Solana) may return an error or empty data
- Invalid period enum value returns a parameter error
- Zerion upstream API unavailability causes a 502/503 response — the call is not charged on failure
- Rate limiting or network timeout from the upstream Zerion API
- Address with no on-chain history may return zero values across all fields

## How this service works

On-chain wallet portfolio and performance from Zerion across 40+ EVM chains and Solana: total value in USD, split by position type (wallet, deposited, borrowed, locked, staked) and by chain, 1-day change, lifetime PnL (realized, unrealized, total gain and %, invested, fees) and, with a period, the value history chart (up to 60 points).

## Output

Returns a JSON object with: total portfolio value in USD, 1-day USD and percent change, PnL object (total gain, realized gain, unrealized gain, net invested, fees, sent/received external), asset breakdown by type (wallet/staked/locked/deposited/borrowed), top chains ranked by USD value, a time-series chart of portfolio value for the requested period, the wallet address, data source URL, and the timestamp the data was fetched.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "period": {
       "type": "string",
       "description": "Optional value chart: hour, day, week, month, 3months, 6months, year, 5years or max"
      },
      "address": {
       "type": "string",
       "description": "EVM address 0x… or Solana address (required)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pnl": {
   "totalFeesUsd": 1969.38,
   "totalGainUsd": -5209405448.1,
   "netInvestedUsd": 4927214774.62,
   "realizedGainUsd": -283296021.79,
   "sentExternalUsd": 7188031.5,
   "totalGainPercent": -99.5287,
   "totalInvestedUsd": 5234071460.62,
   "unrealizedGainUsd": -4926109426.3,
   "receivedExternalUsd": 5219226462.87
  },
  "chart": {
   "to": "2026-10-23T10:00:00Z",
   "from": "2026-09-23T10:00:00Z",
   "period": "month",
   "points": [
    {
     "time": "2026-09-23T10:00:00.000Z",
     "valueUsd": 787930.07
    },
    {
     "time": "2026-09-24T00:00:00.000Z",
     "valueUsd": 772412.48
    }
   ]
  },
  "byType": {
   "locked": 0.05,
   "staked": 0,
   "wallet": 1115294.87,
   "borrowed": 0,
   "deposited": 0
  },
  "source": "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "checkedAt": "2026-10-23T09:36:09.564Z",
  "topChains": [
   {
    "chain": "ethereum",
    "valueUsd": 1056557.68
   },
   {
    "chain": "binance-smart-chain",
    "valueUsd": 38929.63
   }
  ],
  "change1dUsd": -104499.65,
  "totalValueUsd": 1115294.91,
  "change1dPercent": -8.567
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zerion-dna-feed-wallet-portfolio-pnl-lookup-1c0481b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
