create_holdings_chart¶
-
qf_lib.plotting.helpers.create_holdings_chart.
create_holdings_chart
(positions: qf_lib.containers.dataframe.qf_dataframe.QFDataFrame) → qf_lib.plotting.charts.line_chart.LineChart[source]¶ Creates a line chart showing holdings per day based on the specified positions.
- Parameters
positions (QFDataFrame) – Positions as returned by the extract_rets_pos_txn_from_zipline function.
- Returns
Created line chart
- Return type