Accelerating the build of a matching engine

Crypto adoption has been slow among mainstream institutional investors. While market size and liquidity are certainly factors in this slow adoption, the opacity and lack of oversight in many venues also limits the confidence institutions have in the asset class. But institutional participation is critical for crypto growth.

ErisX, now part of Cboe Digital, believes that expanding safe and regulated access to digital assets via familiar investment tools and a central limit order book are critical to the maturation of the crypto markets. They have deployed a crypto exchange with the products, transparency, infrastructure, risk mitigation, reliability and settlement capabilities needed by established institutional players. In addition to spot trading, they offer digital asset futures contracts with physical delivery.

ErisX was launched in late 2018 to attract institutional participants. However, their existing platform for trading spot products could not support their futures trading plans. Additionally, developing and incorporating new features for spot trading was a slow process that required prioritization of the platform’s development assets. That meant that they needed to deploy a new matching engine as well as a clearing and settlement platform to meet all their requirements. ErisX had a goal to launch the new futures market by year end.

ErisX had already hired industry heavyweights to make this possible. Thomas Chippas, CEO, formerly served as COO at Axoni, CEO of Citadel Technologies, and global head of quantitative execution at Citi and Barclays. Matt Trudeau, Chief Operating Officer, is a serial exchange founder who had already overseen multiple global market launches including Instinet, Chi-X, and IEX. Trudeau also led Tradewind, a platform for electronic trading of physical precious metals. Tony Acuña-Rohter, Chief Technology Officer, played a leading role in the development of CME’s next generation matching engine, market data, and order entry data systems

  • Thomas
    Chippas

  • Matt
    Trudeau

  • Tony
    Acuña-Rohter

Using a traditional structure to attract institutional investors

In order to attract institutional investors, ErisX planned to use traditional matching and clearing models. Chippas, CEO of ErisX explained, “This reflects the structure that institutional investors expect from other asset classes and will help drive the crypto markets toward greater relevance and accessibility.”

ErisX intended to offer spot trading, crypto futures, and clearing services for fully collateralized virtual currency futures with physical delivery.

They knew that their institutional clients would need to integrate diverse financial modelling, account structures and settlement systems. While the ErisX team planned to build the clearinghouse functionality internally, they also needed an enterprise grade matching engine that met all their requirements, and was up and running by their year end goal. With the Exchange’s internal resources stretched, ErisX evaluated third party assistance.

To build or to buy

Initially, ErisX planned to buy an existing matching engine. The internal development team had a precise understanding of their requirements and issued an RFI. They looked at more than a dozen systems, including all of the prominent exchange platforms and several crypto-specific products. But their requirements made buying an existing platform tricky. Not only did it need to support crypto spot and futures in the same system, but it also had to accommodate a constantly evolving crypto market.

During their evaluation process, the team ran into multiple hurdles. None of the vendors ErisX assessed were able to implement the combined fully collateralized futures and spot risk model that the Exchange required while meeting their aggressive performance needs.

Trudeau said, “The choice to build was not a trivial decision. But we had unique requirements that the existing platforms either didn’t support out of the box or couldn’t support architecturally.”

Once the ErisX team realized that building the matching engine inhouse was their best option, they understood that they would need additional people with a high level of expertise. But hiring a team would take time and resources that were already under constraint.

Chippas, ErisX CEO explained, “As a startup, we needed to be prudent about how we staff the company. We needed to build a platform that met our tight timeframe, but also ensure that it was robust and extensible.”

In the traditional outsourced development model, ErisX would pick a vendor, prepare detailed specifications, the vendor would go away to develop, and ErisX would test what they delivered a few months later. This classical dataprocessing era style of working was not logical for ErisX. The ErisX team was looking for a collaborative environment and partnership to enable development of key features and requirements as the cryptocurrency space kept evolving.

One of the reasons ErisX selected Adaptive was in fact the flexible approach they took to the project. Acuña-Rohter said, “the mutual tight feedback loop between ErisX and Adaptive was a huge selling point.”

Trudeau said, “Another factor we appreciated about Adaptive during the selection process was that we were able to work directly with Olivier Deheurles (Adaptive cofounder and CTO) and Harsha Sri-Narayana (Adaptive’s technical lead). They understood our unique needs and had a very organized, efficient approach.”

From the very beginning, the Adaptive and ErisX teams were tightly integrated. Trudeau said, “We were very fortunate to find Adaptive, because they have the subject matter expertise, the ability to bootstrap the project and bring in accelerators like Hydra and work closely with our team.”

Building with Adaptive also meant that ErisX stayed in control of their matching engine platform. Acuña-Rohter said, “Taking this route meant we could walk away with the code and decide on a case-by-case basis whether we wanted to extend it ourselves or continue working with Adaptive.”

ErisX had a very precise concept of the requirements for the matching engine with Acuña-Rohter leading the combined teams. He was able to provide instruction and oversight while Adaptive’s knowledge and skill set made their iterative approach to the project a success. One of the advantages of working with Adaptive is that they had the technical expertise to quickly grasp what ErisX wanted. Acuña Rohter would walk the team through a few bullets explaining the “what” and “why,” knowing Adaptive’s team would figure out the “how.” The joint team of Adaptive and ErisX developers would debate approaches and then work on iterations. The combined teams met every 3 to 4 days to review code, talk about direction and course correct when needed. Acuña-Rohter said, “This allowed us to see exactly the system being built and make sure that we received what we wanted.”

One example of this was how ErisX wanted to design the market data system. They wanted to provide nanosecondprecision timestamps to all messages published from the matching engine. This would allow customers to precisely correlate messages across drop copy, order entry and market data feeds. Ralph Swann, Adaptive’s delivery lead said, “They had a very specific implementation in mind. After discussing it, we understood what they wanted and got to work.”

