Types of Conditions

Updated on 2025-11-07

The Betting Automation Toolkit currently offers 40 types of Conditions that can be used in strategies either individually or in combination. Conditions can be divided into five different families:

  • Market parameter conditions
  • Trading status conditions
  • Soccer match outcome conditions
  • Tennis match outcome conditions
  • Horse and greyhound racing conditions
  • Special conditions

The request to create or edit a condition opens a window that allows you to first set the condition type and then all its parameters.

In the list of conditions, conditions are colored differently depending on the category mentioned above. Furthermore, conditions that apply only to a specific type of sport (tennis or soccer) are highlighted, and an M or S on the right indicates conditions that apply to a market, a selection, or both.



Market of application

Conditions can refer, where applicable, to the same market as the strategy application or to another market for the same event.

If the valuation market is not found, for example because it is no longer available in the schedule, the rule is disabled. The exceptions are the "Market Status" and "Market Time Not Suspended" conditions, which contain a specific option to decide whether a non-found market causes the condition to be false without disabling the rule or causes the rule to be disabled.

Selection of application

Conditions refer, where applicable, to the specified selection, which can be specified in various ways, as described on this page.

Negated Conditions

A single condition can be denied by selecting the "Neglect Condition" option, meaning that the expressed condition will be considered false when true and true when false.

Condition Nodes

Conditions are organized into logical nodes that express the required relationship between the conditions or nodes that comprise them. This tree structure allows complex conditions to be expressed.

Market Parameter Conditions

Odd Value of the Selection

This condition allows you to evaluate the values ​​of significant odds within the selection.

Back/Lay Spread Range

This condition allows you to set the number of ticks between the best back odds and the best lay odds.

Unsuspended  Market Time

This condition allows you to count the time elapsed since the market was reactivated after being suspended.

Market Book Percentage

This condition allows you to set the value expressed as a percentage of the back or lay book.

Market Status

This condition allows you to check the status of a given market (open, suspended, or closed).

Market In-Play

This condition checks whether the market is in play (live) or not (pre-match).

Market Type

This condition allows you to select a specific market from those available for the event.

Number of Market Selections

This condition allows you to set a constraint on the number of selections included in the market.

Available Liquidity

This condition allows you to check the amount of money available to be matched in the book on the specified (BACK/LAY) side. The BACK side is the side of the bets available for laying, the LAY side is the side of the odds available for backing. You can refer to the entire market or a specific selection, and you can also calculate the liquidity present on all odds, a specific odds, or a range of odds.

Traded Volume

This condition allows you to set a numerical reference value for the amount of money traded on a single selection or on the entire market you are trading. You can also base the condition on different markets for the same event.

Selection Percentage Volume

This condition allows you to evaluate the percentage volume on a given selection, i.e., the ratio between the volumes matched on that selection and the overall market volumes.

Selection Traded Amount

This condition allows you to evaluate the volumes traded on the selection as they are matched.

Compare Selection Odds

This condition allows you to compare the odds of two selections in the market.

Historical Selection Odds Comparison

This condition allows you to compare the odds of two selections in the current or historical market.

Compare Selection Volume

This condition allows you to compare the traded volumes of two market selections.

Trading Status Conditions

Cash Out Value

This condition allows you to set a reference value (positive or negative) for the cash out of a single selection, the entire market, and all markets with open trades.

The cash out value can be considered in absolute terms or as a percentage of the cash or market exposure.

The reference value can be a fixed value, expressed as a Default Value, or even via a formula.

Count Bets

This condition allows you to count the number of unmatched, partially matched, or fully matched bets, whether back or lay. The count can be performed on the entire market in which you are trading or on other markets. Pending bets, such as Trade Closures, Stop Losses, and Conditional Bets, can also be counted.

Potential Profit/Loss

This condition allows you to set a reference value expressed in euros for the potential profit or loss of a selection, or a maximum or minimum value for the entire market. You can also base the condition on the market to which it applies or on another market.

Account Profit/Loss

This allows you to check the profit/loss on bets closed in the last few hours.

Bets in Placing

This allows you to check whether a bet is being placed on the market or on a specific selection at the time the condition is evaluated.

Trading Position of the Selection

This condition refers to the status of bets already placed on a specific selection.

You can check whether the profit/loss is greater if the selection wins or loses, or whether the outcome is the same regardless of the outcome (equalized profit). For example, after a BACK bet, the profit will be greater if the selection wins; after a LAY bet, the profit will be greater if the selection loses.

Betfair Account Balance

This condition allows you to check the value of your Betfair account balance or exposure, i.e., how much money is currently used for matched bets that have not yet been closed.

My bets positions in the book

This condition allows you to check the position of your bets in relation to the best odds in the bookmaker. See the dedicated page for details on how the position is evaluated.

Time since last bet matched

This condition allows you to check the time elapsed since the last match of a bet. You can refer to the entire market or a specific selection and, if necessary, only consider fully matched bets.

Conditions on the outcome of the football match

This type of condition uses the connection to live results of ongoing matches to correlate the strategy with the actual progress of the match. It should be noted that the accuracy and timeliness of the data, which BT acquires from third-party providers, are not guaranteed. Furthermore, it is always important to take into account a certain delay between the acquisition of the result value, which can take a certain number of seconds, and the market's reaction, which is practically immediate. Furthermore, it should be kept in mind that in modern football, it is not uncommon for goals to be invalidated by VAR decisions, which can create volatility in the odds.

Impossible Score

This condition allows you to identify outcomes that are no longer possible for a match in progress. Some markets, such as Correct Score, allow you to bet on a certain outcome even when the current situation makes it impossible to achieve. Impossible score reporting is currently available for some FOOTBALL and TENNIS markets. For this condition to work, the match result must be available.

Number of Goal in the match

This condition allows you to check the total number of goals in a match in progress. The total number is the sum of the home team's goals and the away team's goals.

Match Score

This condition allows you to check whether the result of a match in progress is the specified one, or whether it differs from it (using the "negate" option on the condition). By selecting the "Half-Time Result" option, the condition will refer to the final result of the first half. If this is not yet available (for example, because it is the first half), the condition will be considered unfulfilled.

Relations between Team Goals

This condition allows you to correlate the number of goals scored by teams in a match in progress.

By selecting the "Half-Time Result" option, the condition will refer to the final result of the first half. If this is not yet available (for example, because it's the first half), the condition will be invalid.

Team Events

This condition allows you to identify events that occur for each team (e.g., yellow cards, red cards, etc.) in a match in progress.

Match Time and Playing Time

This condition allows you to determine whether the match is in the first half, the second half, the interval between the first and second halves, or any half between the first and second halves.

If you specify that the match be in the first or second half, or any half between the first and second halves, you can specify an additional condition regarding the playing time. In this case, the playing time is defined as starting from the start of the current half; for example, the second half would start from the first minute and enter injury time at the 46th minute.

Goal Scored

Allows you to activate a rule based on whether a team has just scored a goal.

Tennis Match Result Conditions

Tennis Score

Using this condition, you can force the match score to fall within a particular configuration by specifying for each player how you want the current score to be in terms of sets won, games won, and points won.

Tennis Relative Score

Allows you to analyze the relationship between a player's score and their opponent's in terms of sets, games, and points won.

Tennis Serving

Allows you to check which player is serving.

Tennis Won Point

Allows you to activate a rule based on whether a player has just scored a point.

Horse and Greyhound Racing Conditions

Note: These types of events are not currently part of Betfair's schedule in Italy, and therefore these conditions are only useful in the Betfair.com version.

Race Status

Allows you to check the status of the race, if available.

Race Timer

This condition allows you to check whether the race stopwatch is in a certain condition. Specifically, you can check the time elapsed since the start of the race, the time remaining, and the respective percentage values ​​calculated based on the estimated race duration. Please note that, apart from the elapsed time, the other values ​​are estimated based on the length of the race, while the duration varies between events; the values ​​are only estimates.

Special Conditions

Number of Rule Executions

This condition allows you to compare the number of times a rule has been executed with a user-defined reference value.

You can consider both the times a rule has been executed under positive or negative conditions, or both.

Formula

This type of condition is particularly powerful because it allows you to test a condition based on certain market parameters, expressing that condition using a formula.

Stored Value

This condition allows you to evaluate the presence and value of a previously stored market value using the Set/Modify Stored Value action.

Still need help?

Submit a ticket and we’ll get back to you as soon as possible.