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.

Reviewed by Diego Torres, Offer Owner at ProtofireLast reviewed: November 2026
On this page
Work shipped for 60+ networks and 95+ protocols, including
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.
Client channel
Staking, lending, credit and cards
Reports
Custody and wallets
Order handling or venue
Register of positions
Records store
Compliance checks
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.
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.
- 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. - 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. - 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. - 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.
FAQ
What is crypto exchange infrastructure for a CASP?
Who can build the position register and order records for a MiCA CASP?
How does a CASP show that wallets match client positions?
Can a CASP pay interest on stablecoin balances?
How does a CASP list Protofire in its DORA register?
Who is liable when a custody vendor loses client assets?
Does a CASP need a payment license to hold e-money tokens for clients?
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.








