nifty bank

traderx
Hi,

Im trying to pull a quote for the NIFTY BANK but getting the following error. I have url encoded the space.

url "https://api.kite.trade/instruments/NFO/NIFTY BANK?api_key=2222&access_token=s11111"
{"status": "error", "message": "Exception fetching quote", "error_type": "DataException"}

I got the instrument name from the 'full instrument list' that i pulled down earlier.
  • Vivek
    Vivek edited April 2016
    We are having issues with index quotes. Will fix it soon.
  • traderx
    Is there an update on this?

    Thanks
  • traderx
    Sorry, didnt see your comment. Let me know when its fixed.
  • traderx
    Has this been fixed yet?
  • Vivek
    Vivek edited May 2016
    its been fixed, please try now. Also make sure to urlencode the tradingsymbol which has characters like space. For example NIFTY 50 becomes NIFTY+50
    curl "https://api.kite.trade/instruments/NSE/NIFTY+50?api_key=XXX&access_token=YYY"
    {"status": "success", "data": {"change_percent": 0.0, "open": 7894.8, "last_price": 7855.05, "change": 0.0, "close": 7855.05}}
  • traderx
    this works now .
This discussion has been closed.