Shock Trader: Regulatory-News Event Bot with Hard Caps
Watches regulator and exchange filings after hours, asks a model whether a listed company is exposed, and queues a capped trade for the open.
Built after a regulator paper uploaded at night preceded a 36 percent fall the next day; NSE, IRDAI, SEBI, RBI and news feeds, a model-based decision step, Kite execution in paper mode by default, a STOP-file kill switch, and config-enforced budget limits.

- Regulator upload timestamps used as the signal source
- Paper default, STOP-file kill switch, config caps
- Options engine present but disabled until trusted
- Offline replay of past documents for auditing
The trigger was a specific event: a regulator published a distribution-reform paper late one evening and a listed insurer opened band-locked and lost more than a third of its value the next day. Documents like that carry an upload timestamp, so the edge is reading them before the market does. Shock Trader polls exchange announcements and regulator sites, hands each new document to a language model with strict instructions to decide exposure and direction, and queues an order for one minute after the open.
Safety is structural. The default mode is paper, and I flip to live manually. A STOP file halts everything. Hard caps in the configuration limit budget per trade and per day. The first live phase trades a single share of the underlying rather than options, with options code present but switched off until the operator trusts the pipeline. The engine halts on IP-whitelist or token errors from the broker rather than retrying blindly.
A replay tool reruns historical documents through the decision step so the model's judgement can be audited offline before any live use.
Event-driven trading tool; paper by default; shared as engineering work, not financial advice.
How it works
- Pollers fetch new filings and regulator documents
- Model reads each document and returns exposure and direction
- Qualified signals are queued with position caps
- At 09:16 the engine places paper or live orders
- Square-off at 15:10; status tool reports the day
Software and automation are infrastructure, not financial advice. No performance guarantees. Every live system needs staged testing, risk limits, and owner approval.