Order Management System (OMS)


Quality is not an act, it is a habit.Aristotle

The OMS is the centrepiece of the electronic workflow. It connects the users to various internal and external markets, providing access to the smart routing, algorithmic trading, crossing, cross negotiation and other capabilities common to modern trading platforms. The OMS holds the knowledge of client, care, market-side and custom orders and provides a holistic picture of the current state of the execution flow it is deployed to manage.

Architectural Principles

Separation of Concerns

OMS is a powerful system based on simple “atomic” structures. Each component carries out a specific role in the system. It is well defined and perfectly testable. Its failure in the production environment should not compromise the referential integrity and stability of the entire system. The failure is easily identified and a redundant peer component can take over the remaining work.

Event Driven Approach

Any meaningful event in the system is captured, persisted and delivered for processing. The event-response model employed by individual components reflects our Simplicity-Agility-Reliability paradigm.

Message Passing IPC

At its core, our OMS solution follows the micro-kernel design that uses a bespoke messaging framework for inter-process communications (IPC). The framework provides reliable multicast with some strong guarantees such as total ordering, gapless and duplicate free message delivery, real-time persistence and seamless recovery provided to late joiners. These features allow us to engineer and deliver very resilient and highly available components.

Simple Protocol

We use simple yet very descriptive protocols optimised for both memory footprint and performance. The protocols can meet the requirements of multi-asset trading and model multi-leg products and portfolios.

Embedded Transaction Support

Transactions are an intrinsic part of our event-driven frameworks. They are persistent, recoverable and can be easily audited.

Middleware Agnostic

In all of our designs, we draw a clear distinction line between the business and session-management layers. Such careful separation makes it possible to change the middleware implementation and retain the business logic without additional programmatic changes.

Multiple Redundant Peers

Multiple redundant peers can be deployed in the OMS to replace the active components lost during a hardware failure.

High Availability

High availability (HA) is an inherent feature of all our systems. The properties required to achieve HA are implement from very early stages of the development cycle.

Scalability

We believe that a good OMS should be capable of handing hundreds of millions of orders, amends, cancellations, quotes, and other business objects without performance deterioration as the capacity increases. This should be achievable with reasonably standard hardware.

The same OMS should be scalable down to a handful of physical processes running on a single underpowered machine or even a notebook computer. The latter can be invaluable in presentations to clients.

The downward scalability aspect of the system and support for self-contained configurations significantly simplifies the development process, continuous integration and testing.

Functional Overview

Multi-Asset

Our solutions are geared towards multi-asset trading that becomes crucial in the investment banking brokerage industries to achieve uniformity, improve efficiency, risk transparency and promote cross-selling on various levels.

Even if the initial client requirements are skewed towards a particular business flow and asset type, design provisions are made to make the components extendible to multi-asset trading.

Message Bus

A high-performance message bus is right in the core of our platform. This allows us to achieve low latency, low dispersion of latency and high throughput. The bus-centric architecture is linearly scalable.

Reporting

The event-driven and transactional nature of the system allows us to capture all the system and business events that improves the transparency. The real-time reporting capability can be tailored to meet the specific reporting and compliance requirements.

Data Retention

The historical data outside of the OMS trading session (that can incorporate single or multiple day trading sessions) is retained in a decoupled long-term storage (such as a classical RDBMS or its NoSQL substitute).

Custom drop-feed and query components are developed to support real-time long-term data persistence as well as retrieval.

Flexible Order Hierarchy

We avoid rigid order hierarchies and support N levels of order nesting (parent-child relationship). Parent, work/care, market-side or other types orders use the uniform order representation. Constraints on the depth of nesting, slicing child orders, and propagation of trade events and states can be imposed on individual branches of the order hierarchy.

Powerful Order Routing

We employ a DSL-driven routing engine to manage the business flow segmentation, order routing, ah-hoc business rules, enrichment, validation, and custom behaviours.

Business Flows

Business Flow is a first-class OMS concept. It is supported in all the key business objects to ensure proper flow segmentation, authorisation and control.

Security

A very fine-grained authorisation model is embedded in the system core and can be applied to individual actions and the business objects on which they are performed. The model can provide “Chinese wall” separation between different business flows, desks, processes and trading destinations.

Race Conditions

The OMS design caters for the natural race conditions that can occur in the normal business flow and as the result of market anomalies and exchange-specific behaviours. It imposes versioning on some of its key business objects to ensure the state integrity and stability of the internal and client components.

Event Sequencing

Many client systems are intolerant to out-of-sequence behaviour. The OMS can provide event sequencing capability to normalise the flow.

Multiple Amendments

We support multiple pending order amendments to ensure fast basket staging and modifications that becomes particularly important with slow markets before the opening and closing auctions.

Order Staging and Queuing

Order staging and queuing functionality can be enabled to streamline order submission and amendments outside of market trading hours and around the exchange auctions.

Testing Philosophy

The quality of testing is one our key differentiating factors. A special attention is payed to unit tests, automated component-centric and cross-system integrations tests, performance and stress tests. In addition to that, we employ model-driven methodology complemented by a set of proprietary techniques to generate hundreds of thousands individual state transition tests collectively producing millions of events the system is subjected to in a single test run. The aim of this layer of tests is to ensure the adherence to the product specification and robustness of the state engines. It is used as a solid regression pack protecting us against unwanted changes and bugs that can be introduced in the course of incremental development.

Non-Functional Aspects

We firmly believe that non-functional aspects define the quality and longevity of the system. If they are ignored in the early stages of design and implementation, retrofitting them later is next to impossible. Thus, significant consideration is given to the choice of processing algorithms, memory model, performance, memory footprint of individual data structures and their storages, garbage collection and its impact on the latency profile, and numerous other factors. We use high-performance design patterns that significantly improve the KPI’s without compromising the clarity of the code and its maintainability.

Capacity

A single instance of our OMS can handle over a hundred millions of orders, amends and cancellations.

A typical configuration of the core OMS process handling 40 million orders, 20 million amends and 20 millions cancellations would have a memory footprint around 4 to 5Gb.

Sustainable Throughput

The sustainable throughput can vary from a few hundred thousand to over a million messages per second depending on the deployment configuration.

Latency

Less than 26µs for 99.5% of messages (including the network hops) for the “business” IPC layer. The latency introduced by the core OMS layer can be configured to be less than 1µs.

The increased configured capacity is not expected to increase the latencies and their dispersion.

Deployment Configuration

We can cater for highly distributed, localised and “co-located” deployment configurations.

Maintenance

Our OMS solutions are intuitively modularised, well-documented and are easily maintainable. The design supports ongoing updates of individual components and would not typically require re-deployment of the entire system.

Support

We provide continuous product training for the first and second-level support staff. Additional advanced training can be arranged upon request. Our development team can provide the third level support and help handling production emergencies.