# This wallet in ZC

`GET /sigmafi/zc/portfolio` · Lithos client API · SigmaFi ZC Standard · requires the `api_key` header

Source: https://lithosprotocol.org/docs/api/get-zc-portfolio

Every bond unit and share token this wallet holds, with its status, `borrowedByMe` flag, cost from the wallet's history, mark and the actions open now (including `extinguish` when this wallet holds its own borrowed bond unit); the bonds it borrows on (with `holdsUnit` and `extinguish` availability); its open orders, asks, offers, lots and requests; its wraps; unrealized and realized P&L per market. `history` is the wallet history's status: `off`, `not-configured`, `loading`, `ready` or `unavailable`. Units with no recorded acquisition have `cost` null.

## Parameters

| Name | In | Type | Required | Description |

|---|---|---|---|---|

| `ifRevision` | query | integer · int64 | no | Answer 304 when the snapshot revision still equals this.  |

## Responses

### 200: The portfolio

`ZcObject`

- `at` (ZcAt): The snapshot a read or quote was taken from.
  - `height` (integer)
  - `blockId` (string)
  - `indexedHeight` (integer)
  - `revision` (integer · int64): Changes whenever anything a read returns changes, the mempool included.
  - `cut` (boolean): True when the book is at its size cap and left boxes out.
  - `mempool` (boolean): Whether unconfirmed boxes are laid over the confirmed book.

### 304: Nothing changed since `ifRevision`.

### 403: Missing or wrong api_key.

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

### 503: ZC tracking is off or not seeded, or the node, its index or the wallet did not answer. Nothing was sent.

`ApiError`

- `error` (integer, required): Error code
- `reason` (string, required): Error message explaining the reason of the error
- `detail` (string, required): Detailed error description

## Example request

```bash
curl -X GET "http://localhost:9000/sigmafi/zc/portfolio" \
  -H "api_key: $LITHOS_API_KEY"
```

## Example response

```json
{
  "at": {
    "height": 0,
    "blockId": "string",
    "indexedHeight": 0,
    "revision": 0,
    "cut": true,
    "mempool": true
  }
}
```
