Before you start
In your simulator locate the specific order by pair, side and time. Request cancellation, then check whether the final status is canceled, filled or still pending. Read the filled quantity separately from the cancellation status.
Work through an example
Imagine an open buy for 8 units. Three units trade while you are canceling it. Once the cancellation succeeds, five are released; the three executed units remain traded.
When to stop
For a live order that seems stuck, inspect the latest status rather than repeating orders or assuming the funds are gone. Use the exchange help page for the local product.