It looks like you're new here. If you want to get involved, click one of these buttons!
API call success but resulted empty dictionary.conn = http.client.HTTPSConnection("api.kite.trade")
key}:{access_token}'
payload = ''
headers = {
'X-Kite-Version': '3',
'Authorization' : f'token {api_<code class="CodeInline">
}
ltp_quote = '/quote?i=NIFTY+50:INDIA+VIX'
conn.request("GET", ltp_quote, payload, headers)
response = conn.getresponse()
ltp_byte = response.read()
ltp_info = json.loads(ltp_byte.decode("utf-8"))
print(ltp_info)
Output:
{'status': 'success', 'data': {}}