“The team’s depth of expertise really sped up this project,” Deheurles said, “Also, Acuña-Rohter was able to clearly articulate the outcome ErisX wanted. He trusted us to work out the solution. Then he checked the solution functionally and technically to verify that it was in line with what they wanted, and they could course-correct immediately.” Swann agreed, “There are countless times when this saved us weeks of work.”

Adaptive’s Deheurles said, “The ErisX team’s degree of sophistication is very unusual. Most of our clients don’t have that level of expertise in house, so we provide both product management and engineering skills.”

Building for a 24x7 operation

Most established exchanges use a traditional exchange model design originally developed in the 2000’s. They restart the matching engine and re-load reference data at the beginning of each trading day.

Messages are sequenced as they come in. If the system fails, it recovers by restarting and replaying all the messages since the beginning of the day. But the crypto market trades 24 hours a day. That means the support team doesn’t have a daily market close period when they can load new products or make system updates. If you restart a crypto exchange, you might have to replay a week’s worth of activity or worse, restart from the last snapshot of activity.

On Deheurles’ recommendation, ErisX decided to deploy Adaptive’s Hydra Technology. Hydra is essentially a set of infrastructure accelerators specifically designed for deploying a high speed, highly reliable exchange platform. It is purpose built to enable 24×7 operations.

Hydra has a feature called “Snapshotting.” A snapshot is an image of the full state of the system. If the exchange needs to be restarted during the day, the platform automatically takes a snapshot. Then when it restarts, Hydra automatically reloads the snapshot to restart trading exactly where it left off. Hydra can be configured to automatically take snapshots at a predetermined frequency throughout the day. This enables a 24/7 operation: there is no longer the need to restart the system each day as with the traditional exchange model. If the system shuts down unexpectedly, support engineers can reload the snapshot when restarting, and then just replay the messages that occurred between the snapshot and reboot rather than having to reply multiple days worth of messages.

When a system update is performed, the snapshot is automatically migrated to the new version. This enables ErisX to evolve the technology and upgrade the platform as needed. In addition to supporting 24×7 operations, Acuña-Rohter said, “The snapshotting mechanism is also extremely helpful for reproducing state when needed. It’s like a VHS tape. You can replay to any frame to see the actions of a customer. So it’s helpful for troubleshooting and finding bugs.”

Pressure to meet a looming deadline

While the ErisX and Adaptive teams worked well together, the project was not without its challenges.

As they reached the third milestone of the project, they realized that they would not be able to complete some of the final elements in the functional backlog by the year-end deadline. This is a common challenge with any development project. Deheurles said, “Many customers want to push the vendor at this point to squeeze everything out before the deadline. But that creates more risk, because not enough testing occurs. ErisX’s team understood this. We had to hit the deadline, and we had to get regulatory approval and had our hands full delivering essential functional requirements, non functional requirements, an infrastructure build, and a disaster recovery strategy. So we modified scope to ensure we met that goal.”

During the last three months, the team reviewed the remaining backlog items to re-prioritize and de-scope requirements that would not present a risk to launching. “We had to launch a system that met our migration requirements, it had to replace an existing spot exchange production system and we had to move all those clients to the new exchange, and switch on futures trading functionality for the first time,” Acuña-Rohter said. So that’s what the team prioritized.

Launching on time

In the end, the ErisX and Adaptive teams succeeded in meeting the end of year goal. ErisX launched physically settled bitcoin futures contracts on December 17, 2019. The crypto matching engine took eight months to scope, build, test and deliver – a fraction of the time required for most matching engines.

After launch, the team worked through the functional backlog. They continue to add functionality, but most of the work is now done by ErisX’s internal team. They accomplished their goal of having a fully custom trading platform that they control and update as they need to adapt to the constantly evolving crypto marketplace.

Spearheaded by Acuña-Rohter and driven by ErisX’s product and technical requirements, Adaptive acted as a seamless extension to the Exchange’s development team. ErisX was also pleased with Adaptive’s domain expertise and technical excellence.

Chippas said, “We met aggressive goals in 2019 as we closed funding, strengthened the team, secured state-level money transmitter licenses, and also developed modern infrastructure including a brand new matching engine and futures clearing system from scratch. We were thrilled to end 2019 with the launch of our futures market.” And ErisX is just getting started. The Exchange introduced block trading capabilities, brought to market Ethereum/USD futures contracts and became the first Derivatives Clearing Organization to physically deliver a bitcoin futures contract in 2020.

About ErisX

Improving the digital asset trading experience for institutions and individuals alike.

ErisX offers individuals and institutions a U.S. based unified platform to access crypto spot and regulated futures markets. By combining professional tools, advanced technology, sophisticated regulatory oversight, and a diverse product set, ErisX offers compliant, capital markets friendly workflows to digital market participants. Backed by some of the world’s largest trading firms and financial institutions, ErisX brings transparency and reliability to the crypto asset class. ErisX, Eris Exchange, and the ErisX and Eris Exchange logos are trademarks of the Eris Exchange group of companies. www.erisx.com.

This case study is subject to our marketing disclaimers.

ErisX Futures are offered through Eris Exchange, LLC, a Commodity Futures Trading Commission (CFTC) registered Designated Contract Market (DCM) and Eris Clearing, LLC, a registered Derivatives Clearing Organization (DCO). The CFTC does not have regulatory oversight authority over virtual currency products including spot market trading of virtual currencies. ErisX Spot Market is not licensed, approved or registered with the CFTC and transactions on the ErisX Spot Market are not subject to CFTC rules, regulations or regulatory oversight. ErisX Spot Market may be subject to certain state licensing requirements and operates in NY pursuant to Eris Clearing’s license to engage in virtual currency business activity by the New York State Department of Financial Services.