I am not getting few values from quotes apis and not getting data some times for few qoutes

akashchopda555
Hello sir,
I am not getting below values as mentioned in the docs for the kites quotes API also for few scripts not getting data. Please find the details below :-
1) I am not getting net_change parameter from quotes API for any script.
Input :-
Instrument token = 969473
Symbol = WIPRO
Name = WIPRO
Exchange = NSE
API :- Quotes
Kites Response :-

{"status":"success","data":{"969473":{"instrument_token":969473,"timestamp":"2021-01-19 13:40:57","last_trade_time":"2021-01-19 13:40:57","last_price":431,"last_quantity":10,"buy_quantity":788151,"sell_quantity":1632196,"volume":8771675,"average_price":434.02,"oi":0,"oi_day_high":0,"oi_day_low":0,"net_change":0,"lower_circuit_limit":388.4,"upper_circuit_limit":474.7,"ohlc":{"open":433,"high":439.55,"low":430.1,"close":431.55},"depth":{"buy":[{"price":431,"quantity":704,"orders":6},{"price":430.95,"quantity":1639,"orders":7},{"price":430.9,"quantity":10142,"orders":28},{"price":430.85,"quantity":1964,"orders":21},{"price":430.8,"quantity":13113,"orders":29}],"sell":[{"price":431.05,"quantity":751,"orders":3},{"price":431.1,"quantity":523,"orders":5},{"price":431.15,"quantity":2285,"orders":10},{"price":431.2,"quantity":4483,"orders":9},{"price":431.25,"quantity":2749,"orders":6}]}}}}

2) I am not getting correct values for last_price and ohlc.close for Commodity.
Input :- Instrument token = 56530439
Symbol = GOLD21JUNFUT
Name = GOLD
Exchange = MCX
API :- Quotes
Kites Response :
{"status":"success","data":{"56530439":{"instrument_token":56530439,"timestamp":"2021-01-19 13:46:51","last_trade_time":"2021-01-08 20:12:47","last_price":49010,"last_quantity":0,"buy_quantity":4,"sell_quantity":3,"volume":0,"average_price":0,"oi":19,"oi_day_high":19,"oi_day_low":19,"net_change":0,"lower_circuit_limit":47540,"upper_circuit_limit":50480,"ohlc":{"open":0,"high":0,"low":0,"close":49010},"depth":{"buy":[{"price":49178,"quantity":1,"orders":1},{"price":49095,"quantity":1,"orders":1},{"price":49066,"quantity":1,"orders":1},{"price":48970,"quantity":1,"orders":1},{"price":0,"quantity":0,"orders":0}],"sell":[{"price":49234,"quantity":2,"orders":1},{"price":49262,"quantity":1,"orders":1},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0}]}}}}

3) For few script i am not getting data from kits quotes API even if status = success. We expect data if status = success.
Input :- Instrument token = 7648513
Symbol = VIVIDHA
Name = VISAGAR POLYTEX
Exchange = NSE
API :- Quotes
Kites Response :
{"status":"success","data":{}}
  • rakeshr
    @akashchopda555
    I am not getting net_change parameter from quotes API for any script
    You need to calculate this at your end. You can go through this thread.
    I am not getting correct values for last_price and ohlc.close for Commodity.
    It's working fine. Can you describe more about the issue, you are facing in this?
    For a few scripts, I am not getting data from kits quotes API even if status = success.
    Symbol = VIVIDHA
    You are looking for the wrong trading symbol, correct symbol is VIVIDHA-BE, instrument_token=7649537.
  • akashchopda555
    @rakeshr For all my points this is is the response received from kits trade api for each request instrument token is passed no ignore other parameters that are just for reference. Can we connect on Skype or google meet as what response i have got from kits api same you will get.
  • sujith
    @akashchopda555,
    We don't provide one to one support for Kite Connect. You can post the response here. We will take a look at it.
  • akashchopda555
    You are looking for the wrong trading symbol, correct symbol is VIVIDHA-BE, instrument_token=7649537 .

    Reply :- Hello @rakeshr we are getting below 2 records on 17 Dec from kites Instrument api. Reference
    https://kite.trade/docs/connect/v3/market-quotes/#instruments

    We have got Input :- Instrument token = 7648513,Symbol = VIVIDHA,Name = VISAGAR POLYTEX,Exchange = NSE on 17 Dec 20201 (NSE)

    We have got Input :- Instrument token = 129573380,Symbol = VIVIDHA,Name = VISAGAR POLYTEX,Exchange = BSE on 17 Dec 20201 (NSE)

    Any reason for getting some wrong values from kites on 17 Dec 2021 as today getting only VIVIDHA-BE, instrument_token=7649537 and no entry for bse ideally it should be there?

    Should we ignore the data of 17 and add logic to ignore all the old scripts which we don't get data?
  • rakeshr
    @akashchopda555
    Recently VIVIDHA is migrated to the BE category, so the difference. You can understand more about BE category in this article.
    no entry for bse ideally it should be there?
    It's there in the latest instrument list.
    129573380,506146,VIVIDHA,,0,,0,0.01,1,EQ,BSE,BSE
    Should we ignore the data of 17 and add logic to ignore all the old scripts which we don't get data?
    Yes, you can try looking for other category symbol(BE, BZ, etc), if you were getting empty response for Quote call. Daily instrument list will always have today's trading contract. So, you should ideally fetch daily instrument list at BOD(beginning of the every trading day) and store at your end.
Sign In or Register to comment.