Skip to content

Commit 7f34184

Browse files
examples
1 parent 161a68d commit 7f34184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ubwa-demo/ubwa-demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async def main(self):
3838
channels: list = ['trade', 'kline_1m', 'depth20']
3939
for channel in channels:
4040
self.ubwa.create_stream(channels=channel,
41-
markets=markets[:self.ubwa.get_limit_of_subscriptions_per_stream()],
41+
markets=markets[:100],
4242
process_asyncio_queue=self.process_data,
4343
stream_label=channel)
4444

@@ -59,7 +59,7 @@ async def process_data(self, stream_id=None):
5959

6060

6161
if __name__ == "__main__":
62-
with BinanceWebSocketApiManager(auto_data_cleanup_stopped_streams=True) as ubwa:
62+
with BinanceWebSocketApiManager() as ubwa:
6363
bdp = BinanceDataProcessor(ubwa_manager=ubwa)
6464
try:
6565
asyncio.run(bdp.main())

0 commit comments

Comments
 (0)