Investors' zest for stock-buying ebbed in the latest week, data from the Investment Company Institute showed on Wednesday, one week after fresh appetite for riskier assets helped U.S.-based funds net the most cash this year.
   
Including exchange-traded funds, U.S.-based funds invested primarily in domestic shares bled $8.2 billion in the seven-day period through July 20, while bond funds attracted about the same amount. U.S.-based global stock funds were about flat, taking in $16 million, the fund trade group's data showed.
   
The figure reinforces the rotation this year from equities to bonds but reverses last week's result, when investors stocked up on riskier ETFs and helped U.S.-based funds overall attract the most cash in more than a year.
   
This year, investors have pulled an estimated $61 billion from U.S.-based stock mutual funds and ETFs, while pouring $126 billion into bonds, the data shows.
   
"U.S. equity markets have trended higher in 2016, but mutual-fund investors have been rotating away from these products," said Todd Rosenbluth, director of ETF & mutual-fund research at S&P Global Market Intelligence. "While some of this has gone into ETFs, investors appear to be getting nervous as the bull market ages."
   
The S&P 500 Total Return Index, which includes dividend payouts, has returned 7.4 percent this year.
   
In the latest week, nearly $2.8 billion moved into investment-grade bond mutual funds in the United States.

Lower-credit, high-yield mutual funds attracted $1 billion, and government bond mutual funds took in $323 million, according to ICI's data.
   
Corporate bonds have posted strong returns as well, with the widely held iShares iBoxx $ Investment Grade Corporate Bond ETF up 9.7 percent this year.
   
"Investors continue to take on some credit risk through investment grade corporate bonds and greater risk with high yield bond mutual funds, rather than the lower yielding and safer government bond funds," said Rosenbluth.