Sales proceeds from trading sec vs. from debt/equity invs.

Sales proceeds from trading securities are operating cash inflows but sales proceeds from debt/equity investments are investing cash inflows.

Isn’t trading security a type of equity investments?

Why are sales proceeds from trading securities treated differently?

Are equity investments in investing cash inflows talking about available-for-sale and held-to-maturity securities only?

Thank you.