T09 · Insecure Skill Coding Practices
- Location
trader.py:31- Finding
Declared Minimum-Volume Safeguard Is Not Enforced
- Content
View full analysis
= MAX_POSITIONS: break side, size, reasoning = compute_signal(m) if not side: print(f" [skip] {reasoning}") continue ok, why = context_ok(client, m.id) if not ok: print(f" [skip] {why}") continue try: r = client.trade( market_id=m.id, side=side, amount=size, source=TRADE_SOURCE, skill_slug=SKILL_SLUG, reasoning=reasoning, ) ``` ### Technical Analysis `MIN_VOLUME` is read from the environment, reloaded after managed configuration is applied, and displayed as a risk parameter. However, neither `compute_signal()` nor the order loop compares a market's volume against this value before calling `clien ...[truncated 1410 chars]- Remediation
View remediation
