I have revamped c# sdk version and have uploaded it to below link. This version works with totp. Here is the link :https://github.com/piyush-r-pub/SmartAPI_AO. How to use it: https://github.com/piyush-r-pub/SmartAPI_AO/wiki. Please let me know if you face any issues or need any help.
Posts made by fcoder
-
RE: AB1050 Invalid TOTP while connect.GenerateSession
-
RE: intraday 30 min data for nifty
@admin so are you saying there is no way to get 15/30 min ohlc data for index? If there is a way please provide details.
-
RE: intraday 30 min data for nifty
@fcoder so are you saying there is no way to get 15/30 min ohlc data for index? IF there is a way please provide details. Please update.
-
RE: intraday 30 min data for nifty
@admin so are you saying there is no way to get 15/30 min ohlc data for index?
-
RE: intraday 30 min data for nifty
@admin . Here is code where I am getting null response for data element.
Please help, why data is null for token=26000. Function name: GetCandleDataRequest.
-
intraday 30 min data for nifty
hi,
Please let me know how I can fetch 30 min intraday data for nifty for 1 day, i.e. same trading day. Is it available? If not, does websockets provide ohlc data or just ltp data for index? -
RE: how to stream ohlc value for nifty and india vix
@admin SO. THERE IS NO WAY WE CAN GET OHLC FOR NIFTY 50. I TRIED REST API TO GET HISTORICAL NIFTY 50 DATA. I DO UNDERSTAND YOU DON'T PROVIDE FOR FUTURES AND OPTIONS BUT FOR INDEX THERE SHOULD BE SOME WAY OF GETTING OHLC. WEBSOCKET AS WELL REST API PROVIDES NO WAY FOR FETCHING OHLC FOR INDEX OR NIFTY 50. ANGEL BROKING IS ON DOT IN PROVIDING FEED DATA BUT IT WILL BE GREAT IF YOU ATLEAST PROVIDE FOR INDEX.
-
RE: how to stream ohlc value for nifty and india vix
@ADMIN. ANGEL BROKING IS EXEMPLARY IN PROVIDING WEBSOCKET CONNECTION TO STREAM MARKET DATA. HOWEVER, IT WILL BE VERY HELPFUL IF YOU COULD LET ME KNOW HOW TO FETCH INDEX OHLC DATA FOR NIFTY 50 AND INDIA VIX. BELOW THINGS I HAVE TRIED
TOKEN :26000 TASK TYPE:MW.
RESULT: ONLY GETTING LTP, EVEN TIMESTAMP IS MISSING.TOKEN:26000 TASK TYPE:SFI
NO DATA. nk
PLEASE LET ME KNOW WHETHER WE CAN GET INDEX OHLC DATA FOR NIFTY 50 AND INDIA VIX. IF YES, HOW? -
RE: how to stream ohlc value for nifty and india vix
@admin please reply for nifty 50 and india vix codes and how to get ohlc values with time stamp. I am getting below without ohlc
[{"cng":"75.05","e":"nse_cm","c":"15885.15","nc":"00.47","name":"sf","ltp":"15960.20","tk":"26000","ltt":"NA"}. Even ltt is NA. -
how to stream ohlc value for nifty and india vix
HI,
when I try to stream for 26000, it only provide ltp,prev close,net chage, chang per. No high low value. For e.g. [{"cng":"75.05","e":"nse_cm","c":"15885.15","nc":"00.47","name":"sf","ltp":"15960.20","tk":"26000","ltt":"NA"}. Even ltt is NA.Do you have any idea how to get ohlc with timestamp for 26000?
what is token value for india vix and how to get ohlc for the same ? -
RE: Token Value for Indices
@mihirk Thanks Mihirk. However, when I try to stream for 26000, it only provide ltp,prev close,net chage, chang per. No high low value. For e.g. [{"cng":"75.05","e":"nse_cm","c":"15885.15","nc":"00.47","name":"sf","ltp":"15960.20","tk":"26000","ltt":"NA"}. Even ltt is NA. Do you have any idea how to get ohlc with timestamp for 26000.
-
RE: Token Value for Indices
@admin what should be token value for nifty50 and banknifty. In OpenAPIScriptMaster, I can find nifty50 but exch_seg:cds. Is this correct? Basically I want to get streaming data for nifty50 index and near month nifty 50 future contract. It will be of great help if you can share token for both.
-
security concern with GenerateSession method of SmartApi class .net
HI,
I found below code which is concerning from security reasons. Smartapi class has function name Generatesession which is used to generate required token. However, below code post userid and password in plain text which is vulnerable from security perspective. Please confirm. Also, please let me know with we encode same string using any encoding technique will serve be able to decrypt information and provide required tokens.public OutputBaseClass GenerateSession(string clientcode, string password) { OutputBaseClass res = new OutputBaseClass(); res.status = true; res.http_code = "200"; try { AngelTokenResponse agr = new AngelTokenResponse(); string URL = APIURL + "/rest/auth/angelbroking/user/v1/loginByPassword"; string **PostData = "{\"clientcode\":\"" + clientcode + "\",\"password\":\"" + password + "\"}";**