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.
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.
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.
(unable to add screenshot here)
https://drive.google.com/file/d/1XmTElLB1JXc0qtJPG2GnkVqXKnKINe83/view?usp=sharing
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.