Market on Close and Market on Open order types are not supported, but I think they can be indeed simulated by sending a market order right before the close or after the open.