Incorrect Child Order Type

genoa
Today my program submitted a bracket order and when it got filled both of the child order types were LIMIT. My expectation is that only one of them will be of type LIMIT and the other will be of type SL. Because this was violated, my program entered into an infinite loop.

Parent Order ID: 191211001959278
Child Order IDs: 191211001974077 and 191211001974078
  • sujith
    Once the trigger is hit a stop-loss order becomes a limit order.
  • genoa
    Understood.

    I think I can still detect which one is the stop loss order by checking whether the `trigger_price` attribute is non-zero.
  • sujith
    I think you can try that.
  • genoa
    genoa edited December 2019
    @sujith What is the price for the limit order that is chosen when the stop loss is triggered? Is it the current market price? I had a stoploss execute today at 90 paise below its trigger price. It was in the current month's NIFTY futures market, which I believe is the most liquid market on the NSE, so I was not expecting such a difference.
Sign In or Register to comment.