Dollar higher after nearing 1-month lows

The dollar was higher again on Friday, after nearing a one-month low against a basket of major currencies, as investors bought riskier assets following surprising announcements from the European Central Bank and People's Bank of China.

Commodities rose on Friday after China fixed higher its onshore yuan rate against the dollar by the fastest pace this year to 6.4850 yuan. The People's Bank of China had set its official yuan/dollar midpoint rate CNY=SAEC at 6.4905 per dollar, its strongest fixing in 2016.

The euro briefly regained its footing against the dollar after ECB Governing Council member Erkki Liikanen said the central bank had not run out of tools to boost the economy and would continue to support it until it reaches its inflation target of almost 2 percent.

The move by the central banks sparked a risk-on mood for investors that helped commodity-based currencies at the expense of the dollar, said Tempus currency strategist Juan Perez.

"It's a couple of very accomodative news pieces for the market," Perez said. "The appetite for risk is on the rise."

A stronger yuan was good news for commodities as it singaled a likely increase in demand from China, the world's top commodity's consumer. Copper rose 1.5 percent.

Oil prices were up around 2 percent after the International Energy Agency said in a monthly report that prices might have bottomed and were beginning to affect output beyond the Organization of Petroleum Exporting Countries.

The jump in crude futures boosted a range of higher-yielding currencies, including the Canadian and Australian dollars and the Norwegian crown, which all each rose more than 1 percent against the greenback.

The euro briefly turned positive in morning U.S. trading after Liikanen's comments, reversing a more than 1 percent fall in morning trade in Europe.