> 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:
