Reverse engineered prompt

GitHub

Build me a simple Python library and command line tool for Indian market data that pulls from the current NSE website and RBI rates pages. I want it to be useful for both coders and non coders.

The main thing is downloading historical stock and index data, including bhavcopy files, plus futures and options history for both stocks and indices. I also want live quotes for a stock symbol. In Python, it should be easy to fetch data and get it back in a normal data structure, with optional pandas dataframe support for people who use that. In the terminal, give me straightforward commands to save stock and derivatives data to CSV with date ranges, expiry, strike price, and call or put selection where relevant.

Please add sensible caching so repeated requests do not hammer NSE and get blocked. Keep it reliable with the newer NSE site, and make the CLI output friendly and easy to understand. If you need details, look up the current docs online and make it feel polished end to end.

Have a live product UI? Try website reverse