A former Goldman Sachs Group Inc computer programer was sentenced to eight years in prison on Friday for stealing secret code used in the Wall Street bank's valuable high-frequency trading system.

Sergey Aleynikov, was arrested by the FBI and charged in July 2009 with copying and removing trading code from Goldman before taking a new job at Teza Technologies LLC, a high-frequency trading startup firm in Chicago.

A onetime collegiate-level competitive ballroom dancer, Aleynikov, 41, was convicted of trade secrets theft and transporting stolen property across state lines on December 10 after a two-week long jury trial in Manhattan federal court.

High-frequency, computer-driven trading has become an important and competitive business. The software codes that trade shares in milliseconds are closely guarded secrets.

I very much regret the foolish thing of downloading information, the Russian-born father of three said at his sentencing on Friday. Part of this information was proprietary to Goldman. I never meant to cause Goldman any harm or harm anyone at the bank.

Aleynikov's words fell short of U.S. District Judge Denise Cote's hopes for an open and honest statement of responsibility for his criminal conduct.

You did not do that, said Cote, imposing a sentence of 97 months that was within the eight to 10 years recommended by the government. Cote also fined him $12,500.

Aleynikov's lawyer, Kevin Marino, had originally asked for a sentence of probation but in court on Friday he suggested two years was adequate for what he called Aleynikov's foolish, tragic, horrible, ridiculous mistake.

Aleynikov has the right to appeal the sentence. His defense lawyers have argued that the matter belonged in civil, not criminal court.

U.S. prosecutor Joseph Facciponti said the stolen code was Aleynikov's golden ticket to Teza and he stood to make millions more there than he did at the bank. Facciponti said Aleynikov spent several months planning his move, eventually transferring 500,000 lines of Goldman Sachs source code to an outside server.

Cote had revoked the bail of Aleynikov, a dual citizen of the United States and Russia, on the grounds that there was a risk of him fleeing before sentencing.

Throughout the trial and sentencing phase, many comparisons were made with a similar case in the same courthouse against a former Societe Generale trader, Samarth Agrawal.

The citizen of India was found guilty by a jury last November of stealing high-frequency trading code from the French bank before going to a new job. On February 28, a judge sentenced him to three years in prison and he will be deported when he completes his sentence.

The case is USA v Aleynikov, U.S. District Court for the Southern District of New York, No. 10-00096.

(Reporting by Grant McCool; Editing by Tim Dobbyn)