refresh orders

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

No files matched your search

+2 -1
View File
@@ -116,7 +116,8 @@ function order {
echo "$f_order" | notify.sh -s "ORDER" echo "$f_order" | notify.sh -s "ORDER"
f_ccxt "print($STOCK_EXCHANGE.createOrder(${f_order}))" || return 1 f_ccxt "print($STOCK_EXCHANGE.createOrder(${f_order}))" || return 1
# refresh positions # refresh orders and positions
get_orders "$f_symbol"
get_positions get_positions
} }
+2
View File
@@ -35,6 +35,8 @@ function order_close {
if [ "$f_symbol" = "$f_order_symbol" ] if [ "$f_symbol" = "$f_order_symbol" ]
then then
f_ccxt "print(${STOCK_EXCHANGE}.cancelAllOrders('$f_symbol'))" f_ccxt "print(${STOCK_EXCHANGE}.cancelAllOrders('$f_symbol'))"
get_orders "$f_symbol"
fi fi
done done
} }