Hi! I noticed this morning my bot was throwing new errors I’ve never seen before when I haven’t changed anything about the code, kind of strange. The errors are:
“2022-03-17 14:23:56,696 th5: 140 WARNING_HD: Could not load historical data, retrying
2022-03-17 14:23:56,696 th5: 141 404 Client Error: Not Found for url: https://data.alpaca.markets/v1/bars/5Min?symbols=GDX&limit=100
2022-03-17 14:23:56,734 th0: 171 ERROR_CD: Could not check if data is updated
2022-03-17 14:23:56,734 th0: 172 ‘Stock’ object has no attribute ‘df’”
Does anyone know how to go about fixing this?
V1 has been deprecated as of March 17.
Hi, kind of new here. I’ve got code that has been working for a couple of months. Today I’m getting errors. How do I switch to V2? I cannot find any documentation.
This is what I had to do.
Well, after much work, this now works:
The documentation could be improved with some examples and not assume people know what is going on.
change from V1 to V2.
add ‘stocks’ before the /bars
the results are also different. Mainly the ‘time’ format has changed from UTC to a readable format so needed to be parsed differently.
The documentation is difficult to say the least and no examples.
If I have any examples that are like what you are doing I can forward what I ddo, but this change is mainly what I did.