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:
-
Option Chain Data - I need to fetch live option chain data for indices (NIFTY, BANKNIFTY) and stocks using the
/v2/option/chainendpoint with instrument keys and expiry dates. -
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.
-
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.
-
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_clientSDK - 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!