1. Home
  2. MT5 APIs & Execution
  3. A-Book vs B-Book
Execution Models

A-book vs B-book and hybrid execution for MT5 brokers

Every broker decides, trade by trade, whether to pass client risk to the market or keep it. This guide explains A-book, B-book, C-book and hybrid execution, how routing is set up on MetaTrader 5, and what to have in place before your first client trades.

Updated 27 November 20268 min readFXUP editorial team
TradersWebTrader, iOS and Android apps
MetaTrader 5 serverGroups, symbols, risk settings
Gateway or bridgeA-book, B-book or hybrid routing
Liquidity providersPrices and execution
A-book
Risk passed to a liquidity provider
B-book
Risk kept and managed by the broker
Hybrid
Rules decide per order or client
UK best execution rule
FCA COBS 11.2A
In short

In A-book execution a broker passes client orders to a liquidity provider and earns a markup or commission. In B-book execution the broker takes the other side of client trades and carries the market risk itself. Hybrid execution mixes both using rules on account type, order size, symbol, client history and exposure, configured on MT5 through a bridge, a gateway or Ultency.

What is A-book and B-book execution?

A-book and B-book are industry shorthand for two ways of handling a client’s order. In the A-book, the broker routes the trade to an external liquidity provider and offsets it there; its income is a markup on the spread, a commission per lot or both. In the B-book, the broker does not offset the trade. It becomes the counterparty, so the client’s profit is the broker’s loss and the other way round.

A third label, C-book, is used loosely for anything in between: partial hedging, over-hedging or reverse hedging of client flow. MetaQuotes lists exactly these options for its Ultency engine. Hybrid execution means using more than one of these at once, with rules deciding where each trade goes, and that is how most retail brokers of any size work.

None of these terms appear in regulations. Regulators speak of dealing on own account, matched principal, market making or straight-through processing. The labels matter less than the reality behind them: who carries the market risk on each trade, and how that is disclosed to the client.

“You can manage order routing between A-Book, B-Book, and C-Book executions (partial hedge, overhedge, reverse hedge).”
— MetaQuotes — Ultency matching engine

How do A-book and B-book models compare?

The difference is where the order goes after the client presses Buy. On MetaTrader 5 the order arrives at the trade server, which checks margin and the symbol settings for the client’s group. A routing rule then decides whether it is filled internally or sent through a bridge or gateway to one or more providers.

A-book, B-book, C-book and hybrid compared
A-bookB-bookC-bookHybrid
Who takes the other sideLiquidity providerThe brokerPartly the provider, partly the brokerDepends on the rule for each trade
How the broker earnsMarkup and/or commissionSpread plus net client lossesDepends on the strategyMix of the above
Main riskProvider costs, rejects, slippageProfitable clients, conflict of interestComplexity, directional riskRules that do not match reality
What it needsLP account, bridge, margin at the LPRisk monitoring, capital for losing daysBoth, plus careful rulesBoth, plus a dealer who owns the rules
Simplified overview. Actual arrangements depend on the license, the liquidity agreement and the server configuration.

What is a B-book broker?

A B-book broker is a broker that keeps some or all client trades on its own book instead of passing them to the market. It acts as market maker for its clients: it quotes prices, takes the other side and manages the resulting exposure. That is a normal, regulated activity in many jurisdictions, not a scam by definition.

The concerns start when the conflict of interest is hidden, when prices are manipulated, or when the firm lacks the license to deal as principal. Acting against a client is a regulated activity in its own right, so a firm authorised only to receive and transmit orders cannot simply start running a B-book. The honest B-book broker discloses that it may act as principal, manages the conflict and prices fairly.

B-book brokers also need something A-book brokers can partly do without: a risk function. Someone has to watch exposure per symbol, profile clients and decide when to hedge. Without that, a single large client on the right side of a big move can wipe out months of spread income.

How does each model make money, and where is the risk?

A-book earns a small, steady amount per lot; B-book earns more per lot on average but with far more variance. That difference drives almost every routing decision.

An A-book broker’s margin is the gap between what it charges clients and what its provider charges it, so it needs volume to cover fixed costs. A B-book broker’s revenue depends on client outcomes over time, so a good month can earn far more per lot and a bad month can lose money. The A-book broker is exposed to its providers: rejects, slippage, margin calls and outages. The B-book broker is exposed to its clients: a run of profitable trading, or traders exploiting stale prices.

