# Femtos | Portfolio value history | API reference

> Any address on HyperEVM: its total USD value per 5 min (1d), hour (7d) or day (30d, all). GET /v1/wallet/{address}/value on Elysium and HyperEVM: parameters, response fields and a live call per layer.

- Base URL: `https://api.femtos.xyz/v1` (REST) · `wss://api.femtos.xyz/v1/ws` (WebSocket) · MCP: `https://api.femtos.xyz/mcp`
- Auth: `Authorization: Bearer $FEMTOS_KEY`. Free key: https://dashboard.femtos.xyz/signup (browser), or with
  no browser: `GET https://femtos.xyz/accounts/agent/challenge`, solve its proof of work, then `POST https://femtos.xyz/accounts/agent/signup`
  (https://femtos.xyz/agents.md#agent-onboarding)
- Decimals are exact strings, times Unix milliseconds, addresses lowercase `0x`
- Whole API in one file: https://femtos.xyz/agents.md · OpenAPI: https://api.femtos.xyz/v1/openapi.json · Index: https://femtos.xyz/llms.txt
- Page with live calls: https://femtos.xyz/reference/wallet-value

## Portfolio value history — GET `/v1/wallet/{address}/value`

- Elysium: Any address on Elysium: its total USD value per 5 min (1d), hour (7d) or day (30d, all).
- HyperEVM: Any address on HyperEVM: its total USD value per 5 min (1d), hour (7d) or day (30d, all).

Layers: Elysium, HyperEVM. Not on HyperCore: HyperCore's perp account value over time is at GET /v1/hypercore/wallet/{address}/pnl (accountValue per hour or day).
Page with live calls: https://femtos.xyz/reference/wallet-value?layer=<elysium|hyperevm>

| Param | In | Example or values | Meaning |
|---|---|---|---|
| `address` | path | `0x876f1301aaa8452ceb98201cd4407fa9510a8181` (Elysium); `0x5a69a60ca8a4d189855b33bd9f1bbe71095c1039` (HyperEVM) | The address: 0x address, or a named wallet's handle |
| `layer` | query | `elysium` (Elysium); `hyperevm` (HyperEVM) | EVM layer |
| `window` | query | `(empty)`, `1d`, `7d`, `30d`, `all` | 1d (5 min points), 7d (hourly), 30d (daily) or all (daily, from the first balance) |

Elysium:

```bash
curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/wallet/0x876f1301aaa8452ceb98201cd4407fa9510a8181/value?layer=elysium&window=7d"
```

HyperEVM:

```bash
curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/wallet/0x5a69a60ca8a4d189855b33bd9f1bbe71095c1039/value?layer=hyperevm&window=7d"
```

| Field | Type | Meaning |
|---|---|---|
| `points[]` | object | Oldest first: every bucket end of the window, then the indexed head: {t, block, usd, unpriced} |
| `points[].usd` | decimal \| null | USD value of the priced tokens held at that block, at the close of the bucket ending at `t`; null when a node read failed |
| `points[].block` | int | Block the balances are read at: the last one before `t` (the head block for the last point) |
| `tokens[]` | object | The tokens valued: {token, symbol, decimals, source, read} |
| `unpriced[]` | object | Tokens held or moved in the window with no USD price history: never in `usd` (the first 50): {token, symbol} |
| `complete` | boolean | false: points left out (see `from`), a token left out (`leftOut`) or a node read failed |
| `from` | ms \| null | First point |
| `billing` | heavy | heavy with window all, else medium |

## Related (Bridges & wallets)

- [Cross-layer wallet](https://femtos.xyz/reference/wallet.md) `GET /v1/wallet/{address}`: One address (or a named wallet's handle) on HyperCore, HyperEVM and Elysium, plus its latest events. (Elysium, HyperCore, HyperEVM)
- [Wallet stream](https://femtos.xyz/reference/ws/wallet.md) `WS wallet`: Every event of the three layers touching one address. (Elysium, HyperCore, HyperEVM)
- [Wallet list stream](https://femtos.xyz/reference/ws/wallets.md) `WS wallets`: Every event of the three layers touching any of up to 100 addresses, in one subscription, each event tagged with its address. (Elysium, HyperCore, HyperEVM)
- [HyperCore account](https://femtos.xyz/reference/hypercore-account.md) `GET /v1/hypercore/wallet/{address}`: One address's HyperCore account: perp value and margin, positions, spot balances. (HyperCore)
- [Wallet open orders](https://femtos.xyz/reference/wallet-orders.md) `GET /v1/hypercore/wallet/{address}/orders`: One wallet's open orders: resting limit orders and trigger orders, on the main dex and every HIP-3 dex. (HyperCore)
- [Wallet order history](https://femtos.xyz/reference/wallet-order-history.md) `GET /v1/hypercore/wallet/{address}/orders/history`: One wallet's orders that left the book, newest first: how (filled, canceled, rejected) and why, the size filled and its average price. (HyperCore)
- [Wallet fills](https://femtos.xyz/reference/wallet-fills.md) `GET /v1/hypercore/wallet/{address}/fills`: One wallet's HyperCore fills, newest first, with closed PnL, fees and the position before each. (HyperCore)
- [Wallet fills per bar](https://femtos.xyz/reference/wallet-fill-bars.md) `GET /v1/hypercore/wallet/{address}/fills/bars`: One wallet's fills on one market summed per bar: buys and sells with their average price, and the position after each bar. (HyperCore)
- [Wallet funding](https://femtos.xyz/reference/wallet-funding.md) `GET /v1/hypercore/wallet/{address}/funding`: One wallet's funding payments, newest first: paid or received per perp and hour, with the position and the rate. (HyperCore)
- [Swaps by wallet](https://femtos.xyz/reference/wallet-trades.md) `GET /v1/trades`: Every swap a wallet sent (or a pool’s, a token’s), newest first, filterable by token, side, size and time. (Elysium, HyperEVM)
- [Transfers by wallet](https://femtos.xyz/reference/wallet-transfers.md) `GET /v1/transfers`: ERC-20 transfers sent and received by a wallet, newest first, filterable by token, direction, size and time. (Elysium, HyperEVM)
- [Wallet PnL](https://femtos.xyz/reference/wallet-pnl.md) `GET /v1/wallet/{address}/pnl`: Any wallet on HyperEVM: per token balance, cost basis, realized and unrealized PnL, with 1d / 7d / 30d / all totals and win rate. (Elysium, HyperEVM)
- [Wallet PnL curve](https://femtos.xyz/reference/hypercore-wallet-pnl.md) `GET /v1/hypercore/wallet/{address}/pnl`: One HyperCore wallet's PnL per hour or day: realized, fees, funding, net and cumulative, and its account value. (HyperCore)
- [Wallet PnL stream](https://femtos.xyz/reference/ws/pnl.md) `WS pnl`: A wallet's positions and PnL on HyperEVM (GET /v1/wallet/{address}/pnl), pushed on subscribe, then the positions each block changes. (Elysium, HyperEVM)
- [Was I sandwiched?](https://femtos.xyz/reference/wallet-mev.md) `GET /v1/wallet/{address}/mev`: Every sandwich of a wallet’s swaps on Elysium: the bot, its two transactions, what the wallet lost. Free, no key. (Elysium)
- [Ledger stream](https://femtos.xyz/reference/ws/ledger.md) `WS hc.ledger`: Deposits, withdrawals, transfers and other non-trade balance moves. (HyperCore)
- [Bridge movements](https://femtos.xyz/reference/bridge.md) `GET /v1/bridges`: Matched HyperCore ↔ HyperEVM transfers with 24 h stats. (Elysium, HyperCore, HyperEVM)
- [Bridge stream](https://femtos.xyz/reference/ws/bridge.md) `WS elysium.bridge | bridge.transfers`: Each HyperCore ↔ HyperEVM transfer, initiated then completed. (Elysium, HyperCore, HyperEVM)
- [Bridge movements stream](https://femtos.xyz/reference/ws/bridges.md) `WS bridges.recent`: The GET /v1/bridges answer (movements newest first, 24 h stats), pushed on subscribe, then when a movement of the route changes state. (Elysium, HyperCore, HyperEVM)
- [Bridge coverage](https://femtos.xyz/reference/bridge-coverage.md) `GET /v1/bridges/coverage`: Every HyperCore ↔ HyperEVM leg since our data starts, paired with its other leg: matched share per direction and token, why the others are not, latency. (HyperCore, HyperEVM)

Every page: https://femtos.xyz/reference.md
