Lawyers for President Trump are asking an appeals court to indefinitely bar the Manhattan DA from getting his tax returns and other financial documents in the event the case goes all the way to the US Supreme Court.

“The President respectfully asks the Court, if it rules against him in its opinion, to stay its mandate and the challenged subpoena until the President can file a certiorari petition with the Supreme Court,” Trump’s lawyers wrote Monday in a motion filed with the US Court of Appeals for the Second Circuit.

Trump originally sued Manhattan DA Cyrus Vance last month to keep the top prosecutor from enforcing subpoenas served on accounting firm Mazars USA, seeking eight years of personal and corporate financial records — including tax returns — for the president and other third parties as part of an ongoing grand jury investigation.

A Manhattan federal judge last week ruled against Trump’s claims that he had total immunity from an investigation while in office, prompting the president’s lawyers to file an emergency appeal.

Arguments before the appellate panel are scheduled for Oct. 23.