Types of Conditions

Updated on 2024-07-26

Betting Toolkit Automation currently offers 37 types of Conditions that can be used in strategies either individually or in combination. Conditions can be divided into four different categories:

  • market parameter conditions
  • trading status conditions
  • football match result conditions
  • tennis match result conditions
  • special conditions

Market Application
Conditions can refer, where applicable, to the same market where the strategy is applied or to another market of the same event.

Selection Application
Conditions refer, where applicable, to the specified selection, which can be indicated in the following ways:

  • by Betfair row
  • by back price position, with selections ordered from 1 to N from the lowest best back price (price available to back).
  • by lay price position, with selections ordered from 1 to N from the lowest best lay price (price available to lay).
  • by volume position, with selections ordered from 1 to N from the highest matched volume.
  • by name containing. In this case, you need to specify a series of characters that constitute a string contained in the selection name.
  • By P/L position. Position 1 will indicate the selection with the lowest P/L value if it turns out to be a winner.

By selecting Inverse, the considered order will be reversed as described above, for example, indicating Betfair row 1 and selecting Inverse will choose the last in Betfair rows order.

Negated Conditions
A single condition can be negated by selecting the "Negate condition" option, meaning the expressed condition will be considered false when true and true when false.

Nodes of Conditions
Conditions are organized into logical nodes that express the required relationship between the conditions or the nodes that compose them. This tree structure allows for expressing complex conditions.

Conditions on the market parameters

Odd value of the selection
This condition considers the value of the best back price or the best lay price.

Back/Lay Spread Range
This condition allows setting the number of ticks difference between the best back price and the best lay price.

Unsuspended Market Time
Counts the time elapsed since the Market was reactivated after its suspension.

Market Book Percentage
Allows setting the value expressed as a percentage of the back or lay book.

Market Status
This condition verifies the status of a specific market (open, suspended, or closed).

Market In-Play
This condition checks if the Market is in play (live) or not (pre-match).

Market Type
This condition allows selecting a specific market among those available for the event.

Number of Market Selections
This condition allows setting a constraint on the number of selections included in the market.

Available Liquidity
This condition checks the amount of money available to be matched in the book on the specified side (BACK/LAY). The BACK side is the side of the bets available to lay, the LAY side is the side of the quotes available to back. It is possible to refer to the entire market or a specific selection, and it is also possible to calculate the liquidity present on all prices or on a specific price or a range of prices.

Traded Volume
This condition allows setting a reference numeric value on the amount of money traded on the single selection or the entire market. It is also possible to base the condition on a different market of the same event.

Selection Percentage Volume
This condition allows evaluating the percentage volume on a certain selection, i.e., the ratio between the matched volumes on that selection and the total volumes of the market.

Selection Traded Amount
This condition evaluates the traded volumes on the selection as they are matched.

Compare Selection Odds
This condition allows comparing the odds of two market selections.

Historical Selection Odds Comparison
This condition allows comparing the current or past prices of two market selections.

Compare Selection Volume
This condition allows comparing the traded volumes on two market selections.

Conditions on the trading status

Cash Out Available
This condition allows setting a reference value (positive or negative) for the cash out of a single selection or the entire market.

Count Bets
This condition counts the number of unmatched, partially matched, or fully matched bets, whether they are back or lay bets. The count can be done on the entire market in which you are operating or also on other markets.

Potential Profit/Loss
This condition allows setting a reference value in euros for the potential profit or loss of a selection or a maximum or minimum value for the entire market. It is also possible to base the condition on the market to which the condition is applied or another different market.

Profit/Loss Account
Allows checking the profit/loss on closed bets in the last hours.

Trading Position of the Selection
This condition refers to the situation of bets already executed on a specific selection. It is possible to check if the profit/loss is greater in case of the selection winning or losing, or if the outcome is indifferent regardless of the outcome (equalized profit). For example, after a BACK bet, the profit will be greater in case of a winning selection, after a LAY bet the profit will be greater in case of a losing selection.

