Donald Trump has vowed to intervene in the case of a Huawei executive facing fraud charges in the US if it would help to secure a trade deal with China.

The American president said he would step in “if I think it’s good for the country”, after Meng Wanzhou’s arrest sparked fury in Beijing.

Ms Meng, the chief financial officer of the Chinese telecoms giant, was bailed by a Canadian court on Tuesday but could still be extradited to the US on fraud charges.

The 46-year-old, who is the daughter of Huawei’s founder, was detained in Vancouver earlier this month at the request of US investigators probing alleged violations of American sanctions on Iran.

China last week summoned the US ambassador to Beijing to demand American authorities revoke an arrest warrant for Ms Meng. Beijing also warned Canada there would be “severe consequences” if she was not quickly released.

Mr Trump, who wants China to open up its markets to more American-made products, has not yet spoken to president Xi Jinping about the case.

But he said: “If I think it’s good for the country, if I think it’s good for what will be certainly the largest trade deal ever made – which is a very important thing – what’s good for national security, I would certainly intervene if I thought it was necessary.”

A former foreign policy adviser to Justin Trudeau, the Canadian prime minister, described Mr Trump's apparent willingness to use the case as a bargaining chip as "troubling".

"Canada is acting in good faith, according to the law, in response to a US extradition request," added Roland Paris.

Michael McFaul, a former US ambassador and senior officer in the National Security Council, said: "I so hope this is not true. We can't be arresting people to do trade deals."

A judge in British Columbia granted Ms Meng bail of $10m (£6m) after three days of hearings. She is also required to wear an ankle bracelet, surrender her passports, remain in Vancouver and remain at home between 11pm and 6am.

The decision was greeted with applause in a packed courtroom, where members of Vancouver's Chinese community had turned out to show support.

Who could be running against Trump in 2020? Show all 23 1 /23 Who could be running against Trump in 2020? Who could be running against Trump in 2020? Joe Biden The former vice president - poised to be a frontrunner - has announced his run. He recently faced scrutiny for inappropriate touching of women, but was thought to deal with the criticism well AFP/Getty Who could be running against Trump in 2020? Bernie Sanders The 2016 runner-up has announced that he will be running again in 2020 Getty Who could be running against Trump in 2020? Hillary Clinton The 2016 Democratic presidential candidate and former Secretary of State says she is “still considering” whether she will run again. Getty Who could be running against Trump in 2020? Pete Buttigieg The Indiana mayor and war veteran will be running for president. If elected, he would be the first openly LGBT+ president in American history. Getty Who could be running against Trump in 2020? Kamala Harris The former California attorney general will be running for president in 2020. Introduced to the national stage during Jeff Sessions’ testimony, she has endorsed Medicare-for-all and proposed a major tax-credit for the middle class. AP Who could be running against Trump in 2020? Elizabeth Warren The Massachusetts Senator has formally launched her bid for president in 2020. A progressive Democrat, she is a major supporter of regulating Wall Street. AP Who could be running against Trump in 2020? Beto O’Rourke The former Texas congressman told Oprah Winfrey that he “has been thinking about running for presidency”, but stopped short of formally announcing his bid to run in 2020. AFP/Getty Who could be running against Trump in 2020? Wayne Messam Mayor of the city of Miramar in the Miami metropolitan area, Wayne Messam has announced his bid. He intends to run on a progressive platform against the "broken" federal government. He favours gun regulations and was a signatory to a letter from some 400 mayors condemning President Trump's withdrawal from the Paris Climate Accord. Vice News Who could be running against Trump in 2020? Kirsten Gillibrand The New York Senator formally announced her presidential bid in January, saying that “healthcare should be a right, not a privilege.” Getty Who could be running against Trump in 2020? Cory Booker The New Jersey Senator has announced that he will be running for the presidency in 2020. If he secures the nomination he said finding a female vice president would be a priority. Getty Who could be running against Trump in 2020? John Delaney The Maryland congressman was the first to launch his bid for presidency, making the announcement in 2017. AP Who could be running against Trump in 2020? Julian Castro The former San Antonio mayor announced his candidacy in January and said that his running has a “special meaning” for the Latino community in the US. Getty Who could be running against Trump in 2020? Tulsi Gabbard The Hawaii congresswoman announced her candidacy in January, but is likely to face tough questions on her past comments on LGBT+ rights and her stance on Syrian President Bashar al-Assad. Getty Who could be running against Trump in 2020? Andrew Yang The entrepreneur has announced his presidential candidacy, and has pledged that he would introduce a universal basic income of $1,000 a month to every American over the age of 18. AFP/Getty Who could be running against Trump in 2020? Marianne Williamson The author and spiritual advisor has announced her intention to run for president. She had previously run for congress as an independent in 2014 but was unsuccessful. Getty Who could be running against Trump in 2020? John Kerry The former secretary of state has said he is still thinking about whether to run. Getty Who could be running against Trump in 2020? Michael Bloomberg The entrepreneur and former New York mayor– with a net worth of around $50bn – has said he will decide by the end of February whether to seek the presidency. AFP Who could be running against Trump in 2020? Howard Schultz Former Starbucks CEO Howard Schultz has not yet ruled out running for president in 2020, despite criticism that his bid could help re-elect Mr Trump by dividing the Democrat vote. AP Who could be running against Trump in 2020? Eric Holder The former attorney general has said he will decide in “the next month or so” whether to run as a 2020 presidential candidate. AP Who could be running against Trump in 2020? Eric Swalwell The California congressman said he is “ready to do this” and will decide before April whether to run. MSNBC Who could be running against Trump in 2020? Terry McAuliffe The former Virginia governor, who worked to elect Democratic governors during 2018 midterms, said there was a “50 per cent” chance he would run. AP Who could be running against Trump in 2020? Sherrod Brown The Ohio senator is still undecided about whether to run for president in 2020. Who could be running against Trump in 2020? Mitch Landrieu The former New Orleans mayor said he doesn’t think he will run for president, but “never say never”. AP Photo/Jacquelyn Martin

She left the court late on Tuesday surrounded by security guards and was driven away in a black SUV without responding to questions from reporters.

The US Department of Justice has accused Ms Meng of misleading multinational banks about Iran-linked transactions, putting the banks at risk of violating US sanctions.

If a Canadian judge rules the case against her is strong enough, the country’s justice minister must decide whether to extradite her to the US, where she faces charges of conspiracy to defraud multiple financial institutions. The charges each carry a maximum sentence of 30 years.

Ms Meng’s arrest sparked a diplomatic furore between Canada, China and the US at a time when tensions were already high over a trade war and American claims of Chinese spying.

A former Canadian diplomat was detained by Chinese security services on Monday night during a visit to Beijing in apparent retaliation over the executive’s arrest.

Support free-thinking journalism and attend Independent events

China's foreign ministry claimed to have no information on Hong Kong-based Michael Kovrig’s arrest but said his current employer, the International Crisis Group, was not registered as a non-governmental organisation in the country.

"Once its staff become engaged in activities in China, it has already violated the law," ministry spokesman Lu Kang added, before repeating Beijing’s demand for Ms Meng’s release.

According to news agency Reuters, the US State Department is considering issuing a travel warning for its citizens in China amid fears of reprisals.