From 02ea608073cc1f0b27e014717e6dc740f09967b4 Mon Sep 17 00:00:00 2001 From: zb226 Date: Tue, 11 May 2021 23:33:34 +0200 Subject: [PATCH 1/2] fix minChangeNeg calculation for binance --- markets-picker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markets-picker.sh b/markets-picker.sh index af12114..0a5f212 100644 --- a/markets-picker.sh +++ b/markets-picker.sh @@ -135,8 +135,8 @@ echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] 24h Percent Change Between: [ -15.00% plusLimit=$(echo "15" | bc) minusLimit=$(echo "-15" | bc) - minChange=$(echo "$minChange*100" | bc) minChangeNeg=$(echo "-$minChange*100" | bc) + minChange=$(echo "$minChange*100" | bc) percChange=$(echo "$minChange" | bc) for market in $markets; do From 4d85147142917b5696e593ff2aac595299dfd225 Mon Sep 17 00:00:00 2001 From: Roberto Leon <13802215+rleons@users.noreply.github.com> Date: Tue, 11 May 2021 18:31:52 -0400 Subject: [PATCH 2/2] Update markets-picker.sh --- markets-picker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markets-picker.sh b/markets-picker.sh index 0a5f212..5cc9413 100644 --- a/markets-picker.sh +++ b/markets-picker.sh @@ -135,8 +135,8 @@ echo $(date +"%Y/%m/%d %H:%M:%S") "[INFO] 24h Percent Change Between: [ -15.00% plusLimit=$(echo "15" | bc) minusLimit=$(echo "-15" | bc) - minChangeNeg=$(echo "-$minChange*100" | bc) minChange=$(echo "$minChange*100" | bc) + minChangeNeg=$(echo "-$minChange" | bc) percChange=$(echo "$minChange" | bc) for market in $markets; do