fix on check for current data
This commit is contained in:
parent
3ed741f1be
commit
6529e87ea0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user