Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
fix final date truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyMShea committed Feb 10, 2021
1 parent dbb8419 commit 5822c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upoly/polygon_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def inner_wrapper(
periods = ceil((end - start).days / max_chunk_days)

intervals: Tuple[pd.Timestamp, pd.Timestamp] = pd.interval_range(
start=start, end=end, periods=periods
start=start, end=end + timedelta(days=1), periods=periods
).to_tuples()

print(f"Retrieving {periods} mini-batches for {symbol}...")
Expand Down

0 comments on commit 5822c0e

Please sign in to comment.