Option Historical Data Not Available

prashant11
Hi,
I am trying to fetch the historical data of options, but everytime I am getting their corresponding underlying historical data.
Please suggest, what I might be doing wrong.
PS:- I am using node client
  • sujith
    Are you referring to live options or expired instruments?
    Can you give an example instrument token and the tradingsymbol of an instrument for which you are trying to fetch data?
  • prashant11
    Expired Options.

    Eg :- "tradingsymbol":"BANKNIFTY18OCT25500CE" , "instrument_token":"10319874" :-

    kc.getHistoricalData(10319874 , "day" , "2018-06-10" , "2018-10-01" , true)
    Response :-

    {
    date: 2018-06-11T03:45:00.000Z,
    open: 26449.95,
    high: 26659.05,
    low: 26426.2,
    close: 26477,
    volume: 2932480 },
    ...........
    The response contains the underlying's price rather than the option's price.

    However, if in the above call, when i make the continuous data as false, i do get the proper options response for the current month however, which is fine i guess.
    { date: 2018-09-18T03:45:00.000Z,
    open: 1540,
    high: 1544.75,
    low: 1250,
    close: 1253.7,
    volume: 480 },
    ..............
  • sujith
    We only provide historical data for expired future instruments. We don't provide historical data for expired option instruments.
Sign In or Register to comment.