ignore zero value stocks
This commit is contained in:
parent
55212a5977
commit
166807e181
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue