loading
main.py
1
2
3
4
5
6
7
8
9
10
11
import websocket
import json

ws = websocket.WebSocket()
ws.connect("wss://wsapi.coinut.com")

r = {"request":"inst_order_book","inst_id":490589, "subscribe": True, "nonce":704114}
ws.send(json.dumps(r))

while True:
    print json.dumps(json.loads(ws.recv()), indent=2)