Skip to content

Instantly share code, notes, and snippets.

@michaelbukachi
Last active January 14, 2020 08:44
Show Gist options
  • Save michaelbukachi/4b0d03d5dcb000ecc9f71e98bed5986d to your computer and use it in GitHub Desktop.
Save michaelbukachi/4b0d03d5dcb000ecc9f71e98bed5986d to your computer and use it in GitHub Desktop.
Forkdelta example
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