> For the complete documentation index, see [llms.txt](https://noodles-finance.gitbook.io/docs.noodles.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://noodles-finance.gitbook.io/docs.noodles.fi/ohlcv/ohlcv.md).

# OHLCV for a Coin address

## Overview

The OHLC API provides OHLCV (Open, High, Low, Close, Volume) data for a given coin over a specified time range and bucket size.

## Endpoint

```
GET /api/v1/partner/ohlcv
```

## Parameters

| Parameter | Type    | Required | Description                                                                                                                    |
| --------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `coin_id` | String  | Yes      | The coin identifier.                                                                                                           |
| `bucket`  | Integer | Yes      | The time bucket size in minutes. Choices are: 1, 5, 15, 60(1 hour), 240(4 hours) , 1440(1 day), 10080(1 week), 43200(1 month). |
| `from`    | Integer | No       | Start timestamp (Unix time).                                                                                                   |
| `to`      | Integer | No       | End timestamp (Unix time).                                                                                                     |
| `limit`   | Integer | No       | The maximum number of bucket to return. Max value: 500, Default value: 500                                                     |

## Headers

| Header      | Required | Description                 |
| ----------- | -------- | --------------------------- |
| `x-api-key` | No       | API key for authentication. |

## Request Example

```sh
curl --location 'https://api.noodles.fi/api/v1/partner/ohlcv?coin_id=0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881%3A%3Acoin%3A%3ACOIN&bucket=15&to=1741513193&limit=329' \
--header 'Accept-Encoding: application/json' \
--header 'x-api-key: YOUR_API_KEY'
```

## Response Format

```json
{
    "data": [
        [
            1701857700,
            1.7467633222351549e-7,
            1.7467633222351549e-7,
            1.7178829066103107e-7,
            1.7178829066103107e-7,
            268.0347809207526,
            5101.582571424068
        ],
        [
            1701858600,
            1.7178829066103107e-7,
            1.7223573417271332e-7,
            1.711429546004599e-7,
            1.711429546004599e-7,
            0,
            2151.777993731664
        ]
    ]
}
```

## Response Fields

| Index | Field       | Description                           |
| ----- | ----------- | ------------------------------------- |
| 0     | `timestamp` | Unix timestamp for the bucket period. |
| 1     | `open`      | The opening price.                    |
| 2     | `high`      | The highest price.                    |
| 3     | `low`       | The lowest price.                     |
| 4     | `close`     | The closing price.                    |
| 5     | `volume`    | Trading volume.                       |

## Notes

* The response is optimized for speed and may include only the most recent bucket that has trades, ignoring some buckets.

***

> **See also:** [Environment Setup](/docs.noodles.fi/environment-setup/environment.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://noodles-finance.gitbook.io/docs.noodles.fi/ohlcv/ohlcv.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
