Get Price OHLC
Endpoint
Section titled “Endpoint”GET /api/price/ohlc/v1Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
asset | query | string | ✅ | |
period | query | string | ✅ | One hour, one day or one month. |
timestamp_start | query | integer | Start of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) | |
timestamp_end | query | integer | Start of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) | |
page | query | integer | The page number of the response. | |
limit | query | integer | The number of responses. max is 200, |
Responses
Section titled “Responses”200 — 200
Section titled “200 — 200”Media: application/json
{ "type": "object", "properties": { "pagination": { "type": "object", "properties": { "current_page": { "type": "integer", "example": 1, "default": 0 }, "per_page": { "type": "integer", "example": 50, "default": 0 }, "total_items": { "type": "integer", "example": 977, "default": 0 }, "total_pages": { "type": "integer", "example": 20, "default": 0 }, "next_page": { "type": "integer", "example": 2, "default": 0 }, "prev_page": {} } }, "data": { "type": "array", "items": { "type": "object", "properties": { "period": { "type": "string", "example": "1d" }, "timestamp": { "type": "string", "example": "2025-02-26T00:00:00Z" }, "asset": { "type": "string", "example": "TAO" }, "volume_24h": { "type": "string", "example": "263821126.1415" }, "open": { "type": "string", "example": "379.5458" }, "high": { "type": "string", "example": "385.8701" }, "low": { "type": "string", "example": "363.6157" }, "close": { "type": "string", "example": "366.4996" } } } } }}400 — 400
Section titled “400 — 400”Media: application/json
{ "type": "object", "properties": {}}Authentication
Section titled “Authentication”All Taostats API requests require an Authorization header containing your API key. See Getting Started.