You might need the TR_GTC flag set for TradeMode.
https://zorro-project.com/manual/en/trademode.htm