Open 2018kguo opened 4 years ago
I have the same issue.
I get the same API error and I found it depends on the argument interval.
with interval=5minute, span=day, week work, no span>week works with interval=10minute, span=day, week work, no span>week works
DIFFERENT FROM API ERROR: with interval=hour, span=day, I get no ticker working, but that might be because I'm trying at 10:30AM EST
with interval=hour, span=week, month, and 3month work, span>3month doesn't work with interval=day, span=day doesn't work with interval=day, span=week, month, 3month, year, and 5year all work with interval=week, span=month, 3month, year, and 5year all work, span<month doesn't work
Seems like one needs an exception for the interval/span combos to accommodate... I can try coding one up
Has anybody come up with a fix for this?
Bump.
Try setting the interval when calling the function. I set it to day instead of the default hour and it worked.
On version 1.0.0.7, I am able to use the following code to successfully grab historical data for a given stockTicker like "ATVI"
A few minutes ago, I tried upgrading to 1.2.2, and since get_historicals became obsolete, I changed this to
and am getting this error:
Someone else pointed this out to me on a project I have that I wrote using robin_stocks https://github.com/2018kguo/RobinhoodBot/issues/14 Perhaps the request URL ended up being changed somehow between the two versions?