How it works · The system
From market data to measured decisions.
Five stages, one direction. Every decision is recorded, every simulated order request is checked by a risk engine that strategy code cannot bypass, and no part of the system can place a real order.
The decision engine
One path. Four ways it can end.
An observation enters, becomes features, models decide whether to ask for anything, and a separate risk engine judges every request. Pick a scenario to see where the signal stops, and why.
Illustrative scenario
Example values
Scenario C, Paper order approved: the signal reaches data, models, risk, paper execution, evaluation and completes at evaluation. Approved, sized by the risk engine, filled on paper and measured.
C · Runs to 05 Evaluation
Approved, sized by the risk engine, filled on paper and measured.
- WITHIN_LIMITS
- BINDING_ALLOCATION
The request passes every check. The risk engine sizes it, not the strategy: the 20% allocation cap binds first. The paper broker fills it at the next bar open with spread, slippage and a 0.1% fee, and the ledger records it. The outcome is then measured against a no-trade baseline.
Illustrative · example values on default limits, not a recorded result
01 · Binance public spot candles
Data
02 · Strategies and shadow models
Models
03 · Independent risk engine
Risk
04 · Paper broker and ledger
Paper execution
05 · Measured, then stored
Evaluation
- 01 Data: Passed.
Fresh closed candle
- Stream
- BTC/USDT · 1h
- Closed
- 14:00 UTC
- Age
- 38 s · max 2h 1m 30s
- 02 Models: Passed.
Proposes entry
- Strategy
- BUY @ 67,240.00
- Stop
- 65,900.00
- Request
- ENTRY · BTC/USDT
- 03 Risk: Passed.
Approved
- Size
- 0.00059 BTC
- At risk
- 0.92 / 1.00 USDT
- Binds
- Allocation 20%
- 04 Paper execution: Passed.
Filled at next open
- Fill
- 67,291.46
- Notional
- 39.70 USDT
- Fee
- 0.04 USDT
- Ledger
- +4 journal lines
- 05 Evaluation: Recorded.
Measured and stored
- Marked
- Every bar
- Versus
- No-trade baseline
- Label
- Simulated result
- 01
Data
PassedBinance public spot candles
Fresh closed candle
- Stream
- BTC/USDT · 1h
- Closed
- 14:00 UTC
- Age
- 38 s · max 2h 1m 30s
- 02
Models
PassedStrategies and shadow models
Proposes entry
- Strategy
- BUY @ 67,240.00
- Stop
- 65,900.00
- Request
- ENTRY · BTC/USDT
Independent boundary · no skip switch
03Risk
PassedIndependent risk engine
Approved
- Size
- 0.00059 BTC
- At risk
- 0.92 / 1.00 USDT
- Binds
- Allocation 20%
- 04
Paper execution
PassedPaper broker and ledger
Filled at next open
- Fill
- 67,291.46
- Notional
- 39.70 USDT
- Fee
- 0.04 USDT
- Ledger
- +4 journal lines
- 05
Evaluation
RecordedMeasured, then stored
Measured and stored
- Marked
- Every bar
- Versus
- No-trade baseline
- Label
- Simulated result
C · Runs to 05 Evaluation
Approved, sized by the risk engine, filled on paper and measured.
- WITHIN_LIMITS
- BINDING_ALLOCATION
The request passes every check. The risk engine sizes it, not the strategy: the 20% allocation cap binds first. The paper broker fills it at the next bar open with spread, slippage and a 0.1% fee, and the ledger records it. The outcome is then measured against a no-trade baseline.
Illustrative · example values on default limits, not a recorded result
What each stage does, in the product today
- 01 · Binance public spot candles
BTC, ETH and SOL on 15m, 1h and 4h. Only closed candles are used. A stream without a fresh closed candle is flagged stale and new entries are blocked.
Status: BetaMarket data feed - 02 · Strategies and shadow models
Versioned strategies read the closed-candle window and may propose a simulated order. Shadow models only record forecasts before the outcome is known; they have no route to orders.
Status: BetaShadow forecasts - 03 · Independent risk engine
Outside strategy code, with no skip switch. Checks every simulated order request: loss limits per trade, day and week, exposure caps, kill switch. Long only: no leverage, margin or shorts.
Status: BetaIndependent risk engine - 04 · Paper broker and ledger
Approved requests fill against a simulated USDT portfolio at the next bar open, with fees and slippage, and are written to an append-only, double-entry ledger.
Status: BetaPaper trading - 05 · Measured, then stored
Positions are marked to market every bar, forecasts are scored after their horizon, and strategies are compared with a no-trade baseline. Results are labelled as simulated.
Status: BetaStrategy backtesting
Safety architecture
Boundaries the system enforces.
Each limit is a property of the code or the database: a route that does not exist, an engine strategies cannot skip, a policy that keeps workspaces apart. Data comes in. Nothing goes out to an exchange.
Binance public market data
Public candles in, read only
In · data onlyExchange order endpoints
No adapter can send an order to a real exchange
No real order routeYour funds and exchange keys
No keys accepted today; funds never held
No custody
Paper only.
The only execution mode is paper. Asking for any other executor raises an error.
Simulated portfolio · USDT. Nothing runs until you start it.
Paper broker
Fees and slippage, next-bar fills
Ledger
Append-only, double-entry
Its rows are invisible to yours, and yours to it. The database enforces it, not the page.