Piper Jaffray, a mid-size US investment bank, said yesterday that it is pulling out of Hong Kong due to continued losses in its capital markets business in the city. It is planning to exit by the end of September, either by shutting down the office or, if it can find a buyer, selling the operation.