Betfair Account Balance
This condition allows checking the value of your Betfair account balance or the exposure, i.e., how much money is currently used for unmatched bets.

My bets position in the book
This condition allows checking the position of your bets compared to the best quotes in the book, as described below:
- The book is considered without your bets, and the best back/lay prices present in it.
- For back bets, your bets with the lowest price are considered, for lay bets, your bets with the highest price are considered, i.e., the position of your bets closest to the spread area is observed.
- The position is the difference between the row of your closest price to the spread and the best available price (excluding your bets).
- Positive values mean that your bet is ahead of others in the book, i.e., it will be executed first in case of a contrary order.
- A zero value means that your bet is aligned with the best price in the book.
- Negative values indicate that your bet has been overtaken by others available in the book.
For example, a value of 2 means that your bet is first in the book, followed by an empty row (or with other of your bets), then there are the other bets in the book.

Time since last bet matched
This condition allows checking the time elapsed since the last matched bet. It is possible to refer to the entire market or a specific selection and possibly consider only fully matched bets as valid.

Conditions on the result of football match

These conditions use live match results to relate the strategy to the actual match progress. It should be noted that the accuracy and timeliness of the data, which BT acquires from third-party providers, are not guaranteed. Additionally, there is always a certain delay between acquiring the result value, which can take several seconds, and the market reaction, which is practically immediate. Moreover, in modern football, it is not uncommon for some goals to be invalidated by VAR decisions, which can create volatility in the quotes.

Impossible Result
This condition identifies impossible results in an ongoing match. Some markets, such as Exact Result, allow betting on a certain outcome even when the match progress makes it impossible to achieve.

Number of goals in the match
This condition checks the total number of goals in an ongoing match. The total number is the sum of the home team's and the away team's goals.

Match Result
This condition checks that the result of an ongoing match is the specified one, or that it is different from it (using the "negate" option on the condition). By selecting the "Half-time result" option, the condition will refer to the final outcome of the first half. If this is not yet available (e.g., because the match is in the first half), the condition will not be verified.

Relation between team goals
This condition allows relating the number of goals of the teams in an ongoing match. By selecting the "Half-time result" option, the condition will refer to the final outcome of the first half. If this is not yet available (e.g., because the match is in the first half), the condition will not be verified.

Team Events
This condition identifies events occurring for each team (e.g., yellow cards, red cards, etc.) in an ongoing match.

Match Time and Playing Time
This condition allows verifying if the match is in the first half, second half, the interval between the first and second half, or any time between the first and second half.
If it is required that the match is in the first or second half or any time between the first and second, an additional condition on the minute of play can be specified. In this case, the minute of play is understood from the beginning of the current half. For example, the second half will start from the first minute and will enter injury time at the 46th minute.

Goal Scored
This condition allows activating a rule based on a team having just scored a goal. The goal scored condition can be read only once in the strategy for each team, as after reading, the goal scored state is reset until the next goal. It is possible to set a minimum delay from the occurrence of the condition, in seconds.

Conditions on the result of tennis match

Tennis Score
Tramite questa condizione è possibile imporre che il punteggio del match  rientri in una particolare configurazione specificando per ciascun giocatore come si desidera sia il punteggio attuale in termini di set vinti, giochi vinti, punti vinti.

Tennis Relative Score
This condition allows specifying that the match score fits a particular configuration by specifying for each player how the current score should be in terms of sets won, games won, and points won.

Tennis Serving
This condition verifies which player has the service.

Tennis Won Point
This condition allows activating a rule based on a player having just won a point. The point won condition can be read only once in the strategy for each player, as after reading, the point won state is reset until the next point.

Particular Conditions

Number of Rule Executions
This condition allows comparing the number of times a rule has been executed with a reference value set by the user.

Formula
This type of condition is particularly powerful because it allows verifying a condition on certain market parameters by expressing the condition through a formula.

Stored Value
This condition allows evaluating the presence and value of a certain market value previously stored through the Set/Modify Stored Value action.

Still need help?

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