T09 · Insecure Skill Coding Practices
- Location
trader.py:390- Finding
Advertised Market Volume and Concurrent Position Limits Are Not Enforced
- Content
View full analysis
= MAX_POSITIONS: break side, size, reasoning = compute_signal(m, drift_dir, drift_mag) if not side: safe_print(f" [skip] {reasoning}") continue ok, why = context_ok(client, m.id) if not ok: safe_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 `SIMMER_MIN_VOLUME` is documented as a minimum market-volume filter and is loaded into `MIN_VOLUME`, but no market-volume field is inspected before `client.trade()` is called. Consequently, a market can pass the spread, resolution-time, classification, weekend, and signal checks even ...[truncated 1985 chars]- Remediation
View remediation
