wss://ws-api.coincheck.com/
Python 3.6.0 |Anaconda 4.3.0 (64-bit)
websocket-client (0.40.0)
If not, pip install websocket-client
import json
from websocket import create_connection
ws = create_connection("wss://ws-api.coincheck.com/")
ws.send(json.dumps({
"type": "subscribe",
"channel": "btc_jpy-trades"
}))
while True:
print (ws.recv())
import json
from websocket import create_connection
ws = create_connection("wss://ws-api.coincheck.com/")
ws.send(json.dumps({
"type": "subscribe",
"channel": "btc_jpy-orderbook"
}))
while True:
print (ws.recv())
I thought that it wouldn't come back even if I connected, but there was no transaction ()
Recommended Posts