repowisenautechsystems/nautilus_trader

Code health of nautechsystems/nautilus_trader

Repowise scores nautechsystems/nautilus_trader at 5.4 out of 10 for code health, which reads as needs work, alongside maintainability 6.1 and static performance 9.9 on the same scale. There are 21,903 open findings across the three pillars, and the lowest-scoring file is mod.rs at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

1,331 critical, 3,616 high, 4,624 medium, 11,403 low.

Hotspots

766 files are flagged as hotspots. The top 5:

  • crates/data/tests/engine.rs: 48 commits in the last 90 days from 5 contributors with 10 recent bug fixes
  • crates/execution/tests/exec_engine.rs: 47 commits in the last 90 days from 4 contributors with 13 recent bug fixes
  • crates/execution/tests/matching_engine.rs: 46 commits in the last 90 days from 6 contributors with 24 recent bug fixes
  • crates/portfolio/tests/portfolio.rs: 41 commits in the last 90 days from 5 contributors with 14 recent bug fixes
  • crates/execution/src/matching_engine/engine.rs: 57 commits in the last 90 days from 7 contributors with 27 recent bug fixes

Lowest-scoring files

  • crates/data/src/engine/mod.rs: 1.0 out of 10 with 11 bug fixes in the last 180 days
  • nautilus_trader/persistence/catalog/parquet.py: 1.0 out of 10 with 10 bug fixes in the last 180 days
  • crates/backtest/src/exchange.rs: 1.0 out of 10 with 7 bug fixes in the last 180 days
  • crates/model/src/defi/pool_analysis/profiler.rs: 1.0 out of 10 with 5 bug fixes in the last 180 days
  • crates/risk/src/engine/mod.rs: 1.0 out of 10 with 3 bug fixes in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 20 had a bug fix in the last 180 days. Across all 5,357 scored files, 59.6% had a bug fix in that window.

Dead code and refactoring

Repowise found 1,159 unused exports. 653 refactoring targets across 653 files would raise the score.

More on nautilus_trader: summary and FAQ, codebase overview, architecture.