# Endpoints Overview

## Base URL

```
https://api.synthdata.co
```

{% hint style="info" %}
All endpoints require the following header:

```
Authorization: Apikey YOUR_API_KEY
```

{% endhint %}

## Predictions

Get probabilistic price forecasts from miners.

| Endpoint                        | Description                                  |
| ------------------------------- | -------------------------------------------- |
| `GET /v2/prediction/best`       | Predictions from top-ranked miner (simplest) |
| `GET /v2/prediction/latest`     | Predictions from specific miners             |
| `GET /v2/prediction/historical` | Historical predictions                       |

## Leaderboard

Discover top-performing miners.

| Endpoint                     | Description            |
| ---------------------------- | ---------------------- |
| `GET /v2/leaderboard/latest` | Current miner rankings |

Example request:

```bash
curl "https://api.synthdata.co/v2/leaderboard/latest?asset=BTC&days=14&limit=10" \
  -H "Authorization: Apikey YOUR_API_KEY"
```

## Insights

Advanced analytics derived from predictions.

| Endpoint                                  | Description                    |
| ----------------------------------------- | ------------------------------ |
| `GET /insights/volatility`                | Volatility metrics             |
| `GET /insights/volatility-percentiles`    | Price distribution percentiles |
| `GET /insights/option-pricing`            | Theoretical option prices      |
| `GET /insights/liquidation`               | Liquidation probabilities      |
| `GET /insights/lp-bounds`                 | LP range optimization          |
| `GET /insights/lp-bounds-chart`           | Price level probabilities      |
| `GET /insights/polymarket/range`          | Polymarket range comparison    |
| `GET /insights/polymarket/up-down/hourly` | Hourly up/down comparison      |
| `GET /insights/polymarket/up-down/daily`  | Daily up/down comparison       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.synthdata.co/endpoints-overview-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
