I believe when you connect to the API you specify a client ID. Make sure the client ID is not 0 (i.e., 1) and then you will never see manual orders via the API. If you want the API to be able to track and modify manual orders, well then I have never heard of a guaranteed solution for your problem.