It looks like you're new here. If you want to get involved, click one of these buttons!
ticker.connect();
ticker.on("tick", onTick);
ticker.on("connect", onConnect);
function onConnect() {
ticker.subscribe([2661633]);
ticker.setMode(ticker.modeFull, [2661633]);
console.log("connected");
}
function onTick(ticks) {
console.log(ticks);
var price = ticks[0]["last_price"];
}
You can go through this thread.