Skip to content

Instantly share code, notes, and snippets.

@azharuniverse
azharuniverse / Coinbasepro.js
Last active May 21, 2019 18:26
Coinbasepro fetch ticker from socket with Reconnect Strategy using `ccxt` & `coinbase-pro`
//Modify libary file websocket.js from node_modules
//this.socket.send(JSON.stringify(message)); -> if(this.socket) this.socket.send(JSON.stringify(message));
/**
* Created by Azhar on 21-05-2019.
*/
const ccxt = require('ccxt');
let MarketSummaries = new Map();