Not able to pull the continuous daily data

Varun
Hi,

I am posting the code that I used to pull continuous data for the BankNifty Dec contract expiring on 28th. Please let me know what I am doing wrong. Thanks in advance.

P.S: I have the subscription for Historical data so that is not the issue.

Code:

## Getting Historical data
instrument_token="12337666"
from_date="2017-08-01"
to_date="2017-12-18"
interval="day"

kite.historical(instrument_token=instrument_token,from_date=from_date,to_date=to_date,interval=interval, continuous=1)

Error:

InputException: Invalid token or interval for continuous data

Tagged:
This discussion has been closed.