MiCA Transaction Reporting for CASPs: Building the ESMA Reporting Pipeline

Crypto trading systems were built to match orders fast, not to hand a supervisor a complete, defensible record months later. MiCA now asks for the second thing, and the gap between the two is where the work is.

Most of the talk about MiCA reporting fixes on the wrong problem. Vendors sell you formatting: schemas, XML, submission connectors. That is real, but it is the last ten per cent. The hard part is that the venue you are reporting on was rarely designed to capture, at the moment of the trade, everything the regulation now expects you to keep and produce. If the field is not written at source, no reporting pipeline can invent it later. This is a data-capture problem wearing a reporting badge.

What MiCA actually asks a CASP to keep and report

There is no single MiCA “transaction report” in the MiFIR sense of a T+1 file to a competent authority. Instead a crypto-asset service provider carries three distinct obligations, and conflating them is the first mistake I see teams make.

Free · 4 minutes

When two of your systems disagree, do you know which one to believe?

Fourteen questions on ownership, lineage, and quality — the difference between a number on a dashboard and a number you could defend. Banded finding on screen, full sheet by email.

  1. Order book records for trading platforms. Under Article 76, a CASP operating a trading platform must keep records of every order in crypto-assets advertised through its systems. The content and format are set by Commission Delegated Regulation (EU) 2025/416. These records are held and made available to the competent authority on request, not pushed daily.
  2. Records of all services, activities, orders and transactions. Under Article 68(10), every CASP keeps records across its whole book of business. The detail is set by Commission Delegated Regulation (EU) 2025/1140, and the baseline retention is five years, extendable to seven where the competent authority asks before expiry.
  3. Suspicious order and transaction reports. Under Article 92, anyone professionally arranging or executing transactions must detect and report reasonable suspicions of market abuse to the competent authority without delay. The systems, controls and reporting template are specified in Commission Delegated Regulation (EU) 2025/885.

So “the ESMA reporting pipeline” is really three outputs off one substrate: a queryable order book store, a five-year retained transaction ledger, and a live surveillance path that emits reports on suspicion. Build them off separate copies of the data and you will spend the next two years reconciling them. Build them off one clean capture layer and the rest is plumbing.

The hard part is capture, not format

Take the fields the delegated regulations expect: order and transaction identifiers, the trading pair, buy or sell, quantity, price, currency, the client behind the order, precise execution timestamps, and, where relevant, the on-chain reference. A matching engine written for throughput will happily give you price and quantity. It will often be vague about which client identifier maps to a self-custody withdrawal, about a synchronised timestamp accurate enough to reconstruct sequence, and about linking an off-chain execution to its on-chain settlement.

Those are exactly the fields a supervisor cares about, because they are the ones that let anyone reconstruct what happened. Retrofitting them onto a live venue means instrumenting the order gateway and the settlement path to emit the field at the instant it exists, not deriving it from a nightly job that guesses. Clock synchronisation stops being a nicety: if your timestamps cannot be trusted to order events, your order book record cannot be trusted at all. This is the same capture-at-source discipline that decides whether a firm can meet its DAC8 reporting obligations without a scramble — the reporting deadline is never the constraint; the data you failed to capture is.

The pipeline, end to end

A pipeline that holds up under inspection has four stages, and the order matters.

  • Capture the required fields at the point of order and execution, from the systems that own the truth, with a synchronised clock and a stable record identifier.
  • Validate each record against a schema on arrival: required fields present, values sane, timestamps parseable, references resolvable. Reject to a remediation queue; never drop silently.
  • Retain the validated record in an immutable, queryable store for the full retention period, addressable by the identifiers a competent authority will quote.
  • Surface it: order book extracts on request, transaction history on demand, and suspicious activity to the surveillance path in near real time.

Validation is where most of the assurance lives, and it is cheap to build. A record that cannot be completed should be caught while you can still fix the capture, not when a supervisor asks for six months of it. A minimal builder makes the discipline concrete.

# transaction_report.py
# Builds a MiCA order/transaction record and validates it before the
# record is retained or surfaced to a competent authority. Formatting
# is the easy part; the checks below exist because the source venue
# often does not carry every field. British spelling throughout.

