Skip to content

Commit

Permalink
Fixed issue with gs and ar bot's minvolume is None.
Browse files Browse the repository at this point in the history
Minor logging changes.
  • Loading branch information
cyberjunky committed Nov 18, 2021
1 parent 5d9d2d1 commit a2ca724
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions altrank.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,12 @@ def find_pairs(thebot):
base = thebot["pairs"][0].split("_")[0]
exchange = thebot["account_name"]
minvolume = thebot["min_volume_btc_24h"]
if not minvolume:
minvolume = 0.0

logger.debug("Bot base currency: %s" % base)
logger.debug("Bot exchange: %s" % exchange)
logger.debug("Bot minimal 24h BTC volume: %s" % minvolume)
logger.info("Bot base currency: %s" % base)
logger.info("Bot exchange: %s" % exchange)
logger.info("Bot minimal 24h BTC volume: %s" % minvolume)

# Start fresh
newpairs = list()
Expand Down
2 changes: 1 addition & 1 deletion compound.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def get_threecommas_deals(botid):
if error:
logger.error("Fetching deals failed with error: %s" % error)
else:
logger.info("Fetched the last %s deals for this bot OK" % len(data))
logger.info("Fetched the deals for this bot OK (%s deals)" % len(data))

return data

Expand Down
8 changes: 5 additions & 3 deletions galaxyscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,12 @@ def find_pairs(thebot):
base = thebot["pairs"][0].split("_")[0]
exchange = thebot["account_name"]
minvolume = thebot["min_volume_btc_24h"]
if not minvolume:
minvolume = 0.0

logger.debug("Bot base currency: %s" % base)
logger.debug("Bot exchange: %s" % exchange)
logger.debug("Bot minimal 24h BTC volume: %s" % minvolume)
logger.info("Bot base currency: %s" % base)
logger.info("Bot exchange: %s" % exchange)
logger.info("Bot minimal 24h BTC volume: %s" % minvolume)

# Start fresh
newpairs = list()
Expand Down

0 comments on commit a2ca724

Please sign in to comment.