question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data streaming broken on version 0.48 but not on v0.46 ('AM.*')

See original GitHub issue

Just spent way too many hours of my life to figure out what was causing the problem 😕

I have a project streaming [‘AM.*’, ‘trade_updates’] on alpaca-trade-api v0.46. Everything works as expected.

On another project, I had the exact same code but only ‘trade_updates’ were working. The difference was alpaca-trade-api v0.48. Not sure if this is related to Alpaca’s new data streaming but something broke between these two versions. Just wanted to make you and others aware.

Note: I was streaming using paper credentials, not sure about live.

My code:

self._on_minute_bars = self.paper_conn.on(r'^AM$')(self._on_minute_bars)
self._on_trade_updates = self.paper_conn.on(r'trade_updates$')(self._on_trade_updates)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
duhfrazeecommented, Jul 7, 2020

No worries. Okay great. Didn’t realize there was a breaking change. Thanks for the clarification.

0reactions
shlomikushchicommented, Jul 6, 2020

Hi sorry for the delay in version 0.48 we added another data stream defaulting to alpaca data stream to use the polygon data stream one must specify it explicitly

image

so your StreamConn should look like this:

paper_conn = tradeapi.StreamConn(
        PAPER_APCA_API_KEY_ID,
        PAPER_APCA_API_SECRET_KEY,
        PAPER_APCA_API_BASE_URL
        data_stream='polygon'
    )
Read more comments on GitHub >

github_iconTop Results From Across the Web

Stream Broken with Alpaca-Trade-API version 0.48 / api ...
Hi Guys, this is an updated example code using both the Alpaca data stream and the Polygon data stream (you could choose). it...
Read more >
Games - [Early Access] Atmocity | Page 3 - Unity Forum
I will edit old posts and do this, newer posts will still have images displayed. The game will be updated on Steam fairly...
Read more >
Variance AQ Megathread (AQ v0.48 update--defaults changed ...
I compared 0.48 with 0.5 strength and 13 sensitivity, with 0.46 with 0.6 strength and 20 sensitivity. I'm not sure if 0.48 can...
Read more >
RFC 2354: Options for Repair of Streaming Media
In particular, we restrict our discussion to repair techniques which require the involvement of the sender of a media stream, and do not...
Read more >
Troubleshoot your YouTube live stream - Google Help
To fix it, get a new stream key in Live Control Room and update your encoder. Go to YouTube Studio. To open Live...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found