refresh orders

This commit is contained in:
olli 2024-09-24 17:15:35 +02:00
parent 4cbff23680
commit 7680e1fca8
2 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,8 @@ function order {
echo "$f_order" | notify.sh -s "ORDER"
f_ccxt "print($STOCK_EXCHANGE.createOrder(${f_order}))" || return 1
# refresh positions
# refresh orders and positions
get_orders "$f_symbol"
get_positions
}

View File

@ -35,6 +35,8 @@ function order_close {
if [ "$f_symbol" = "$f_order_symbol" ]
then
f_ccxt "print(${STOCK_EXCHANGE}.cancelAllOrders('$f_symbol'))"
get_orders "$f_symbol"
fi
done
}