Although I congratulate you on your achievement, IMO it's not appropriate. The same would apply to winning the lottery, receiving an inheritance, hitting a jackpot in the casino, getting a big chunk of tax-returns or buying a house on the Cayman Islands.
Financials should be kept private and shouldn't be rubbed under the noses of coworkers. The reasons for keeping it private are quite obvious:
- They could be jealous
- If they are not as priviledged they could feel bad about themselves
- Others could get the impression that you are bragging
That doesn't need to necessarily create a toxic work environment, but definitly has the potential for people subtly turning against you.
However, sharing it with your family and close friends should give you enough confirmation of your success and monetary skills. The only exception I would personally make is when a coworker is a close friend of mine as well, but in this case I would celebrate it with him/her/them outside the office though.
In addition, as mentioned by @delinear in the comments, you don't necessarily need a reason to do something nice and bring in treats for your co-workers. Take the treats in anyway, and just tell everyone you were in a good mood and wanted to share it.