Please help me with futures historical data with future oi
Hi @Kapil_malviya ,
Run the following command in the Command Prompt (CMD) terminal. to use the code .
Refer the command -
pip install dhanhq==2.2.0
pip install Dhan-Tradehull==3.3.0
Refer this code for the futures historical data with OI -
from Dhan_Tradehull import Tradehull
import time
import datetime
import pdb
client_code = ""
tsl = Tradehull(client_code, mode="pin_totp", pin="", totp_secret="")
hist = tsl.get_historical_data('NIFTY JUN FUT', exchange = 'NFO', timeframe = '1')
print(hist)
Output -
