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.
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 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'
@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.
@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?
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.
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.
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.
documentation shows this same url which i have used.
can u type the correct url here, if its udpated to new url.
Thanks,
Sourabh.
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()
Is this intermittent or consistent?
@razcads,
Are you using the new version of pykiteconnect?
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.
You will have to write requests at your end. You can check out more details on Kite Connect API documentation.