---
title: "fetch expired option data"
method: POST
path: "/charts/rollingoption"
tags: ["Data API's"]
---

# fetch expired option data

`POST /charts/rollingoption`

Fetch minute-wise rolling option chart data of expired contracts - including OHLC, volume, IV based on strike.

## Headers

- `access-token` string, required

## Request body

- OptionChartRequest
  - `exchangeSegment` 'NSE_EQ' | 'NSE_FNO' | 'BSE_EQ' | 'BSE_FNO' | 'MCX_COMM' | 'IDX_I' — | **Enums** | **Exchange** | **Segment** | |--------------|--------------|-------------------| | NSE_EQ | NSE | Equity Cash | | NSE_FNO | NSE | Futures & Options | | BSE_EQ | BSE | Equity Cash | | BSE_FNO | BSE | Futures & Options | | MCX_COMM | MCX | Commodity | | IDX_I | INDEX | Indices |
  - `interval` '1' | '5' | '15' | '25' | '60' — Represents time interval in minute, refer charts annexure for possible values.
  - `securityId` integer — Underlying security Id
  - `instrument` 'INDEX' | 'FUTIDX' | 'OPTIDX' | 'EQUITY' | 'FUTSTK' | 'OPTSTK' | 'FUTCOM' | 'OPTFUT' — Represents the security instrument type, refer charts annexure for possible values.
  - `expiryFlag` 'MONTH' | 'WEEK' — Expiry flag indicating type of expiry
  - `expiryCode` 1 | 2 | 3 — Expiry code value
  - `strike` string — | **Strike** | **Description** | |------------|----------------------------------------| | ATM | At The Money (default) | | ATM±3~3 | ±3 to ±3 strikes (all instruments) | | ATM±10~10 | ±10 to ±10 (only for index near expiry) |
  - `drvOptionType` 'CALL' | 'PUT' — Option Type
  - `requiredData` string[] — Requested data type
  - `fromDate` string, date — Chart data request start date in format YYYY-MM-DD
  - `toDate` string, date — Chart data request end date in format YYYY-MM-DD

## Response `200`

Successful operation

- OptionChartResponse
  - `data` ChartData — Chart data for call (ce) and put (pe) options
    - `ce` OptionChartPayload — Chart data for Put options, null if option_type is CE
      - `iv` number[] — List of implied volatility values (IV)
      - `oi` integer[] — List of open interest values (OI)
      - `strike` number[] — List of strike prices
      - `spot` number[] — List of spot prices
      - `open` number[] — List of open prices
      - `high` number[] — List of high prices
      - `low` number[] — List of low prices
      - `close` number[] — List of close prices
      - `volume` integer[] — List of traded volumes
      - `timestamp` integer[] — List of timestamps in unix
    - `pe` OptionChartPayload — Chart data for Put options, null if option_type is CE
      - `iv` number[] — List of implied volatility values (IV)
      - `oi` integer[] — List of open interest values (OI)
      - `strike` number[] — List of strike prices
      - `spot` number[] — List of spot prices
      - `open` number[] — List of open prices
      - `high` number[] — List of high prices
      - `low` number[] — List of low prices
      - `close` number[] — List of close prices
      - `volume` integer[] — List of traded volumes
      - `timestamp` integer[] — List of timestamps in unix

---

[API](https://skmtc.dev/dhan/apis/dhanhq-api.md) · [All operations](https://skmtc.dev/dhan/apis/dhanhq-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dhan/dhanhq-api/revisions/2d368b9ed32d/schema)
