Alexander Pugmire, 33 (pictured) has been charged with stalking, burglary and attempted assault after he installed hidden webcams in his ex-girlfriend's apartment after she ended their relationship

A former financial adviser at Goldman Sachs has been charged with stalking for installing hidden webcams in his ex-girlfriend's apartment.

According to court documents, Alexander Pugmire, 33, began stalking Thien-Kim Tran after she dumped him in December 2016, reported the New York Post.

After a month of appearing at her home uninvited at all hours, Tran 'discovered webcams hidden in her apartment, which the defendant had placed there to monitor whether she began to see other men after their breakup,' the documents say.

She also suspected that he had gained access to her social media accounts.

After their relationship ended, Tran began chatting with another man, Benjamin Timsit, online​ ​–​ ​and Pugmire allegedly began to stalk him​,​ too, the court documents say.

In January 2017, he even attacked Timsit with a hammer and blasted him with pepper spray. The complaint alleges that Timsit was sent to the hospital where 20 stitches were needed to close the wounds.

In January 2017, Pugmire (pictured) even attacked a man she was seeing, Benjamin Timsit, with a hammer and blasted him with pepper spray. He later appeared at Timsit's apartment wearing a ski mask and fake mustache and tried to gain entry

And less than two weeks later, Pugmire appeared at Timsit's apartment wearing a ski mask and fake mustache, claiming 'he was a maintenance worker who needed to check the inside of the apartment,' the documents say.

After Timsit managed to push Pugmire out and call 911, he started to receive emails from a fake email address, insisting he break off his nonexistent relationship with Tran, prosecutors said.

A spokesman with Goldman Sachs told The Post the Pugmire was fired from the company 'about a year ago' after working there for almost two years.

Pugmire, whose father is noted crime writer John Pugmire, is charged with stalking, burglary and attempted assault. He's out on $50,000 bail, according to court records.