feat: Add dashboard controls for tradable pairs and strategy configuration

This commit is contained in:
2026-06-01 15:13:05 +02:00
parent 7c86e838fa
commit d742577484
5 changed files with 140 additions and 5 deletions
+74
View File
@@ -16,6 +16,10 @@
<div class="meta">Trade capital: {{ trade_capital_usd }}</div>
<div class="meta">Max trade capital: {{ max_trade_capital_usd }}</div>
<div class="meta">Max concurrent trades: {{ max_concurrent_trades }}</div>
<div class="meta">Tradable pairs: {{ tradable_pairs_display }}</div>
<div class="meta">Strategy mode: {{ strategy_mode }}</div>
<div class="meta">Profit threshold: {{ strategy_profit_threshold }}</div>
<div class="meta">Max depth levels: {{ strategy_max_depth_levels }}</div>
</article>
<article class="card">
<div class="label">Alerting</div>
@@ -109,6 +113,76 @@
value="{{ max_concurrent_trades_value }}"
/>
</label>
<label class="field">
<span>Tradable pairs</span>
<input
name="tradable_pairs"
type="text"
placeholder="BTC/USD, ETH/BTC"
value="{{ tradable_pairs_value }}"
/>
</label>
<label class="field">
<span>Strategy mode</span>
<select name="strategy_mode">
<option
value="incremental"
{%
if
strategy_mode=""
="incremental"
%}selected{%
endif
%}
>
incremental
</option>
<option
value="paper"
{%
if
strategy_mode=""
="paper"
%}selected{%
endif
%}
>
paper
</option>
<option
value="live"
{%
if
strategy_mode=""
="live"
%}selected{%
endif
%}
>
live
</option>
</select>
</label>
<label class="field">
<span>Strategy profit threshold</span>
<input
name="strategy_profit_threshold"
type="number"
min="0"
step="0.0001"
value="{{ strategy_profit_threshold }}"
/>
</label>
<label class="field">
<span>Max depth levels</span>
<input
name="strategy_max_depth_levels"
type="number"
min="1"
step="1"
value="{{ strategy_max_depth_levels }}"
/>
</label>
<label class="field checkbox">
{% set check = "checked" if paper_trading_mode == "enabled" else "" %}
<input name="paper_trading_mode" type="checkbox" {{ check }} />