AI4Finance-Foundation / FinRL

FinRL: Financial Reinforcement Learning. 🔥
https://ai4finance.org
MIT License
9.39k stars 2.28k forks source link

Update processor_alpaca.py #1060

Closed DrJohnElliott closed 10 months ago

DrJohnElliott commented 11 months ago

Error delta not found Changed line 57 from: if pd.Timedelta(time_interval).delta < day_delta: to: if pd.Timedelta(time_interval).total_seconds() < day_delta:

zhumingpassional commented 11 months ago

thanks for your codes have you tested it?

DrJohnElliott commented 7 months ago

thanks for your codes have you tested it?

Apologies for not responding sooner, I have only tested on my system with no integration/unit/e2e tests