Order Routing Mappings

The Order Routing Mappings group orders based on a number of criteria, such as taker, taker login, symbol group path and more. Using the Order Routing Profiles section in conjunction with these settings, you can set Order Routing Mode and Percent for Hedge for the orders you have grouped using the mappings.

Note:

Rules are evaluated in order from top to bottom until a match is found. This means that rule order is critical. Broadly applicable rule sets must come after narrow rule sets. If no match is found, the incoming trade request is processed normally or according to the default rule set, if applicable.

Setting Description
Taker Entity The Taker Entity to which the rule applies.
Taker Connection ID

The Taker Connection ID to which the rule applies.

Examples:
  • regex[<expr>]
  • *
  • <value>
Taker Login

The Taker Login to which the rule applies.

Examples:
  • regex[<expr>]
  • *
  • <value>
Taker Group

The Taker Group to which the rule applies if Taker Login is set to all (*).

Examples:
  • regex[<expr>]
  • *
  • <value>
Taker Status

Taker Status is a value provided by the MetaTrader server at the user account level. This value can be leveraged within order routing mapping rules, allowing brokers to implement more granular and tailored risk management strategies for MetaTrader accounts. By incorporating Taker Status into mapping rules, you can enhance flexibility and control over decision making.

Notes:

The Hub only receives the Taker Status if the IncludeUserStatusInOrder setting is enabled in the MT4 OmniPlugin or MT5 OmniGateway.

Examples:
  • regex[<expr>]
  • *
  • <value>
Taker Color

Routes MT4 and MT5 orders by the account Color value sent with the order request. Use this setting to apply a Gap Level Mapping only to orders from accounts with a matching MT4 or MT5 account Color.

Options:
  • Match All: Leave the color empty to match any Taker Color, including orders with no color value and orders with a Taker Color of None. (This is the default.)

  • Match None: Matches only orders where the MT4 or MT5 account Color is explicitly set to None and that value is sent with the order request.

  • Named or custom color: Select a named color, or specify a custom color using RGB values, to match only orders whose Taker Color exactly matches the selected color.

Routing behavior:
  • If IncludeUserColorInOrders is disabled, the order has no color value and can only match Match All.

  • If IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to None, the order has a Taker Color of 'None' and can match Match All or Match None.

  • If IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to a specific color, the order has that Taker Color and can match Match All or an exact match to that color.

Notes:
  • For MT4 and MT5 orders, IncludeUserColorInOrders must be enabled on the relevant Omni Plugin or Gateway before the Hub can use the account Color for routing. When it is disabled, empty colors are sent, which is functionally different an order where the account color is explicitly set to None. Orders with empty color values can only match a Match All or * Taker Color rule.

  • Taker Color uses exact matching. It does not support regex, wildcard patterns, free-text color names, or partial matching.

Core Symbol

The Core Symbol to which this rule applies.

Examples:
  • regex[<expr>]
  • *
  • <value>
Symbol Group Path The Symbol Group Path that the rule applies to.
Examples:
  • regex[<expr>]
  • *
  • <value>
Input Order Type

The type of order to which the rule applies.

Options:
  • Any
  • Instant
  • Market
  • Limit
  • Stop
  • Previously quoted
  • Exchange
  • Stop Limit
  • Peg Limit

Note: Applies only to warehoused orders.

Input Time in Force

The time in force setting for orders to which this rule applies.

Options:
  • Any
  • GTC
  • IOC
  • FOK
Reference Currency

Used with Minimum Order Quantity and Maximum Order Quantity to compare the order volume in a selected currency.

  • When a Reference Currency is selected, the Hub converts the order volume to that currency before checking whether the order matches the mapping's Minimum Order Quantity and Maximum Order Quantity.

  • When Reference Currency is empty, the Hub compares base-denominated orders using the requested volume. For term-currency-denominated orders, Hub converts the volume to the symbol's base currency before comparing.

  • If the Hub cannot perform the required conversion, the mapping is skipped and the Hub evaluates the subsequent mapping.

Note: This setting is optional and applies only when Minimum Order Quantity or Maximum Order Quantity is configured.

Stream Type

The stream type to which this rule applies.

Options: 
  • All
  • RFQ
  • Market Data

Note: For rules with Stream Type set to RFQ or ALL:

  • When the Order Routing Profile is set to Warehouse, orders must map to an RFQ Price Channel Rule where the Maker Pool contains only internal makers (makers constructed using the ESP to RFQ Stream Construction feature).
  • When the Order Routing Profile is set to Sync Hedge, every order must map to an RFQ Price Channel Rule where the Maker Pool contains only external RFQ makers (any maker other than the makers created by the ESP to RFQ Stream Construction feature).
Order Notional Side

The notional side of the order that this rule applies to.

Options:
  • Any
  • Base
  • Term
Depletion Profile The depletion profile to which this rule applies.
Order Routing Profile Name The order routing profile name to which this rule applies.
Portfolio Name The portfolio that all risk is booked to for this rule.
Spot Risk Portfolio Name

The portfolio that spot risk is booked to for this rule.

Notes:

  • This feature only supports warehoused RFQ and market data trades.
  • For non-deliverable swaps and non-deliverable forwards, no risk decomposition takes place, even if a Spot Risk Portfolio is set.
Forward Risk Portfolio Name

The portfolio that forward risk is booked to for this rule. When a taker places a forward outright trade, the Hub books a risk transfer trade to the portfolio entered in this setting.

Notes:

  • This feature only supports warehoused RFQ and market data trades.
  • If the portfolio entered here is the same as the portfolio entered in the Portfolio Name field, then no risk transfer trade is generated.
  • For non-deliverable swaps and non-deliverable forwards, no risk decomposition takes place, even if a Forward Risk Portfolio is set.