Please take the Quote call instability seriously -- Jan 15th. Monday morning is especially a problem

vvijay
Once again , sorry to repeat , "I need OI " hence bulk fetch is not the solution
  • tonystark
    We are fixing this issue in the upcoming update in the API. For now, to access it you can use the following API call:
    curl "https://api.kite.trade/quote?i=NSE:INFY&i=NSE:ASHOKLEY" \
    -H 'X-Kite-Version: 3' \
    -H 'Authorization: token aaa:bbb'
    Where "aaa" is your API key and "bbb" is your access token.

    You can add up to 200 instruments in the URL and you will get the full quote data for all of them. It is similar to the bulk LTP, OHLC calls we introduced earlier.

    We will release the new version of API and the client libraries in a week.
  • vvijay
    Is there a ver 3 equivalent for https://api.kite.trade/instruments ?
  • sujith
    The above URL is to fetch instrument dump. It is available in Kite Connect 3 as well.
  • pivottrading.net
    since last few minutes or hour, the single quote api is not working. it is returning false.

    I tried below url

    $url = 'https://api.kite.trade/instruments/NSE/INFY?api_key='.$api_key.'&access_token='.$access_token;

    Response is
    bool(false)

    Multi-quote url is working properly though.

    Thanks,
    Sourabh.
  • sujith
    Hi Suarabh,
    I tried and it seems to be working fine from our end.
    I would suggest using new quote call. It provides all the data that is provided in this API call.
  • pivottrading.net
    sujith, what is new quote call url ?
    documentation shows this same url which i have used.
    can u type the correct url here, if its udpated to new url.

    Thanks,
    Sourabh.
  • sujith
    The new URL is included in Kite Connect 3. It is same as mentioned above by @tonystark.
  • vvijay
    @pivottrading.net I have coded the equivalent in python as follows. This is working fine.

    api_key='myapikey'
    atoken='session_auth token'
    tkn='token '+api_key+":"+atoken
    #use a comma separated list for instrument, or single as below
    inst='NFO:BANKNIFTY18JAN26000PE'

    headers ={
    'X-Kite-Version': '3',
    'Authorization': tkn,
    }

    params = (
    ('i', [ inst]), )


    response = requests.get('https://api.kite.trade/quote', headers=headers, params=params)

    qo=response.json()
  • vvijay
    Even this new call is aborting today
  • razcads
    This is hopeless. Cant wait forever to have a soliution for it
  • sujith
    @vvijay,
    Is this intermittent or consistent?
    @razcads,
    Are you using the new version of pykiteconnect?
  • vvijay
    @sujith. Last week this was fine after I moved to v3.
    Just now I revamped my code to make a single call with a multiple instrument list. Working fine now. Will update in case there is an issue during market hours tomorrow.
    Introducing sleep between two quote calls helps.
  • razcads
    @Sujith i am still using the old one. Cant move to new one till i make all code changes which takes time. Is there a way i can 'hack' old pykiteconnect to use only the new quote api atleast tremporarily till i move to new one?
  • sujith
    @razcads,
    You will have to write requests at your end. You can check out more details on Kite Connect API documentation.
Sign In or Register to comment.