wss://ws-api.coincheck.com/
Python 3.6.0 |Anaconda 4.3.0 (64-bit)
websocket-client (0.40.0)
Sinon, 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())
Je pensais que ça ne reviendrait pas même si je me connectais, mais il n'y avait pas de transaction ()
Recommended Posts