fix on check for current data

This commit is contained in:
olli 2023-06-17 14:53:24 +02:00
parent 3ed741f1be
commit 6529e87ea0

View File

@ -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