Skip to content
CAI
Software that uses CAICheck a score

BenjaminBest/StockTradingAnalysisWebsite

30.1

Weak · 8 November 2026

28.9k

lines of production code

JavaScript

with C#

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added domain events for aggregate saving and event replay completion

The EventSourcing module introduces two new domain events: AggregateSavedEvent, which signals when an aggregate has been saved, and ReplayFinishedEvent, which indicates that the event store initialization has completed its replay process. These events allow the system to react to specific lifecycle stages within the event sourcing pipeline.

StockTradingAnalysis.EventSourcing · medium confidence

Initial release of the Stock Trading Analysis application

The application is now available, providing a platform for managing stock transactions and maintaining a trading diary. Users can track open positions, view security details with transaction history and latest quotes, and utilize a dashboard with key performance indicators. The system supports CQRS and Event Sourcing patterns, integrates with Hangfire for scheduled jobs, and includes a test data generation feature for administration.

(repo-wide) · high confidence

Introduces CQRS command and query dispatchers with performance measurement

The application now uses a CommandDispatcher and QueryDispatcher to route commands and queries to their respective handlers via dependency injection. This change introduces a structured approach to handling commands and queries, improving the separation of concerns. Additionally, the system now tracks performance metrics for these operations, allowing for better monitoring and optimization of the application's behavior.

StockTradingAnalysisWebsite · high confidence

New domain model for calculations and transactions

The domain layer now includes a new event-sourcing architecture for tracking calculations and transactions. This introduces aggregate roots for managing calculation states (including properties like name, WKN, multiplier, strike price, and order costs) and transaction states (covering buying, selling, dividends, and splits). The changes ensure that all relevant financial data, such as position size and order costs, are correctly captured and persisted through domain events.

StockTradingAnalysis.Domain · high confidence

Behavioural changes

Added DomainEvent base class for event serialization

A new DomainEvent class has been introduced in the StockTradingAnalysis.Interfaces project to serve as a base for domain events. This class includes properties for timestamp, aggregate ID and type, event ID, name, and version, and is designed to support JSON serialization via a protected parameterless constructor. This change ensures that domain events are correctly serialized, addressing previous issues with event data handling.

StockTradingAnalysis.Interfaces · medium confidence

Fixes

Updated SignalR client library

The SignalR client library (signalr.js) in the wwwroot directory has been updated to a new version, introducing a complete rewrite of the browser build. This update includes a newer implementation of the HubConnection, DefaultHttpClient, and related protocol classes, which may alter how real-time connections are established and maintained in the application.

StockTradingAnalysisWebsite/StockTradingAnalysis.Web/wwwroot · high confidence

Dependencies

Migrated to ASP.NET Core and modernized project structure

The project has been migrated from a legacy .NET Framework structure to ASP.NET Core, updating all .csproj files to use the modern SDK-style format with netcoreapp2.2 and netstandard2.0 target frameworks. This includes adding dependencies for Hangfire, Application Insights, ReactJS.NET, and AutoMapper, while consolidating test projects with MSTest and Moq.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 30 → 30 (-0.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 50 → 50 (+0.0)
  • Architecture 78 → 76 (-1.3)
  • Maturity 49 → 46 (-3.6)
  • Readiness 28 → 28 (+0.0)
  • Security 35 → 34 (-0.8)
  • Domain Modelling 64 → 63 (-1.1)
  • Accessibility 21 → 22 (+0.4)
  • Performance 100 → 100 (+0.0)

Resolved (24)

  • Coverage not measured — no coverage collector is wired up
  • Duplicated block (8 lines × 2) (StockTradingAnalysisWebsite/StockTradingAnalysis.Services.External/Providers/QuotationDownloadBoerseDuesseldorf.cs)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Web/StockTradingAnalysis.Web.csproj)
  • Inconsistent spelling of 'Commit' and 'Calculate'. The method MarkChangesAsCommited uses a non-standard spelling ('Commited' instead of 'Committed'). Additionally, the test method TransactionBookShouldCalulate... uses 'Calulate' (missing 'c') instead of the standard 'Calculate', which is used correctly in other symbols like CalculateSumDividends and CalculatePotentialEarnings.
  • Inconsistent spelling of 'Minimum'. TransactionMinumumOrderDateQueryHandler misspells 'Minimum' as 'Minumum'. Other query handlers like TransactionYearsQueryHandler follow the correct spelling.
  • Inconsistent spelling of 'Statistics' and inconsistent abbreviation usage. StaticsticsBasicDataChangedEventHandler misspells 'Statistics' as 'Staticstics'. Furthermore, CalculationInitialSlChangedEventHandler and CalculationInitialTpChangedEventHandler use abbreviations 'Sl' (Stop Loss) and 'Tp' (Take Profit) in the event handler name, whereas the corresponding properties in the domain model use full names (TakeProfit, StopLoss is implied by context but Sl is ambiguous compared to Tp). While abbreviations are common, the misspelling is a clear error, and mixing abbreviated event handler names with full property names can cause confusion.
  • Medium: security finding (details withheld)
  • Split StockTradingAnalysis.Web
  • XML-doc coverage: StockTradingAnalysis.CQRS (StockTradingAnalysisWebsite/StockTradingAnalysis.CQRS/StockTradingAnalysis.CQRS.csproj)
  • XML-doc coverage: StockTradingAnalysis.Core (StockTradingAnalysisWebsite/StockTradingAnalysis.Core/StockTradingAnalysis.Core.csproj)
  • XML-doc coverage: StockTradingAnalysis.Data.MSSQL (StockTradingAnalysisWebsite/StockTradingAnalysis.Data.MSSQL/StockTradingAnalysis.Data.MSSQL.csproj)
  • XML-doc coverage: StockTradingAnalysis.Domain.CQRS.Cmd (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.CQRS.Cmd/StockTradingAnalysis.Domain.CQRS.Cmd.csproj)
  • XML-doc coverage: StockTradingAnalysis.Domain.CQRS.Query (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.CQRS.Query/StockTradingAnalysis.Domain.CQRS.Query.csproj)
  • XML-doc coverage: StockTradingAnalysis.Domain.Events (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.Events/StockTradingAnalysis.Domain.Events.csproj)
  • XML-doc coverage: StockTradingAnalysis.Domain.Process (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.Process/StockTradingAnalysis.Domain.Process.csproj)
  • XML-doc coverage: StockTradingAnalysis.EventSourcing (StockTradingAnalysisWebsite/StockTradingAnalysis.EventSourcing/StockTradingAnalysis.EventSourcing.csproj)
  • XML-doc coverage: StockTradingAnalysis.Interfaces (StockTradingAnalysisWebsite/StockTradingAnalysis.Interfaces/StockTradingAnalysis.Interfaces.csproj)
  • XML-doc coverage: StockTradingAnalysis.Services (StockTradingAnalysisWebsite/StockTradingAnalysis.Services/StockTradingAnalysis.Services.csproj)
  • XML-doc coverage: StockTradingAnalysis.Services.External (StockTradingAnalysisWebsite/StockTradingAnalysis.Services.External/StockTradingAnalysis.Services.External.csproj)
  • XML-doc coverage: StockTradingAnalysis.Web (StockTradingAnalysisWebsite/StockTradingAnalysis.Web/StockTradingAnalysis.Web.csproj)
  • …and 4 more

