This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aiocometd | |
import asyncio | |
url = "https://tools.dxfeed.com/webservice/cometd" | |
async def main_loop(): | |
async with aiocometd.Client(url) as client: | |
async for message in client: | |
print("message data: %s" % message) |