@Rishab Sure
AravindAnbalagan
@AravindAnbalagan
Best posts made by AravindAnbalagan
Latest posts made by AravindAnbalagan
-
RE: com.neovisionaries.ws.client.WebSocketException: Failed to connect to 'wsfeeds.angelbroking.com:443': Connection timed out: connect
Hello @Moderator_2 @Rajen @Rishab @pavi-jun2
I just started using Websocket using Java SDK and got the same error.
I'm using a 2.2.1 jar, could you please let me know, how to resolve it.
Thanks in advance. -
RE: Facing issue in TOTP Automation
public static String key = "Agf5EKgf2EGRTGRGgf7DOKSJI6gfSZG66Q";
public static String clientID = "XXXXX";public static String clientPass = "0000";
public static String apiKey = "ggklv44L";GoogleAuthenticator gAuth = new GoogleAuthenticator();
String code = String.valueOf( gAuth.getTotpPassword(key));smartConnect = new SmartConnect(apiKey);
user = Optional.ofNullable(smartConnect.generateSession(clientID, clientPass, code)); -
RE: Unable to get option chain in AWS EC2-same works in local
Hello @justvarshney , Could u plz confirm that from NSE website u would be able to get the data from EC2.
From local its works for me, but not in EC2 due to security.
-
Unable to get option chain in AWS EC2-same works in local
Hello @admin and Team
Any suggestion would be appreciated.
I am getting a nifty option chain by using below public API, which works fine post adding the cookies.
API: https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY
But when I deploy the same to AWS EC2, unable to receive a response, the API call is unresponsive.
How to get option chain details in AngelOne or solve the above-mentioned issue?
Thanks in advance.
-
RE: Ticker not working
@luckymonu007 Could u plz let us know, how it got solved as I am also getting same issue.
-
Need assistance on web Socket call
Hello @admin
Yesterday onwards websocket.tickerUsage() stopped working, I request you to share any references for the same using java.
Any help is appreciated!String strWatchListScript = "mcx_fo|243301";
String task = "sfi";
examples.tickerUsage(clientID, feedToken, strWatchListScript, task);Sample Response :
subscribe() called!
ticker data: [{"msg":"cn","task":"cn","ak":"nk"}]
ticker data: [{"msg":"bh","task":"bh","ak":"nk"}]
ticker data: [{"msg":"hb","task":"hb","ak":"nk"}]Thanks
-
RE: Facing issue in TOTP Automation
Issue got resolved by passing key in the getTOTPCode(key).
-
Facing issue in TOTP Automation
Hello Folks
I trying to get the TOTP through java but was unable to make it work.
Below is the code snippet, I request to help on this.
String key = "";
String clientID = "";
String clientPass = ""
String apiKey = ""String totp = getTOTPCode(apiKey); GoogleAuthenticator gAuth = new GoogleAuthenticator(); String code = String.valueOf( gAuth.getTotpPassword(totp)); SmartConnect smartConnect = new SmartConnect(apiKey); smartConnect = new SmartConnect(apiKey); User user = smartConnect.generateSession(clientID, clientPass, code); // getting "message":"Invalid totp","errorcode":"AB1050" String feedToken = user.getFeedToken(); System.out.println("feedToken " +feedToken); smartConnect.setAccessToken(user.getAccessToken()); smartConnect.setUserId(user.getUserId());