New (57)

  • Documentation: no build, run or usage example (README.md)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.CQRS.Tests/StockTradingAnalysis.CQRS.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Core.Tests/StockTradingAnalysis.Core.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Data.MSSQL.Tests/StockTradingAnalysis.Data.MSSQL.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.CQRS.Cmd.Tests/StockTradingAnalysis.Domain.CQRS.Cmd.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.CQRS.Query.Tests/StockTradingAnalysis.Domain.CQRS.Query.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.Events.Tests/StockTradingAnalysis.Domain.Events.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.EventSourcing.Tests/StockTradingAnalysis.EventSourcing.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Services.Tests/StockTradingAnalysis.Services.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Web.Tests/StockTradingAnalysis.Web.Tests.csproj)
  • End-of-life runtime: .NET netcoreapp2.2 (StockTradingAnalysisWebsite/StockTradingAnalysis.Web/StockTradingAnalysis.Web.csproj)
  • Projects may be oversized for their cohesion (StockTradingAnalysisWebsite/StockTradingAnalysis.Web/StockTradingAnalysis.Web.csproj)
  • Split StockTradingAnalysis.Web (StockTradingAnalysisWebsite/StockTradingAnalysis.Web/StockTradingAnalysis.Web.csproj)
  • StockTradingAnalysis.Domain.Events: 7 contract type(s) expose producer-owned ids/enums
  • StockTradingAnalysis.EventSourcing: 2 contract type(s) expose producer-owned ids/enums
  • StockTradingAnalysis.Interfaces: 3 contract type(s) expose producer-owned ids/enums
  • doc comments repeat the names (StockTradingAnalysisWebsite/StockTradingAnalysis.CQRS/CommandDispatcher/CommandDispatcher.cs)
  • doc comments repeat the names (StockTradingAnalysisWebsite/StockTradingAnalysis.Core/Common/BootManager.cs)
  • doc comments repeat the names (StockTradingAnalysisWebsite/StockTradingAnalysis.Data.MSSQL/DatastoreBase.cs)
  • doc comments repeat the names (StockTradingAnalysisWebsite/StockTradingAnalysis.Domain.CQRS.Cmd/CommandHandler/CalculationAddCommandHandler.cs)
  • …and 37 more

API surface

  • Unchanged — 2 HTTP endpoints

Architecture

  • Containers 0 added · 0 removed · contexts 0 added · 0 removed · edges 2 added · 2 removed

Added dependency edges (2)

  • StockTradingAnalysis.Domain → StockTradingAnalysis.Interfaces
  • StockTradingAnalysis.EventSourcing → StockTradingAnalysis.Interfaces

Removed dependency edges (was a dependency, now gone) (2)

  • StockTradingAnalysis.Domain → StockTradingAnalysis.Interfaces (coupling)
  • StockTradingAnalysis.EventSourcing → StockTradingAnalysis.Interfaces (coupling)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

BenjaminBest/StockTradingAnalysisWebsite was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 0ebdc9f9a9890a4a50c44e096adbde6ed5167660 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.