Shoonya-Dev / ShoonyaApi-py

145 stars 134 forks source link

WEEKLY OPTION CHAIN DATA #154

Closed KesarwaniConsolidated closed 6 months ago

KesarwaniConsolidated commented 8 months ago

IN THE API OF 'GET OPTION CHAIN DATA ' HOW TO GET WEEKLY OPTION CHAIN THEIR IS NO WAY I FIND

TWP80 commented 7 months ago
api.get_option_chain(exchange = 'NFO',
                     tradingsymbol = 'NIFTY25APR24F',
                     strikeprice = 22700,
                     count = 5)

provide tradingsymbol nifty future contract, you can find nifty future contract using api.searchscrip(exchange='NFO', searchtext='NIFTY')

jayknayak commented 7 months ago

api.searchscrip(exchange='NFO', searchtext='NIFTY') is not working. I get: DEBUG:urllib3.connectionpool:https://api.shoonya.com:443 "POST /NorenWClientTP//SearchScrip HTTP/1.1" 404 58 DEBUG:NorenRestApiPy.NorenApi:{"stat":"Not_Ok","emsg":"No Data : Exchange Not enabled"}

Shoonya-Dev commented 6 months ago

Greetings from Shoonya!

Your F&O is not activated on your account; kindly raise the ticket from your Prism account for F&O activation.