display_positions#

API documentation for tradeexecutor.analysis.position.display_positions Python function.

display_positions(positions)[source]#

Format trading positions for Jupyter Notebook table output.

Display in one table

  • All positions

  • Their underlying trades

Returns:

DataFrame containing positions and trades, values as string formatted

Parameters:

positions (Iterable[TradingPosition]) –

Return type:

DataFrame