Skip to content

Commit fa75fe1

Browse files
Fix example to stream public trades
The example to stream public trades was incorrect because it was missing the await keyword to get the stream channel. Signed-off-by: Daniel Zullo <[email protected]>
1 parent 8b66629 commit fa75fe1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ buy_orders = await self._client.list_gridpool_orders(
116116
To get real-time updates on market trades, one can use the following code snippet.
117117

118118
```python
119-
async for public_trade in client.stream_public_trades():
119+
stream_public_trades = await client.stream_public_trades()
120+
async for public_trade in stream_public_trades:
120121
print(f"Received public trade: {public_trade}")
121122
```
122123

0 commit comments

Comments
 (0)