What drives the economics of each model
DriverEffect on A-bookEffect on B-book
Provider commission and minimumsReduces the margin on every hedged lotMatters only for flow you do hedge
Client markup or commissionMain source of revenueAdds to the spread earned on internal flow
Client trading resultsLittle direct effectThe largest single driver of revenue and losses
VolumeNeeded to cover fixed costsSpreads risk across more trades
CapitalMargin posted at the providerMust absorb losing periods
Qualitative comparison, not a forecast for any particular broker.
Before launch, model a good, a normal and a bad month with your own provider terms and a cautious view of client results. Check that the bad month does not breach your capital or your provider’s margin.

What is hybrid execution, and what do the rules look like?

Hybrid execution routes each trade by rule instead of putting the whole client base in one book. The rules usually combine account type, order size, instrument, client history and current exposure. Treat any example thresholds you read, including ours, as a starting point for your own analysis rather than a standard.

  • Account type: raw-spread or ECN-style accounts routed to providers; standard accounts eligible for internalisation.
  • Order size: anything above a set volume hedged to avoid concentration risk.
  • Instrument: exotic pairs and thin markets hedged, where the broker cannot manage the risk cheaply.
  • Client history: accounts that profit consistently, trade news or show latency-arbitrage patterns moved to A-book.
  • Exposure: once net exposure on a symbol passes a limit, new orders in that direction are hedged.
  • Events: temporary rules around major releases, when spreads widen and risk changes quickly.

A worked example with one rule set and five trades

Say a broker runs a standard and a raw-spread account with these hypothetical rules: raw-spread always A-book; standard orders above 5 lots A-book; exotics A-book; clients with three months of consistent profits moved to an A-book group; 80% of net exposure hedged on any pair above a set limit.

  1. Raw-spread client buys 0.5 lot EUR/USDRouted to the provider under the account-type rule. The broker earns the commission.
  2. Standard client buys 0.3 lot EUR/USDKept on the book. The broker earns the spread and carries the risk.
  3. Standard client sells 8 lots GBP/USDAbove the size threshold, so routed to the provider.
  4. Standard client buys 1 lot USD/TRYExotic, so routed to the provider despite the small size.
  5. Net long EUR/USD passes the limitThe engine hedges 80% of the net position with the provider; new trades continue under the normal rules.

How is A-book and B-book routing configured on MT5?

Routing on MT5 is configured in layers. Client groups decide which trading conditions and which execution route apply to an account. Symbols decide what can be traded and how it is priced. The routing engine, whether a native gateway with rules in the MT5 administration tools, a third-party liquidity bridge or Ultency, decides order by order whether to pass the trade on.

The simplest hybrid broker uses groups alone: an ECN group whose orders all go to the provider and a standard group kept on the book. More advanced setups use rules on size, symbol, profitability and net exposure. The engine you choose decides how expressive those rules can be; our liquidity provider integration page compares bridge, gateway and Ultency, and explains how FXUP introduces a bridge partner and supports the setup.

Once live, monitor the outcome of each route, not just the routing: net exposure per symbol against limits, B-book profit and loss by group, fill rates and rejects by provider, clients whose behaviour has changed, daily reconciliation of provider positions against MT5, and a log of every rule change with who made it and why. The forex CRM is the natural place for the client-level view.

“The system supports automatic risk management rules, including coverage based on position volume, instrument, currency, turnover, profit, and more. Rules can be set for individual clients, client groups, or the broker’s entire portfolio.”
— MetaQuotes — Ultency matching engine

What do UK and EU regulators expect from A-book and B-book brokers?

Regulators do not ban any of the models, but they expect best execution, managed conflicts of interest and an honest description of how orders are handled. In the UK, the FCA’s best execution rule in COBS 11.2A applies whether the firm hedges the order or keeps it: a broker that internalises client flow is still the one executing.

Conflicts of interest are the second theme, because a B-book broker profits when clients lose. ESMA has addressed conflicts arising from common CFD business models in its Q&A work, and in December 2025 announced a Common Supervisory Action with national authorities on MiFID II conflicts-of-interest rules. Retail CFD rules apply on top: ESMA’s 2018 product intervention measures and the FCA’s permanent rules in PS19/18 limit retail leverage, require a 50% margin close-out and negative balance protection, and ban trading incentives.

