The code below returns empty result. Note that it works fine if I replace NIFTY 50 with INFY. std::vector<std::string>niftyVec{"NSE:NIFTY 50"}; std::unordered_map<std::string, kiteconnect::ltpQuote> tempMap = mKiteObj->getLtp(niftyVec);
The curl request for NIFTY 50 ltp from command line works fine. I guess the issue is with the way the response is being formatted for indices. Could someone look into it? Are you guys not maintaining the C++ APIs ? There are multiple issues where it seems the code has not been updated as per the latest changes.
Could you confirm if C++ api is broken for NSE indices? Is this in your engineering pipleline ? This is a major blocker for me as my strategy needs this api.
I understand that it is open source but quoting from the repo “The official C++ client for communicating with Kite Connect API.” You have official client with broken APIs for basic functionality of fetching LTP and you are not even acknowledging the issue.
NSE: NIFTY 50
with space between nifty and 50. You need to use the trading symbol from the instrument file.PS: Make sure to remove client and app specific tokens.