Treat option-option amplitude as a maximum cap.

Reject opens when range exceeds the setting; update UI and docs labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-07 16:35:39 +08:00
parent 7d21bc26c7
commit eaf94448a2
9 changed files with 78 additions and 20 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ def build_oo_pick_core(
amp = amplitude or fetch_amplitude_hl_for_runtime(amplitude_hours)
if amp is None:
return None
if float(amp.range_pct) + 1e-12 < float(amplitude_pct):
if float(amp.range_pct) > float(amplitude_pct) + 1e-12:
return None
if spot <= 0:
spot = float(amp.mid)