Perfectly legal provided he disclosed his positions, though not necessarily illegal. Either way the ethics involved is questionable.