From 7f8c88be0cb3e46b918665fec93a8a21df4fbedb Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 2 Jan 2019 21:24:42 -0500 Subject: [PATCH] Drop open/close prices for now; never really use them --- piker/brokers/questrade.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/piker/brokers/questrade.py b/piker/brokers/questrade.py index 2a588562..c3fb7586 100644 --- a/piker/brokers/questrade.py +++ b/piker/brokers/questrade.py @@ -583,11 +583,11 @@ _qt_stock_keys = { 'bidSize': 'bsize', 'askSize': 'asize', 'VWAP': ('VWAP', partial(round, ndigits=3)), - 'mktcap': ('mktcap', humanize), + 'MC': ('MC', humanize), '$ vol': ('$ vol', humanize), 'volume': ('vol', humanize), - 'close': 'close', - 'openPrice': 'open', + # 'close': 'close', + # 'openPrice': 'open', 'lowPrice': 'low', 'highPrice': 'high', # 'low52w': 'low52w', # put in info widget @@ -607,7 +607,7 @@ _stock_bidasks = { 'last': ['bid', 'ask'], 'size': ['bsize', 'asize'], 'VWAP': ['low', 'high'], - 'vol': ['mktcap', '$ vol'], + 'vol': ['MC', '$ vol'], } @@ -633,7 +633,7 @@ def format_stock_quote( computed = { 'symbol': quote['symbol'], '%': round(change, 3), - 'mktcap': mktcap, + 'MC': mktcap, # why QT do you have to be an asshole shipping null values!!! '$ vol': round((quote['VWAP'] or 0) * (quote['volume'] or 0), 3), 'close': previous,