From f6f6d98a956e5ca3d691aa8b7f8812bf91b91429 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 24 Jun 2020 14:23:37 -0400 Subject: [PATCH] Allow passing in tbk keys to query --- piker/data/marketstore.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/data/marketstore.py b/piker/data/marketstore.py index b6a8b864..b1c6463d 100644 --- a/piker/data/marketstore.py +++ b/piker/data/marketstore.py @@ -178,7 +178,7 @@ def ingest(config, name, test_file, tl, url): # since last quote) new_vol = fmt_quote.get('volume', None) if new_vol is None: - log.info(f"NO trades for {symbol}") + log.debug(f"No fills for {symbol}") if new_vol == quote_cache.get('volume'): log.error( f"{symbol}: got same volume as last quote?") @@ -222,9 +222,9 @@ def ms_shell(config, name, tl, url): """ client = pymkts.Client(url) - def query(name): + def query(name, tbk=_tick_tbk_ids): return client.query( - pymkts.Params(name, *_tick_tbk_ids)).first().df() + pymkts.Params(name, *tbk)).first().df() # causes crash # client.query(pymkts.Params(symbol, '*', 'OHCLV'