Bitcoin soared past the $17,000 mark on Thursday, a dizzying run for a digital currency that was worth less than $1,000 at the start of the year and was once largely the preoccupation of technologists or those looking to avoid scrutiny to launder money or buy drugs and weapons online.

The fast rise — it has gone up more than 40 percent this week alone — is creating a buying frenzy among eager speculators around the world and helping push bitcoin into the mainstream. And it is also forcing U.S. regulators to grapple with whether to legitimize a product that operates outside the control of any government or financial institution.

The run-up in price comes as bitcoin enthusiasts prepare to reach a new landmark. On Sunday, a bitcoin product will trade for the first time on a U.S. financial market, making it almost as easy to bet on the virtual currency as oil, corn or the euro.

The move will give it a “veneer” of legitimacy, said Mark Williams, a former Federal Reserve official who teaches finance at Boston University. “From an investors standpoint, that could give it a false sense of protection.”

Many industry experts warn that the United States is not prepared for bitcoin's entry into the financial markets. As bitcoin prices were setting records, hackers this week reportedly made off with $70 million in the digital currency after targeting NiceHash, a cryptocurrency platform. The Futures Industry Association, which includes Goldman Sachs and JPMorgan Chase, has complained that the process for investing in bitcoin is moving too fast. "We remain apprehensive with the lack of transparency and regulation" of bitcoin, the group said in a letter earlier this week.

Such warnings have not stopped the craze surrounding the currency as the sharp rise in value creates ever more demand. In South Korea, people are pouring their life savings into bitcoin and other digital currencies. In Venezuela, after observing the rise of bitcoin, the government announced it would launch its own virtual currency called the “Petro” to get around U.S. sanctions.

Bitcoin was first created in 2009 under mysterious circumstances — little is known about who originally came up with the idea. It launched as a digital currency — without physical coins such as dimes or nickels — and was accompanied by an online payment network similar to PayPal. But unlike PayPal, the bitcoin transaction system is not owned by anyone.

Its decentralized, democratic nature gave it special appeal. Only buyers and sellers — rather than the central bank of a government — can change its value. Transactions between accounts are recorded on online ledgers, and prices are posted publicly on exchanges such as Coinbase’s GDAX, one of the 24-hour indexes that tracks the value of bitcoin. GDAX on Thursday reported bitcoin’s price, which can fluctuate sharply, crossed the $17,000 threshold.

Cryptocurrencies initially won fans among technology enthusiasts and people trying to avoid traditional currency markets. That includes people seeking to buy drugs on off-the-grid online marketplaces without being detected by the police. When federal authorities shut down one such marketplace called Silk Road in 2014, they seized 26,000 bitcoin worth about $3.6 million.

“The people who started to use bitcoin years ago were those that couldn’t use anything else,” said Nicolas Christin, a security researcher at Carnegie Mellon University.

Confidence in the virtual currency has been repeatedly shaken by spectacular failures, including the 2014 implosion of the largest bitcoin exchange of its time, Mt. Gox, which went bankrupt after $400 million in bitcoin was allegedly stolen. Hackers remain a threat, and sometimes bitcoin just disappear after their owners forget or lose the passwords for their accounts.

“Ten percent of bitcoin that has been generated to date has been lost forever,” Williams estimated. “That is billions and billions of dollars.”

But those hiccups have been followed by quick rebounds. Some retailers, such as and Subway, began accepting bitcoin as payment several years ago, and bitcoin ATMs are available in some cities, making purchase of the currency easier. Brokers such as San Francisco-based Coinbase have developed apps to make it easy to buy and sell bitcoin from a personal computer or smartphone.

Yet for Wall Street investors, bitcoin has remained a fringe product, too awkward — and potentially hazardous — to buy and sell. On a typical day, the price of a single bitcoin can rise or fall 10 percent or more, the kind of fickleness that would send panic through traditional stock markets.

But investors are finding bitcoin difficult to ignore as its collective value races past $250 billion, more than the gross domestic product of Vietnam and Greece.

The currency’s growing popularity has split the investment world. Jamie Dimon, chief executive of JPMorgan Chase, the largest bank in the United States, has dismissed bitcoin as a “fraud.” “If you’re stupid enough to buy it, you’ll pay the price for it one day,” he said last month.

Yet Bill Miller, a legendary investor famous for producing better returns than the Standard & Poor’s 500-stock index for 15 years straight before hitting a rough stretch, has been investing in bitcoin for years. Bitcoin remains “speculative” and could easily fall 50 percent, he said. But “it’s been a big winner for us.”

Until now, investors who wanted to wager on bitcoin prices in traditional ways had to do so in Europe or Asia. But these overseas marketplaces are often too small and loosely regulated to attract large U.S. investors, said Michael Unetich, vice president of cryptocurrencies at Trading Technologies, which provides trading software. Some marketplaces have gone out of business or been victimized by hackers who steal their bitcoin, he said.

“They are not seen as legitimate by institutional investors” such as hedge funds, Unetich said.

There has been ambivalence in the United States. Earlier this year, the Securities and Exchange Commission rejected an application from Cameron and Tyler Winklevoss, the twins famous for suing Mark Zuckerberg over the creation of Facebook, to create a bitcoin product, over concerns such exchanges could be vulnerable to "fraudulent or manipulative acts and practices."

The Office of the Comptroller of the Currency, another financial regulator, has been slow to adopt rules that could potentially legitimize the bitcoin market, industry experts say.

William Dudley, president of the Federal Reserve Bank of New York, recently said he remained cautious about the digital currency, saying it was not a “stable store of value and it doesn’t really have the characteristics that you’d like to have in a currency.”

Yet, he said, "it is something we are starting to think about: What would it mean to have a digital currency? What would it mean to offer it? Do we actually need it?"

An early test could come Sunday. The Commodity Futures Trading Commission is allowing the CBOE Global Markets and the Chicago Mercantile Exchange to offer a bitcoin product that will permit investors to bet on future price changes. The better-known Nasdaq could follow next year.

CBOE has already received significant interest about its new bitcoin product, said John Deters, its chief strategy officer.

“The interest we have seen is probably more broad-based than anything we have seen before,” Deters said. “We’re really offering something different, a truly regulated and well-surveilled [bitcoin] marketplace with transparent rules and cutting-edge technology.”

Yet, Deters acknowledged, the bitcoin craze that has sent the value of the virtual currency soaring could dissipate once it hits the regulatory rigors of a traditional trading market.

“Nobody knows. We will see what happens when people start to engage,” he said. “I think we’re modest in terms of the expectation.”

For now, experts are urging investors to be wary. There are dozens of venues that quote slightly different bitcoin prices, many of which are small and could be manipulated, they said. Also, some bitcoin enthusiasts are hoarding the virtual currency rather than using it to make a purchase, worried that its price will go up even further, rendering their purchase laughably expensive.

“As the price skyrockets, it is hard to justify selling your bitcoin to buy a piece of furniture when tomorrow you could afford to buy two pieces of furniture,” said Jai Massari, a partner at Davis Polk & Wardwell who advises clients on financial regulation.

But those who are accumulating bitcoin could try to sell just as quickly, and there is no certainty they will find ready buyers, experts said, leading prices to fall as fast as they rose.

Thomas Heath contributed to this report.