Skip to content
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

ERROR: consuming ws messages: unknown channel A.OPK (you may need to specify the right data_stream) #24

Open
giuseppe-salvatore opened this issue Aug 14, 2020 · 2 comments

Comments

@giuseppe-salvatore
Copy link

Hi,
so I tried investigating this error a bit and from the Alpaca API seems like the A channel (which should be the bars by second) doesn't exist. AM (the bars by minute does). I know this is polygon but I thought that this is what Alpaca is using under the hood.
I wonder whether this is the problem... also, I am using the paper trading just to make sure I don't mess things up.
Any help would be highly appreciated and if I manage to fix this I will create a PR anyway.
Thanks

@RezaAIDL77
Copy link

RezaAIDL77 commented Aug 22, 2020

Hei man, I do have a same issue. One idea I got this weekend is to check:
conn = tradeapi.stream2.StreamConn(api_key, api_secret, base_url)
instead of
conn = tradeapi.StreamConn(base_url=base_url, key_id=api_key_id, secret_key=api_secret)

Sorry if I didn't help. I myself is trying to fix this ...

@Gabowatt
Copy link

Gabowatt commented Sep 2, 2020

Specify the Data Stream in the StreamConn like this:
conn = tradeapi.StreamConn(base_url=base_url, key_id=api_key_id, secret_key=api_secret,data_stream='polygon')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants