How do I cancel an order?

Because market orders are immediately filled, you cannot cancel them.