From 1abe7d87a5f720c0634d030fc00836f55cf853e5 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 93da59b9..8f18fe45 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,