kite.quote -> net change is '0' for every query

Ronit
output:
NSE:ZEEL': {'average_price': 182.63,
'buy_quantity': 3257245,
'depth': {'buy': [{'orders': 4, 'price': 183.25, 'quantity': 551},
{'orders': 15, 'price': 183.2, 'quantity': 527},
{'orders': 16,
'price': 183.15,
'quantity': 7613},
{'orders': 14,
'price': 183.1,
'quantity': 6363},
{'orders': 10,
'price': 183.05,
'quantity': 7682}],
'sell': [{'orders': 12,
'price': 183.35,
'quantity': 2891},
{'orders': 8,
'price': 183.4,
'quantity': 1736},
{'orders': 12,
'price': 183.45,
'quantity': 3590},
{'orders': 34,
'price': 183.5,
'quantity': 9365},
{'orders': 9,
'price': 183.55,
'quantity': 3169}]},
'instrument_token': 975873,
'last_price': 183.35,
'last_quantity': 200,
'last_trade_time': datetime.datetime(2020, 5, 29, 11, 57, 59),
'lower_circuit_limit': 162.65,
'net_change': 0,
'ohlc': {'close': 180.7,
'high': 186.8,
'low': 175.1,
'open': 175.2},
'oi': 0,
'oi_day_high': 0,
'oi_day_low': 0,
'sell_quantity': 1752447,
'timestamp': datetime.datetime(2020, 5, 29, 11, 57, 59),
'upper_circuit_limit': 198.75,
'volume': 24076425}}

if I get the same details by tick, it shows net change correctly, why is kite.quote not working?
  • sujith
    You can refer to this thread.
  • Ronit
    @sujith
    yes, I understand this but my question is that why "net change" is 0 when ltp and close are clearly different in the above data.
    also, why is there a difference between "net change" data from tick and from kite.quote().
    The data of "net change" from ticks is correct as seen on the kite exchange itself which is clearly not 0
  • sujith
    The change value from the exchange has always been 0, some kind of bug probably. The client libraries while parsing ticks, calculate change based on ltp and close price. In quote call, client libraries are not doing that. You need to handle it at your end.
Sign In or Register to comment.