@admin Please help.
T
tushar
@tushar
0
Reputation
5
Posts
3
Profile views
0
Followers
0
Following
Best posts made by tushar
This user hasn't posted anything yet.
Latest posts made by tushar
-
Unable to recieve to tick data
Always receiving this -
Receive stock ticks:: [ { ak: 'nk', task: 'cn', msg: 'cn' } ] Receive stock ticks:: [ { ak: 'nk', task: 'mw', msg: 'mw' } ]
I'm using my client_code, password, and Key.
Below is the code, I've passed my client details (code below doesn't contain my details)
Code
let { SmartAPI, WebSocket } = require("smartapi-javascript"); let smart_api = new SmartAPI({ api_key: "KEY", // PROVIDE YOUR API KEY HERE }); smart_api.generateSession("client_code", "PWD") .then((data) => { // console.log(data) return data; }) .then((data) => { console.log(data) let web_socket = new WebSocket({ client_code: "client_code", feed_token: data.feedToken, script: "nse_cm|1594&nse_cm|10738&nse_cm|277&nse_cm|144&nse_cm|685" //exchange|token for multi stocks use & seperator }); web_socket.connect(); web_socket.on('tick', receiveTick) function receiveTick(d) { console.log("Receive stock ticks::", d) } }) .catch(ex => { console.log("EX::", ex) }); smart_api.setSessionExpiryHook(customSessionHook); function customSessionHook() { console.log("User loggedout"); }
-
RE: USER IS BLOCKED FOR TRADING
@admin Hi Please migrate my account DIYD14020 . I'm also getting the same error and I don't need Speed pro.
-
USER IS BLOCKED FOR TRADING - errorcode: 'AB1007'
Hi I'm getting this error from API but I use this account for trading ( my account is active. )