Occasionally, is the keyword here.. that implies that all the parameters are correct, but the request still fails, if I stop the script and run again.. I still see the same behavior.
Here is an example:
== DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "PUT /gtt/triggers/88393840 HTTP/1.1" 400 93 Trigger already met. == At this point trigger was @ 186 and I was trying to change it to @ 178. At this time LTP was 136.6
Yes, I'm using the LTP from the the existing gtt .. something like .. last_price=gtt["condition"]["last_price"]. Which is absolutely correct (like I gave above). Also, since I also tried to run the code post market, you can even see that LTP is correct right now, it's the LTP of "NIFTY 3rd w MAR 16700 CE"
I've just tested your suggestion, and it seems to work fine. Thanks! You guys are awesome! I have one more question, but I'll ask that in appropriate discussion thread..
Also, since I also tried to run the code post market, you can even see that LTP is correct right now, it's the LTP of "NIFTY 3rd w MAR 16700 CE"