A federal judge in the U.S. District Court for the Southern District of New York ruled Thursday that the case against prediction-market operator Kalshi should be heard in New York state courts. The case had been removed to federal court after New York Attorney General Letitia James tried to halt Kalshi’s event contracts, which the state treats as gambling under its gaming law.

The return to state court could allow New York authorities to continue pursuing a halt. An assistant attorney general for the state filed a proposed motion for a temporary restraining order on Friday. The filing was a proposed motion, not a reported court order.

The Commodity Futures Trading Commission argued in a Friday filing that a New York halt would force Kalshi to cease all operations because the company is headquartered in the state and its business originates there. The CFTC sought to stop New York’s request to restrain the contracts, contending that a temporary restraining order was appropriate if the court concluded that some Kalshi products were likely swaps and federal law reserved exclusive jurisdiction over swap regulation to the agency.

The source also reports Kalshi’s argument that a New York ban would put it in an “impossible position at the center of an irreconcilable federal/state conflict.” Kalshi said its federal regulator had directed exchanges to operate nationwide without state-by-state restrictions. These are the company’s claims, not findings reported by the court.

Attorney Daniel Wallach said in a social media post that a federal judge denied the CFTC’s motion during a telephone hearing late Friday. The reported denial followed the agency’s Friday filing, but the account of the hearing is attributed to Wallach’s post.