It looks like you're new here. If you want to get involved, click one of these buttons!
import datetime
import pytz
import time
import logging
from kiteconnect import KiteConnect, KiteTicker
kite = ""
kws = ""
logging.basicConfig(level=logging.DEBUG)
api_key = 'XXXXXX'
api_secret = 'XXXXXXX
access_token = 'XXXXXXXX'
def get_login(api_key,api_secret):
global kws, kite
kite = KiteConnect(api_key = api_key)
kite.set_access_token(access_token)
kws = KiteTicker(api_key=api_key, access_token = access_token, reconnect = True)
get_login(api_key, api_secret)
print(kite.positions()['net'])
Can someone please explain why I am getting this output for the above code. The first two lines should not be there I think.
logging.basicConfig(level=logging.DEBUG)
Also, you should never post app-related keys like api_key, access_token, secret key, etc. As you have posted your app secret key, we will request you to regenerate your API secret from the developer console.
My apologies but I have hidden few characters of the key. Anyway, I will never post like this again.
So these debug messages are appearing because there's something wrong in the code or what.