Skip to content

Crypto Exchange Infrastructure for CASPs Authorized or Notified Under MiCA

Protofire builds crypto exchange infrastructure for MiCA CASPs. It covers the register of client positions, a link from each order to its fills, and wallets that match the register at a cut-off. In 2021 we built the DEX core and subgraph for Swarm Markets, a BaFin-licensed DEX at launch.

Diego Torres

Reviewed by Diego Torres, Offer Owner at ProtofireLast reviewed: November 2026

On this page
  1. Overview
  2. Why it matters
  3. What you get
  4. Why Protofire
  5. How the build goes
  6. How work starts
  7. Not the right fit
  8. Blueprints
  9. Related guides and services
  10. FAQ

Work shipped for 60+ networks and 95+ protocols, including

  • Chainlink
  • Ethereum
  • Solana
  • Safe
  • Ripple
  • Aave

Why a CASP now answers for its own records

A firm that holds its MiCA authorization or notification now answers for its order, fill and position records itself. The national transitional periods ended on 1 July 2026 at the latest (Article 143(3)). On 23 June 2026, ESMA said that unauthorized firms must immediately stop onboarding new EU clients. Crypto exchange infrastructure is the engineering behind those records, and Protofire builds it.

For example, a request comes in for one client's order from March, with its fill, its settlement and the balance after. The matching engine logged the order, the venue exported the fill, and the custody platform shows the wallet. Since then the engine has been replayed, so the order numbers on the fills no longer match the ones the client saw. Who joins the three records?

Parties and layers behind one client balance at a CASP

Each layer writes records, and the register of positions has to agree with them.

The CASP

Client channel

A client places orders and gives consent in an app, a broker front end or an API.

Staking, lending, credit and cards

Each product has its own client consent and its own ledger entries.

Reports

The CASP issues client statements and sends major incident reports under DORA and market abuse notices to the competent authority.
Vendors the CASP appoints

Custody and wallets

The firm uses a custody platform, a custodian or a key policy, and client and firm addresses are kept apart on the ledger.

Order handling or venue

Orders are routed under the order execution policy, or a matching engine from an exchange vendor or the firm's own team matches them.
Protofire builds

Register of positions

The register keeps one position per client and asset, and a recorded transaction moves each position.

Records store

The store holds orders, fills, corrections and Travel Rule messages, each written once and kept for five years.

Compliance checks

Each KYC, screening and Travel Rule decision is recorded against the transfer it released.

A CASP's records break between register, chain and vendors

A CASP's records break where the register of positions, the chain and the firm's vendors meet.When the register trails the chain and has no state for items in flight, it shows a balance the firm cannot prove. MiCA asks for a register opened in the name of each client, and for each movement to be evidenced by a registered transaction (Article 75(2)).

An order log that loses its fills after a matching-engine replay has lost a link that MiCA asks for. A platform operator has to keep the link between an order and the executed transactions that stem from it (Article 76(15)). Since 30 December 2024, originator and beneficiary data has to accompany crypto-asset transfers (Regulation (EU) 2023/1113). A retry that drops a Travel Rule message sends a transfer without that data.

A change of vendor causes the third break in a CASP's records. For example, a custody delegate changes, but neither the client notice under Article 75(9) nor the DORA register of information names the new delegate. The CASP remains "fully responsible" for outsourced functions (Article 73(1)). The European Commission reads a rented staking operation the same way.

Losses of crypto-assets stemming from the provision of staking services provided to the client, and from the underlying staking activity itself, should be deemed as attributable to the CASP.
European Commission, Answer published in ESMA Q&A 2067, EU executive body · Treatment of staking services in MiCA, 20 June 2024

What crypto exchange infrastructure gives a CASP

A CASP with this infrastructure answers a supervisor's data request from its own records.

Client positions traced to instructions, fills and chain events

Each position traces to a client instruction, a fill or a chain event. Wallets match the register at the cut-off that the firm's policy sets. Protofire builds the ledger with one position per client and asset. The ledger is fed by fills, instructions and custody events from the platform you chose, such as Fireblocks. A firm that already runs a client ledger keeps that ledger, and we propose to add the links it lacks. Where a ledger has to move, we propose that the old and new ledgers run side by side until the firm signs off.

Order and execution records linked by order ID

