fix(oneshot): remove global position limit — block per-market only via SM state

This commit is contained in:
direkturcrypto
2026-02-24 15:05:48 +07:00
parent 8296c4129b
commit 6a2bbfa008
-7
View File
@@ -191,13 +191,6 @@ async function onSignal(evt) {
// Only enter from IDLE — one position per market slot
if (!sm.is(State.IDLE)) return;
// Global position limit: never open a new position while any other market
// is still being held. The engine is designed to focus on one bet at a time.
if (posEngine.hasAnyPosition()) {
dbg('SIGNAL', `${marketSlug} | blocked — position already open in another market`);
return;
}
// ── Risk gate ─────────────────────────────────────────────────────────
const riskCheck = riskEngine.canTrade();