Fix in restart_pair_no_json()
This commit is contained in:
parent
3f8424415e
commit
ba86c76ad6
|
|
@ -1,3 +1,6 @@
|
||||||
|
2025.03.02:
|
||||||
|
. Fixed an error in restart_pair_no_json()
|
||||||
|
|
||||||
2025.03.01:
|
2025.03.01:
|
||||||
. StatusHandler initial implementation.
|
. StatusHandler initial implementation.
|
||||||
. Variable cleanup
|
. Variable cleanup
|
||||||
|
|
|
||||||
4
main.py
4
main.py
|
|
@ -24,7 +24,7 @@ In case the permissions of the certificate changes, reset them this way:
|
||||||
# ll /etc/letsencrypt/
|
# ll /etc/letsencrypt/
|
||||||
'''
|
'''
|
||||||
|
|
||||||
version = "2025.03.01"
|
version = "2025.03.02"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
|
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
|
||||||
|
|
@ -243,7 +243,7 @@ def restart_pair_no_json(base: str, quote: str) -> int:
|
||||||
if f"{base}/{quote}"==x.pair:
|
if f"{base}/{quote}"==x.pair:
|
||||||
x.pause = True
|
x.pause = True
|
||||||
#Backing up old status file
|
#Backing up old status file
|
||||||
x.write_status_file(True)
|
x.status.save_to_file(is_backup=True)
|
||||||
#Here, we could open a duster (if needed)
|
#Here, we could open a duster (if needed)
|
||||||
for order in order_list:
|
for order in order_list:
|
||||||
if order["symbol"]==f"{base}/{quote}" and x.config.get_is_short() and order["side"]=="sell":
|
if order["symbol"]==f"{base}/{quote}" and x.config.get_is_short() and order["side"]=="sell":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue