.
import FinanceDataReader as fdr
df_f = fdr.DataReader("US500", "2023-08-01", "2023-08-23")
The above code generates an error when run as a scheduled task. The code runs normally when executed directly or as an Always On task. The error message generated by the scheduled task is as follows.
HTTP Error 401: Unauthorized - symbol "US500"not found or invalid periods
It does not appear that the execution of the code and the execution of the scheduled task are performed on different servers. I am writing to inquire about this.
I apologize for my poor English.
[edit by admin: formatting]