Is "timestamp" removed from tick structure (Kiteconnect V4)?

goprostocks
goprostocks edited December 2021 in Python client
I was using the "timestamp" field in the ticker (had v3 earlier and worked perfectly), to save in the database. But yesterday I updated KiteConnect to v4 and I am not able to save any ticks. in the PyKiteConnect v4 Documentation it shows that "timestamp" is included in all ticks.


See the image.

But in the ticks I am receiving, there is no "timestamp". See.

{'tradable': True, 'mode': 'full', 'instrument_token': 738561, 'last_price': 2408.25, 'last_traded_quantity': 79, 'average_traded_price': 2436.09, 'volume_traded': 8871172, 'total_buy_quantity': 6956, 'total_sell_quantity': 0, 'ohlc': {'open': 2498.4, 'high': 2498.5, 'low': 2400.0, 'close': 2482.85}, 'change': -3.0046116358217336, 'last_trade_time': datetime.datetime(2021, 12, 3, 15, 59, 56), 'oi': 0, 'oi_day_high': 0, 'oi_day_low': 0, 'exchange_timestamp': datetime.datetime(2021, 12, 3, 16, 58, 6), 'depth': {'buy': [{'quantity': 6956, 'price': 2408.25, 'orders': 152}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}], 'sell': [{'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}]}}
{'tradable': False, 'mode': 'full', 'instrument_token': 256265, 'last_price': 17196.7, 'ohlc': {'high': 17489.8, 'low': 17180.8, 'open': 17424.9, 'close': 17401.65}, 'change': -1.1777618789022921, 'exchange_timestamp': datetime.datetime(2021, 12, 3, 17, 28, 52)}
{'tradable': True, 'mode': 'full', 'instrument_token': 1793, 'last_price': 959.0, 'last_traded_quantity': 1, 'average_traded_price': 968.15, 'volume_traded': 761517, 'total_buy_quantity': 0, 'total_sell_quantity': 2155, 'ohlc': {'open': 973.0, 'high': 983.0, 'low': 955.55, 'close': 977.2}, 'change': -1.8624641833810933, 'last_trade_time': datetime.datetime(2021, 12, 3, 15, 59, 40), 'oi': 0, 'oi_day_high': 0, 'oi_day_low': 0, 'exchange_timestamp': datetime.datetime(2021, 12, 3, 16, 58, 6), 'depth': {'buy': [{'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}], 'sell': [{'quantity': 2155, 'price': 959.0, 'orders': 9}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}, {'quantity': 0, 'price': 0.0, 'orders': 0}]}}
{'tradable': False, 'mode': 'full', 'instrument_token': 263433, 'last_price': 10788.75, 'ohlc': {'high': 10929.0, 'low': 10757.3, 'open': 10880.1, 'close': 10873.15}, 'change': -0.7762240013243599, 'exchange_timestamp': datetime.datetime(2021, 12, 3, 17, 28, 52)}

Instead there are "last_traded_time" and "exchange_timestamp"...
Also I am and I was using Full Quote mode.

Can anyone clarify this?


This discussion has been closed.