1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-16 15:17:28 +00:00

Update symbol_router.py

This commit is contained in:
Anson Biggs 2021-10-06 14:08:11 +00:00
parent a9eaf7c6db
commit 0577018284

View File

@ -30,7 +30,7 @@ class Router:
def trending_decay(self, decay=0.5): def trending_decay(self, decay=0.5):
"""Decays the value of each trending stock by a multiplier""" """Decays the value of each trending stock by a multiplier"""
t_copy = {}
if self.trending_count: if self.trending_count:
t_copy = self.trending_count.copy() t_copy = self.trending_count.copy()
for key in t_copy.keys(): for key in t_copy.keys():