Added a simple tickers command for inspecting the running tickers (no manipulation at this time, not sure how to make that in a safe way).
This commit is contained in:
parent
dd6b6f06f7
commit
cc5fe43372
4 changed files with 41 additions and 1 deletions
|
|
@ -492,5 +492,18 @@ class TickerHandler(object):
|
|||
if ticker:
|
||||
return {interval: ticker.subscriptions}
|
||||
|
||||
def all_display(self):
|
||||
"""
|
||||
Get all tickers on an easily displayable form.
|
||||
|
||||
Returns:
|
||||
tickers (dict): A list of all storekeys
|
||||
|
||||
"""
|
||||
store_keys = []
|
||||
for ticker in self.ticker_pool.tickers.itervalues():
|
||||
store_keys.extend([store_key for store_key in ticker.subscriptions])
|
||||
return store_keys
|
||||
|
||||
# main tickerhandler
|
||||
TICKER_HANDLER = TickerHandler()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue