Hello Admin & Folks,
Recently, I've been facing an issue that prevents me from generating the token locally.
I'm using the given steps, which were working till yesterday from today it's stopped working.
Is there any change?
Please assist.
Hello Admin & Folks,
Recently, I've been facing an issue that prevents me from generating the token locally.
I'm using the given steps, which were working till yesterday from today it's stopped working.
Is there any change?
Please assist.
Helle Folks,
Could you please someone clarify my doubts.
Is Robo would be applicable for all the exchange. I have tried for MCX, getting an error stating not supported.
If robo order not supported for MCX, then what would be best to place sl and target together using java sdk.
Thanks in advance.
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.
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));
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.
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.
@luckymonu007 Could u plz let us know, how it got solved as I am also getting same issue.
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
Issue got resolved by passing key in the getTOTPCode(key).
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());