The sport, under ambitious new US-based owners, released its 2018 race schedule in June and Shanghai was only listed as provisional, along with Singapore.
That prompted speculation that both races might be axed from the roster.
But Sean Bratches, F1 managing director of commercial operations, told AFP in Shanghai: "We've been working hard with Juss Event, the promoter, and we've got an agreement in principle.
"My suspicion is that it will be executed by the end of next month, fully executed."
Also Read
"Next year the schedule will be released and there will be nothing provisional about Shanghai because we will have a long-term deal," he added, following talks in the city that pushed the agreement along.
The current deal for the Chinese Grand Prix is due to finish at the end of this year.
The Shanghai International Circuit held its first race in 2004.
Disclaimer: No Business Standard Journalist was involved in creation of this content