A New York appeals court Tuesday upheld a former Goldman Sachs computer programmer’s conviction for stealing the bank’s high-frequency trading code, rejecting arguments that he had been tried twice for the same conduct.

The ruling, from a panel of the Appellate Division, First Department, came as the latest development in the winding, decade-long saga of Sergey Aleynikov, who was accused in 2009 of uploading a copy of Goldman’s proprietary source code to a computer server in Germany and then bringing it on a flash drive to Chicago, where he met with a startup that had hired him to help develop its own high-frequency trading software.