kiteConnect.getHistoricalData

fortunetrail
getHistoricalData is returning OHLC data when I run my code from my laptop. But when I run the same code from an AWS EC2 instance, located in Oregon, open, high, low and close values are 0.
  • sujith
    Can you run with debug log on and paste the complete stack trace?

    PS: Make sure to remove app and client specific token.
  • sujith
    Did you check local date and time? Is it set to IST?
  • fortunetrail
    Hi Sujith, it seems that date and time is set to UTC. Let me reconfigure date and time settings and then check again.
  • fortunetrail
    When I (correctly) changed server timezone to Asia/Kolkata, it works fine. Thank you for the hint.
This discussion has been closed.