Skip to content

Commit

Permalink
better arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiku committed Sep 8, 2020
1 parent a7c5d90 commit ab91d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/websocket_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ async def on_minute_bars(conn, channel, bar):

quote_count = 0 # don't print too much quotes
@conn.on(r'Q\..+', ['AAPL'])
async def on_quotes(conn, channel, bar):
async def on_quotes(conn, channel, quote):
global quote_count
if quote_count % 10 == 0:
print('bars', bar)
print('bars', quote)
quote_count += 1


Expand Down

0 comments on commit ab91d3b

Please sign in to comment.