I need the LTP from the on_ticks function to place the stop-loss order. that is the reason I am taking last_price and proceeding to place orders. I don't need the tick data for the Buy order, but for checking stop loss continuously, I need the tick …
@sujith @rakeshr
I have referred the faqs, but still unable to figure out what the error is. the code is as below
I am getting a similar error. I am not placing any orders in the on_ticks function. But still unable to solve the issue.
@sujith
thanks for the help.
I have found the code for using try and except by searching online.
I have implemented the same and its working fine.
This thread can be closed now.