# Is there a way to stream order updates with python?

**URL:** <https://forum.alpaca.markets/t/is-there-a-way-to-stream-order-updates-with-python/505>\
**Category:** Alpaca Questions\
**Created:** [December 4, 2019, 4:13am UTC](https://forum.alpaca.markets/t/is-there-a-way-to-stream-order-updates-with-python/505 "2019-12-04T04:13:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Chris\_Jones](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/chris_jones/32/74_2.png) [@Chris\_Jones](https://forum.alpaca.markets/u/Chris_Jones)\
**Post date:** [December 21, 2019, 5:44am UTC](https://forum.alpaca.markets/t/is-there-a-way-to-stream-order-updates-with-python/505/4 "2019-12-21T05:44:01Z")

</div>

We are having a similar problem on this thread:

> [@Alpaca-backtrader-api gives threading error on running sample code](https://forum.alpaca.markets/t/alpaca-backtrader-api-gives-threading-error-on-running-sample-code/528/2):
>
> The error seems to point to this line in stream2.py: IF you want to go comment out line 27 and replace it with(or add the lines): self.loop = asyncio.new\_event\_loop() asyncio.set\_event\_loop(self.loop) It will run. Here is a great description of the problem: [https://stackoverflow.com/questions/46727787/runtimeerror-there-is-no-current-event-loop-in-thread-in-async-apscheduler](https://stackoverflow.com/questions/46727787/runtimeerror-there-is-no-current-event-loop-in-thread-in-async-apscheduler)

---

_[View the full topic](https://forum.alpaca.markets/t/is-there-a-way-to-stream-order-updates-with-python/505)._
