Seoul stocks swung wildly Monday, with the benchmark KOSPI barely holding above the 8,000 mark, as continued selling by foreign and institutional investors offset heavy buying by retail investors. According to the Korea Exchange, KOSPI closed at 8,051.33, down 0.46 percent from the previous session. The index remained highly volatile throughout the day, rising to the 8,300 level before falling back to the 7,800 range and later paring some of its losses. Heavy selling by foreign and institutional investors weighed on the index. Foreigners and institutions net sold 1.31 trillion won ($854.3 billion) and 1.43 trillion won in shares, respectively. It marked the 12th consecutive session of net selling by foreign investors in the Korean market. Retail investors, meanwhile, were net buyers of 2.65 trillion won in shares, helping support the index. Samsung Electronics closed at 318,000 won, up 2.75 percent from the previous session. The stock rose more than 5 percent in early trading on expectations for its preliminary second-quarter earnings results, due Tuesday, but pared gains after 11 a.m.