Access to ticks history by URL

Hello, I would just like to access the tick history and would not like to have to use node.js for this.
Is it possible to access the history directly through a URL by passing the necessary parameters?

Comments

  • edited January 2022

    @LdF Deriv API works via websocket. There's no way to access it via URL. However you don't necessarily need to use node.js. You can get is on a web page.

    const WebSocket = require('ws');
    var ws = new WebSocket('wss://ws.binaryws.com/websockets/v3?app_id=1089');
    
    ws.onopen = function (evt) {
        ws.send(JSON.stringify({ ticks: 'R_100' }));
    };
    
    ws.onmessage = function (msg) {
        var data = JSON.parse(msg.data);
        console.log('Ticks update: %o', data);
    };
    
Sign In or Register to comment.