Skip to content

Commit

Permalink
Update many-exchanges-many-streams.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor authored Oct 10, 2020
1 parent ae787fa commit 91770b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/ccxt.pro/py/many-exchanges-many-streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ async def exchange_loop(asyncio_loop, exchange_id, symbols):


async def main(asyncio_loop):
symbols = ['BTC/USDT', 'ETH/BTC']
# symbols = []
exchanges = {
'okex': symbols + ['ETH/USDT'],
'binance': symbols,
'okex': ['BTC/USDT', 'ETH/BTC', 'ETH/USDT'],
'binance': ['BTC/USDT', 'ETH/BTC'],
}
loops = [exchange_loop(asyncio_loop, exchange_id, symbols) for exchange_id, symbols in exchanges.items()]
await asyncio.gather(*loops)
Expand Down

0 comments on commit 91770b3

Please sign in to comment.