feat: limit entry (maker fee) + fallback на market

- exchange.py: _open() пробует postOnly limit (maker 0.02%),
  ждёт fill 10s, fallback на market (taker 0.055%)
- executor.py: PnL = maker_fee на вход + taker_fee на выход
- config: maker_fee: 0.0002, ETH оптимальные params из 365d OOS
  (rr=2.0, stop_mult=2.0, min_range=0.2, min_fvg=0.02)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-13 20:00:36 +10:00
co-authored by Claude Opus 4.6
parent cc41bef00c
commit 921defad30
4 changed files with 60 additions and 10 deletions
+2 -1
View File
@@ -365,7 +365,8 @@ def _execute_exit(conn: sqlite3.Connection, cfg: Config, pos: dict,
else:
gross = pos["pos_size"] * (pos["entry_price"] - exit_price)
commission = pos["pos_value"] * cfg.risk.taker_fee * 2
# maker fee on entry, taker fee on exit (SL/TP)
commission = pos["pos_value"] * (cfg.risk.maker_fee + cfg.risk.taker_fee)
pnl_net = gross - commission
# Update equity