# Fill history

`GET /sigmafi/zc/markets/{market}/fills` · Lithos client API · SigmaFi ZC Standard

Source: https://lithosprotocol.org/docs/api/list-zc-fills

New bonds and ask purchases in one market, newest first, each with its values at the fill. `status` says how far the index has read: `disabled`, `not-configured`, `loading`, `catching-up`, `ready`, `stale` or `unavailable`.

## Parameters

| Name | In | Type | Required | Description |

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

| `market` | path | string | yes | The market: `ERG` or `SigUSD`.  |

| `fromHeight` | query | integer | no | Fills at or above this height.  |

| `kind` | query | string | no | `new`, `resale` or `shares`.  |

| `via` | query | string | no | `offer` or `wallet`.  |

| `cursor` | query | string | no | The `next` value of the previous page.  |

| `limit` | query | integer | no | Page size, 1 to 200. Default 50.  |

## Responses

### 200: One page of fills

`ZcFills`

- `status` (string, one of disabled, not-configured, loading, catching-up, ready, stale, unavailable)
- `observedAt` (integer · int64)
- `indexedTo` (integer)
- `items` (object[])
- `next` (string)

### 400: A malformed field, or terms the contracts refuse.

`ApiError`

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

### 429: Too many concurrent quotes, simulations, or heavy reads (`/curves`, `/orderbook`, `/fills`): at most 4 quotes/simulations and at most 4 heavy reads run or wait at once across all callers, and simulations are additionally limited to 5 in flight per caller, then 1 a second. Retry shortly.

`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/markets/{market}/fills"
```

## Example response

```json
{
  "status": "disabled",
  "observedAt": 0,
  "indexedTo": 0,
  "items": [
    {}
  ],
  "next": "string"
}
```
