Mr. Shkreli, 34, gained notoriety as a pharmaceutical executive for increasing the price of a lifesaving drug, Daraprim, by 5,000 percent. He was convicted in August of three counts of fraud, relating to two hedge funds and a pharmaceutical company he previously ran. On Wednesday, he was scheduled to be sentenced on Jan. 16, but he most likely will not be released before then unless his lawyers can show that he poses no threat to the community.

Mr. Shkreli’s online offer last week prompted prosecutors to request that his bail be revoked — and the Secret Service to investigate. “On HRC’s book tour, try to grab a hair from her,” he wrote, referring to Mrs. Clinton. “Will pay $5,000 per hair obtained from Hillary Clinton.”

Although Mr. Shkreli edited the post to say that he had meant it to be satirical, and he later took it down altogether, prosecutors contended that there was a risk that one of Mr. Shkreli’s social media followers would take the post seriously and act on it.

It was, they noted, not the first time that Mr. Shkreli had made inflammatory posts on social media.