> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/function/functions/candles.md).

# Candles

## <mark style="color:purple;">`candles`</mark>(*interval*: *str*, *symbol*: *str*, *exchange*: *str*, *count*: *Optional*\[*int*] = *100*) -> *List*\[\[[*<mark style="color:blue;">Candle</mark>*](/function/structures/candle.md)]]

<mark style="color:red;">`interval`</mark> can be one of the following: <mark style="color:red;">`s10`</mark>, <mark style="color:red;">`m1`</mark>, <mark style="color:red;">`m3`</mark>, <mark style="color:red;">`m5`</mark>, <mark style="color:red;">`m15`</mark>, <mark style="color:red;">`m30`</mark>, <mark style="color:red;">`m45`</mark>, <mark style="color:red;">`h1`</mark> , <mark style="color:red;">`h2`</mark>, <mark style="color:red;">`h3`</mark>, <mark style="color:red;">`h4`</mark>, <mark style="color:red;">`h6`</mark>, <mark style="color:red;">`h8`</mark>, <mark style="color:red;">`h12`</mark>, <mark style="color:red;">`d1`</mark>, <mark style="color:red;">`w1`</mark>, <mark style="color:red;">`M1`</mark>

If exchange does not support selected interval, the minimum supported interval will be used.

Candles sorted by ascending timestamp. Candle with index \[0] this is the newest candle.

by default return list of 100 Candles and max size 100 Candles.

Example:


---

# 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://docs.origami.tech/function/functions/candles.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.
