# Listening to Account Updates, what triggers updates?

**URL:** <https://forum.alpaca.markets/t/listening-to-account-updates-what-triggers-updates/1207>\
**Category:** Alpaca Integration Applications\
**Created:** [April 16, 2020, 6:02pm UTC](https://forum.alpaca.markets/t/listening-to-account-updates-what-triggers-updates/1207 "2020-04-16T18:02:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benanstrom](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@benanstrom](https://forum.alpaca.markets/u/benanstrom)\
**Post date:** [April 16, 2020, 6:02pm UTC](https://forum.alpaca.markets/t/listening-to-account-updates-what-triggers-updates/1207/1 "2020-04-16T18:02:48Z")

</div>

Hello,

My code is listening to ‘account\_updates’ via the following code:

@conn.on(r’^account\_updates’)  
async def on\_account\_updates(conn, channel, account):  
print(‘account’, account)

I was adding this into my algorithm because i noticed the get\_account() does not always update the “cash” value as fast as i would like my loop to run. I am hoping that the WebSocket will solve this issue.

I saw this example in the documentation:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/alp/original/1X/e471f8fe887d0abc8edd06f7c0e1bb472ccc362a.png)

I am wondering if i can get this update every time account “cash” changes. Also, is there documentation that has the list of events that can trigger this stream?

Thank you for the help.
