Skip to content

Commit

Permalink
research:: fix dates casting
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiku committed Mar 11, 2021
1 parent 90eb88d commit 8910a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zipline/research/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def get_pricing(data_portal, trading_calendar, assets, start_date, end_date, fie
# indicate that a CustomBusinessDay DateOffset is used

global END_DT
END_DT = pd.Timestamp(end_date, tz='UTC', freq='C')
start_dt = pd.Timestamp(start_date, tz='UTC', freq='C')
END_DT = end_date
start_dt = start_date

# Get the locations of the start and end dates
end_loc = trading_calendar.closes.index.get_loc(END_DT)
Expand Down

0 comments on commit 8910a02

Please sign in to comment.