Raunak

About

Username
Raunak
Joined
Visits
877
Last Active
Roles
Moderator
Points
89
Badges
7

Activity

  • 1Don

    @Ranuak im trying to use the tick feed from binary.com and make it visible on a html file (see code ) i basically want a quote ticker similar to what is on the site when opened , however each time tick comes in i dont want it to list but just to update , like that of the quote ticker on binary.com. I just want the quote only not the bid & ask thats in the console log . I also want to be able to retrieve that data by using IE.Document.getElementById("spot") i use to get this quote data strictly from binary.com in IE 11 ;but that site is no longer supported. yous assistance will appreciated .


    <!DOCTYPE html>

    var ws = new WebSocket('wss://ws.binaryws.com/websockets/v3?app_id=****'); ws.onopen = function(evt) { ws.send(JSON.stringify({ticks: "R_100" })); }; var intervalId = setInterval(function() { ws.send(JSON.stringify({ping:'1'})); }, 5000); ws.onmessage = function(msg) { var data = JSON.parse(msg.data); console.log('ping update: %o', data); }; ws.onmessage = function(msg) { var data = JSON.parse(msg.data); console.log('ticks update: %o', data); };


    October 23
  • termi_80
    Hello raunak,
    Could you help me i have a problem with open socket i used c#
    September 22