edo1z blog

プログラミングなどに関するブログです

2019-01-20から1日間の記事一覧

BitfinexとBitmexの板と約定履歴をwebsocketで取得する

node.jsを使ってます。 Bitfinex const ws = require('ws') const w = new ws('wss://api.bitfinex.com/ws/2') w.on('message', msg => console.log(msg)) let msg = JSON.stringify({ event: 'subscribe', channel: 'trades', symbol: 'tBTCUSD' }) w.on('o…