From 8e81f8bd81b05dae0ad88b1adc939c8fd8290351 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 24 Jan 2022 06:38:26 -0500 Subject: [PATCH] Add dollar volume fsp config section to display in subchart --- piker/ui/_display.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/piker/ui/_display.py b/piker/ui/_display.py index dcc0badd..43085b7d 100644 --- a/piker/ui/_display.py +++ b/piker/ui/_display.py @@ -932,7 +932,7 @@ async def maybe_open_vlm_display( async with open_fsp_sidepane( linked, { - '$_vlm': { + 'vlm': { 'params': { @@ -1102,6 +1102,20 @@ async def display_symbol_data( # TODO: eventually we'll support some kind of n-compose syntax fsp_conf = { + 'dolla_vlm': { + 'func_name': 'dolla_vlm', + 'zero_on_step': True, + 'params': { + 'price_func': { + 'default_value': 'chl3', + # tell target ``Edit`` widget to not allow + # edits for now. + 'widget_kwargs': {'readonly': True}, + }, + }, + 'chart_kwargs': {'style': 'step'} + }, + 'rsi': { 'func_name': 'rsi', # literal python func ref lookup name