Widgets#

InteractivePortfolioOptimizer

Interactive tool for the construction of optimisation problems and the analysis of the results.

LiveViewWidget

Create a live market data view widget, run in a notebook and use the inbuilt UI to add / remove instruments and view live market data.

StrategyPerformanceWidget

A class implementing an interactive representation of a strategy performance.

StrategyWidget

A class implementing an interactive representation of a strategy performance.

sigtech.framework.ui.matplotlib_style.set_plot_mode(mode='notebook')

Activate additional plotting style settings. This currently only supports a notebook mode.

@param mode: String to identify mode, defaults to 'notebook'.

sigtech.framework.ui.tree.plot_generic_tree(tree_dict)

Return an interactive HTML object for the tree representation of a generic structure.

Each node is defined with a structure containing 'name', 'children' and 'metadata'.

The metadata can contain a 'color' attribute with an RGB or hexadecimal color string.

Example of tree_dict input:

tree_dict = {'name': 'A',
             'metadata': {'field1': 'string1', 'field2': 'string2'},
             'children': [
                 {'name': 'B', 'metadata': {'field3': 'string1', 'color': '#c2f542'},
                 'children': [{'name': 'D', 'metadata': {'field1': 'string1', 'field2': 'string2'}}]},
                 {'name': 'C', 'metadata': {'field1': 'string1', 'color': 'rgb(255,0,0)'}}
             ]}