format_position#

format_position(position, up_symbol='🌲', down_symbol='🔻')[source]#

Write a position status line to logs.

Position can be open/closed.

Returns:

List of log lines

Parameters:

position (TradingPosition) –

Return type:

List[str]