in angel master data api json there are missing stock equities like https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json , in this EMMVEE is not available for NSE, why?
Latest posts made by nagappan08
-
angel master data api jsonposted in Test
-
Angel History api not giving proper candle data for the equities symbolposted in NodeJS SDK
Java sdk candle data api method has been triggered for wipro with time duration, but the OHLC Price response was not matching. Tried for couple of more stock symbols, for all them the response was relevant.
Whether history api will provide day wise candle data or is it still in beta version?
public JSONArray candleData(JSONObject params) {
try {
String url = this.routes.get("api.candle.data");Response from angel api:
{
"WIPRO-BL": [
[
"2024-08-01T00:00:00+05:30",
523, 526.8, 517.5, 521.55, 5379876],
[
"2024-08-02T00:00:00+05:30",
515, 519.25, 501, 502.15, 7826114],
[
"2024-08-05T00:00:00+05:30",
490, 495.85, 480.25, 485, 10969040]
],
"WIPRO-EQ": [
[
"2024-08-01T00:00:00+05:30",
523, 526.8, 517.5, 521.55, 5379876],
[
"2024-08-02T00:00:00+05:30",
515, 519.25, 501, 502.15, 7826114],
[
"2024-08-05T00:00:00+05:30",
490, 495.85, 480.25, 485, 10969040]
]
} -
Historical api data is showing incorrect data for NSE equity tokenposted in General Discussion
{
"exchange": "NSE",
"symboltoken": "11536",
"interval": "ONE_DAY",
"fromdate": "2024-08-01 00:00",
"todate": "2024-08-05 00:00"
}Response:
[
[
"2024-08-01T00:00:00+05:30",
4399.4, 4419.3, 4365.05, 4397.1, 2202244],
[
"2024-08-02T00:00:00+05:30",
4365, 4398, 4270, 4283.05, 2811282],
[
"2024-08-05T00:00:00+05:30",
4239, 4239, 4110.5, 4155.05, 2787771],
[
"2024-08-06T00:00:00+05:30",
4170.95, 4258.25, 4160.8, 4171.2, 2203067]
]value returned was totally not matching, can you please let us know is there any change in the payload ?
Below endpoint, was tried
/rest/secure/angelbroking/historical/v1/getCandleData -
WebSocket connection error WebSocketException: The status line of the opening handshake response is emptyposted in NodeJS SDK
We are using the below way of conneecting and generating the session
String clientId = "xxx"; SmartConnect smartConnect = new SmartConnect(); String apiKey = "xxx"; // Provide your API key here smartConnect.setApiKey(apiKey); User user = smartConnect.generateSession(clientId, "xxx", tOtp); System.out.println("jwt token : "+ user.getAccessToken()); String jwtToken = user.getAccessToken();Then we need to connect the websocket with the user details as below:
public void smartWebSocketUsage(String clientId, String jwtToken, String apiKey, String actionType, String feedType) throws SmartAPIException { SmartWebsocket smartWebsocket = new SmartWebsocket(clientId, jwtToken, apiKey, actionType, feedType); smartWebsocket.setOnConnectedListener(new SmartWSOnConnect() { @Override public void onConnected() { System.out.println("smart web socket connected.."); smartWebsocket.runscript(); } }); smartWebsocket.setOnDisconnectedListener(new SmartWSOnDisconnect() { @Override public void onDisconnected() { System.out.println("onDisconnected"); } }); /** Set error listener to listen to errors. */ smartWebsocket.setOnErrorListener(new SmartWSOnError() { @Override public void onError(Exception exception) { System.out.println("onError: " + exception.getMessage()); } @Override public void onError(SmartAPIException smartAPIException) { System.out.println("onError: " + smartAPIException.getMessage()); } @Override public void onError(String error) { System.out.println("onError: " + error); } }); smartWebsocket.setOnTickerArrivalListener(new SmartWSOnTicks() { @Override public void onTicks(JSONArray ticks) { System.out.println("ticker data: " + ticks.toString()); } }); /** * connects to SmartAPI ticker server for getting live quotes */ smartWebsocket.connect();While connecting the websocket, we are facing this issue.. "opening handshake response is empty.."
-
java sdk websocket - com.neovisionaries.ws.client.WebSocketException: The status line of the opening handshake response is emptyposted in NodeJS SDK
Generated the jwttoken by using api client id to get the generate session.
String clientId = "xxx"; SmartConnect smartConnect = new SmartConnect(); String apiKey = "xxx"; // Provide your API key here smartConnect.setApiKey(apiKey); User user = smartConnect.generateSession(clientId, "xxx", tOtp); System.out.println("jwt token : "+ user.getAccessToken()); String jwtToken = user.getAccessToken();Then
SmartWebsocket smartWebsocket = new SmartWebsocket(clientId, jwtToken, apiKey, actionType, feedType); smartWebsocket.setOnConnectedListener(new SmartWSOnConnect() { @Override public void onConnected() { System.out.println("smart web socket connected.."); smartWebsocket.runscript(); } }); smartWebsocket.setOnDisconnectedListener(new SmartWSOnDisconnect() { @Override public void onDisconnected() { System.out.println("onDisconnected"); } }); /** Set error listener to listen to errors. */ smartWebsocket.setOnErrorListener(new SmartWSOnError() { @Override public void onError(Exception exception) { System.out.println("onError: " + exception.getMessage()); } @Override public void onError(SmartAPIException smartAPIException) { System.out.println("onError: " + smartAPIException.getMessage()); } @Override public void onError(String error) { System.out.println("onError: " + error); } }); smartWebsocket.setOnTickerArrivalListener(new SmartWSOnTicks() { @Override public void onTicks(JSONArray ticks) { System.out.println("ticker data: " + ticks.toString()); } }); /** * connects to SmartAPI ticker server for getting live quotes */ smartWebsocket.connect();While connecting getting the below exception - opening handshake is empty.
com.neovisionaries.ws.client.WebSocketException: The status line of the opening handshake response is empty.
at com.neovisionaries.ws.client.HandshakeReader.readStatusLine(HandshakeReader.java:99) -
invalid totp errorcode: 'AB1050' Activation failed, please check the activation code to ensure it is correctposted in Bugs
invalid totp - errorcode: 'AB1050'
It is the error message we are getting while using smart api nodejs sdk.If we generate the activation code and then scan with authentication app below message comes
"Activation failed, please check the activation code to ensure it is correct"So i am blocked to use this api, can you please suggest what is missing ?
-
smart api login issueposted in General Discussion
Not able to create smart api session with my login client id and password, it says invalid totp. even after enabling totp, it says invalid totp?
-
RE: AG8004 (Invalid API Key) - Order Feedposted in Test
@admin I am also getting invalid api key even if we create new api and try it. my client id is N313974. Can you please do the needful?