Patterns

Architectures for the class of problem I solve — trading, brokerage, stablecoins and the security around them. Anonymized: no client names, no numbers, no logos. The pattern is the point.

Trading · Crypto

Multi-exchange execution with unified state

Problem
Execution across multiple exchanges resulted in inconsistent positions. The firm could not trust its own position numbers without manual checks, and drift was often caught only at end-of-day reconciliation — after losses had accumulated.
Constraint
Different APIs, latency differences, partial fills. Reconnections produced duplicate events. Fills arrived out of order. Each venue reported position in its own format, its own timing, its own truth.
Decision
Centralized execution layer with state reconciliation. A unified state store as internal source of truth. Per-venue connectors translate events into the internal model with deduplication. A reconciliation service runs continuously against each venue's reported position.
Trade-off
Higher architectural complexity vs guaranteed consistency. The centralized layer becomes a critical path — but every position figure is traceable back to the venue fill that produced it.
Architecture
exchange connectors → event normalizer → unified state store ← reconciliation service ← venue position feeds
Result
Stable position tracking across all exchanges. Drift detected in seconds, not hours. Duplicate events absorbed without corrupting state. Manual checks replaced by continuous reconciliation.
Financial Infrastructure

Settlement reconciliation across fiat and crypto rails

Context
A platform moving value between fiat rails (banking partners) and crypto rails (custodians, on-chain addresses), with users initiating transfers from either side.
Problem
Fiat settlement can take days. Crypto settlement is near-instant but can fail or get stuck in mempool. The platform's internal ledger shows completed transfers while the underlying rails are still in flight, exposing the platform to reversal risk.
Solution
Separation of internal state into three ledgers: intent, in-flight, and settled. A transfer only moves to settled after rail-specific confirmation. A reconciliation service compares internal state against each rail and emits drift events when they diverge.
Architecture
transfer intent → validation → rail adapter (bank / custodian / on-chain) → confirmation listener → ledger writer → reconciliation service
Outcome
The platform never shows a user a completed transfer that has not actually settled. Reversal risk is isolated to the in-flight ledger, which has explicit limits. Operations can see exactly which transfers are stuck and where.
Trading · Risk

Risk layer spanning hot and cold paths

Context
An automated trading system with strategies running hot-path execution, where the firm needs enforced risk limits without giving up the latency the strategies depend on.
Problem
Pre-trade checks in the hot path add latency and still miss systemic risk — exposure that builds across strategies, venues, and time windows. Post-trade checks catch violations after the fact, when the damage is done.
Solution
A two-tier risk layer. The hot-path tier holds a cached, conservative view of limits and fails fast on obvious violations. The cold-path tier maintains the authoritative view of exposure and pushes updated limits back to the hot path. When the hot path loses sync, it fails closed.
Architecture
signal → hot-path risk gate → execution ↔ fill feedback → cold-path exposure engine → limit updater → hot-path risk gate (closed loop)
Outcome
Strategies keep their latency profile. Systemic risk is enforced continuously, not at checkpoints. A stalled cold path does not silently weaken protection — it tightens it.
Tokenized Systems

Tokenized asset issuance with off-chain control plane

Context
A protocol issuing tokenized representations of off-chain assets (real-world assets, structured positions, access rights), where transfers must respect both on-chain rules and off-chain constraints.
Problem
On-chain smart contracts cannot enforce constraints that depend on off-chain state (jurisdiction, accreditation, KYC status). Encoding them on-chain creates a maintenance burden and leaks sensitive data.
Solution
A control-plane service signs transfer authorizations off-chain after checking off-chain state. The on-chain contract verifies the signature and the validity window but remains unaware of the underlying constraints. Token state stays on-chain. Permission logic stays off-chain.
Architecture
transfer request → off-chain control plane (policy + signature) → on-chain contract (verification + state change) → indexer → reporting
Outcome
The token contract stays simple and upgrade-free. Policy can change without contract changes. Sensitive data stays off-chain. The on-chain footprint is verifiable and auditable.
Brokerage · Prop Trading · Security

Taking back control of a broker & prop firm stack

Context
A live multi-asset retail broker and prop trading firm, with users and revenue, running almost entirely on third parties: hosted trading platform, CRM and back office, prop risk tooling, liquidity providers, and in-house tools built by an external team.
Problem
Management could not say what was deployed, who owned the code, or who held access. The CRM vendor kept its API closed, so internal tools scraped data to work. Credentials for in-house systems stayed with people who had already left. Reporting was manual and could not be traced back to platform data line by line.
Solution
Independent technical audit first, then a CTO mandate. Full inventory of systems, vendors, contracts and access. An access matrix with credential custody. New development frozen until ownership was clear. Broker and prop separated as distinct businesses. Vendor API access treated as a contractual negotiation, not a technical limit. The in-house CRM piloted in parallel before any cutover.
Architecture
vendor & system inventory → access matrix → ownership map → roadmap (discovery → design → execution) → parallel run → cutover
Outcome
One map of the stack that management and investors can read. Every credential with a named owner. Vendor negotiations and migration decisions based on what is actually deployed — not on what anyone says is deployed.
Stablecoins · Oracles

A price authority for a crypto-backed stablecoin

Context
A protocol issuing stablecoins backed by crypto collateral, where every mint, redemption and liquidation depends on the price the system trusts.
Problem
A single oracle feed is a single point of failure. A bad print or a stale feed at the wrong moment triggers liquidations that shouldn't happen — or lets undercollateralized positions survive that shouldn't.
Solution
A three-layer price authority. Aggregation across independent oracle networks. A statistical validation layer that checks consistency between related prices before any of them is accepted. A liquidation predictor that flags positions approaching thresholds before they cross them.
Architecture
oracle networks → aggregator → statistical validator → price authority → collateral engine → liquidation predictor
Outcome
Collateral logic consumes one validated price instead of trusting any single feed. Liquidation risk becomes visible before it becomes a loss.

Ignacio Montoya is a founder, CTO and external CISO who builds and secures trading, brokerage and stablecoin infrastructure. These patterns describe the class of problems engagements focus on.

Recognize your system in one of these? You already have the first half of the email. Send it.

Engagement model