from datetime import datetime

REQUIRED_FIELDS = (
    "record_id",
    "casp_lei",
    "trading_pair",
    "side",            # BUY or SELL
    "quantity",
    "price",
    "currency",
    "order_id",
    "client_id",
    "executed_at",     # ISO 8601 UTC, e.g. 2026-10-14T16:42:00.123456Z
    "venue_tx_hash",   # on-chain reference where applicable
)

ALLOWED_SIDES = {"BUY", "SELL"}


def validate(record):
    """Return a list of problems. Empty list means the record is complete."""
    problems = []

    for field in REQUIRED_FIELDS:
        if record.get(field) in (None, ""):
            problems.append("missing: " + field)

    side = record.get("side")
    if side is not None and side not in ALLOWED_SIDES:
        problems.append("invalid side: " + repr(side))

    for numeric in ("quantity", "price"):
        value = record.get(numeric)
        if value is not None and (not isinstance(value, (int, float)) or value <= 0):
            problems.append("non-positive " + numeric + ": " + repr(value))

    stamp = record.get("executed_at")
    if stamp is not None:
        try:
            datetime.fromisoformat(stamp.replace("Z", "+00:00"))
        except ValueError:
            problems.append("unparseable executed_at: " + repr(stamp))

    return problems


def completeness(record):
    """Fraction of required fields actually populated (0.0 to 1.0)."""
    present = sum(1 for f in REQUIRED_FIELDS if record.get(f) not in (None, ""))
    return round(present / len(REQUIRED_FIELDS), 3)


if __name__ == "__main__":
    candidate = {
        "record_id": "R-000123",
        "casp_lei": "5493001KJTIIGC8Y1R12",
        "trading_pair": "BTC/EUR",
        "side": "BUY",
        "quantity": 0.5,
        "price": 58210.00,
        "currency": "EUR",
        "order_id": "O-889231",
        "client_id": "C-4471",
        "executed_at": "2026-10-14T16:42:00.123456Z",
        "venue_tx_hash": "",        # not captured at source: the real problem
    }

    issues = validate(candidate)
    print("completeness:", completeness(candidate))
    print("blocking issues:", issues or "none")
    # A record that fails validation must never be silently dropped.
    # Route it to a remediation queue and fix the capture upstream.

The empty venue_tx_hash in that example is deliberate. It is the field the venue never captured, and it is the one that turns a tidy demo into a two-quarter data project. The completeness score is not decoration: track it per venue and per field over time and it tells you precisely where your capture layer is thin, before a regulator does.

Surveillance and the “without delay” clock

The market abuse path is different in kind. Order book records and transaction history are held and produced on request; a suspicious transaction and order report under Article 92 must go to the competent authority without delay once a reasonable suspicion forms. That means your surveillance engine has to run on the same complete, well-timestamped data, because a report you cannot evidence is worse than no report. Article 92 also reaches beyond the order book to the functioning of the underlying distributed ledger, including consensus behaviour, which is a genuinely new surveillance surface with no MiFID precedent to copy.

Where this sits in the wider MiCA build

Reporting is one output of a properly instrumented venue, not a bolt-on. The same capture and clock discipline underpins the availability and reconstruction duties I set out in the reading of MiCA CASP operational resilience under Article 68, and the same instinct — treat the regulatory output as structured data, designed, versioned and validated — is the one behind reading the white paper as a machine-readable data artefact. Firms that internalise it once stop rebuilding the pipeline for every new obligation.

The reporting format will be handed to you by a delegated regulation. The complete, accurate, well-timestamped record it asks for will not. Build the capture layer first, or you will be reconstructing history you never stored.

Most technology problems are not technology problems. They are control problems.

The systems exist. The investment has been made. The question is whether leadership can understand, direct, evidence, and sustain what those systems produce. Find out where control exists — and where it only appears to.

Full Governance by Sixteen Pillars

Govern your business. Prove your compliance.

A board assurance cockpit for EU-regulated financial firms — tamper-evident, hash-chained proof of governance across DORA, GDPR, NIS2, ISO 27001, the EU AI Act and MiCA. In development.

See what's coming