> For the complete documentation index, see [llms.txt](https://docs.koinju.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.koinju.io/free-demo-database.md). Agents can also search and read this documentation through its [MCP server](https://docs.koinju.io/~gitbook/mcp).

# Free demo database

Free public SQL database with the trades, OHLCV candles, funding rates and option chains of 18 October 2026 from 13 exchanges. It also holds the order books of five of them. No account or key needed.

A free, public ClickHouse database holding one validated UTC day of Koinju data, 18 October 2026 (`2026-10-18`). There is nothing to sign up for: the user is `demo` and its password is empty.

In `api`, `public_data` and `reference_data`, every table and view has the name and the columns it has in the Koinju database, so a query that reads only them runs unchanged with your own Koinju login.

## What it holds

The validated UTC day of 18 October 2026 (`2026-10-18`, 00:00 to 24:00 UTC) of every exchange. It is not refreshed. It is one day, not a history. The day it holds:

```sql
SELECT min(timestamp), max(timestamp) FROM api.trade
```

It also holds the order books of that day, for the ten exchange IDs of [Order books](https://docs.koinju.io/data/order-book.md). They start at 21:00 UTC on the day before, so that each book of the day has a snapshot. The two views work for an `at` in that day:

```sql
SELECT bids, asks, updates_applied, snapshot_age_ms
FROM api.order_book(exchange = 'okx', market = 'BTC-USDT', at = '2026-10-18 12:05:00')
```

## Connect

Query it in a browser, with nothing to install, in the [explorer](https://demo.koinju.io). To connect from your own code or client:

| Setting  | Value                                          |
| -------- | ---------------------------------------------- |
| Host     | `sn7u7x3woz.eu-central-1.aws.clickhouse.cloud` |
| HTTPS    | `8443`, or `443` where `8443` is blocked       |
| Native   | `9440` (TLS)                                   |
| User     | `demo`                                         |
| Password | none                                           |
| Database | `api`                                          |

{% tabs %}
{% tab title="Python" %}

```python
import clickhouse_connect

client = clickhouse_connect.get_client(
    host="sn7u7x3woz.eu-central-1.aws.clickhouse.cloud",
    port=8443,
    secure=True,
    username="demo",
    password="",
    database="api",
)
print(client.query("SELECT min(timestamp), max(timestamp) FROM api.trade").result_rows)
```

{% endtab %}

{% tab title="clickhouse-client" %}

```sh
clickhouse-client \
  --host sn7u7x3woz.eu-central-1.aws.clickhouse.cloud \
  --port 9440 \
  --secure \
  --user demo \
  --password '' \
  --database api
```

Pass `--password ''`: without it `clickhouse-client` sends the `CLICKHOUSE_PASSWORD` of your environment, if there is one, and the login fails with code 516.
{% endtab %}

{% tab title="curl" %}

```sh
curl --user demo: 'https://sn7u7x3woz.eu-central-1.aws.clickhouse.cloud:8443/?database=api' \
  --data-binary 'SELECT min(timestamp), max(timestamp) FROM api.trade'
```

{% endtab %}
{% endtabs %}

## Limits

| Limit                    | Value                                                    |
| ------------------------ | -------------------------------------------------------- |
| Per IP address, per hour | 300 queries, 1.7 GB of answers, 60 seconds of query time |

A query that goes over an hourly cap fails with code 201. The hourly counters start again at the top of the hour. When a cap stops an answer part-way, the HTTP status is already 200 and the body ends with the error message.

## Full history

This database is one fixed day, 18 October 2026. The same objects, read with a Koinju login, are current and go back further:

* OHLCV and trades (spot, futures and options): the full available history on all plans, subject to the plan's REST and SQL limits.
* Option-chain and funding-rate history: included from Developer; not included in the registered Free plan. The public demo lets you try these datasets for its fixed day.
* Order books: the full available history on Professional and Enterprise, and none on Free and Developer. See [Order books](https://docs.koinju.io/data/order-book.md).

See [Pricing](https://docs.koinju.io/pricing.md), or sign up at [koinju.io/pricing](https://koinju.io/pricing).
