President Donald Trump (L)

Shanghai and Hong Kong led most Asian markets higher Thursday after Chinese trade data beat forecasts, even as investors await Britain's election results and testimony from fired FBI boss James Comey on his probe into the Trump administration's Russia links.

Traders are on tenterhooks ahead of the big events, which could either fuel a sharp sell-off or reignite a rally that has seen some indexes hit multi-year -- and even all-time -- highs in recent weeks.

Beijing said Chinese exports soared 8.7 percent on-year and imports jumped 14.8 percent, compared with estimates of 7.2 percent and 8.3 percent tipped in a Bloomberg News survey. 

The figures came as a relief after a series of weak readings suggested a recent pick-up could be fizzling out despite a pick-up in the global economy.

Shanghai, which had spent most of the morning in the red, ended 0.3 percent higher, while Hong Kong also added 0.3 percent to end above 26,000 for the first time since July 2015.

Sydney, Seoul and Singapore each gained 0.2 percent.

But Tokyo ended 0.4 percent lower, hit by profit-taking and news that the Japanese economy grew at a slower rate than first thought in January-March.

The main focus is on Comey's evidence to a congressional committee, which could be damaging to US President Donald Trump and his economy-boosting agenda.

In written testimony released Wednesday, Comey said the tycoon urged him to drop a probe into former national security advisor Michael Flynn and his contacts with Russia, confirming news reports.

- 'Smoking gun' -

However, US markets were unfazed by the letter, which Stephen Innes, senior trader at OANDA, said "offered no smoking gun or impeachment-worthy bombshells and only repeated what the market had already known".

British Prime Minister Theresa May's Conservatives are expected to win the national vote, but their once commanding lead in opinion polls has been slashed since she called it, leading to fears of political uncertainty ahead of key Brexit talks.

However, the pound remains buoyant on expectations of a Conservative win, with analysts predicting it could jump to $1.32 if May wins a comfortable majority. It is currently at $1.2973.

The euro was struggling on speculation the European Central Bank will lower its eurozone inflation forecasts through to 2019, leading to worries it will stick to its loose monetary policy.

The single currency had been rallying on hopes the lender, which holds a meeting Thursday, would begin to tighten monetary policy as the bloc's economy picks up.

Oil prices edged back after sinking more than five percent Wednesday on data showing an unexpected rise in US stockpiles, including gasoline, a particularly troubling sign for demand as the country's summer driving season kicks in.

The reading overshadowed an agreement last month by OPEC and Russia to extend a production cut in order to address an ongoing supply glut that is weighing on prices.

“Any chat of more OPEC cuts is likely to fall on deaf ears should they be made because the point of the cuts is to lead to a supply deficit,” said Greg McKenna, chief market strategist at AxiTrader.

Among Asian energy firms Woodside Petroleum fell 1.6 percent in Sydney while Hong Kong-listed CNOOC shed 0.6 percent. Inpex was down one percent in Tokyo.

In early European trade London added 0.1 percent, Paris was flat and Frankfurt gained 0.2 percent.

- Key figures around 0810 GMT - 

Tokyo - Nikkei 225: down 0.4 percent at 19,909.26 (close) 

Hong Kong - Hang Seng: UP 0.3 percent at 26,063.06 (close)

Shanghai - Composite: UP 0.3 percent at 3,150.33 (close)

London - FTSE 100: DOWN 0.1 percent at 7,486.00

Pound/dollar: UP at $1.2973 from $1.2959 at 2100 GMT

Euro/dollar: DOWN at $1.1256 from $1.1266 

Dollar/yen: UP at 109.60 from $109.81 yen

Oil - West Texas Intermediate: UP 30 cents at $46.02 per barrel

Oil - Brent North Sea: UP 38 cents at $48.$$ per barrel

New York - Dow: DOWN 0.2 percent at 21,173.69 (close)