I was trying to fetch the OI information using the historical API call. The function as per documentation has the following format: "def historical_data(self, instrument_token, from_date, to_date, interval, continuous=False, oi=False)".
I've followed this syntax and tried to make the API Call which results in a TypeError. Error message can be seen in the image attached.
The instrument token (12481794) used here is for the symbol RELIANCE21MARFUT. Please check the image for the exact code that I have used to make the API Call. I've illustrated both with and without using the oi parameter. The latter is throwing the error.