Variable

Type

Description

bm_backa

floating point

The amount of the last matched back bet that you placed on the selection.

bm_backp

floating point

The price of the last matched back bet that you placed on the selection.

bm_laya

floating point

The amount of the last matched lay bet that you placed on the selection.

bm_layp

floating point

The price of the last matched lay bet that you placed on the selection.

bm_backavp

floating point

The arithmetic average price of all matched back bets placed on the selection

bm_layavp

floating point

The arithmetic average price of all matched lay bets placed on the selection

bm_backnum

integer

The number of matched back bets placed on the selection.

bm_laynum

integer

The number of matched lay bets placed on the selection.

bm_number

integer

The total number of al matched bets placed on the selection

bm_type

0/1/2

The type of the last matched bet that was placed on the selection.The variable will return the index that corresponds with the type of the bet. Thus, 1 stands for a lay bet, and 2 stands for a back bet. If no matched bets found, this will return 0.

bu_backa

floating point

The amount of the last unmatched back bet that you placed on the selection.

bu_backp

floating point

The price of the last unmatched back bet that you placed on the selection.

bu_laya

floating point

The amount of the last unmatched lay bet that you placed on the selection.

bu_layp

floating point

The price of the last unmatched lay bet that you placed on the selection.

bu_backavp

floating point

The arithmetic average price of all unmatched back bets placed on the selection

bu_layavp

floating point

The arithmetic average price of all unmatched lay bets placed on the selection

bu_backnum

integer

The number of unmatched back bets placed on the selection.

bu_laynum

integer

The number of unmatched layback bets placed on the selection.

bu_number

integer

The total number of al unmatched bets placed on the selection

bu_type

0/1/2

The type of the last matched bet that was placed on the selection.The variable will return the index that corresponds with the type of the bet. Thus, 1 stands for a lay bet, and 2 stands for a back bet. If no matched bets found, this will return 0.

pricernd_[number]

floating point

The back price the selection had in round specified by [number]. If round with this number has not taken place in the current game yet, the variable return the price that the selection had in the previous game, in that round. Example:
pricernd_3: the price in the third round.
If the round never took place in the game, the variable will return 0.0.

back_price, back_price2, back_price3

floating point

The best three back prices offered for the selection. The highest back price is assigned to the variable back_price, the lowest one  to back_price3.

back_amount, back_amount2, back_amount3

floating point

The amounts that are offered at the best three back prices. The amount corresponding to the best back price is represented by back_amount.

lay_price, lay_price2, lay_price3

floating point

The best three lay prices offered for the selection. The lowest lay price is assigned to the variable lay_price, the highest one  to lay_price3.

lay_amount, lay_amount2, lay_amount3

floating point

The amounts that are offered at the best three lay prices. The amount corresponding to the best lay price is represented by lay_amount.

back_matched

floating point

The total amount of all back matched bets placed on the selection.

lay_matched

floating point

The total amount of all lay matched bets placed on the selection.

back_unmatched

floating point

The total amount of all back unmatched bets placed on the selection.

lay_unmatched

floating point

The total amount of all lay unmatched bets placed on the selection.

volume

floating point

The percentage of the money traded on this selection as compared to the total amount matched in the game. Can take a value from 0 to 100.

profit_loss

floating point

The P/L figure of the selection (the one that is displayed under its name). In multiplewinner markets (such as HiLo) this variable returns the left P/L figure.

profit_loss2

floating point

The right P/L figure in multiplewinner markets.

prev_price

floating point

The last nonzero price that the selection had in the previous rounds. For example, if you are currently in round 1 of Poker, then this will return the price that the selection had in round 4 of the previous game. If in that round the selection was already settled (and thus its price was null), the variable will return the price in the third round and so on.

points

integer

The number of points assigned to a selection in certain games (Baccarat, Blackjack, Card Derby, Bull's Eye Roulette)

prev_points

integer

The number of points the selection had in the last round of the previous game, i.e. the number of points it ended the game with.

hpoints

integer

The number of points that selection's handicap cards evaluate to in Card Derby.

sel_id

integer

The unique ID that BetFair assigned to this selection. This ID is generated by BetFair's server and is usually a severaldigit number that you can use in your trigger expressions if needed.

sel_index

integer

Selection's index in the game.

sel_rank

integer

The position the selection occupies in the list of all selections sorted by their price. Read here more.

sel_name

string

Selection's name (as it is displayed on the BetFair Games web site)

selconsec_wins

integer

The number of times in a row the selection has been a winner.

selconsec_losses

integer

The number of times in a row the selection has been a loser.

selconsec_ties

integer

The number of times in a row the selection has tied with other selections.

selwins_[number],
sellosses_[number],
selties_[number]

integer

The number of times the selection has been a loser, winner or tied within the last games, the number of games being specified by [number]. For example, here is the list of results the selection has shown in the last 6 games:
Game 1: winner
Game 2: loser
Game 3: loser
Game 4: tied
Game 5: winner
Game 6: loser
selwins_6 = 2
sellosses_6 = 3
selties_6 = 1
