How to Enable API Access for Fetching FNO (Futures & Options) Data - Option Chain, Historical & Live Data

Hello Upstox Team,

I am an active Upstox Plus account holder and I am looking to enable API access to fetch FNO (Futures & Options) data programmatically using the Upstox Developer API. I am building a trading automation system using Python and Google Apps Script to track and analyze FNO positions.

My Requirements:

  1. Option Chain Data - I need to fetch live option chain data for indices (NIFTY, BANKNIFTY) and stocks using the /v2/option/chain endpoint with instrument keys and expiry dates.

  2. Historical Candle Data for FNO - I want to retrieve historical OHLCV data for futures and options contracts using the Historical Candle Data V3 APIs. I need data for expired contracts as well for backtesting purposes.

  3. Live Market Data via WebSocket - I need to subscribe to live FNO instrument feeds via the WebSocket API for real-time price updates, OI data, and Greeks.

  4. Instrument Keys for FNO - I need guidance on how to properly obtain instrument keys for FNO contracts (both active and expired) from the instruments file (JSON/CSV).

My Questions:

  • Do I need to enable any specific API permissions or subscribe to any plan to access FNO data endpoints?
  • Is there any separate activation required for the Option Chain API (/v2/option/chain) and Option Greeks API?
  • Can I access historical data for expired FNO contracts? If yes, how far back is the data available?
  • What is the rate limit for FNO-related API calls?
  • Is there any additional cost or subscription for accessing FNO data through the API?

My Setup:

  • Upstox Plus Account (Active)
  • Using Python with upstox_client SDK
  • Google Apps Script for automated data fetching to Google Sheets
  • Planning to use WebSocket for live FNO data streaming

I have already registered on the Upstox Developer portal. Kindly guide me on the step-by-step process to enable and start fetching FNO data via the API.

Thank you!

Hi @GAZALA_25902824 , please find below answers

  1. Do I need to enable any specific API permissions or subscribe to any plan for FNO data?

No additional API permission or paid plan is required** for FNO **data access.

  1. Is separate activation required for Option Chain or Option Greeks APIs?

No activation required, please refer Option chain API documentation for full details

  1. Can I access historical data for expired FNO contracts? If yes, how far back is the data available?

Yes, expired FNO contracts are supported under Upstox plus plan,
Refer for Expired Instruments API
Refer for Historical Candle data APIs
Checkout the instrument details from Instrument JSON file

  1. What is the rate limit for FNO-related API calls?

There are no separate rate limit specifically for FNO, you can refer Rate limits as documented

  1. Is there any additional cost or subscription for accessing FNO data through the API?

No.