-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Eugene Palchukovsky edited this page Mar 12, 2026
·
5 revisions
Pit is an embeddable pre-trade risk toolkit for trading systems.
It evaluates orders before they leave the host application, lets the caller commit or roll back reserved state explicitly, and accepts post-trade feedback so cumulative controls can update themselves from realized outcomes.
Until Pit reaches a stable 1.0 release, the project follows a relaxed
interpretation of Semantic Versioning.
During this phase:
-
PATCHreleases are used for bug fixes and small internal corrections. -
MINORreleases may introduce new features and may also change the public interface.
This means that breaking API changes can appear in minor releases before 1.0.
Consumers of the library should take this into account when declaring
dependencies and consider using version constraints that tolerate API
evolution during the pre‑stable phase.
- Project website openpit.dev
- Rust crate
openpit - Python package
openpit
- Build an
Engine. - Run the
start stage. - If the order passes,
execute request. - If the main stage passes,
finalize reservation. - Feed realized outcomes back through
execution report.
- Order routing and venue connectivity
- Persistence of balances, positions, or reservations
- Market data normalization
- P&L calculation from raw fills
- Concurrency coordination around one shared engine instance
- Getting Started: Install the SDK and run a first end-to-end flow
- Pre-trade Pipeline: Lifecycle, result handling, and finalization rules
- Policies: Start-stage and main-stage behavior, built-ins, and custom policies
- Reject Codes: Standard business reject codes and their meanings
- Domain Types: Public value types, meanings, sign conventions, and leverage range
- Architecture: Public integration model and current SDK surfaces