Skip to content
All projects

MiFID II reporting and a transaction data warehouse for a brokerage house

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
Transaction reports and data for best execution assessment are prepared from several systems, and fixing reports rejected by the repository takes up a lot of the operations team's time.
Approach
We build a transaction data warehouse with validation rules that follow the reporting requirements and check each report before it is sent.
Goal
Share of records meeting data quality rules: ≥ 98% in critical tables; Time to prepare a regulatory or management report: cut from days to hours.

Client context

Financial firms work under pressure on decision time: the customer expects an answer in minutes, while the regulator requires a full trail of how that decision was made. The client is a brokerage house serving retail and institutional clients on domestic and foreign markets.

Challenge

Transaction reports and data for best execution assessment are prepared from several systems, and fixing reports rejected by the repository takes up a lot of the operations team's time.

Requirements and constraints

  • MiFID II / MiFIR require transaction reporting, communication record keeping, suitability assessment, and best execution. Data must be complete, consistent over time, and reproducible on request of the regulator. (source)
  • GDPR, i.e. Regulation (EU) 2016/679, requires data minimization, a legal basis for processing, processing agreements, and, for high-risk processing, an impact assessment (DPIA). In practice it rules out copying production data into test environments without anonymization or pseudonymization. (source)
  • DORA, i.e. Regulation (EU) 2022/2554, enforces ICT risk management, a register of contracts with ICT providers, classification and reporting of major incidents, and regular testing of operational resilience. For the project this means that every new component must have an owner, a dependency map, and a resilience test scenario, and the provider (including us) is entered in the register of information on contractual arrangements. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, and every element delivered with documentation that the client's team can take over.

Approach and architecture

We start with a few key indicators that are disputed today, and design the data model backward from them. We run the migration from the existing warehouse in parallel: for a transition period both systems calculate the same figures, and automatic reconciliation comparisons show discrepancies before the board sees them.

We build a transaction data warehouse with validation rules that follow the reporting requirements and check each report before it is sent. Rejections return to a single view with the cause and an owner. Historical data can be reproduced for any day on request of the regulator.

Key elements of the solution:

  • A model of transactions, instruments, and clients with change history
  • Pre-submission validation of reports
  • A rejection queue with the cause
  • Best execution and execution quality reports

Team and roles

RoleCountResponsibility
Solution architect1target architecture, ADR decisions, technical reviews
Data engineer3pipelines, data model, data quality tests
BI analyst1dashboards, indicator definitions, user training
Business analyst1requirements, processes, acceptance criteria
Test analyst (ISTQB)1designing and running test cases, reporting defects
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Inventory of sources and indicators1–4indicator dictionary, source map
2. Architecture and data model5–9layered model, standards
3. Building pipelines and quality tests10–17pipelines, tests, catalog
4. Reconciliation and parallel running18–22reconciliation reports
5. Rollout and training23–24dashboards, training, handover

Technology stack

PostgreSQL, dbt, Airflow, Great Expectations, Metabase or Power BI.

Risks and how we mitigate them

RiskHow we mitigate it
Errors in data migrationdata profiling, trial migrations with reconciliation, quality criteria before cutover
Changes or clarifications to regulations during the projectmonitoring of implementing acts, a modular rules design, a buffer in the schedule
Comments from an auditor or regulator after deploymentcompliance function involved from the analysis phase, evidence collected along the way, a review before acceptance

Measurable goals and KPIs

The values below are targets that we set with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Share of records meeting data quality rules≥ 98% in critical tablesdata quality tests
Time to prepare a regulatory or management reportcut from days to hoursmeasurement before and after
Reconciliation discrepancies between the old and new system0 unexplained discrepancies before cutoverreconciliation report

Lessons learned and good practices

Validation before submission is cheaper than handling rejections. Reproducing data for any day requires change history designed in from the start. Data quality tests must block publication, otherwise nobody reads them.

Why B2B.net

We combine two models: we provide individual specialists and whole teams (time and materials, team leasing), and when a client prefers to hand over responsibility for the result, we work at a fixed price for a defined scope. We have access to a large network of engineers in six cities, SAP Center of Expertise competencies, and experience with ISO 27001, DORA, and NIS2 requirements. If someone leaves the team, a replacement is in place within 5 business days.

Acceptance criteria

Every phase ends with a formal acceptance against criteria agreed at the start. In this deployment, acceptance covers: indicator dictionary, source map; layered model, standards; pipelines, tests, catalog; reconciliation reports; dashboards, training, handover. Final acceptance requires a KPI measurement report against the starting point, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with an estimate of the cost and risk of each.

Next step

If you recognize these problems in your organization, let's start with a short diagnosis: one workshop with your team and written recommendations. Write to: office@b2bnetwork.pl.

What would this look like for you?

Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.

Let's talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: Finance