-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get F&O Stock List #240
Comments
Seems like they've shutdown the archives URL |
We can make use of these. https://nsearchives.nseindia.com/content/fo/NSE_FO_contract_06052024.csv.gz |
Thanks @sandeep255 for pointing this out. |
suggestion from @sandeep255 is welcomed, but its implementation will be expensive. |
Found new info, look at this: |
This Issue is marked as Stale due to Inactivity. This Issue will be Closed soon. |
I am also in search of this.....do you get any luck on this? |
Nope, but i have made my own csv of F&O stocks, hosted in my storage and using that file. alternate Solution, we can use list of static list in code to get F&O scripts. |
Hi @ankur2ankur Static file is not an optimized approach as NSE keeps changing lot sizes and Stock codes in this list quite often! Thankfully @sandeep255 has suggested the URL above in which we can replace datestamp dynamically to pull the data.
As of now it works well from the browser but I am not able to pull the same Gzip from python using If anyone can find a workaround for the above idea, I can accept a PR for this if it passes all the workflows. Thanks! |
I am not master in python, but this code should work (I have added cookie):
|
Have you obtained this cookie through the browser? |
Got the cookie from postman. |
This Issue is marked as Stale due to Inactivity. This Issue will be Closed soon. |
Unable to get F&O Stocks.
I lookup the code & found that the url "https://archives.nseindia.com/content/fo/fo_mktlots.csv" returning 404 status code.
is there any other alternative resource for the same?
The text was updated successfully, but these errors were encountered: