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 …
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.