# OHLC Data

### Get OHLC

<mark style="color:green;">`GET`</mark> `/ohlc`

Get OHLC (open/high/low/close, otherwise known as candle) data for a given market.

**Query Parameters**

<table><thead><tr><th>Name</th><th>Value</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>ticker_id</td><td>string: <code>DEMONIZA/USDT</code></td><td>true</td></tr><tr><td>since</td><td>timestamp: <code>1708619280</code></td><td>false</td></tr><tr><td>interval</td><td>enum (minutes): <code>1, 5, 15, 30 60, 240, 1440, 10080 21600</code> </td><td>false</td></tr><tr><td></td><td></td><td>false</td></tr></tbody></table>

**Response**

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

```json
[
        {
            "time": 1709325573.9077,
            "open": "0.01869900",
            "high": "0.01869900",
            "low": "0.01869900",
            "close": "0.01869900",
            "vwap": "0.03739800",
            "volume": "1117.31843576",
            "count": 2
        },
        {
            "time": 1709325656.1582,
            "open": "0.01869900",
            "high": "0.01869900",
            "low": "0.01869900",
            "close": "0.01869900",
            "vwap": "0.03739800",
            "volume": "695.37154928",
            "count": 2
        },
        ...
]
```

{% endtab %}

{% tab title="422" %}

```json
{
    "success": false,
    "error": {
        "message": "The given data was invalid!",
        "validations": [
            "Pair attribute must be set"
        ],
        "code": 422
    }
}
```

{% endtab %}
{% endtabs %}
