output_positions#

API documentation for tradeexecutor.strategy.output.output_positions Python function.

output_positions(positions, buf, empty_message='No positions', break_after=4)[source]#

Write info on multiple trading positions formatted for Python logging system.

Break_after:

Insert Discord message break after this many positions to avoid chopped Discord messages.

Returns:

A plain text string as a log message, suitable for Discord logging

Parameters: