Listen For Order Updates

I am trying to listen to order updates and can’t seem to get it to work. I can pull all orders or orders by client ID/Order ID, but haven’t figured out how to stream this.

Below is the code I have an the error message I am getting is ‘Stream’ object has no attribute ‘on’

import alpaca_trade_api as tradeapi

conn =

client_order_id = r’my_client_order_id’
async def on_msg(conn, channel, data):

print("Update for {}. Event: {}.".format(client_order_id, data['event']))

Start listening for updates.[‘trade_updates’])


I have the same issue. Did you find a solution?


No, not yet. I am going to try and build my own async function that calls the API periodically. I just can’t figure this one out for some reason.