placeBet
placeBet(selecId:Integer,betType:String,odds:Double,stake:Double,waitForResult:Boolean,token:String,fillKillDelay:Double,KeepBetType:Integer):String
Places a bet on 1 selection and returns bet reference or error message received from Betfair’s server.
Parameters
selecId: index of selection, eg. to place a bet on the 3rd selection down selecId=2
betType: “B” to back and “L” to lay.
Odds: required odds
Stake: required stake
waitForResult: Set to false to place bet in background and get result in betPlaced event. Set to true to wait for bet placement.
token: An identifier to be returned in betPlaced event to match to original request. Can be any string value you want.
fillKillDelay: Optional. If used the bet will be cancelled if unmatched after a specified number of seconds, e.g. 0.5 for half a second.
KeepBetType: Optional. If used this option will override the KeepBetType global property if that was previously set.
Use 0 to set 'Cancel when market turns in play', 1 to set 'do not cancel when market turns in play' or 2 to set 'Convert to SP when market turns in play'
Use 6 to place at SP (odds will be used to limit the SP bet, e.g. max odds for a lay bet and min odds for a back bet, use 0 if you do not want to set a limit)