tradeexecutor.strategy.output module.

Module description#

Helpers for outputting strategy execution information to Python logging and Discord.


format_position(position[, up_symbol, ...])

Write a position status line to logs.

format_trade(portfolio, trade)

Write a trade status line to logs.

output_positions(positions, buf[, ...])

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

output_trades(trades, portfolio, buf)

Write trades to the output logs.