Closed TheOtherDavid closed 3 years ago
I guess what I really need is a for loop to loop through the past six hours of prices, comparing them to the current price, calculating the percentage difference. Whenever the difference exceeds... let's go with 5% to start, but make it configurable, have it send a text message with that time. "BTC has gone up 5% since 11:00:00!"
Pushed code to only send an SMS for a price move of X percent over the past Y hours.
Currently, the program just gets the price and sends it as a message. But realistically, this isn't very useful. What I really want is to have it compare the price to the last few prices and only send an alert if there was a price rise/fall of at least 10% (configurable) over the last 6 hours (configurable).