Your order execution policy should describe what your systems actually do: whether you act as principal, whether some flow goes to third parties, which factors decide where an order goes and how you monitor execution quality. The commonest gap is a policy written at launch that no longer matches the rules in the bridge. Rules elsewhere differ; our forex license jurisdictions guide gives an overview.

“A firm must take all sufficient steps to obtain, when executing orders, the best possible results for its clients taking into account the execution factors.”
— FCA Handbook — COBS 11.2A.2R
This is a summary, not legal advice. Your obligations depend on your license, where your clients are and the products you offer; confirm them with your compliance adviser.

Which execution model should a new MT5 broker start with?

It depends mostly on capital and on how much risk experience sits in the team. A new brand with a modest balance sheet usually starts closer to the A-book, because one bad week on an unhedged B-book can erase months of revenue. Teams with a dealer who has run a book before often start hybrid from day one.

Who controls the server also decides who controls routing. With your own MT5 license the routing engine and the rules are entirely yours. In an MT5 white label the license holder owns the server and the routing engine, so ask in writing who books the risk on your clients’ trades, whether you can route groups to your own providers and which execution reports you will see.

FXUP is a technology provider and not a liquidity provider; FXUP is not affiliated with MetaQuotes Ltd. On your own server we set up the MT5 groups the rules depend on, support the bridge setup with your chosen providers and check that execution looks right from the client’s side. We do not write your execution policy or give legal advice, but we can describe exactly what your systems do so that your compliance adviser can.

Questions buyers ask

What is the difference between A-book and B-book?
The difference is who takes the other side of the client’s trade. In the A-book a liquidity provider does and the broker earns a markup or commission; in the B-book the broker does, so it profits when the client loses and pays when the client wins.
What is a B-book broker?
A broker that keeps some or all client trades on its own book and acts as market maker. It is a regulated activity in many jurisdictions, provided the firm holds the right license, manages the conflict of interest and discloses it.
Is B-booking legal?
In many jurisdictions, yes, when the broker is authorised to deal as principal, meets best execution duties and manages conflicts of interest. Rules differ by country; this is not legal advice.
What is hybrid execution?
Hybrid execution routes each trade by rule: some go to the A-book, some stay in the B-book. Rules usually look at account type, order size, instrument, client history and exposure.
What is C-book?
C-book is an informal label for partial hedging, over-hedging or reverse hedging of client flow. MetaQuotes lists these options in Ultency. They add complexity and can add directional risk.
Does the A-book remove all risk for the broker?
No. Market risk largely moves to the provider, but you keep credit risk with that provider, operational risk if the bridge fails and the cost of margin posted. Slippage and rejects still reach your clients.
Which execution model makes more money?
It depends on the client base. B-book on retail flow can earn more per client but with sharp losing periods; A-book earns smaller, steadier margins. Hybrid tries to keep the steadier income while limiting exposure to profitable traders.
How is A-book and B-book routing set up on MT5?
Through client groups and a routing engine: a native gateway with rules in MT5’s administration tools, a liquidity bridge or MetaQuotes’ Ultency, which supports coverage rules by volume, instrument, currency, turnover and profit.
What does the FCA require on best execution?
COBS 11.2A requires firms to take all sufficient steps to obtain the best possible result for clients, considering price, costs, speed, likelihood of execution and settlement, size and nature of the order, whether or not the order is hedged.

Not covered here? Ask us on WhatsApp, message @FXUPCK on Telegram or write to info@fxup.net.

Sources

  1. MetaQuotes — Ultency matching engine (accessed November 2026)
  2. FCA Handbook — COBS 11.2A Best execution (accessed November 2026)
  3. FCA — PS19/18: Restricting contract for difference products sold to retail clients (accessed November 2026)
  4. ESMA — ESMA agrees to prohibit binary options and restrict CFDs to protect retail investors (accessed November 2026)
  5. ESMA — ESMA to launch Common Supervisory Action on MiFID II conflicts of interest requirements (published 2 December 2025, accessed November 2026)
  6. ESMA — ESMA publishes new Q&A on CFDs and other speculative products (published 8 April 2016, accessed November 2026)

FXUP is an independent consulting and technology firm and is not affiliated with MetaQuotes Ltd. MetaTrader 4 and MetaTrader 5 are trademarks of MetaQuotes Ltd. This page is general information, not legal, tax or investment advice; regulatory requirements depend on the jurisdiction and change over time. FXUP does not publish prices; contact us for current figures for your setup.