Fetching stock Option data

Can i fetch stock option chain data , if yes where can i find any suitable example .

I originally built this tool to download expired index options/futures data from Upstox for my own backtesting needs (tested with Nifty 50). Since others might find it useful, I’m sharing it here!

github.com

GitHub - thearunphilip/Upstox_Data_Downloader: [PRE-RELEASE] Upstox API data extractor

[PRE-RELEASE] Upstox API data extractor

What’s Inside?

  • :open_file_folder: Fetches: Expired futures/options & index ( Jan 2025 data tested).
  • :high_voltage: Automated: Bulk-download OHLC+OI data for old contracts.
  • :chart_increasing: Tested: Works reliably for Nifty/BankNifty weekly/monthly expiries.

Limitations:

  • :cross_mark: Only 6 months data as per Upstox
  • :hourglass_not_done: Requires Upstox API key (free tier supported).

Want to Help?

  • :glowing_star: Suggestions welcome!
  • :lady_beetle: Report issues if you hit snags.
1 Like

Hi @Ashutosh_35564128, Please review the Option Chain | Upstox Developer API documentation.

Refer to the example codes: Option chain | Example codes

Thanks