A fill keeps its order's ID through routing, partial fills, cancels and an engine replay. Protofire builds the order and execution records in the data format that platform operators use, with execution data per order. We connect those records to the firm's matching engine or venue. The MiCA compliance stack blueprint shows how these records fit with onboarding and screening.

Staking, lending and cards in the same register

A product the firm is cleared to offer writes into the same register as the rest of the book. Protofire builds the crypto legs: lending rails, per-client staking and penalty records, and card spend from a smart account. Each of these products has its own consent capture. A validator we operate runs under a written scope. Its signing key is held by a signer the firm controls or by a third party the firm appoints. Protofire holds none of these keys.

One recorded compliance outcome for each transfer

Each transfer job records its KYC, screening and Travel Rule result, and a retry keeps the Travel Rule message bound to the job. Protofire joins the three results into one recorded outcome. The outcome includes KYT holds before custody signs where the firm runs Chainalysis, and ownership checks on self-hosted addresses. The firm's rules and its MLRO decide on overrides and suspicious transaction reports.

A vendor list that matches what is deployed

When a custody delegate or a screening vendor changes, the list has to show the change. Protofire builds a list of each vendor in the chain, the function that vendor supports and who controls the means of access. The list is updated when an integration changes. It is input to the firm's outsourcing policy under Article 73 and to its DORA register of information. Our DORA guide covers the provider types.

Our record: Swarm Markets, the Gnosis Safe web app and KyberDAO staking

Three parts of Protofire's record apply to a CASP: a KYC-gated venue, approvals in front of a wallet and rewards recorded per staker.

In 2021 Protofire built the DEX core (a Balancer fork) and subgraph for Swarm Markets and contributed to dOTC. Swarm Markets was a BaFin-licensed DEX at launch where only KYC-verified wallets trade. Swarm held the license and ran KYC and permissioning. So Protofire's Swarm Markets work was engineering for an onchain venue under another firm's license.

From 2019 to 2021 Protofire engineers helped build the Gnosis Safe web app, the interface of the Safe multisig wallet.

In 2020 Protofire built the pool-master proxy contract for KyberDAO staking. Our own public repository says members delegate voting power to the contract and claim rewards from it directly. The repository also says the operator has no control over the members' KNC or ETH rewards.

How the build goes, starting from one client order

A build starts from one client order and follows that order to the register of positions.

  1. Step 1

    Four things you bring

    You bring the services on your authorization or notification, your custody platform and your venue or engine. Under NDA, you also bring a sample of order and position records with client identifiers removed.
  2. Step 2

    One order traced on the discovery call

    On the discovery call, Protofire traces a single order through receipt, routing or matching, fill, settlement and the move of the register. Our first written proposal lists which records we build, which records we connect and what remains with the firm.
  3. Step 3

    The register and the order file first

    Wallet matching, compliance results and product records all read the register and the order file, so those two come first. A chain movement reaches the register after it clears the finality threshold that the firm's policy sets. A reorganization past that threshold reverses entries through new ones.
  4. Step 4

    The firm keeps its rules, decisions and key policy

    The firm keeps the operating rules of its trading platform, its order execution policy and each compliance decision. Protofire's software prepares each custody instruction under the firm's credentials. The firm's custodian or signers sign under the firm's key policy.

How work with Protofire starts

Procurement can read the shared terms before the first call.

Proposal
In writing, one business day after the discovery call: findings, a plan in phases and the first step we recommend.
Price
Fixed per phase when you commission it, against written acceptance criteria. Overruns inside them are ours to absorb, invoices follow delivered milestones, and you can stop at any phase boundary. Anything we operate after launch is priced in the proposal as its own recurring line, with the notice to end it.
Ownership
Code we write for you, contracts, the keys and credentials this work creates and the accounts your infrastructure runs in are yours by contract, within the license of any third-party software involved. Keys that a custody platform or a staking provider holds under its own key model stay with it under your contract; every other custody key stays with you or the custodian you appoint. Where the scope places something on servers we rent, it says what moves to you and when. An NDA is available from your first message, and we sign a data processing agreement (DPA) together with it.
After launch
Delivery closes with a hypercare window and a defect warranty, with their terms written into the proposal. A service we operate continues under its written scope until that scope ends.
Access
Read-only by default. A role that can start requests only if your written scope names one; never a signer, approver, administrator, key holder or recovery role on your contracts, wallets or custody platform. Services we build call each platform on credentials your staff issue and keep in your vault. Anything that approves or moves funds runs in your environment, and a scope under which we operate a service lists every write call it makes. Where the scope has us operate nodes, validators, monitors, explorers or indexers, it names the role and any key we hold on those servers, and in your own cloud account you can remove it.
Licenses
Protofire is an engineering firm and holds no financial or crypto-asset license; licensed activity stays with you and your providers.

