Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2016 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/78321365e8bacdc5703d47de1839ed77 to your computer and use it in GitHub Desktop.
Save anonymous/78321365e8bacdc5703d47de1839ed77 to your computer and use it in GitHub Desktop.
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