kite.quote no output / broken?

abhivin123
abhivin123 edited March 2018 in Python client
Hi @sujith

After kite upgrade for python client, the following code is giving no data -

quote = kite.quote("NFO",tradingsymbol)
print(json.dumps(quote, indent=2))

but not throwing errors either. It's just empty. Can you please look into it ... I think it was working yesterday ... but then again I was in some kind of limbo state with the upgrade. So I am not sure ...
  • abhivin123
    Fyi ... I am pretty sure ... I am not hitting any newly set limits. Also, the similar call in HTML/PHP still works.
  • pvgeorge
    there is changes in kite.quote("NFO",tradingsymbol). Now kite.quote("NFO:tradingsymbol") Output is also different
  • abhivin123
    abhivin123 edited March 2018
    Aaah ... I was using that later ... but got swayed with incorrect documentation ... herein



    My bad ... for i did not read the complete sentence / example. Anyhow ... someone should correct it from tradingsymbol:exchange to exchange:tradingsymbol.

    There is still some serialization error when i do jsonDump ... but will figure it out. Thanks @pvgeorge

    + @sujith - for correction.
  • sujith
    Thank you for pointing out. We will update documentation.
  • srinu124
    change_percent & change are coming as '0' in "quote" function.. it used to work earlier.
    I haven't done any upgrade.. Please help..

    >>> kite.quote("NSE","INFY")
    {'volume': 593024, 'sell_quantity': 272562, 'last_time': '2018-03-28 10:28:50', 'depth': {'sell': [{'orders': 13, 'price': 1141.75, 'quantity': 396}, {'orders': 2, 'price': 1142, 'quantity': 10}, {'orders': 2, 'price': 1142.05, 'quantity': 123}, {'orders': 2, 'price': 1142.1, 'quantity': 233}, {'orders': 1, 'price': 1142.2, 'quantity': 160}], 'buy': [{'orders': 4, 'price': 1141.7, 'quantity': 137}, {'orders': 3, 'price': 1141.65, 'quantity': 585}, {'orders': 3, 'price': 1141.55, 'quantity': 171}, {'orders': 3, 'price': 1141.5, 'quantity': 409}, {'orders': 1, 'price': 1141.45, 'quantity': 2}]}, 'open_interest': 0, 'ohlc': {'low': 1140.65, 'high': 1150.75, 'open': 1150.75, 'close': 1154}, 'buy_quantity': 195288, 'change_percent': 0, 'last_price': 1141.75, 'last_quantity': 7, 'change': 0}
  • abhivin123
    Yup ... change = 0 ... for me too ... in spite of API upgrade ..
  • sujith
    Seems to be an issue on both Kite Connect 3 and Kite Connect 2. We will look into this.
  • srinu124
    hello Sujith, Any update on this? whats the ETA we can expect??
  • sujith
    This is fixed. You can let us know if there are any issues.
  • abhivin123
    Works ... Thank you.
This discussion has been closed.