Drop open/close prices for now; never really use them

kivy_mainline_and_py3.8
Tyler Goodlet 2019-01-02 21:24:42 -05:00
parent fa6bae1f5c
commit 7f8c88be0c
1 changed files with 5 additions and 5 deletions

View File

@ -583,11 +583,11 @@ _qt_stock_keys = {
'bidSize': 'bsize', 'bidSize': 'bsize',
'askSize': 'asize', 'askSize': 'asize',
'VWAP': ('VWAP', partial(round, ndigits=3)), 'VWAP': ('VWAP', partial(round, ndigits=3)),
'mktcap': ('mktcap', humanize), 'MC': ('MC', humanize),
'$ vol': ('$ vol', humanize), '$ vol': ('$ vol', humanize),
'volume': ('vol', humanize), 'volume': ('vol', humanize),
'close': 'close', # 'close': 'close',
'openPrice': 'open', # 'openPrice': 'open',
'lowPrice': 'low', 'lowPrice': 'low',
'highPrice': 'high', 'highPrice': 'high',
# 'low52w': 'low52w', # put in info widget # 'low52w': 'low52w', # put in info widget
@ -607,7 +607,7 @@ _stock_bidasks = {
'last': ['bid', 'ask'], 'last': ['bid', 'ask'],
'size': ['bsize', 'asize'], 'size': ['bsize', 'asize'],
'VWAP': ['low', 'high'], 'VWAP': ['low', 'high'],
'vol': ['mktcap', '$ vol'], 'vol': ['MC', '$ vol'],
} }
@ -633,7 +633,7 @@ def format_stock_quote(
computed = { computed = {
'symbol': quote['symbol'], 'symbol': quote['symbol'],
'%': round(change, 3), '%': round(change, 3),
'mktcap': mktcap, 'MC': mktcap,
# why QT do you have to be an asshole shipping null values!!! # why QT do you have to be an asshole shipping null values!!!
'$ vol': round((quote['VWAP'] or 0) * (quote['volume'] or 0), 3), '$ vol': round((quote['VWAP'] or 0) * (quote['volume'] or 0), 3),
'close': previous, 'close': previous,