How we work shows a worked proposal.

Where this build does not fit

  • You need a matching engine or a ready-made exchange product. A white-label exchange vendor supplies that product. Protofire's venue work is onchain, and our DEX development page describes it.
  • You need a licensed firm or a legal opinion. Protofire holds no license, holds no client funds or keys and gives no legal opinion. The application and the dialogue with the competent authority belong with counsel. Our MiCA license routes guide helps a firm choose its route.
  • You receive and transmit orders on a third party's rail. Without client balances or custody, there is little to build beyond records.
  • The pitch is a promised return. A product built on a promised return is outside what Protofire builds here.

The build fits an authorized or notified firm that has client balances and has already picked its custody platform and venue. That firm's register, order log and wallets have to agree at one cut-off.

Blueprints for CASPs

Open source we’ve shipped

The Protofire repositories behind this page.

Part of 190+ open-source repositories from Protofire

FAQ

What is crypto exchange infrastructure for a CASP?
Crypto exchange infrastructure for a CASP is the set of systems behind its authorized services. It covers the register of client positions and the order and execution records. It also covers the wallets matched to those positions and the reports the CASP's supervisor can ask for. A CASP is a crypto-asset service provider, authorized or notified under MiCA. Protofire builds and connects those systems.
Who can build the position register and order records for a MiCA CASP?
Protofire builds them. We connect these records to the custody platform, venue and compliance tools the CASP has chosen, such as Fireblocks for custody and Chainalysis for screening. A matching engine comes from an exchange vendor or the firm's own team.
How does a CASP show that wallets match client positions?
A CASP compares client wallet and custodian holdings, per asset and chain, with the register total at one stated cut-off, and keeps each result. MiCA sets no frequency, so the firm's own policy decides how often the match runs. Each run names its cut-off in UTC and the source of each balance. Items in flight, such as unconfirmed withdrawals, appear as separate lines. MiCA asks for separation from the firm's own holdings on the ledger (Article 75(7)) and for a register per client (Article 75(2)). Neither article prescribes a wallet per client. So omnibus wallets with a per-client register are a design choice that counsel clears.
Can a CASP pay interest on stablecoin balances?
No, not on e-money tokens or asset-referenced tokens. MiCA bars interest on e-money tokens (Article 50) and on asset-referenced tokens (Article 40). Both articles count a benefit tied to how long the token is held as interest. A lending program is a separate product, and ESMA's Q&A 2883 asks for prior express and specific consent for it. That Q&A does not address Article 50, so counsel decides whether a lending program on e-money tokens avoids the Article 50 ban.
How does a CASP list Protofire in its DORA register?
A CASP lists a firm that builds its systems as an ICT development provider, service type S02, in its register of information. If that firm also operates the systems, the register adds S14, ICT operation management, from the Annex III list in Regulation 2024/2956. The CASP's risk and legal staff decide the entries.
Who is liable when a custody vendor loses client assets?
The CASP remains liable to its clients for a loss from an incident attributable to the CASP (Article 75(8)). That liability goes up to the crypto-asset's market value at the time it was lost. Outsourcing does not move that responsibility (Article 73). Whether a vendor's failure counts as attributable to the CASP turns on the facts and the contract. The firm's counsel makes that call.
Does a CASP need a payment license to hold e-money tokens for clients?
In defined cases, the EBA advises national authorities that a CASP does need one. An EBA opinion treats custody as a payment service where a custodial wallet can both send e-money tokens to third parties and receive them (EBA/Op/2025/08). The same opinion treats transfers of those tokens as a payment service too. The EBA advised requiring PSD2 authorization after a transition period ending 2 March 2026 (EBA opinion, February 2026). Under Article 70(4), a CASP may use its own authorization or a third party's. The EBA's opinions are advice to supervisors, so the firm reads its own authority's position. Once that position is settled, Protofire builds the records for such balances.

Get a proposal

Tell us what you are building. An engineer reads it, we have a short call, and the written proposal follows within one business day.

Luis MedeirosField CTO, reads every request · LinkedIn

A demo or repository link also works.