Building execution context infrastructure for institutional digital asset trading.
Exploring how execution data flows through trading systems.
IIT Bombay.
Paris Onchain. First edition.
Founders, builders and curious minds came together at Le Comptoir Avalon.
Thanks to @conspicuis and @aarbttn for showcasing their projects, and to everyone who made it happen.
This is just the beginning.
Let's put Paris back onchain.
We keep hearing that crypto tax and accounting tooling starts to struggle somewhere in the low hundreds of thousands of transactions.
The number itself is not that interesting.
We want to know what actually breaks.
Is it the database?
A reporting query?
A vendor ingestion limit?
A manual step that was fine at 1,000 rows a day and became impossible at 50,000?
Or something nobody expected?
The pattern we keep hearing is that someone eventually writes a script to get around the problem.
Then the script becomes load-bearing.
No owner. No tests. No documentation.
It works perfectly until the person who wrote it leaves.
If you've taken a trading operation through an order-of-magnitude increase in volume, what was the first thing that genuinely broke?
We came into this thinking cost basis was a tax problem.
So we talked to tax people.
Then we started asking where the data actually comes from.
Almost every conversation walked backwards into operations.
You cannot make a defensible lot selection out of records that were never designed to support one.
By the time the information reaches the tax preparer, the interesting decision has already been made or lost.
Usually months earlier.
Usually by a system nobody thinks of as a tax system.
That changed how we think about the product.
Tax is where the problem becomes visible.
It is not necessarily where the problem happens.
We kept asking people about reconciliation and getting answers that did not fit together.
Eventually we realised we were asking four different questions with one word.
To a fund accountant, it can mean the books agree with the administrator.
To an operations lead, it can mean positions agree with the venue and custodian.
To an auditor, it can mean there is evidence a third party would accept.
To an engineer, it can mean two datasets join without orphans.
All four are called reconciliation.
They fail for different reasons.
They are fixed by different people.
We now try to ask which reconciliation someone means before asking anything else.
Every system in the chain names the same thing differently.
The venue has a trade ID.
The OMS has an order ID and a client order ID.
The custodian has a transfer ID.
The subledger has a journal reference.
The tax engine has a lot ID.
Nothing joins these automatically.
Somebody has to decide that these identifiers refer to the same underlying event, then persist that relationship somewhere durable.
That is what lineage actually is.
Not a fancy graph database.
Just preserving the links between different names for the same thing while those names are still available together.
Most data-quality problems look complicated after the fact.
A surprising number started as one identifier decision nobody made
A position is not really a fact you store.
It is the sum of everything that happened to it.
Most systems store the position anyway and treat the underlying events as history.
That is efficient.
Until someone asks:
"Why is this position 4,281 units?"
Now you are working backwards from a balance, making assumptions at every step.
Store the events and derive the position, and you spend more disk.
Store only the position, and you spend the difference in human hours when someone eventually needs to explain one specific unit.
The interesting question is not whether you can calculate the balance.
It is whether you can explain how you got there.
When people say "trade break", they are describing a symptom, not a cause.
The causes look nothing alike.
Timing. The venue booked it on one side of midnight, you booked it on the other.
Identity. Same trade, two identifiers, no join key.
Economics. Fee, rebate or funding treated differently by two systems.
Completeness. A fill never arrived because a connection dropped and nobody noticed the sequence gap.
State. Something was amended or busted after the fact and only one side heard about it.
Five different problems.
One word.
And usually one person expected to figure out which one it was by Thursday.
Maybe trade-break reporting should start with the cause, not the symptom.
Something we did not expect after a few months of these conversations.
Almost nobody we speak to can describe the whole path a trade takes.
Not because they are junior. Because the job never required it.
The NAV person knows NAV. The broker knows the fill. The auditor knows what evidence needs to look like. The OMS engineer knows everything up to the moment the order leaves the building.
Every one of them is genuinely expert.
The seams between them are where nobody is expert.
And the seams are exactly where the data quietly stops meaning what it used to mean.
We started out trying to find the person who understood the whole pipeline.
We are now fairly convinced that, inside most firms, that person mostly does not exist.
How do you evidence that a lot selection was contemporaneous?
This is the question we most want a proper answer to.
If you use specific identification for tax lots, you generally need to show that the choice was made at the time of the trade rather than optimised afterwards with the benefit of hindsight.
We understand the rule. What we do not understand is the mechanics.
What does the evidence actually look like in practice?
A flag in an OMS.
A file timestamped by a third party.
A policy document plus a deterministic algorithm.
Something else entirely.
If you've defended one of these to an examiner or an auditor, what did you actually hand them?
Does strategy attribution survive to the books?
Something we've been trying to establish for months, and keep getting different answers on.
At a multi-strategy firm, a market-making fill and a directional fill have genuinely different economics. Different holding periods, different intent, arguably different treatment.
By the time both reach the accounting system, they are frequently just trades. Same shape, same fields, indistinguishable.
So the question is simple: does the strategy that generated a trade survive into the books in a queryable form, or does it get dropped somewhere along the way and reconstructed by whoever needs it?
We've heard confident answers in both directions, which makes us think practice varies enormously.
A write-ahead log is a statement about trust
A write-ahead log exists because the database does not trust itself to remember what it was about to do.
You append the intent first, durably, and only then apply it. If the process dies in between, you replay the log and the intent survives.
Post-trade data in crypto often runs the opposite way around.
The trade is applied everywhere immediately. The intent, meaning which strategy, which lot, which parent order, is reconstructed afterwards from whatever happened to survive.
We keep circling the same conclusion.
If you want a durable record of intent, you write it down while the intent still exists.
You do not derive it later from the outcome, because by then the outcome is all you have, and several different intents could have produced it.
We were wrong about who the competitors are.
We used to look at crypto accounting and sub-ledger platforms as competitors. Crypto, Lukka, Bitwave and the rest.
That was a category error.
Those systems are very good at accounting. They start with whatever trade data arrives at their door.
If that data has already been flattened, they do the sensible thing and apply consistent assumptions. There isn't much else they can do.
We sit upstream of the point where that flattening happens.
Which makes us a supplier of better input to those systems, not a replacement for them.
We now think the right relationship is integration rather than displacement.
We spent longer than we should have figuring that out.
We thought the buyer was the fund. The pain aggregates elsewhere.
We were wrong about who to sell to.
When a fund sells, the tax lot it picks decides the gain. Let the administrator assign lots after the fact on a blind default and the gain can come out bigger than it had to be.
That is real cash, every year.
We assumed funds would feel that. Most do not.
One fund sees one instance of it and has nothing to compare against.
Administrators and crypto CPAs see dozens. They have the sample size.
They also feel it as billable hours, which shows up on a P&L instead of hiding inside a tax outcome nobody measured.
So we stopped starting with funds.
Three-way reconciliation, plainly.
The phrase sounds procedural. The idea is simple and slightly unsettling.
Three parties independently build a picture of what you own.
Your own books. Your administrator's books. The venue or custodian's records.
Then you compare all three.
Where they disagree, you have a break. Where they agree, you have reasonable confidence, though not proof, that reality has been captured.
The reason it is three and not two is that two records agreeing tells you very little if one was derived from the other.
Independence is the whole point.
The moment your administrator is just re-importing your file, you have a two-way reconciliation wearing a costume.
Everyone has a spreadsheet.
The most consistent thing we've heard across firms of very different sizes.
There is always a spreadsheet.
It sits between two systems that were supposed to talk to each other. Someone built it during a crunch, it worked, and it never went away.
Nobody is proud of it.
Everybody depends on it.
It usually has one person's name attached to it informally, and a quiet organisational anxiety about what happens when that person goes on leave.
We've stopped treating this as a sign of immaturity.
It's closer to a load-bearing diagnostic.
If you want to know where a firm's data model is actually broken, find the spreadsheet and ask what it's compensating for.
@thedukekim Allocators keep asking for ops evidence, not just returns. In digital asset ODD, what still fails most often, recon packs, custody controls, or the story of how a trade became a lot?
@David_Kemmerer For high volume desks, which of these is actually fatal versus annoying? Missing basis across venues, or the method on the form not matching the method the fund used internally?
@CoinsDogroup This is the contemporaneous problem in one sentence. By the time the auditor asks, the strategy context is already gone. What data do you wish funds captured at trade time instead of reconstructing later?