Created
September 18, 2016 01:02
-
-
Save anonymous/78321365e8bacdc5703d47de1839ed77 to your computer and use it in GitHub Desktop.
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 websocket | |
import json | |
ws_url = 'ws://api.zaif.jp:8888/stream?currency_pair=btc_jpy' | |
ws_conn = websocket.create_connection(ws_url) | |
while True: | |
res = ws_conn.recv() | |
print json.loads(res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment