fix: maker+taker fee во всех backtest скриптах и test_live

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-13 20:29:25 +10:00
co-authored by Claude Opus 4.6
parent 096a361584
commit f8a265f99a
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ def test_run_cycle_simulation():
gross = pos_size * (t.exit_price - t.entry)
else:
gross = pos_size * (t.entry - t.exit_price)
commission = pos_value * cfg.risk.taker_fee * 2
commission = pos_value * (cfg.risk.maker_fee + cfg.risk.taker_fee)
pnl = gross - commission
print(f" [{now_ny.strftime('%H:%M')}] EXIT {t.direction.upper()} "
f"@ ${t.exit_price:,.2f} ({t.result}) PnL ${pnl:+,.2f} [flash]")