From 6529e87ea003a23eb973c6ad0c29115f9a8b31b6 Mon Sep 17 00:00:00 2001 From: olli Date: Sat, 17 Jun 2023 14:53:24 +0200 Subject: [PATCH] fix on check for current data --- dabo/functions/check_for_sell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/check_for_sell.sh b/dabo/functions/check_for_sell.sh index 08c247d..6c147d0 100644 --- a/dabo/functions/check_for_sell.sh +++ b/dabo/functions/check_for_sell.sh @@ -22,7 +22,7 @@ function check_for_sell { do_trade ${f_ASSET} ${CURRENCY} ${f_QUANTITY_CURRENCY} sell "${f_msg}" continue fi - if tail -n1 $f_ASSET_HIST_FILE | grep -q "^$(date +%Y-%m-%d)" + if tail -n1 $f_ASSET_HIST_FILE | egrep -q "^$(date +%Y-%m-%d)|$(date +%Y-%m-%d -d yesterday)" then check_sell_conditions "${f_ASSET_HIST_FILE}" "${f_strategy}" else