Created
February 21, 2019 20:21
-
-
Save boyan-soubachov/65c3531ab7424ec7645bf250b696abd5 to your computer and use it in GitHub Desktop.
Aiocometd
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) | |
if __name__ == "__main__": | |
loop = asyncio.get_event_loop() | |
loop.run_until_complete(main_loop()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment