# Taker Order Depletion Pool Rules Source: https://documentation-external.onezero.com:4434/Hub_help_9_0/Content/HubReferences/Settings/TakerOrderDepletionSettings/Taker_Order_Depletion_PoolRules.htm Taker Order Depletion Pool Rules Use these settings to configure Taker Order Depletion Pool Rules. Notes: Each Depletion Pool Instance rule creates its own Pool Instance that is tracked per symbol. Currently, individual logins cannot contribute to the same pool instance. The logins need to be part of the same Taker Group. Rules are matched in a hierarchical approach. The Hub uses the first rule that matches with an order. If a more granular match (entity vs login) is found further down in the list, the Hub does not use it. If a rule is not created for an order, when the order is executed, it does not check depletion. Setting Description Taker Entity The Taker Entity this rule applies to. Taker Connection ID The unique identifier for the Taker that is used for this rule. Examples: regex[] * The unique identifier for the Taker that is used for this rule. Examples: regex[] regex[] * * Taker Group The Taker Group this rule applies to. Taker Login The Taker Login this rule applies to. Examples: regex[] * The Taker Login this rule applies to. Examples: regex[] regex[] * * Taker Status Specifies the account Status for a Taker Depletion Pool Rule. The Hub compares the Taker Status sent with an MT4 or MT5 order request with this setting when evaluating the rule. This setting affects whether the rule matches; it does not change the rule's configured depletion behavior. Examples: regex[] * Matching behavior: When IncludeUserStatusInOrders is disabled, no Taker Status is sent with the order request. A rule configured with * (Match All) can still match the order. When IncludeUserStatusInOrders is enabled, the Status value from the MT4 or MT5 user account is sent with the order request. The Hub compares that value with the configured wildcard, exact value, or regular expression. When the received Taker Status does not satisfy this value, the rule does not match and the Hub continues evaluating subsequent Taker Depletion Pool Rules. Notes: For MT4 and MT5 orders, IncludeUserStatusInOrders must be enabled on the relevant Omni Plugin or Gateway before the Hub can evaluate the account Status. Taker Status supports * (Match All), exact values, and regular expressions in the format regex[]. Specifies the account Status for a Taker Depletion Pool Rule. The Hub compares the Taker Status sent with an MT4 or MT5 order request with this setting when evaluating the rule. This setting affects whether the rule matches; it does not change the rule's configured depletion behavior. Examples: regex[] regex[] * * Matching behavior: When IncludeUserStatusInOrders is disabled, no Taker Status is sent with the order request. A rule configured with * (Match All) can still match the order. When IncludeUserStatusInOrders is disabled, no Taker Status is sent with the order request. A rule configured with * (Match All) can still match the order. When IncludeUserStatusInOrders is enabled, the Status value from the MT4 or MT5 user account is sent with the order request. The Hub compares that value with the configured wildcard, exact value, or regular expression. When IncludeUserStatusInOrders is enabled, the Status value from the MT4 or MT5 user account is sent with the order request. The Hub compares that value with the configured wildcard, exact value, or regular expression. When the received Taker Status does not satisfy this value, the rule does not match and the Hub continues evaluating subsequent Taker Depletion Pool Rules. When the received Taker Status does not satisfy this value, the rule does not match and the Hub continues evaluating subsequent Taker Depletion Pool Rules. Notes: For MT4 and MT5 orders, IncludeUserStatusInOrders must be enabled on the relevant Omni Plugin or Gateway before the Hub can evaluate the account Status. For MT4 and MT5 orders, IncludeUserStatusInOrders must be enabled on the relevant Omni Plugin or Gateway before the Hub can evaluate the account Status. Taker Status supports * (Match All), exact values, and regular expressions in the format regex[]. Taker Status supports * (Match All), exact values, and regular expressions in the format regex[]. Taker Color Specifies the account Color for a Taker Depletion Pool Rule. The Hub compares the Taker Color sent with an MT4 or MT5 order request with this setting when evaluating the rule. This setting affects whether the rule matches; it does not change the rule's configured depletion behavior. 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 for which 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. Matching behavior: When IncludeUserColorInOrders is disabled, no Taker Color is sent with the order request. The order satisfies the Taker Color setting only when the rule is configured as Match All. When IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to None, the order carries an explicit Taker Color of None. The order satisfies the Taker Color criterion when the rule is configured as Match All or Match None. When IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to a specific color, the order carries that Taker Color. The order satisfies the Taker Color criterion when the rule is configured as Match All or as an exact match for that color. Notes: For MT4 and MT5 orders, IncludeUserColorInOrders must be enabled on the relevant Omni Plugin or Gateway before the Hub can evaluate the account Color. An order with no Taker Color and an order with an explicit Taker Color of None are different. An order with no Taker Color satisfies only Match All. An order with an explicit Taker Color of None satisfies Match All or Match None. Taker Color uses exact matching. Apart from the dedicated Match All option, it does not support *, regular expressions, wildcard patterns, free-text color names, or partial matching. Specifies the account Color for a Taker Depletion Pool Rule. The Hub compares the Taker Color sent with an MT4 or MT5 order request with this setting when evaluating the rule. This setting affects whether the rule matches; it does not change the rule's configured depletion behavior. 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 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 for which the MT4 or MT5 account Color is explicitly set to None and that value is sent with the order request. Match None: Matches only orders for which 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. 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. Matching behavior: When IncludeUserColorInOrders is disabled, no Taker Color is sent with the order request. The order satisfies the Taker Color setting only when the rule is configured as Match All. When IncludeUserColorInOrders is disabled, no Taker Color is sent with the order request. The order satisfies the Taker Color setting only when the rule is configured as Match All. When IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to None, the order carries an explicit Taker Color of None. The order satisfies the Taker Color criterion when the rule is configured as Match All or Match None. When IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to None, the order carries an explicit Taker Color of None. The order satisfies the Taker Color criterion when the rule is configured as Match All or Match None. When IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to a specific color, the order carries that Taker Color. The order satisfies the Taker Color criterion when the rule is configured as Match All or as an exact match for that color. When IncludeUserColorInOrders is enabled and the MT4 or MT5 account Color is set to a specific color, the order carries that Taker Color. The order satisfies the Taker Color criterion when the rule is configured as Match All or as an exact match for that color. Notes: For MT4 and MT5 orders, IncludeUserColorInOrders must be enabled on the relevant Omni Plugin or Gateway before the Hub can evaluate the account Color. For MT4 and MT5 orders, IncludeUserColorInOrders must be enabled on the relevant Omni Plugin or Gateway before the Hub can evaluate the account Color. An order with no Taker Color and an order with an explicit Taker Color of None are different. An order with no Taker Color satisfies only Match All. An order with an explicit Taker Color of None satisfies Match All or Match None. An order with no Taker Color and an order with an explicit Taker Color of None are different. An order with no Taker Color satisfies only Match All. An order with an explicit Taker Color of None satisfies Match All or Match None. Taker Color uses exact matching. Apart from the dedicated Match All option, it does not support *, regular expressions, wildcard patterns, free-text color names, or partial matching. Taker Color uses exact matching. Apart from the dedicated Match All option, it does not support *, regular expressions, wildcard patterns, free-text color names, or partial matching. Order Type The Order Type to match. The Hub compares the incoming order's Order Type to the type configured for this rule. Set to Any if you want the rule to match all order types. Example: If the rule is set to Market, only Market orders match that rule. If it is set to Any, orders with any order type (Market, Limit, Stop, etc) can match. The Order Type to match. The Hub compares the incoming order's Order Type to the type configured for this rule. Set to Any if you want the rule to match all order types. Example: If the rule is set to Market, only Market orders match that rule. If it is set to Any, orders with any order type (Market, Limit, Stop, etc) can match. Time-In-Force The Time-In-Force to match. The Hub compares the incoming order's Order Type to the type configured for this rule. Set to Any if you want the rule to match all Time-In- Force types. Example: If the rule is set to FOK, only FOK orders match that rule. If set to Any, orders with any Time-In-Force type (FOK, IOC or GTC) can match. The Time-In-Force to match. The Hub compares the incoming order's Order Type to the type configured for this rule. Set to Any if you want the rule to match all Time-In- Force types. Example: If the rule is set to FOK, only FOK orders match that rule. If set to Any, orders with any Time-In-Force type (FOK, IOC or GTC) can match. Core Symbol The Core Symbol that the rule applies to. Examples: regex[] * regex[] * Symbol Group Path The Symbol Group Path that the rule applies to. Examples: regex[] * The Symbol Group Path that the rule applies to. Examples: regex[] regex[] * * Asset Name The name of the asset. Examples: regex[] * The name of the asset. Examples: regex[] regex[] * * Asset Class The Asset Class that the rule applies to. Examples: regex[] * The Asset Class that the rule applies to. Examples: regex[] regex[] * * Instrument Definition The Instrument to which the Core Symbol is mapped. Instruments are the explicit definitions of core symbols and their underlying assets. Instrument Type The Instrument Type that the rule applies to. Taker Depletion Pool Rule Name A unique name for this rule. Tracking Mode Determines how the depletion value for the pool instance is calculated. Options: Independent - Buys and sells are tracked separately. Buys increase the ask depletion value, and sells increase the bid depletion value. Combined - Buys and sells offset each other. If the depletion value is negative, ask quotes are depleted. If the depletion value is positive, bid quotes are depleted. Determines how the depletion value for the pool instance is calculated. Options: Independent - Buys and sells are tracked separately. Buys increase the ask depletion value, and sells increase the bid depletion value. Independent - Buys and sells are tracked separately. Buys increase the ask depletion value, and sells increase the bid depletion value. Combined - Buys and sells offset each other. If the depletion value is negative, ask quotes are depleted. If the depletion value is positive, bid quotes are depleted. Combined - Buys and sells offset each other. If the depletion value is negative, ask quotes are depleted. If the depletion value is positive, bid quotes are depleted. Final Layer Volume Offset Used when When Requested Quantity Exceeds Book Quantity is set to Fill Remainder Using Price From Last Layer in Order Routing Setting. This value is used when quotes are not available due to taker depletion. This affects the quote volume available on the last layer of the quote book. If set, the value is added to the quote volume available on the last layer, which is then treated a the full amount. The requested order quantity must be less than or equal to the sum of the offset value and the maker-supplied volume in order to be executed. Used when When Requested Quantity Exceeds Book Quantity is set to Fill Remainder Using Price From Last Layer in Order Routing Setting. This value is used when quotes are not available due to taker depletion. This affects the quote volume available on the last layer of the quote book. If set, the value is added to the quote volume available on the last layer, which is then treated a the full amount. The requested order quantity must be less than or equal to the sum of the offset value and the maker-supplied volume in order to be executed. Depletion Settings Profile The depletion settings profile used by this rule. Capture Method Used to determine when the depletion value for the pool instance is incremented. Options: On Execution Fill - The depletion value increments by the filled quantity when an execution is received. On Order Receipt - The depletion value increments by the requested quantity when the order is received and then adjusted based on the filled quantity in the execution response. Used to determine when the depletion value for the pool instance is incremented. Options: On Execution Fill - The depletion value increments by the filled quantity when an execution is received. On Execution Fill - The depletion value increments by the filled quantity when an execution is received. On Order Receipt - The depletion value increments by the requested quantity when the order is received and then adjusted based on the filled quantity in the execution response. On Order Receipt - The depletion value increments by the requested quantity when the order is received and then adjusted based on the filled quantity in the execution response. Debugging Notes To view a depletion message in the Hub, debug logging must be enabled. In Common Settings, Logging must be set to Debug. To view a depletion message in the Hub, debug logging must be enabled. In Common Settings, Logging must be set to Debug. If Logging is set to Debug, you can view tracking of pool instances and depletion by selecting Debug from the Status Log filter dropdown. If Logging is set to Debug, you can view tracking of pool instances and depletion by selecting Debug from the Status Log filter dropdown.