diff --git a/scripts/cryptoAnalyze.sh b/scripts/cryptoAnalyze.sh index 5d34846..ebf163f 100755 --- a/scripts/cryptoAnalyze.sh +++ b/scripts/cryptoAnalyze.sh @@ -1,5 +1,6 @@ #!/bin/sh +HOUR=$(date +%H) IFS=";" while read DATE CURRENCY COIN PRICE FEE BUYRATE; do @@ -29,6 +30,8 @@ do echo "[$CURRENCY] profit: $curProfit EUR\n => sell?" fi fi - - echo "[$CURRENCY] profit: $curProfit EUR" + if [ "0$HOUR" -eq "6" ]; + then + echo "[$CURRENCY] profit: $curProfit EUR" + fi done < $1