Skip to content

Commit

Permalink
Update signals.py
Browse files Browse the repository at this point in the history
Suggested changes relocated!
  • Loading branch information
M1ch43lV authored Apr 1, 2022
1 parent 5d63bac commit 0279f0d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,9 @@ def topcoin(self, pairs, rank):
market = self.cgvalues(rank)

self.logging.debug(self.cgvalues.cache_info())
if isinstance(pairs, str):
self.logging.info("Symrank pair BEFORE matching with CG's Top coins: " + str(pairs))
else:
self.logging.info(str(len(pairs)) + " Symrank pairs BEFORE matching with CG's Top coins: " + str(pairs))


if isinstance(pairs, list):
self.logging.info("Symrank pair BEFORE matching with CG's Top coins: " + str(pairs))
pairlist = []
for pair in pairs:
for symbol in market:
Expand All @@ -89,6 +86,7 @@ def topcoin(self, pairs, rank):
pairlist.append(pair)
break
else:
self.logging.info(str(len(pairs)) + " Symrank pairs BEFORE matching with CG's Top coins: " + str(pairs))
pairlist = ""
coin = re.search("(\w+)_(\w+)", pairs).group(2)

Expand Down

0 comments on commit 0279f0d

Please sign in to comment.