Wiki

Matching Trading

Q: What is matching trading? A: Matching trading is an execution model where a platform automatically pairs buy orders and sell orders according to rules such as price priority and time priority.

浏览量加载中…

Matching Trading

Q: What is matching trading?

A: Matching trading means a platform automatically pairs buy orders and sell orders according to predefined execution rules.

The most common rule is price priority and time priority: orders with better prices are matched first; if prices are the same, the order submitted earlier is matched first.


Q: How do traditional financial exchanges match trades?

A: Stock, futures, and foreign exchange exchanges all maintain electronic order books.

Investors can submit:

  • Limit orders.
  • Market orders.

The exchange continuously compares buyer and seller quotes. When the buy price and sell price meet, the system executes the trade automatically.

For example:

  • Investor A places an order to buy 100 shares at 10 yuan.
  • Investor B places an order to sell 100 shares at 10 yuan.

The exchange immediately matches both sides, and 100 shares are traded.


Q: How do betting exchanges match trades?

A: Betting exchanges use almost the same matching mechanism as financial exchanges.

Investors can:

  • Place a Back order, similar to a buy order in financial markets.
  • Place a Lay order, similar to a sell order in financial markets.

An order can only be matched when another participant accepts the same odds. If there is no matching order, it remains on the market waiting for a counterparty.

For example, in one match:

  • A is willing to back the home team at odds of 2.00 for 1,000 dollars.
  • B is willing to lay the home team at odds of 2.00 for 1,000 dollars.

The betting exchange automatically matches the two orders and creates a complete betting contract.


Q: How do decentralized prediction markets match trades?

A: Decentralized prediction markets also use matching trading, but order management and settlement often run on a blockchain through smart contracts.

After users submit buy or sell orders for prediction contracts, the system looks for counterparties at the same price. If no suitable order exists, the order stays in the book and waits.

For example, a prediction market may ask:

"Will this team win the World Cup?"

  • User A is willing to buy 1,000 "Yes" contracts at 0.62 USDC.
  • User B is willing to sell 1,000 "Yes" contracts at 0.62 USDC.

When prices match, the smart contract executes the trade and records it on-chain. Settlement then follows the real match result.


Q: What do these matching systems have in common?

A: Traditional financial exchanges, betting exchanges, and decentralized prediction markets share the same core idea:

  • The platform usually does not act as the counterparty.
  • The platform maintains the order book and matches buyers with sellers.
  • The execution price is decided by market participants, not by the platform itself.
  • Higher liquidity creates faster matching and more stable execution prices.

From a market microstructure perspective, all three are order-driven markets. Their mechanisms are highly similar; the main differences are the asset being traded, the settlement method, and the regulatory environment.