kite.quote('NSE:INFY') is giving me an error - Python

neenu
I am trying to fetch the current price of a stock using the kite.quote('NSE:INFY').But am getting the below error .

File "C:\Python39\lib\site-packages\kiteconnect\connect.py", line 868, in _request
auth_header = self.api_key + ":" + self.access_token
TypeError: can only concatenate str (not "list") to str

Any help would be appreciated.
Tagged:
  • rakeshr
    TypeError: can only concatenate str (not "list") to str
    As the error states, you seem to be passing either api_key or access_token as list instead of string. You need to pass both api_key and access_token as strings for authentication.
Sign In or Register to comment.