Regarding NodeJs

Hi , I am connecting api through nodeJs , i got userinfo, able to place order , but i am not able to get live market data through web socket , there is no proper sample code for nodeJs , if anyone has done it , can u share code or guide me.

Hi @yogya.9olw812n ,

Use below code to connect websocket

-api-v2");

fy.setAppId(“xxxxxxx-xxx”)

fy.setRedirectUrl(“https://www.google.com”)

fy.setAccessToken(“eyJ0…”)

//symbol update

var req={

symbol:['NSE:ONGC-EQ','NSE:IOC-EQ'],

dataType:‘symbolUpdate’

}

//orderupdates

// var req={

// dataType:‘orderUpdate’

// }

fy.fyers_connect(req,function (msg) {

console.log(msg)

})