refresh orders
This commit is contained in:
parent
4cbff23680
commit
7680e1fca8
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user