Skip to Content

Get Expiry Dates

This API allows you to get the futures and options expiry dates for an underlying symbol within a date range.

USE CASE

Find the expiry dates that existed for an underlying before you look up its expired contracts.

Details

  • The Get Expiry Dates API gives the available Futures and Options expiry dates for an underlying symbol within a specified date range.
  • Futures and Options expiry dates are returned separately.
  • Use this API when the underlying symbol is known but the expiry date is not. Once you select an expiry date, use the underlying symbol and expiry date with the Get Expired Contracts API to get the available expired contract symbols.
  • You can request up to 366 days at a time.
  • Use an underlying symbol such as NSE:NIFTY50-INDEX, NSE:SBIN-EQ or BSE:SENSEX-INDEX.
  • Dates in range_from and range_to are epoch values when date_format is 0, or yyyy-mm-dd when it is 1.
  • Futures expiries are returned in data.expiry_dates.futures and options expiries in data.expiry_dates.options.
  • Pass a returned expiry date to Get Expired Contracts as expiry_date.
  • Expiry data is available from different dates for each exchange.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Data Availability

ExchangeData Available From
NSE10 October 2018
BSE07 August 2023
MCX11 October 2018

Request Attributes

AttributeData TypeDescription
symbol*stringUnderlying symbol for which the expiry dates are required. Eg: NSE:NIFTY50-INDEX, NSE:SBIN-EQ, BSE:SENSEX-INDEX
range_from*stringIndicating the start date of records. Accepts epoch value if date_format flag is set to 0. Accepts yyyy-mm-dd format if date_format flag is set to 1.
range_to*stringIndicating the end date of records. Accepts epoch value if date_format flag is set to 0. Accepts yyyy-mm-dd format if date_format flag is set to 1.
date_format*intdate_format is a boolean flag. 0 to enter the epoch value. 1 to enter the date format as yyyy-mm-dd.

Response Attributes

AttributeData TypeDescription
sstringok / error
codeintResponse code
messagestringMessage returned with the response
data.symbolstringUnderlying symbol for which the expiry dates are returned
data.from_datestringStart of the requested range
data.to_datestringEnd of the requested range
data.expiry_dates.futuresarrayFutures expiry dates available within the requested range
data.expiry_dates.optionsarrayOptions expiry dates available within the requested range
Last updated on