Last active
January 14, 2020 08:44
-
-
Save michaelbukachi/4b0d03d5dcb000ecc9f71e98bed5986d to your computer and use it in GitHub Desktop.
Forkdelta example
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 websockets | |
import asyncio | |
async def hello(): | |
uri = 'wss://api.forkdelta.app/socket.io/' | |
async with websockets.connect(uri,) as websocket: | |
# await websocket.send('getMarket') | |
await websocket.send('getMarket') | |
res = await websocket.recv() | |
print(f'< {res}') | |
if __name__ == '__main__': | |
asyncio.get_event_loop().run_until_complete(hello()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment