error getting quote in morning

jits_1998
I randomly got following error when trying to get quote.

"local variable 'time' referenced before assignment"

This is error message from zerodha.

Anyone else saw this in morning?
  • MAG
    This is an error in your code. However without a debug trace or looking at your code, no can determine whats wrong. There should have been an accompanying line before this mentioning the line number where this error occurred.

    But this is definitely not an issue with zerodha or the API.

    It clearly says that you have a local variable named 'time' that was referenced before it was assigned.
    First of all time is a keyword and a package name. So you should not be using 'time' as a variable name.

  • jits_1998
    jits_1998 edited January 31
    it started running fine after some time without any change, and the error was random when i ended up sending wrong strikes to quote

    (unable to add screenshot here)

    https://drive.google.com/file/d/1XmTElLB1JXc0qtJPG2GnkVqXKnKINe83/view?usp=sharing
  • MAG
    it started running fine after some time without any change, and the error was random when i ended up sending wrong strikes to quote

    Ok, but this means there is some logical error in your code that is unresolved and could come back to haunt you later on when specific conditions are repeated.
Sign In or Register to comment.