ignore zero value stocks

This commit is contained in:
dave 2020-04-06 13:56:13 -07:00
parent 55212a5977
commit 166807e181
1 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,9 @@ class StockPlay(ModuleBase):
self.bot.act_PRIVMSG(trade.replyto,
"{}: invalid symbol '{}'".format(trade.nick, trade.symbol))
return # invalid stock
if not symprice and trade.buy:
self.bot.act_PRIVMSG(trade.replyto, "{}: trading is halted on '{}'".format(trade.nick, trade.symbol))
return
# calculate various prices needed
# symprice -= Decimal("0.0001") # for testing dust collection