Good morning Quants! I am currently developing an option strategy that involves vertical spreads, but the only way to do so seems to be on a per-leg basis. The problem with this is that it may happen that, although both legs are submitted, just one of the two ends up getting filled, while the other doesn't. Does anyone know how to avoid this problem? PS: I code in Python. 

Thanks.

Giulio.