---
title: GET /v1/usdhb/history
---

# `GET /v1/usdhb/history`

List waterfall history

One entry per applied funding boundary; public, newest first.

Money, price, rate and count fields cross the wire as decimal strings; units are shown beside each field ([Wire encoding](/api/wire-encoding)). Group: [Usdhb](/api/reference/usdhb/).

**Auth:** none (public)

**Effect:** `read`: reads only

## Parameters

- <span id="param-limit"></span>`limit` (query) · string · optional: Page size, 1..200 (default 100).
- <span id="param-beforeTsMs"></span>`beforeTsMs` (query) · string · optional: Cursor: return sagas created strictly before this timestamp (ms, decimal). Omit for page one.

## Request

```bash [curl]
curl -fsS "$HB/v1/usdhb/history"
```

```python [Python]
import os

import requests

HB = os.environ.get("HB", "https://testnet.hardbasis.com")

resp = requests.get(
    f"{HB}/v1/usdhb/history",
)
resp.raise_for_status()
print(resp.json())
```

```ts [TypeScript]
const HB = process.env.HB ?? "https://testnet.hardbasis.com";

const res = await fetch(`${HB}/v1/usdhb/history`, {
  method: "GET",
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());
```

## Responses

- **200**: OK
  - <span id="res-200-waterfalls"></span>`waterfalls` · object[] · required
    - <span id="res-200-waterfalls-boundaryTsMs"></span>`boundaryTsMs` · string · unit `ms` · required
    - <span id="res-200-waterfalls-markQ8"></span>`markQ8` · string · unit `q8` · required
    - <span id="res-200-waterfalls-flowMsat"></span>`flowMsat` · string · unit `msat` · required
    - <span id="res-200-waterfalls-toReserveMsat"></span>`toReserveMsat` · string · unit `msat` · required
    - <span id="res-200-waterfalls-toStakersMsat"></span>`toStakersMsat` · string · unit `msat` · required
    - <span id="res-200-waterfalls-overflowMsat"></span>`overflowMsat` · string · unit `msat` · required
    - <span id="res-200-waterfalls-shortfallMsat"></span>`shortfallMsat` · string · unit `msat` · required
    - <span id="res-200-waterfalls-markdown"></span>`markdown` · string · required
    - <span id="res-200-waterfalls-yieldMinted"></span>`yieldMinted` · string · required
    - <span id="res-200-waterfalls-sharePriceQ9Before"></span>`sharePriceQ9Before` · string · unit `q9` · required
    - <span id="res-200-waterfalls-sharePriceQ9After"></span>`sharePriceQ9After` · string · unit `q9` · required
  - <span id="res-200-nextBeforeTsMs"></span>`nextBeforeTsMs` · string \| null · unit `ms` · required

Example `200` response:

```json
{
  "waterfalls": [
    {
      "boundaryTsMs": "100000",
      "markQ8": "100000",
      "flowMsat": "100000",
      "toReserveMsat": "100000",
      "toStakersMsat": "100000",
      "overflowMsat": "100000",
      "shortfallMsat": "100000",
      "markdown": "string",
      "yieldMinted": "string",
      "sharePriceQ9Before": "100000",
      "sharePriceQ9After": "100000"
    }
  ],
  "nextBeforeTsMs": "100000"
}
```
