OpenPit logo

OpenPit

Pre-trade Integrity Toolkit
pre-trade risk go python c++ js rust c api open source apache 2.0

Embeddable pre-trade risk engine Open-source pre-trade risk SDK for algorithmic and electronic trading systems Deterministic In-memory Policy-driven Concurrency-aware

OpenPit built-in pre-trade risk policies

OpenPit ships built-in pre-trade risk policies — spot funds solvency, order validation, rate limiting, order size limits, and a P&L kill switch — and lets you compose custom policies with the Go, Python, C++, JavaScript, Rust, and C SDKs.

Scope anything. Global, per account, or per account group.

OpenPit packages, SDKs, and resources

Go logo
Go SDK
go get go.openpit.dev/openpit

A goroutine-safe module with a context-first API.
PyPI
pip install openpit

A typed package with a Pythonic API.
C++ logo
C++ SDK
find_package(OpenPit)

A modern CMake target for C++17 and newer.
Rust logo
crates.io
cargo add openpit

A crate with an async-ready API.
JavaScript logo
npm
ESM + CJS bundle with TypeScript types; runs in Node, browsers, Deno, Bun, and Workers via WASM.
npm install @openpit/engine
C API
#include <openpit.h>

A C ABI for native code.
Repository
git clone https://github.com/openpitkit/pit.git

Source code, issue tracker, and contribution guide.
Wiki
Architecture, domain types, pipeline design, policies, and conceptual documentation.
Discussions
Questions, integration ideas, and community conversation. Bug reports go to the issue tracker.