Switched to KOTAK
hardip
@hardip
Best posts made by hardip
-
Basic needs
A basic requirement is a stable connection to any API. Which has not been resolved till date.
Latest posts made by hardip
-
INVALID TOKEN
Error code AG8001-invalid token. which token is invalid?
jwtToken;
refreshToken;
feedToken;
symbol token -
Option Greeks
Option Greeks data is available after market close?
if not mention in doc data not available after market close -
Unsubscribe token
What is right in following:
sws.unsubscribe(correlation_id, mode, token_list1)
or
sws.subscribe(action=0, correlation_id, mode)
or
sws.subscribe(action=0, mode, token_list1)
or
sws.unsubscribe(action=0, correlation_id, mode, token_list1)
or
sws.unsubscribe(action=0, correlation_id, mode, )or
sws.unsubscribe(action=0, correlation_id, token_list1)or
sws.unsubscribe( correlation_id, mode, token_list1)or
sws.unsubscribe(action, mode, token_list1) -
error. ver1.4.8
[31m[E 240321 11:39:06 smartWebSocketV2:212][39m Error occurred during subscribe: [WinError 10054] An existing connection was forcibly closed by the remote host
[WinError 10054] An existing connection was forcibly closed by the remote host -
RE: Python function for Option Greeks
@godboleamit .Not works. getOptionGreeks not define
-
Wrong historical data
. in Nuvama's(pic) was right data but in your excel show wrong. check it.
-
For connection timeout
May be issue with internet connection connectivity if ok then check your internet connection is public connection or private connection, if public connection, change to private connection
-
__version__ = "1.4.1"
SmartApi\smartConnect.py", line 97, in init
self.ssl_context = ssl.create_default_context() NameError: name 'ssl' is not defined
-
RE: Websocket order status in JavaScript
@jayesh_sapkale
/* Order Websocket */
String userClientId = "<clientId>";
User userGenerateSession = smartConnect.generateSession("<clientId>", "<password>", "<totp>");
smartConnect.setAccessToken(userGenerateSession.getAccessToken());
smartConnect.setUserId(userGenerateSession.getUserId());
String accessToken = userGenerateSession.getAccessToken();examples.orderUpdateUsage(accessToken); /** * Order update websocket * * To retrieve order update websocket data * @param accessToken */ public void orderUpdateUsage(String accessToken){ OrderUpdateWebsocket orderUpdateWebsocket = new OrderUpdateWebsocket(accessToken, new OrderUpdateListner() { /** * Check if the websocket is connected or not */ @Override public void onConnected() { log.info("order update websocket connected"); } /** * Handle the onDisconnected event */ @Override public void onDisconnected() { log.info("order update websocket disconnected"); } /** * Handle the onError event * @param error */ @Override public void onError(SmartStreamError error) { log.info("on error event"); } /** * Handle the onPong event */ @Override public void onPong() { log.info("or pong event"); } /** * Handle the onOrderUpdate event * @param data */ @Override public void onOrderUpdate(String data) { log.info("order update data {} ",data); }}); }