Skip to content
OPEN SOURCE · MIT · RISK GOVERNOR v0.2

The seatbelt for your trading account.

Free, open-source software that stops you before you break your prop firm's rules — or your own. Most funded accounts don't die from bad entries. They die from one trade too many, one contract too big, or a revenge trade after a loss. This is the check that catches it.

Runs on your machine Sends nothing anywhere No account needed
risk-governor — check

$ governor check my-trade.json

Account: TakeProfitTrader · $100K · daily P&L −$1,240

Trade: BUY 14× CL @ market

⛔ BLOCK

DAILY_LOSS_LIMIT_HIT — daily P&L −$1,240 breached max −$1,200.

MAX_CONTRACTS_EXCEEDED — 14 exceeds policy max 12.

→ Do not take this trade. Stop for the day; keep your account.

0%

of retail traders lose money.

But most of the damage isn't bad entries. It's breaking a rule you already knew. A seatbelt doesn't drive the car — it stops a small mistake from becoming a fatal one.

One contract too big

You size up “just this once”. The Governor caps it at your firm's max before the order goes in.

One trade too many

Past your daily trade count or daily loss limit — the exact line that fails funded accounts. It blocks the next click.

A revenge trade after a loss

Down for the day and reaching to win it back. It calls a hard stop instead of letting you tilt into a blowup.

Held past the cutoff

Prop rules flatten you at a set time. It flags late-session and no-hold windows before you're caught out.

One small library. The whole safety layer.

Read-only by design — it never places an order. It just tells you the truth before you click.

Risk Governor

A deterministic pre-trade check. Feed it a proposed trade and it returns one clear verdict — with plain-English reasons you can act on.

ALLOWBLOCKREDUCEREQUIRE_APPROVALLOCK_PAYOUT

Prop-firm rule packs

Machine-readable limits for the firms you trade, so the Governor knows exactly what would fail your funded account.

TakeProfitTraderTopstepApex

Scam + tilt guards

A 0–10 scam-offer checker, a safe position-size calculator, and a revenge-trade cooldown that escalates with a losing streak.

Scam scorePosition sizeCooldown
The moat is the data

Prop-firm rules, kept current by the community.

Firms change their rules every quarter — drawdowns, contract limits, payout terms. The rule packs live in the open repo, and keeping them current is one pull request per firm. Grab the maintained set below, and get a heads-up the moment a firm changes a rule that could fail your account.

TakeProfitTraderTopstepApex…add yours in one PR
getPolicy("TOPSTEP_50K")

{
  firm: "Topstep",
  accountSize: 50000,
  maxDailyLoss: 1000,
  maxContracts: 5,
  noHoldPastHourET: 16,
  // ...verify vs. your firm's
  //    current rulebook
}

MIT licensed

Free forever. Fork it, ship it, sell on top of it.

Runs offline

On your machine. It phones home nothing, ever.

Zero dependencies

Pure functions. Drop it in front of any bot or broker.

Community rule packs

Every firm's ruleset is one pull request away.

Get the maintained rule packs

Drop your email and we'll send you the current packs plus a heads-up when a firm changes a rule that could fail your account.

The tool is free forever, no email required. This is only if you want the updates.

More than a seatbelt

Come see what's in the room.

The Seatbelt keeps you alive. The OXY room is where the trading happens — live order-flow reads, real-time signals, and a published track record you can check before you trust a thing. Come watch, join free, and connect your own account if you like what you see.

Connect your account

Put your seatbelt on.

Free, open source, yours in one command. Star it so the next trader finds their seatbelt too.

github.com/oxyalgo/trading-seatbelt-os

Education and risk-management tooling only. Not financial advice. No guaranteed profits. Trading involves substantial risk of loss. Rule packs are community-maintained starting points — always verify against your firm's current rulebook.