-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alpaca-trade-api 1.x #171
Comments
Hi, |
@camelpac unfortunately the update doesn't replace v1.0, as it doesn't permit subscription to multiple symbols. is there a workaround for that? |
not yet. follow the alpaca-proxy-agent project for updates. |
@camelpac great, thanks for the reply! |
@camelpac any chance this will be updated soon? I'd happily subscribe to the data API if this were supported, but it doesn't make sense if i can only subscribe to one ticker symbol. |
not yet. it's in the backlog |
This update was not done properly by the way, alpaca-trade-api 1.x is not integrated well and even the basic examples provided in the repo are not working. Given all these issues it seems you decided to make another release with only the alpaca-trade-api version bumped but none of the issues fixed! Can we get an ETA on when this will be resolved? |
Hi @jrhone What other issue to you face? please point me to specific examples. |
I am having issues testing minute granularity on >= 0.14.0. For example, when testing the README.md example modified for minute granularity: data0 = DataFactory(dataname='AAPL', historical=True, fromdate=datetime( I'm only getting results between UTC 13:30 and 16:00. This occurs when testing one or multiple sessions. I've also tried substituting NYC and my local timezones without success. There's clearly something amiss with timezones in >=0.14.0. The above works perfectly on <=0.13.1. NOTE: Regardless of version, I've had to apply the trading_calendars fix mentioned in issue #176. Modifying calendar_helpers in trading-calendars works but throws a FutureWarning. Substituting exchange_calendars works with no warning. |
Hi @camelpac , there are errors when trying to run the examples in the sample folder and the README. Please see the two issues below which specify the sample code, error stacktraces and library versions used. I think it would make sense to go through all the examples in the samples folder and verify they work.
|
Hi @camelpac, i am still unable to run my backtrader code with the updated proxy / backtrader-api code using the latest trading api. i see log of attempted connections in the proxy, but all data subscriptions fail. these are strategies that worked fine using the earlier backtrader-api and v1 data. any hope this code might be updated sometime soon? |
@camelpac thanks for this work you've done thus far. I am excited to see where it will go in the future. To add to the other commenters' requests, I am having issues with the sample code when running
With the following dependencies:
I'll see if I can do some investigative work on this to help out |
can confirm the above is still an issue |
Quick update: I solved this issue by realizing that my key and secret set in my env file were not registering because the sample code was explicitly passing in the key and secret into the AlpacaStore constructor. The issue was that I had not set the variables with my key and secret.
Once setting these it worked. I believe this was happening because the endpoint was sending back a 401 status and the backtrader was not catching properly and trying to cast the 40 response into a Position object.... hints I think there might have been another issue that I worked through but it's been too long. A potential improvement here would be handling 401s from the authentication endpoint better. The error message is not clear. |
Is upgrading to alpaca-trade-api >= 1.0 planned in the near future?
Lots of recent updates there around websockets and V2 data that would be great to use.
The text was updated successfully, but these errors were encountered: