The markets are spiraling into chaos — and that's helped lift one stock almost 40% this week

Virtu Financial, a Wall Street trading giant, beat Wall Street's expectations on Thursday when it announced its earnings for the fourth quarter.

The firm reported earnings per share of $0.28 a share, $0.16 higher than the consensus of $0.12.

Virtu also threw Wall Street a curve ball, announcing a $50 million share buyback by 2019.

The stock popped at the open and continued to climb higher throughout the trading day.

Things are looking up for high-speed trading Virtu Financial.

The trading firm saw its stock soar on Thursday after it reported earning that came in above Wall Street's expectations. Virtu ended Thursday trade up 30.67% at $26.20 a share. At $0.28 a share, the company's reported earnings for the fourth quarter of 2017 were more than double the consensus estimate on the Street.

Virtu also threw Wall Street a curve ball, announcing that it would buyback $50 million worth of stock before 2019.

Richard Repetto, an analyst at Sandler O'Neill + Partners, described the results as "super."

"They had an outstanding 4Q17 when volatility was still at historic lows," Repetto said in an email to Business Insider. "Going forward, with volatility spiking in February, their results should be even better."

Chief executive Douglas Cifu said in a statement:

"The $3.8 million per day we earned in Adjusted Net Trading Income in the fourth quarter demonstrates that this combined entity can generate profitable results in a variety of market operating environments."

Markets have seen a return of volatility after more than a year in the doldrums.

The Cboe Volatility Index (VIX) climbed over 50 for the first time since August 2015 on Monday and is still standing strong at 31 points, at last check. The Dow Jones' rout, which picked up speed on Monday when the Dow Jones plunged more than 1,100 points, turned into a full-blown correction on Thursday.

These market conditions are a blessing for firms like Virtu. And that's been reflected in its stock price, which is up more than 38% since the beginning of the week.

As liquidity providers, HFTs are scanning the markets for opportunities in which buyers and sellers aren't matched up. But when volatility is too low, like it was for much of 2017 and early 2018, those opportunities are hard to come by because there are fewer price swings.

"Greater volatility means a greater demand for liquidity and higher liquidity premiums (spreads) and that is what market makers sell," Larry Tabb, the founder of TABB Group, told Business Insider in an email. "When the demand and price of liquidity increases, market makers usually make money."