example being:
Market Selection Bid Bet ID Bet placed Persistence Odds req. Stake Avg. odds matched
Naas 23rd Mar / Russian Lay 198754167413 23-Mar-20 P 2.72 5 Unmatched
17:00 1m Mdn Emperor
16:57
The excel subroutine used to place the bet was as follows:
- Code: Select all
Private Sub doubleBET()
Dim refs() As String
Dim selecIds(2) As Long
Dim betTypes(2) As String
Dim odds(2) As Double
Dim stake(2) As Double
Dim tokens(2) As String
Dim oddBACK As Double
Dim oddLAY As Double
oddBACK = Range(Sheets("Refresh").Cells(1 + 4, 8), Sheets("Refresh").Cells(1 + 4, 8))
oddLAY = Range(Sheets("Refresh").Cells(1 + 4, 6), Sheets("Refresh").Cells(1 + 4, 6))
If ba Is Nothing Then
Set ba = New BettingAssistantCom.ComClass
End If
ba.keepbettype = 2
ba.tabIndex = 0
'Example 2 bets only on same selection (selecId 0 = row 5)
selecIds(0) = 0
selecIds(1) = 0
betTypes(0) = "B"
betTypes(1) = "L"
odds(0) = oddBACK
odds(1) = oddLAY
stake(0) = 5
stake(1) = 5
tokens(0) = "test1"
tokens(1) = "test2"
refs = ba.placeBets(selecIds, betTypes, odds, stake, False, tokens) 'async
End Sub
I would have thought that ba.keepbettype = 2 would be the equivalent of BACKSP or LAYSP depending on what betTypes was. I was also wondering which I should us async or sync and what difference it makes.
Any help or advice appreciated.
Best regards
Paul