SmartConnect getOIData throws blank results
-
def historicaldata():
try:
historicParam={
"exchange" : "NFO",
"symboltoken" : "101931",
"interval" : "THREE_MINUTE",
"fromdate" : "2024-12-30 09:20",
"todate" : "2024-12-30 09:21",
}return smartApi.getOIData(historicParam)
Above function returns blank output. It should throw or show some OI data. Please help.
Output ->
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": [ ] -
@S63128103 it is returning blank because no trades have happened in the contract at the time of writing this response. You can check the same on the Angel One's chart.