Fix tab switching + $100K paper trading capital
Tab IDs now match JavaScript: tab-backtest instead of tab-bt. Paper trading increased to $100,000 ($10K per strategy, $30K reserve). Server default paper metrics updated to $100K.
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ def read_paper_metrics() -> dict:
|
||||
return json.load(f)
|
||||
except (json.JSONDecodeError, IOError):
|
||||
pass
|
||||
return {"status": "waiting", "mode": "paper", "strategies": {}, "trades": [], "equity_history": [], "total_pnl": 0, "total_equity": 5000}
|
||||
return {"status": "waiting", "mode": "paper", "strategies": {}, "trades": [], "equity_history": [], "total_pnl": 0, "total_equity": 100000}
|
||||
|
||||
|
||||
# ═══════════════════════════════════════════════════════════
|
||||
|
||||
@@ -84,9 +84,9 @@ footer{text-align:center;padding:20px;font-size:10px;color:#3f3f46}footer a{colo
|
||||
<div class="totals"><div class="label" style="font-size:10px;color:var(--text);text-transform:uppercase;letter-spacing:0.5px">Portfolio PnL</div><div class="pnl" id="stpnl">$0.00</div><div class="sub" id="stpct">0.00%</div></div>
|
||||
</div>
|
||||
<div class="tabs">
|
||||
<button class="tab on" id="tab-live" onclick="sw('live')">Live Trading<span class="data-badge testnet">Testnet</span></button>
|
||||
<button class="tab" id="tab-paper" onclick="sw('paper')">Paper Trading<span class="data-badge mainnet">Mainnet</span></button>
|
||||
<button class="tab" id="tab-bt" onclick="sw('backtest')">Backtesting</button>
|
||||
<button class="tab on" id="tab-live" onclick="sw('live')">Live<span class="data-badge testnet">Testnet</span></button>
|
||||
<button class="tab" id="tab-paper" onclick="sw('paper')">Paper<span class="data-badge mainnet">Mainnet</span></button>
|
||||
<button class="tab" id="tab-backtest" onclick="sw('backtest')">Backtest</button>
|
||||
</div>
|
||||
|
||||
<!-- LIVE -->
|
||||
|
||||
Reference in New Issue
Block a user