---
title: GET /v1/public/ticker
---

# `GET /v1/public/ticker`

Get the public ticker

The landing-page ticker, microcached.

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

**Auth:** none (public)

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

## Request

```bash [curl]
curl -fsS "$HB/v1/public/ticker"
```

```python [Python]
import os

import requests

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

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

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

const res = await fetch(`${HB}/v1/public/ticker`, {
  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-asOfMs"></span>`asOfMs` · string · unit `ms` · required
  - <span id="res-200-tickers"></span>`tickers` · object[] · required
    - <span id="res-200-tickers-marketId"></span>`marketId` · string · required
    - <span id="res-200-tickers-last"></span>`last` · object \| null · required
    - <span id="res-200-tickers-stalenessMs"></span>`stalenessMs` · string · unit `ms` · required

Example `200` response:

```json
{
  "asOfMs": "100000",
  "tickers": [
    {
      "marketId": "string",
      "last": {
        "midQ8": "100000",
        "tsMs": "100000"
      },
      "stalenessMs": "100000"
    }
  ]
}
```
