Modify GTT Order gives Error

ravindersingh
Hi, I am getting one of below error when trying to modify existing GTT OCO Sell Trigger (Python API)

Error placing GTT Order Trigger cannot be created with the second trigger price less than the last price."

Error placing GTT Order Trigger cannot be created with one of the trigger values equal to the last price.

Could someone help understand whats the purpose of "last price" in placing gtt.
  • Arockiya_r
    In the context of this OCO sell order, it's assumed that the user already holds a long position and is attempting to set both a stop-loss and a target for the same. Hence, the stop-loss should be positioned below the LTP, and the target should be positioned above the LTP.
  • ravindersingh
    Thanks. That helps! :)
This discussion has been closed.