Marginal symmetry and quasi symmetry of general order