Open navnredy opened 1 year ago
if you add this into RestApi.js file , it should work
self.get_option_chain = function (exchange, tradingsymbol, strikeprice, count) {
let values = {}
values["uid"] = self.__username
values["exch"] = exchange
values["tsym"] = tradingsymbol
values["strprc"] = strikeprice.toString();
values["cnt"] = count.toString();
let reply = post_request("optionchain", values, self.__susertoken);
return reply;
};
you can call the function as
api.get_option_chain('NFO', 'NIFTY', '19250', 10);
Not working.
NOT WORKING
try this: api.get_option_chain('NFO', 'NIFTY30NOV23F', '20000', 10)
symbol could be current month expiry future
Hello Team,
As in the documentation you have metioned an API get_option_chain, but it is not implemented. Please implement and share the new library