outstanding positions bug fix

This commit is contained in:
Oleg Sheynin
2025-07-15 00:10:46 +00:00
parent 94ffb32f50
commit 80cf1b60ef
5 changed files with 166 additions and 99 deletions
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -226,7 +226,10 @@ def main() -> None:
# Store results with file name as key
filename = os.path.basename(datafile)
all_results[filename] = {"trades": bt_results.trades.copy()}
all_results[filename] = {
"trades": bt_results.trades.copy(),
"outstanding_positions": bt_results.outstanding_positions.copy(),
}
# Store results in database
if args.result_db.upper() != "NONE":