Consider the issue closed, issue was that I was passing incorrect token's list
Posts made by tsingh
-
RE: Websocketposted in NodeJS SDK
-
RE: Websocketposted in NodeJS SDK
@Moderator_1
I am using com.angelbroking.smartapi:smartapi-java:jar:2.2.3Also I am using SmartStreamTicker.
Kotlin code snippet :-val smartStreamTicker = SmartStreamTicker(clientId, feedtoken, smartStreamListener, delay, period) smartStreamTicker.connect() smartStreamTicker.subscribe(SmartStreamSubsMode.SNAP_QUOTE, tokens.toSet()) return smartStreamTicker -
RE: not able to connect to wsfeeds.angelbroking.com:443posted in NodeJS SDK
I am also facing this issue
Failed to connect to 'wsfeeds.angelbroking.com:443': Operation timed out -
WebSocket Streaming size and max connectionsposted in Bugs
H Team
How many websocket connections can I open for WebSocket Streaming feed?
How many scribs can I subscribe per connection?Thanks
-
error code AB1004 | loginposted in General Discussion
Re: AB1004
getting following error while logging in
"message": "Something Went Wrong, Please Try After Sometime",
"errorcode": "AB1004", -
RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"posted in General Discussion
Please migrate - Client Id - T185904
-
RE: Websocket Call in Javaposted in NodeJS SDK
@laskshmi you need to read the response byte by byte as per this response contract in here - https://smartapi.angelbroking.com/docs/WebSocket2
Best ok luck !!
-
order feed not workingposted in General Discussion
Hi team
I am trying to integrate order feed following this documentation - https://smartapi.angelbroking.com/docs/WebSocketOrderStatusI am getting following error when creating websocket connection
node.js code snippet
let init = (jwt)=>{ let client = new (require("websocket").client)(); client.on('connectFailed', function(error) { console.error('web socket', error); }); let url = `wss://smartapisocket.angelbroking.com/websocket?jwttoken=${jwt}&clientcode=${CLIENT_ID}&apikey=${KEY}` client.connect(url) } init()Following error is thrown immediately :-
web socket Error: socket hang up at connResetException (node:internal/errors:692:14) at TLSSocket.socketOnEnd (node:_http_client:478:23) at TLSSocket.emit (node:events:539:35) at endReadableNT (node:internal/streams/readable:1345:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) { code: 'ECONNRESET' }client id - T185904
-
RE: SECURITY THREATposted in General Discussion
Please go through this article to find all the reasons why we should not pass sensitive information in query params
https://blog.httpwatch.com/2009/02/20/how-secure-are-query-strings-over-https/
-
is there any API to get order by order id?posted in General Discussion
is there any API to get order by order id?
could not find it here -
RE: Binary data from websocket 2.0posted in General Discussion
@vrkhyd
CLOSED.
got it.
need to step by step parse the bytes as mentioned it here
https://smartapi.angelbroking.com/docs/WebSocket2Too much of effort!!
Feedback - could have been a simpler contract -
SECURITY THREATposted in General Discussion
the order feedback and market feeds websocket APIs are not secure
they are accepting jwt token and API-keys in request URL.This is highly vulnerable. Any middleware can read URL context path and query params as they are not encrypted.
Kindly upgrade the APIs for better security
https://smartapi.angelbroking.com/docs/WebSocketOrderStatusclientId - T185904
-
RE: Binary data from websocket 2.0posted in General Discussion
@vrkhyd
this doc does not talks anything about decoding the binary data.I am also facing the same issue.
nodejs message log:-
{ "type": "binary", "binaryData": { "type": "Buffer", "data": [ 1, 1, 54, 51, 53, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 47, 85, 0, 0, 0, 0, 0, 232, 190, 43, 46, 133, 1, 0, 0, 64, 239, 7, 0, 0, 0, 0, 0 ] } } -
is wss://smartapisocket.angelbroking.com/websocket DOWN?posted in General Discussion
is websocket order feed currently down?
wss://smartapisocket.angelbroking.com/websocket
-
unable to get order feed - AG8004posted in Bugs
unable to get order feed
which token shall I use? Currently I am using jwtToken.client id is T185904
nodejs snippet
Kindly reviewlet initFeed = (jwt)=>{ let web_socket = new WebSocketClient({ clientcode: "T185904", jwttoken: jwt, apikey: PRIVATE_KEY, feedtype: "order_feed", }); web_socket.connect() .then(() => { web_socket.fetchData("subscribe", "order_feed"); // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed }); web_socket.on('tick', receiveTick); function receiveTick(data) { console.log("receiveTick:::::", data); } } //EXCEPTION SyntaxError: Unexpected token A in JSON at position 0 at JSON.parse (<anonymous>) at WebSocket.ws.onmessage (C:\Users\tusharsingh\projects\angel_adapter\node_modules\smartapi-javasc ript\lib\websocket_client.js:37:43)data received from websocket - AG8004

-
what is error code - AB4006posted in General Discussion
{"message":"Invalid symboltoken","errorcode":"AB4006","status":false,"data":null}
Which token do I need to use for placing orders?
-"jwtToken" or "refreshToken" or "feedToken"Currently I am using "Bearer jwtToken"
Please update the documentation
https://smartapi.angelbroking.com/docs/Exceptions for error code AB4006 -
quantity vs disclosedquantityposted in General Discussion
https://smartapi.angelbroking.com/docs/Orders#place
Kindly help me understand difference between quantity and disclosedquantityis disclosedquantity a mandatory field?

-
I do not have any password to enable TOTPposted in General Discussion
How do I enable TOTP
I do not have any password for my client id. Also there is no option to reset/forget passwordMy client id is T185904
T185904