I suggest that you iteratively reduce the number of times that you look at the quotes.
You probably shouldn’t attempt to repress your desire to look, but you can try to relegate these thoughts to the background of your consciousness. By being aware of the thoughts about the stock quotes, you can realize that you don’t need to be controlled by or obsessed with them.
A myriad of thoughts are presented to our consciousness every minute of every day. It is up to us to filter out the compulsive thoughts and concentrate on what we perceive to be currently meaningful and worthy of attention.
For example, if you are currently looking at the quotes twice an hour, make a commitment to look only once an hour for the next week.
Then, if you are successful in implementing that behavioral restriction, reduce your observations to once in the morning, once in the afternoon and once during your lunch break.
Hopefully, you will find that you can successfully reduce your continual need and control your tendency to take a peak too often.