API showing wrong dates in timestamp and last_trade_time

nikcar
nikcar edited August 2019 in PHP client
I am getting the following response when I run the getquote api on 12/08/2019
timestamp - 1970-01-01 05:30:00.000000
last_trade_time - 2019-08-09 15:59:56.000000
The
Array
(
[NSE:YESBANK] => stdClass Object
(
[instrument_token] => 3050241
[timestamp] => DateTime Object
(
[date] => 1970-01-01 05:30:00.000000
[timezone_type] => 3
[timezone] => Asia/Kolkata
)

[last_trade_time] => DateTime Object
(
[date] => 2019-08-09 15:59:56.000000
[timezone_type] => 3
[timezone] => Asia/Kolkata
)

[last_price] => 82.15
[last_quantity] => 50
[buy_quantity] => 0
[sell_quantity] => 0
[volume] => 0
[average_price] => 0
[oi] => 0
[oi_day_high] => 0
[oi_day_low] => 0
[net_change] => 0
[lower_circuit_limit] => 73.95
[upper_circuit_limit] => 90.35
[ohlc] => stdClass Object
(
[open] => 91.8
[high] => 92.45
[low] => 81.15
[close] => 82.15
)

[depth] => stdClass Object
(
[buy] => Array
(
[0] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[1] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[2] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[3] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[4] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

)

[sell] => Array
(
[0] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[1] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[2] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[3] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

[4] => stdClass Object
(
[price] => 0
[quantity] => 0
[orders] => 0
)

)

)

)

)
  • rishiswethan
    rishiswethan edited August 2019
    Not sure exactly what you call wrong, but, I guess you are meaning the last trade time being 3:59PM, but, market closes at 3:30PM. This is because of post market session. This is active from 3:40PM to 4:00PM. The price at this time is fixed to the last trade price when the market closes
  • nikcar
    nikcar edited August 2019
    What about the timestamp showing 1970-01-01 05:30:00.000000
  • rishiswethan
    This could be some kind of default time stamp, not sure
  • sujith
    It is the epoch start time for IST.
Sign In or Register to comment.