From 0324404b032c1961759702691ace9688f07895bd Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 5 May 2022 17:09:17 -0400 Subject: [PATCH] Include epoch timestamp in quote label for now --- piker/ui/_cursor.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/piker/ui/_cursor.py b/piker/ui/_cursor.py index c902fcb8..a34c15c1 100644 --- a/piker/ui/_cursor.py +++ b/piker/ui/_cursor.py @@ -191,6 +191,9 @@ class ContentsLabel(pg.LabelItem): self.setText( "i:{index}
" + # NB: these fields must be indexed in the correct order via + # the slice syntax below. + "epoch:{}
" "O:{}
" "H:{}
" "L:{}
" @@ -198,7 +201,15 @@ class ContentsLabel(pg.LabelItem): "V:{}
" "wap:{}".format( *array[index - first][ - ['open', 'high', 'low', 'close', 'volume', 'bar_wap'] + [ + 'time', + 'open', + 'high', + 'low', + 'close', + 'volume', + 'bar_wap', + ] ], name=name, index=index,