Compare commits
3 Commits
d183172ca7
...
13ea0fe52f
Author | SHA1 | Date |
---|---|---|
Dave Pedu | 13ea0fe52f | |
Kirk | fb6a5766c7 | |
Kirk | 0db7e23383 |
|
@ -58,7 +58,12 @@ class StockIndex(ModuleBase):
|
|||
@command("nasdaq", allow_private=True)
|
||||
def cmd_nasdaq(self, message, command):
|
||||
self.send_quote("^IXIC", "NASDAQ", message.replyto)
|
||||
|
||||
|
||||
@info("vix", "get the current value of the vix/fear index", cmds=["vix"])
|
||||
@command("vix", allow_private=True)
|
||||
def cmd_vix(self, message, command):
|
||||
self.send_quote("^VIX", "VIX", message.replyto)
|
||||
|
||||
def send_quote(self, key, symbol, to):
|
||||
index = self.cache[key]
|
||||
is_gain = index["price"] >= index["previousClose"]
|
||||
|
|
Loading…
Reference in New Issue