• Pre-trade risk
  • Go
  • Python
  • C++
  • JS
  • Rust
  • C API
  • Open source
  • Apache 2.0

Embeddable pre-⁠trade risk engine

Check orders before you send them to a venue. OpenPit evaluates your policies, reserves state for accepted orders, and returns reasons for rejection.

An in-process SDK for your trading application. Go, Python, JavaScript/TypeScript, C++, Rust, and C.

Built-in checks, custom policies

Control spendable funds, validate orders, cap quantity and notional, throttle order flow, and halt accounts when realized P&L breaches bounds.

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

Supply prices for individual accounts, configure controls for an entire account group, and define your own rules through the policy API.

Where it fits

Embed the engine before order routing. Your application commits or rolls back reservations and reports execution outcomes to keep risk state current.

You own venue connectivity, persistent storage, market data, and coordination around a shared engine. OpenPit is an in-memory component of that system.

Start in your language

Follow the installation guide and run its first example. Native runtime setup differs by SDK.

OpenPit is pre-1.0: minor releases may change public APIs. Review release notes before choosing or upgrading a version.

Explore the integration

Pit Officer is a separate control plane built on OpenPit, with a dashboard, REST API, and MCP server.