reno.diagrams.add_stocks#
- reno.diagrams.add_stocks(g, stocks, sparklines=False, traces=None, universe=None)#
Add nodes and edges for all passed stocks to the passed graph.
- Parameters:
sparklines (bool) – include small little line graph of each stock in the diagram. This only works if a simulation has been run.
g (Digraph)
stocks (list[Stock])
traces (list[Dataset])
universe (list[TrackedReference])