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

bug in decay schedule #75

This commit is contained in:
Anson Biggs 2021-08-30 20:35:04 +00:00
parent c7f083b2b1
commit 0649789bf8

View File

@ -25,7 +25,7 @@ class Router:
self.stock = IEX_Symbol() self.stock = IEX_Symbol()
self.crypto = cg_Crypto() self.crypto = cg_Crypto()
schedule.every().hour().do(self.trending_decay) schedule.every().hour.do(self.trending_decay)
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"""