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',
'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,