No violation.
It is not illegal for civil servants to hold stocks of listed companies, let alone family members.
However, according to regulations, cadres at or above the county level are subject to a property declaration system. If they hold stocks, funds, real estate and other assets, they must report them as required. If they fail to report, they will be notified, or dealt with more seriously.
Also, for unlisted companies, civil servants cannot participate, otherwise they will be punished.
As for family members, there are certain restrictions, such as whether they work in the same field as civil servants, etc., and whether they are suspected of conveying benefits or using influence. Of course, it does not involve leaders, and declarations are not involved. If they are the wives of cadres at the county level or above, they must declare the situation.
Otherwise, you will also be punished.
Therefore, many leaders are really divorced but still live together to avoid organizational scrutiny.