Fill Multiple Orders or None


Hi all.
when ordering target amount or value, the order either gets filled completely or remains on the book.
I’m doing a pairs strategy and would like to have both orders filled or none, now the situation is that sometimes only one of the orders gets filled, and I would like them both to fill or both to remain on the order book.
Thank you!

Schedule_function Example?

Hi. It has been two weeks and no reply… does that mean there is no way of doing it? please help…