To get real-time bitcoin data, I used an api provided by OKex, which is a large crypto currency exchange. Then I used python to calculate my gain and loss based on the streaming data. I set my target gain and loss to 5% everyday, which means more lights are on, my investment is closer to my target gain or loss. If all leds are turned on or off, the strip will statr to blink. So I can make decision about whether to keep holding or sell my bitcoins.