He could be stressed or tensed. How long had you had him? If he is new to his new place, there's a possibility that he might be just stressed on the new home. If this is not the case, he might just eaten something that he keeps on puking out fluids.
If he poo with blood.. Possibility that there is parvo is there. Better consult your vet ASAP.
If he poo with blood.. Possibility that there is parvo is there. Better consult your vet ASAP.