Python SDK
Python SDK for trading discipline: pip install seigyo
Zero-dependency Python SDK that adds pre-trade guardrails to any trading bot in 5 lines of code. Typed dataclasses, clean API, works with any broker.
Best fit
Built for a specific trading workflow
Best for Python developers building trading bots on Alpaca, IBKR, Tradovate, or custom infrastructure.
About this workflow
The SEIGYO Python SDK wraps the Guardrail API with typed dataclass models, clean error handling, and zero external dependencies. Install it, pass your trades through it, and let the engine handle discipline enforcement.
What you get
What you can review
pip install seigyo: zero dependencies, stdlib only
Typed Trade, RuleDefinition, SessionState dataclasses with IDE autocomplete
client.evaluate() and client.check_session() cover the full discipline loop
Why it matters
Why it matters
Adding discipline to a bot should take 5 minutes, not 5 sprints.
Zero dependencies means no version conflicts with your existing trading stack.
The SDK returns structured EvaluateResponse objects: verdict, violations, patterns, discipline score, budget remaining.
Next step
Start with the safest path
The cleanest activation path is still the same: paper broker if you want live guardrails, CSV import if you want historical review, and the demo if you want to understand the system first.