Paynoramic launches Marengo, a white-label crypto exchange you can try before you buy.Meet Marengo, our white-label exchange. See the exchange.

MOD-MTE · Matching engine module An order book that keeps up with your busiest minute.

Price-time priority matching for spot markets, with limit, market and stop orders, live market data out and market makers in. Quieter markets can be backed by liquidity from external venues.

  • 8connectors
  • +1your own, too
  1. 01 · The job

    Fair matching, every time.

    Orders match by price, then time, and every fill is booked to the ledger as it happens. Trading pairs, tick sizes, fees and limits are set per market, and circuit breakers pause trading when prices move too fast.

    • Limit, market, stop and post-only orders
    • Price-time priority matching
    • Maker and taker fees per tier
    • WebSocket and FIX APIs for traders
    • Circuit breakers and trading halts
    • A full audit trail of orders and fills
  2. 02 · The connectors

    Liquidity in, surveillance on.

    Market makers connect through the FIX and WebSocket APIs, and quieter pairs can mirror liquidity from large venues, so customers always see a price they can trade. Surveillance tools read every order for market abuse.

    Market surveillance

    Trading APIs

    • FIX 4.4
    • WebSocket
    • REST
  3. 03 · Your own

    Your market makers.

    Your own market makers or trading desk connect like any other client, with their own fee tiers and rate limits.

    In-house, or a provider you already use
    • Your market-making partners
    • Your fee schedule
    • Your listing policy

    Building your own instead? Hire our crypto engineers through Paynoramic Outsourcing

How it works

How the matching engine works, from order to fill

  1. 01

    An order comes in

    A customer places a limit, market, stop or post-only order in the app, or a professional trader sends one over REST, WebSocket or FIX. The engine checks it against the limits set for that market.

  2. 02

    Price first, then time

    The order matches the best price on the other side of the book and, at the same price, the order that arrived first. What is left of a limit order rests in the book.

  3. 03

    Booked as it fills

    Each fill is booked to the ledger as it happens, with the maker or taker fee of each side's tier, and both traders see it at once in their order updates.

  4. 04

    The market moves on

    The new price, depth and trade go out on the engine's market data feed. If prices move too fast, circuit breakers pause trading on that market.

  5. 05

    Watched and kept

    Every order, change, cancellation and fill is kept in the audit trail and read by your surveillance vendor, Solidus Labs or Eventus. Alerts go to your compliance team, and the orders behind them show in the backoffice.

What the matching engine needs beyond the software

For crypto-assets in the EU, an order book that brings together other people's buying and selling interests is a trading platform under MiCA, which only an authorised crypto-asset service provider, or a financial firm that MiCA allows, may operate. The operator must publish its prices, depth and trades, may not deal on its own account on its own platform, and must be able to detect market abuse and report it to its regulator. Beyond the licence, the module needs the contracts of the venues, liquidity providers and surveillance vendor you choose, which we help you get.

Where it runs

In this platform, and in yours.

Questions

What buyers ask about the Matching engine module.

How do you avoid empty order books at launch?

Quieter pairs can be backed by outside liquidity, within limits you set per pair: depth from venues such as Binance, Kraken and OKX or through Coinbase Prime, or streamed quotes from B2C2 and Wintermute. Customers trade at real prices from the first day while your own market makers build depth. In the EU, MiCA does not let the operator deal on its own account on its own platform, so we set up who stands behind that liquidity with your licence in mind.

Is there an API for professional traders?

Yes, three: REST for accounts and orders, WebSocket for market data and order updates, and FIX 4.4 for institutions. Market makers and your own trading desk connect like any other client, each with their own fee tier and rate limits, and a firm such as Wintermute can trade on your venue the same way, under an agreement with you.

Who decides which pairs are listed?

You do, under your listing policy, and each pair gets its own tick size, fees and limits. Under MiCA, a crypto trading platform's operating rules set how crypto-assets are admitted, and before admitting one, the operator must assess its suitability, including how reliable its technology is and any association with illicit or fraudulent activity.

What happens when prices move too fast?

Circuit breakers pause trading when prices move too fast, and a market can be halted. Under MiCA, a crypto trading platform's systems must keep trading orderly under severe market stress, be able to reject orders above pre-set volume and price thresholds or clearly erroneous ones, and be fully tested to do so.

How is market abuse caught?

Your surveillance vendor, Solidus Labs or Eventus, reads every order, change, cancellation and fill for market abuse such as spoofing, layering and wash trading, and raises alerts for your compliance team. Under MiCA, a crypto trading platform must be able to detect market abuse, tell its regulator when it finds it, and keep at least five years of order data for the regulator or give it access to the order book.

Do we have to publish our order book?

In the EU, yes. MiCA requires a crypto trading platform to make public its bid and ask prices and the depth at them, continuously during trading hours, and the price, volume and time of each trade as close to real time as is technically possible. The data is offered on a reasonable commercial basis, free of charge 15 minutes after publication in a machine-readable format, and stays published for at least two years. The engine streams this market data live over WebSocket.

Same family

The whole library

Start your project

Tell us the idea. We'll show you the platform.

One call is enough to map your product to the modules that already exist.

  • Response in under one business day
  • NDA on request
  • No obligation
How can we help?