Skip to content

Commit

Permalink
fix: update historical fear greed index dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
daneisburgh committed Feb 28, 2024
1 parent b5c02bb commit f3a6ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invaas/schwab/schwab_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __get_previous_run_output(self):
return previous_run_output

def __get_fear_greed_index_data(self, historical_periods: int):
df = pd.DataFrame(data=get_historical_cnn_fear_greed_index()["data"][:-1])
df = pd.DataFrame(data=get_historical_cnn_fear_greed_index()["data"])
df.set_index(
pd.DatetimeIndex([pd.Timestamp(x, unit="ms", tz="UTC") for x in df.x]),
inplace=True,
Expand Down

0 comments on commit f3a6ce3

Please sign in to comment.