Historical Data is having only L and V values.

pd95
Tried for nifty and banknifty Future for this month for different date and time combinations. Same result :

historical ohlc, vol for token 13992706, NIFTY19AUGFUT is : 0.0,0.0,11033.0,0.0,750375
Timestamp is : null
historical ohlc, vol for token 13992706, NIFTY19AUGFUT is : 0.0,0.0,11036.7,0.0,462750
Timestamp is : null
historical ohlc, vol for token 13992706, NIFTY19AUGFUT is : 0.0,0.0,11026.05,0.0,308925
Timestamp is : null
historical ohlc, vol for token 13992706, NIFTY19AUGFUT is : 0.0,0.0,11041.0,0.0,230100
Timestamp is : null
Tagged:
  • pd95
    Tried now after market hours and on Options data. Same result. Only Low and Volume values populated.
  • rakeshr
    @pd95
    We checked for the same contract(NIFTYAUG) and OHLCV data for Day period as well intraday period is showing correctly.
    {'date': datetime.datetime(2019, 8, 19, 16, 18, tzinfo=tzoffset(None, 19800)), 'open': 11062, 'high': 11062, 'low': 11062, 'close': 11062, 'volume': 0}
    Can you paste complete params you are requesting for historical data?
  • pd95
    pd95 edited August 20
    @rakeshr
    I changed the for loop format and it works :o

    This for loop outputs all OHLCV correctly.
     for (int i=0; i<historyList.size(); i++) {
    HistoricalData histData = historyList.get(i);
    System.out.println(("historical ohlc, vol for token 13992706, NIFTY19AUGFUT is : " + histData.open + "," + histData.high + "," + histData.low + "," + histData.close + "," + histData.volume));
    System.out.println("Timestamp is : " + histData.timeStamp);

    }
    __________________________________
    The below loop outputs only Low and Volume
    for(HistoricalData historicaldata : historyList) {
    System.out.println(("historical ohlc, vol for token 13992706, NIFTY19AUGFUT is : " + historicalData.open + "," + historicalData.high + "," + historicaldata.low + "," + historicalData.close + "," + historicaldata.volume));
    System.out.println("Timestamp is : " + historicalData.timeStamp);

    }
Sign In or Register to comment.