Delay in last_trade_time and timestamp of about 5hrs 30min

raoulnair
Hi Team,

I am using kiteconnectjs version 3.0.0-beta.3 and I am using subscribe() function to fetch the data through websocket.
I found that the last_trade_time and timestamp has delay of about 5:30 Hrs seems its using GST time for calculation.

Below is the data that was received @10:06:20AM
{"tradable":true,"mode":"full","instrument_token":738561,"last_price":1083.3,"last_quantity":33,"average_price":1087.65,"volume":2796789,"buy_quantity":447077,"sell_quantity":420705,"ohlc":{"open":1099.8,"high":1108.9,"low":1073.05,"close":1099.8},"change":-1.5002727768685216,"last_trade_time":"2018-07-16T04:36:19.000Z","timestamp":"2018-07-16T04:36:20.000Z","oi":0,"oi_day_high":0,"oi_day_low":0,"depth":{"buy":[{"quantity":67,"price":1083.4,"orders":1},{"quantity":379,"price":1083.15,"orders":5},{"quantity":5,"price":1083,"orders":1},{"quantity":12,"price":1082.9,"orders":1},{"quantity":118,"price":1082.85,"orders":2}],"sell":[{"quantity":527,"price":1083.5,"orders":5},{"quantity":100,"price":1083.55,"orders":2},{"quantity":350,"price":1083.6,"orders":1},{"quantity":2,"price":1083.75,"orders":1},{"quantity":25,"price":1083.8,"orders":1}]}}

Do I need to manually convert respective fields to IST time or the API will take care of the same.

Thanks
  • HowUTrade
    @raoulnair
    The timestamp is Unix time and the time zone is UTC.
    You need to convert it to local time by adding 05 Hrs 30 mins.
Sign In or Register to comment.