# SolEnrich Portfolio History

> SolEnrich Portfolio History is a paid API for AI agents from api.solenrich.com, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-14).

Returns daily portfolio snapshots (value, SOL balance, token count, risk score) and summary stats (peak, trough, max drawdown, average, period change) for a Solana wallet over 7, 14, or 30 days, with today's live point appended.

## Facts

- Endpoint: POST https://api.solenrich.com/entrypoints/portfolio-history/invoke
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solenrich-portfolio-history-5ca56e4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s37VlVRj7-EyuEotckN0G

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 solenrich-portfolio-history-5ca56e4d -d '<json body>'
```

Example prompt: Pull the 30-day portfolio history for Solana wallet 7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU — I need the daily value snapshots plus summary stats like peak, trough, max drawdown, and how much it changed from the start of the period.

## When to prefer this

Use this endpoint when you need a multi-day time series of Solana wallet portfolio metrics for charting, PnL analysis, or drawdown calculation. Prefer it over wallet-history (which returns only two-point deltas) when you need daily granularity across a full period. Best suited for building portfolio performance charts, risk dashboards, or automated PnL reports for Solana addresses.

## Known failure modes

- Invalid or malformed Solana wallet address (not base58 or wrong length) returns a validation error
- Address with no on-chain history may return empty or minimal snapshot data
- Network or RPC issues fetching live on-chain data may delay or omit today's appended live point
- Unsupported period value outside 7d/14d/30d returns an enum validation error
- Payment failure or insufficient USDC balance blocks the call under x402 protocol

## How this service works

Daily portfolio snapshots (value, SOL balance, token count, risk score) for a wallet over 7/14/30 days, plus summary stats: peak, trough, max drawdown, average value, change vs period start. Designed for charting and PnL tracking; complements wallet-history which returns two-point deltas. Today's live point is appended automatically.

## Output

A time-series of daily portfolio snapshots for each day in the selected period (7/14/30 days), each containing portfolio value, SOL balance, token count, and risk score. Also includes summary stats: peak value, trough value, maximum drawdown, average value, and change vs. period start. Today's live data point is automatically appended to the series. Format can be JSON, LLM-friendly text, or both.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "json",
    "llm",
    "both"
   ],
   "type": "string",
   "default": "json"
  },
  "period": {
   "enum": [
    "7d",
    "14d",
    "30d"
   ],
   "type": "string",
   "default": "7d"
  },
  "address": {
   "type": "string",
   "maxLength": 44,
   "minLength": 32,
   "description": "Solana base58 wallet address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "output": {
   "briefing": "string (llm format) or object (json format)"
  },
  "run_id": "uuid",
  "status": "succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solenrich-portfolio-history-5ca56e4d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.solenrich.com](https://www.zero.xyz/host/api.solenrich.com/llms.txt)
