@admin my program refreshes feed token each time its run.. i ran the program again still same issue
akshayavivek06
@akshayavivek06
Best posts made by akshayavivek06
Latest posts made by akshayavivek06
-
RE: Python script in EC2 in AWS not working 'ak':'nk'
-
RE: Websocket closes randomly.
@admin
Same problem with me too..
i have setup the websocket in heroku and it stops every 5 or ten minutes. -
Python script in EC2 in AWS not working 'ak':'nk'
Hi i am trying to conenct web socket through AWS but not working
I am getting below msg and nothing else after that
Ticks: [{'ak': 'nk', 'msg': 'mw', 'task': 'mw'}] -
RE: How many tokens can be subscribed at a time in websocket?
@admin ok then will wait for the issue to be fixed because if i subscribe more than 700 tokens only time value response is coming as of now.
-
RE: How many tokens can be subscribed at a time in websocket?
@admin ok mean while can you tell me the max no: of tokens that i can pass
-
How many tokens can be subscribed at a time in websocket?
I am adding 2178 tokens in websocket connection but getting only time feed in response.. but when i give just a 100 tokens i am getting mw feed.
How many tokens can i pass in a single go in the websocket?
-
RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"
@admin SPPA1005 please migrate.. i reset password to my angel trading acct..
now i am able to generatesession via smartapi but when i connect websocket getting only time stamp response.. no feed is coming for scripts
-
RE: SmartAPIs throw "AB1034 : Apps not found"
@admin hi admin i am also having the same problem as harkal..
i tried to login to smartapi my account did not exist .. then i have signed up again now.. created a new app used the api key to connect... not connecting please help -
RE: how to connect to websocket and retrieve data
@mihirk i am trying to learn this.. any video or tutorial if you can direct me to will be great. Thank you appreciate your response
-
RE: how to connect to websocket and retrieve data
@admin I am able to connect to the websocket with help of SDK provided
please see below my code
const app = require('express')();
const http = require('http').Server(app);
let { WebSocket } = require("smartapi-javascript");var msg="";
let web_socket = new WebSocket({
client_code: "XX",
feed_token: "XX",
script: "nse_cm|1594" //exchange|token for multi stocks use & seperator
});
web_socket.connect();
web_socket.on("tick", receiveTick);function receiveTick(data) {
console.log("Receive stock ticks::", data);
msg=data.msg;
}app.get('/',function(req, res){
res.sendFile(__dirname + '/index.html');
});http.listen(8000,function(){
console.log('listening on *:8000');
});how to get this data streaming in console to show in the index,html ??
i am new to node js please help