version number
This commit is contained in:
parent
885797db01
commit
37661d91eb
2
main.py
2
main.py
|
|
@ -18,7 +18,7 @@ import exchange_wrapper
|
||||||
import trader
|
import trader
|
||||||
|
|
||||||
|
|
||||||
version = "2025.09.10"
|
version = "2025.09.11"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ class trader:
|
||||||
self.broker.logger.log_this(f"Buying missing {amount_to_buy} {self.base}",1,self.status.get_pair())
|
self.broker.logger.log_this(f"Buying missing {amount_to_buy} {self.base}",1,self.status.get_pair())
|
||||||
self.broker.new_market_order(self.status.get_pair(),amount_to_buy,"buy",amount_in_base=True)
|
self.broker.new_market_order(self.status.get_pair(),amount_to_buy,"buy",amount_in_base=True)
|
||||||
time.sleep(self.broker.get_wait_time()*2)
|
time.sleep(self.broker.get_wait_time()*2)
|
||||||
#Re-quering for the amount of base currency on the exchange
|
#Re-querying for the amount of base currency on the exchange
|
||||||
free_base = self.fetch_free_base()
|
free_base = self.fetch_free_base()
|
||||||
if free_base is None:
|
if free_base is None:
|
||||||
self.broker.logger.log_this("Can't fetch the amount of base at the exchange",1,self.status.get_pair())
|
self.broker.logger.log_this("Can't fetch the amount of base at the exchange",1,self.status.get_pair())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue