# ZC market info

`GET /sigmafi/zc/info` · Lithos client API · SigmaFi ZC Standard

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

The snapshot every ZC read is answered from, the USD oracle, both markets with each contract's tree hash, template hash and address and each expression's hash, and the zcs1 defaults. Poll it with `ifRevision`: a 304 means nothing a read returns has changed.

## Parameters

| Name | In | Type | Required | Description |

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

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

## Responses

### 200: Market info

`ZcInfo`

- `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.
- `network` (string, one of mainnet, testnet)
- `profile` (string): The off-chain profile the client follows, `zcs1`.
- `pinnedCommit` (string): The Sigma-Finance-V2 commit the contract trees are pinned at.
- `deployed` (boolean): Whether any ZC box exists.
- `oracle` (object)
  - `boxId` (string)
  - `nanoErgPerUsd` (string)
  - `usdPerErg` (string)
  - `updatedHeight` (integer)
  - `age` (integer)
  - `pending` (boolean): The oracle is the box one pending refresh creates; trades price and read it while it confirms.
  - `refreshPending` (boolean): Competing pending refreshes spend the confirmed oracle box; trades reading it wait a block.
- `markets` (object[])
- `defaults` (object)

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

### 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/info"
```

## Example response

```json
{
  "at": {
    "height": 0,
    "blockId": "string",
    "indexedHeight": 0,
    "revision": 0,
    "cut": true,
    "mempool": true
  },
  "network": "mainnet",
  "profile": "string",
  "pinnedCommit": "string",
  "deployed": true,
  "oracle": {
    "boxId": "string",
    "nanoErgPerUsd": "string",
    "usdPerErg": "string",
    "updatedHeight": 0,
    "age": 0,
    "pending": true,
    "refreshPending": true
  },
  "markets": [
    {}
  ],
  "defaults": {}
}
```
