Damian Proano, of Quito, was awaiting arraignment on Thursday in criminal court on charges of wrongly being on a playing area of a major venue sporting event, Queens District Attorney Richard A. Brown said.
Proano raced onto the court in Louis Armstrong Stadium late Wednesday just after the match had ended and while Djokovic, the tournament favourite, and Wawrinka were still there, prosecutors said. He was grabbed by security and was arrested, they said.
No information was available on whether Proano had an attorney, and there was no telephone number associated with his address in Quito.
Brown said that it was possible Proano, 40, was just an overzealous fan but it's important to be cautious, recalling how in 1993 tennis pro Monica Seles was stabbed in the back by a spectator during a match in Hamburg, Germany.
"There is no such thing as being too careful," Brown said in a news release.
Djokovic was leading 6-4, 6-1, 3-1 when Wawrinka ended the match because of illness. Wawrinka said he had been sick for three days and didn't want to risk worsening his condition before a Swiss Davis Cup match next week.
Djokovic advanced to the quarterfinals and was to face Juan Martin del Potro.
Brown said the law prohibiting interference with a professional sporting event was passed by the city council in 2003, after Calvin Klein walked out onto the basketball court during a New York Knicks game at Madison Square Garden to speak with player Latrell Sprewell.