The Matching Engine Decision
Every marketplace team building on tokenized assets eventually faces the same inflection point: should we build our own trade matching engine, or integrate an existing solution? The answer depends on where you sit on two axes -- how unique your matching requirements are, and how much engineering capacity you can afford to divert from your core product.
For bilateral matching (simple buyer-seller order books), commodity solutions exist. But the moment your marketplace deals in unique or semi-fungible assets -- NFTs, gaming items, collectibles, tokenized real-world assets -- the matching problem becomes harder. You are no longer matching identical units on price; you are helping users trade from what they own into what they want. That is a fundamentally different class of problem.
The True Cost of Building Custom
Engineering leaders routinely underestimate the total cost of building a matching engine for coordinated trade discovery. The initial prototype feels deceptively simple: ingest inventory, ingest wants, search for viable trades, return results. A senior engineer might produce a working demo in two weeks. But the distance between a demo and a production system is where budgets break.
Initial development is substantial. A production-grade matching engine requires scalable opportunity search, safeguards against combinatorial blowup, user-facing quality controls, stale-state rejection, wallet approval handling, and settlement coordination. Most teams underestimate how much work sits between a prototype that returns candidates and a product users can safely approve.
Timeline runs long. Marketplace-wide trade discovery implementation takes months. The scoring and ranking pipeline takes more months. Settlement coordination and failure handling consume the rest. Edge cases -- inventory changing during discovery, concurrent requests, and heavy load -- are often discovered only in production, which means the first year after launch is spent firefighting rather than building marketplace features.
Maintenance never stops. A matching engine is not a build-once component. User populations change, inventory profiles shift, and performance has to hold as marketplace activity grows. You need dedicated engineers who understand both trading systems and distributed systems. These engineers are expensive and difficult to retain when the core business is a marketplace, not an infrastructure company.
The Hidden Opportunity Cost
The dollar cost is only part of the equation. The more damaging cost is opportunity cost. Every month your team spends debugging trade discovery edge cases is a month they are not building features that directly drive marketplace growth -- onboarding flows, collection curation, social features, analytics dashboards.
For an early-stage marketplace with a lean engineering team, diverting engineers to matching infrastructure for six months or more represents a significant fraction of total engineering capacity. That is the difference between shipping multiple major product initiatives and shipping one. For early-stage companies, velocity is survival.
The API Integration Path
The SWAPS API provides the partner-facing trade coordination surface: inventory intake, specific card wants, available swaps, For You recommendations, approval preparation, broadcast proof, readiness checks, and webhooks. Partners work with stable V2 endpoints while the internal coordination stays behind the API.
Integration is fast. The API accepts inventory and want submissions as simple JSON payloads. Users see clear give/get opportunities, accept prepares the wallet transaction, and broadcast reporting lets SWAPS verify approval state. Most integration time is spent on inventory quality, wallet UX, and how the marketplace presents opportunities.
No infrastructure to operate. The matching engine runs on SWAPS infrastructure. You do not manage discovery infrastructure or tune low-level matching systems. The API scales horizontally as your marketplace grows, while the interface stays the same.
What You Give Up
Intellectual honesty requires acknowledging what you trade away with an API integration. You lose direct control over fine-grained tuning -- scoring weights and discovery budgets are configurable via the API but not infinitely customizable. You introduce a network dependency -- matching latency includes a round trip to the SWAPS API. And you accept a recurring cost rather than amortizing a fixed investment.
For most marketplace teams, these tradeoffs are overwhelmingly favorable. The teams that should build custom are those where matching is the core product differentiator (you are building an infrastructure company, not a marketplace), where regulatory requirements demand on-premises computation, or where scale and latency requirements are truly extreme. If none of those apply, the build path is an expensive detour.
| Dimension | Build Custom | SWAPS API |
|---|---|---|
| Upfront cost | Significant engineering investment | Usage-based pricing |
| Time to production | Many months | Days for full integration |
| Annual maintenance | Dedicated team required | Included in API pricing |
| Matching capability | Limited by team expertise | Available swaps + For You + approval support |
| Scalability | Requires custom optimization | Horizontally scaled infrastructure |
| Discovery updates | Manual R&D investment | Continuous improvement via API updates |
| Engineering focus | Engineers diverted from product | Full team on marketplace features |
| Risk | High -- novel marketplace challenges | Low -- purpose-built infrastructure |
A Decision Framework
Build custom if matching is your product, not a feature of your product. If you are building a trade coordination engine to sell to other marketplaces, building in-house is the correct path. You are an infrastructure company.
Integrate the API if matching is a feature that enables your product. If you are building a marketplace -- whether for NFTs, gaming items, collectibles, or tokenized real-world assets -- your differentiation lies in community, curation, user experience, and network effects. The matching engine is plumbing. Excellent plumbing, but plumbing nonetheless.
The most common regret we hear from marketplace teams is not that they chose the wrong approach -- it is that they spent months building before they evaluated alternatives. Run the integration in a sprint. Validate matching quality against your inventory data. Then make the build-or-buy decision with production evidence rather than architectural speculation.
Build
When matching IS your product
Integrate
When matching enables your product
Validate
With real data before deciding