i agree with the decision to work first with the quotes as recalling lists of running order, that is only one as per limitation by requests of TS,
and wait until the opposite signals come to switch of the new order as closing the old one with the running trade.
MODE_TRADE isn't that?