# Polygon.historic\_agg\_v2() only giving 2 days data

**URL:** <https://forum.alpaca.markets/t/polygon-historic-agg-v2-only-giving-2-days-data/1091>\
**Category:** Alpaca Integration Applications\
**Created:** [April 2, 2020, 10:16pm UTC](https://forum.alpaca.markets/t/polygon-historic-agg-v2-only-giving-2-days-data/1091 "2020-04-02T22:16:02Z")\
**Posts on this page:** 2\
**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:** [April 2, 2020, 10:16pm UTC](https://forum.alpaca.markets/t/polygon-historic-agg-v2-only-giving-2-days-data/1091/1 "2020-04-02T22:16:03Z")

</div>

```
to_date=(datetime.now()+timedelta(days=1)).strftime('%Y-%m-%d')
from_date= (datetime.now()-timedelta(days=20)).strftime('%Y-%m-%d')
symbol="TSLA"
api.polygon.historic_agg_v2(
            symbol, multiplier =1, timespan="day",_from=from_date, to=to_date).df.tail(20)

```

This is only giving me 2 days if data, It was working till this morning. Has someone seen this issue?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/alp/original/1X/f95eebb66780e4b2143901fe7ab57fcf04ca079e.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:** [April 2, 2020, 11:18pm UTC](https://forum.alpaca.markets/t/polygon-historic-agg-v2-only-giving-2-days-data/1091/2 "2020-04-02T23:18:32Z")

</div>

looks like the data is missing in polygon

Querying 50 days data only gives some days data with most missing in the middle. How can this be fixed, any idea?

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