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