# Api.get\_barset missing data

**URL:** <https://forum.alpaca.markets/t/api-get-barset-missing-data/579>\
**Category:** Alpaca Market Data\
**Created:** [December 27, 2019, 5:32pm UTC](https://forum.alpaca.markets/t/api-get-barset-missing-data/579 "2019-12-27T17:32:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhupendra\_subedi](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bhupendra\_subedi](https://forum.alpaca.markets/u/bhupendra_subedi)\
**Post date:** [December 27, 2019, 5:32pm UTC](https://forum.alpaca.markets/t/api-get-barset-missing-data/579/1 "2019-12-27T17:32:48Z")

</div>

Hi I am trying to pull 1 min data for last one month and the code is returning only 100 rows of data. Why is there a gap? Am i doing something wrong?

Code I am using is :  
history = api.get\_barset(“VTVT”, timeframe=“1Min”, start = ‘2019-11-18’).df  
history

 ![image](https://us1.discourse-cdn.com/flex020/uploads/alp/original/1X/f1b4e4b313e41a5e02d993076d0821ef07c5c499.png)

---

<div class="post-metadata">

**Author:** ![bhupendra\_subedi](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bhupendra\_subedi](https://forum.alpaca.markets/u/bhupendra_subedi)\
**Post date:** [December 27, 2019, 5:33pm UTC](https://forum.alpaca.markets/t/api-get-barset-missing-data/579/2 "2019-12-27T17:33:35Z")

</div>

Checked with other data source and there are data populated. Looks like a lot of data are missing.

---

<div class="post-metadata">

**Author:** ![mfigurski80](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/mfigurski80/32/404_2.png) [@mfigurski80](https://forum.alpaca.markets/u/mfigurski80)\
**Post date:** [January 27, 2020, 7:38pm UTC](https://forum.alpaca.markets/t/api-get-barset-missing-data/579/3 "2020-01-27T19:38:27Z")

</div>

I’m having the same problem: lots of data is missing on the 1Min scale. After requesting 120\_000 bars on 1Min dataset (with proper temporal spacing between batches of requests) of AT&T (ticker: T), my final file is 103\_829 entries long, which means I’m getting around 86% of the data I need. Looking through the data personally, I suspect errors in my request strategy may be hiding a number far lower, maybe around 60%. This isn’t really acceptable – why is this a feature in the API if it’s so drastically incomplete?  
@bhupendra_subedi, what data source did you use?
