You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Hi im newbie to a programming and here I was trying to use the code given in the github which is :
var ws = require('ws');
var LiveApi = require('binary-live-api').LiveApi;
var api = new LiveApi({ websocket: ws, appId: my_id });
api.authorize('mytoken');
api.events.on('authorize', function(data) {
api.getPortfolio();
});
api.events.on('portfolio', function(data) {
console.log(data);
});
but then i see this error which is saying
Uncaught ReferenceError: require is not defined
can anyone explain to me whats the error means? thank you