It looks like you're new here. If you want to get involved, click one of these buttons!
kite = KiteConnect(api_key=api_k)data = kite.generate_session(request_tkn, api_secret=api_s)access_token = data["access_token"]kite.set_access_token(access_token)# call all API call using kite objectkite.ltp("NSE:ACC")
You can't get LTP using the library name - KiteConnect.
You have to create kite's object first and then call the LTP.
Refer to below pseudocode-