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}"
|
do_trade ${f_ASSET} ${CURRENCY} ${f_QUANTITY_CURRENCY} sell "${f_msg}"
|
||||||
continue
|
continue
|
||||||
fi
|
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
|
then
|
||||||
check_sell_conditions "${f_ASSET_HIST_FILE}" "${f_strategy}"
|
check_sell_conditions "${f_ASSET_HIST_FILE}" "${f_strategy}"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user