to cash in one’s chips

Meaning 1
to take one's gambling chips to the teller for money
Sentence 1
I want to cash in my chips now, before I lose any more money.
Meaning 2
to sell something for a profit
Sentence 2
The stock market is too high. Let's sell our stocks and cash in our chips.