Places one or more bets into a market. The details of each bet to be placed (selection Id, price, stake, back/lay) is provided by populating the betsToPlace field with PlaceBetInfo objects.
If the globalSettings field is populated, those settings will apply to each of the bets. The normal global settings that are available on the Bet Angel trading screen as also available to this API. e.g. Offsetting (with or without greening), Stop loss, Batches, Fill or Kill.
Note: This operation can also be used to place BSP (betfair SP) bets, in which case the stake field specifies the required SP liability and the price field sets a price limit when that option is chosen as the bspBetType.
The result in the operation's response contains a list of PlaceBetResultInfo objects, one for each bet that was requested to be placed.
|
Following an asynchronous call to placeBets, this operation gets the results of the bet placement request (as described in placeBets)
Provide the marketId used when originally placing the bets and the pendingResultId that was returned in that response and Bet Angel will lookup the results.
|
Modifies one or more unmatched bets in a market. The details of each modification required is provided by populating the betsToModify field with ModifyBetInfo objects. In each of those objects, the bet reference must be provided; then you can optionally provide a new price, a new stake, and/or a new At In-play option. Although the betfair API only allows one of those changes to be made at a time, with the Bet Angel API you can change any of those values at the same time; Bet Angel will make multiple calls to betfair as required.
The result in the operation's response contains a list of ModifyBetResultInfo objects, one for each bet that was requested to be modified.
|
Following an asynchronous call to modifyBets, this operation gets the results of the bet modification request (as described in modifyBets)
Provide the marketId used when originally modifying the bets and the pendingResultId that was returned in that response and Bet Angel will lookup the results.
|
Cancels unmatched bets in the market specified in the instruction.
By using the type field you can restrict the request to only cancel Back bets or only cancel Lay bets.
Note: If both filterOption and type fields are left blank then a request will be made to cancel every bet currently unmatched in Bet Angel for the market.
The result in the operation's response will contain a CancelBetResultInfo object for each bet that was requested to be cancelled.
|
Following an asynchronous call to cancelBets, this operation gets the results of the bet cancellation request (as described in cancelBets)
Provide the marketId used when originally cancelling the bets and the pendingResultId that was returned in that response and Bet Angel will lookup the results.
|
Executes the Green All Selections process on the market specified in the instruction. This will look at the matched bet amounts for all selections in the market in Bet Angel, calculate the stakes required to even out the profit values and place the necessary bets.
By default, the Best market price for each selection is used when placing the greening bets, but by using the priceOption you can change that to use the Reverse market price if you wish to offer bets to the market.
Depending on the Green Up Rules in Bet Angel Settings, Green All Selections will request that the unmatched bets in the market in Bet Angel are cancelled before the new bets are placed.
The result in the operation's response contains a list of CancelBetResultInfo objects (one for each bet that needed to be cancelled) and a list of PlaceBetResultInfo objects (one for each bet that needed to be placed).
The status in each of those objects will indicates whether the bet was cancelled/placed:
|
GreenAllSelectionsResponse getPendingGreenAllSelectionsResult( GetPendingResultInstruction instruction )
Following an asynchronous call to greenAllSelections, this operation gets the results of the bet cancellation and placement requests (as described in greenAllSelections)
Provide the marketId used when originally calling greenAllSelections and the pendingResultId that was returned in that response and Bet Angel will lookup the results.
|
Executes the Trade Closure process on the market and selection specified in the instruction. This will look at the matched bet amounts for the selection in the market in Bet Angel, calculate the stake required to close the trade (with or without greening) at the price requested and place the necessary bets.
By default, the Best market price is used when placing the bet, but by using the priceOption you have more control over where the bet is positioned in the market. See CloseTradeInstruction for more details.
Depending on the Green Up Rules in Bet Angel Settings, Close Trade will request that the unmatched bets on the selection in the market in Bet Angel are cancelled before the new bets are placed.
The result in the operation's response contains a list of CancelBetResultInfo objects (one for each bet that needed to be cancelled) and a PlaceBetResultInfo object (for the bet that needed to be placed to close the trade).
The status in each of those objects will indicates whether the bet was cancelled/placed:
|
Following an asynchronous call to closeTrade, this operation gets the results of the bet cancellation and placement requests (as described in closeTrade)
Provide the marketId used when originally calling closeTrade and the pendingResultId that was returned in that response and Bet Angel will lookup the results.
|