- automated tests on the trading platform
- 2,237
- Counted from the platform's code by the test runner itself, not by hand.
- As of 19 October 2026
- recovery drills passed on the Bybit demo
- 3
- A drill counts only when the exchange's own position list agrees.
- As of 4 October 2026
- daily rebalances checked against Bybit's wallet
- 17
- One row per day: the wallet balance against the ledger's cash.
- As of 19 October 2026
- largest daily gap between the Bybit wallet and the ledger
- 0.00 USDT
- Checked for every day of the demo run.
- As of 19 October 2026
Strict by default
A warning fails the suite. The platform’s code is type-checked in strict mode. Its layering is a set of contracts checked on every change: the core imports nothing, strategies import only the core and the engine library, research never touches the engine or the API, and nothing below the API imports it. Timestamps without a time zone are rejected by the linter.
- Lint
ruff check - Formatting
ruff format --check - Strict typing
mypy - Layering contracts
lint-imports - The full test suite
pytestWarnings count as failures. - The dashboard Types, lint, unit tests, a production build, and browser tests at phone and desktop widths.
FIG. 1 The checks every change to the platform passes, in the order they run.
A real database, the real migrations
Tests that need Postgres build their database with the same migrations production runs, never with a shortcut that creates the tables directly. Without a database configured, the tests start a throwaway one of their own. CI runs on the same database version and processor architecture as production.
The golden backtest
One backtest is pinned exactly: its trades, fees and results. Its subject is a fixture strategy with no claimed edge, so its numbers show that the machinery works, not that an opportunity exists. If a change moves those numbers, either the change is wrong or the move goes in its own commit with the reason, so a regression can always be traced.
Other tests are generated: property tests throw many random histories of fills at the code that folds them into positions, and a checkpointed book must equal the same book replayed from the start.
Every bug fix ships its test
A fix is not finished until the test that would have caught the bug is in the suite beside it. The failure catalogue on the Safety sheet follows the same rule: a real incident adds a row and a regression test.
Recovery, rehearsed on a real exchange
On the Bybit demo account, failures were staged on purpose: the engine killed without a chance to clean up, its network cut, and the prop-firm guard tripped for real. A drill counts as passed only when the exchange’s own record agrees with the engine: positions reconciled with no mismatch, and the account where the engine says it is. The network-cut drill failed at first and found background loops that died without a word; the firm-guard drill also failed before it passed. Each was run again until the exchange agreed.
Every day of the demo run is also audited against the exchange: Bybit’s wallet balance against the ledger’s cash, funding on every held leg, and no fill without an order. The figures above come from that audit.