trader.chat.backtest_format module

Formatting a BacktestResult for the chat CLI.

Deliberately not run through the model at all: every number here already came out of run_backtest, so there is nothing for a second LLM call to add except a chance to misstate one of them. Issue #15 asks for “the same results summary the backtest CLI command produces” — this mirrors trader.cli.main.backtest’s own typer.echo lines line for line rather than re-deriving a second copy of that formatting.

trader.chat.backtest_format.format_backtest_result(result, bar_count)[source]

The same summary trader backtest prints, as one block of text.

Parameters:
Return type:

str