text: Python Client: "kws.connect()" is not triggering the infinite loop, plesae help - Kite Connect developer forum
  May 20 renjitharajan84
  Python Client: "kws.connect()" is not triggering the infinite loop, plesae help
  renjitharajan84 May 19 in Python client
  I have a small learning program to print the tick data of one stock. It runs perfectly fine and prints the LTP, but curser stops after printing one LTP, seems like the "kws.connect()" is not triggering the infinite loop.
  it could be some other reasons as well, please some experts in this forum check this and tell me what is missing in this simple code
  #-------------------------login------------------------------------#
  api_k = "xxxxx" # api_key
  api_s = "yyyyy" # api_secret
  access_token = "zzzzz"
  kws = KiteTicker(api_k, access_token)
  ws.subscribe([177665])
  ws.set_mode(ws.MODE_LTP, [177665])
  program freezes execution after printing one line. please help me what is wrong with this code.
  1.png 13.5K
  renjitharajan84 May 19
  Hello forum experts, it is a humble request, this might look simple to you however, please help me if you know the solution, i am really stuck here in my learning process. thanks in advance.
  We believe you are running this in non-market hours. In non-market hours, you will receive only the last tick.
  thanks @rakeshr I will check in the market hours and update the status.
  renjitharajan84 May 20
  @rakeshr Really appreciate your willingness to help beginners, thank you so much for your guidance. it worked like a charm in the market hours!