I have build the basics of table build and all seems well and good.
My main problem with the program still remains with the market id.
Once I double click the market I am wanting to look at it prints the market id
Code:
Private Sub lbMarkets_DoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lbmarkets.DoubleClick
Dim s As String, Part As String(), marketId As Integer
s = lbmarkets.SelectedItem 'The selected item
Part = s.Split(" ") 'Get the parts of the item separated by spaces
marketId = Val(Part(1)) 'The marketId is the second part
Print("marketId = " & marketId)
Dim oCMPCreq As New BFUK.GetCompleteMarketPricesCompressedReq
With oCMPCreq
.header = oHeaderUK()
.marketId = marketId
End With
StateCount += 1
BetFairUK.getCompleteMarketPricesCompressedAsync(oCMPCreq, StateCount) 'Call the APi
Is there a way to set this as the current market ID for a public string that can be used throughout all other requests, such as pressing buttons runners or prices?
I have been trying to reference the marketID as it currently stands but keeps producing the error INVALID_MARKET.
Perhaps I am missing a trick here




Leave a comment: