Is there any way to check if trades were closed manually or closed by the API(exit_order() function). Any tags or parameters or status messages etc from exit_order response?
exit_order is for placing the exit order for CO. You need to use place_order to exit the order for regular order. There you can use the tag param to specify the source.