# Need more timeframes

**URL:** https://forum.alpaca.markets/t/need-more-timeframes/6913
**Category:** Getting Started with Alpaca
**Created:** [September 20, 2021, 5:21am UTC](https://forum.alpaca.markets/t/need-more-timeframes/6913 "2021-09-20T05:21:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Outlaw782](https://avatars.discourse-cdn.com/v4/letter/o/4bbf92/32.png) [@Outlaw782](https://forum.alpaca.markets/u/Outlaw782)
#### Post date: [September 20, 2021, 5:21am UTC](https://forum.alpaca.markets/t/need-more-timeframes/6913/1 "2021-09-20T05:21:15Z")

</div>

V2 of the API, only seems that hour, minute, and day time frames work. The API documentation here clearly states that you can use 15 minute candle data.

> **[Historical data - Documentation | Alpaca](https://alpaca.markets/docs/api-documentation/api-v2/market-data/alpaca-data-api-v2/historical/#bars)**
>
> Alpaca API lets you build and trade with real-time market data for free.

! am using the query below, but when trying to use TimeFrame.15Min, I get an error. Is 15 minute data possible in V2?

api.get\_bars(symbol, ‘TimeFrame.15Min’, ‘2021-01-15’, ‘2021-09-15’, adjustment=‘raw’).df

---

<div class="post-metadata">

### Author: ![paulmcq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/paulmcq/32/2310_2.png) [@paulmcq](https://forum.alpaca.markets/u/paulmcq)
#### Post date: [September 20, 2021, 5:30pm UTC](https://forum.alpaca.markets/t/need-more-timeframes/6913/2 "2021-09-20T17:30:05Z")

</div>

Possibly use lower case?  
“15min” vs “15Min”

“30min” works for me

---

<div class="post-metadata">

### Author: ![Outlaw782](https://avatars.discourse-cdn.com/v4/letter/o/4bbf92/32.png) [@Outlaw782](https://forum.alpaca.markets/u/Outlaw782)
#### Post date: [September 20, 2021, 8:14pm UTC](https://forum.alpaca.markets/t/need-more-timeframes/6913/3 "2021-09-20T20:14:22Z")

</div>

Thanks Paul, I’ll give it a shot!

---

<div class="post-metadata">

### Author: ![Outlaw782](https://avatars.discourse-cdn.com/v4/letter/o/4bbf92/32.png) [@Outlaw782](https://forum.alpaca.markets/u/Outlaw782)
#### Post date: [September 23, 2021, 8:01pm UTC](https://forum.alpaca.markets/t/need-more-timeframes/6913/4 "2021-09-23T20:01:25Z")

</div>

Hi Paul, that did not work either. I think my formatting is off somehow, I don’t think ‘15Min’ or ‘15min’ works.

---

<div class="post-metadata">

### Author: ![paulmcq](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/paulmcq/32/2310_2.png) [@paulmcq](https://forum.alpaca.markets/u/paulmcq)
#### Post date: [October 23, 2021, 7:49pm UTC](https://forum.alpaca.markets/t/need-more-timeframes/6913/5 "2021-10-23T19:49:38Z")

</div>

Oops! My bad. I was using a completely different data provider when I said that “30min” worked for me.

The alpaca\_trade\_api source code (rest.py) only has these TimeFrames:  
1Day, 1Hour, 1Min, 1Sec  
Please excuse the spam, and accept my apologies ☹

---

<div class="post-metadata">

### Author: ![Meesh\_P](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/meesh_p/32/4439_2.png) [@Meesh\_P](https://forum.alpaca.markets/u/Meesh_P)
#### Post date: [September 19, 2022, 10:58pm UTC](https://forum.alpaca.markets/t/need-more-timeframes/6913/6 "2022-09-19T22:58:52Z")

</div>

Just for anybody who is interested - this is how to request 15 minute bars

```auto
tqqq = api.get_bars(symbol='TQQQ', timeframe=alpaca.TimeFrame(15, alpaca.TimeFrameUnit.Minute), start=start_date, end=end_date)

```
