Hi
As the selectionId is the only object that is common in all betting calls, it does make an ideal Dictionary Key to collect and store all the market information at start up, especially as marketCatalogue refreshes after a Closed Book.
Therefore, is the selectionId a unique number assigned to each Runner in each separate Market or would the Runner share the same selectionId if declared for multiple markets?
So on the occasion when a Runner has multiple entries (Which is common in horse racing in winter and bank holidays)
Seeing a Dictionary cannot have a duplicate key what would actually be the case?
(Of course the error could be caught by using If Not Contains(Key) but that would mean the later entries would be ignored on a FIRST_TO_START basis) which could be the one required!
Example – would it be (Hope Not)
selId 1234 “Joe Egg” 2.40 Fontwell 2m Novice Hrd mktId 1.4567 status “REMOVED” Kept!
selId 1234 “Joe Egg” 3.40 Warwick 3m Novice Hrd mktId 1.5678 status“ACTIVE” Dumped!
Or (Hopefully)
selId 1234 “Joe Egg” 2.40 Fontwell 2m Novice Hrd mktId 1.4567 status“REMOVED” Kept
selId 1345 “Joe Egg” 3.40 Warwick 3m Novice Hrd mktId 1.5678 status “ACTIVE” Kept
Would be grateful for any Input
Cheers
Dave
As the selectionId is the only object that is common in all betting calls, it does make an ideal Dictionary Key to collect and store all the market information at start up, especially as marketCatalogue refreshes after a Closed Book.
Therefore, is the selectionId a unique number assigned to each Runner in each separate Market or would the Runner share the same selectionId if declared for multiple markets?
So on the occasion when a Runner has multiple entries (Which is common in horse racing in winter and bank holidays)
Seeing a Dictionary cannot have a duplicate key what would actually be the case?
(Of course the error could be caught by using If Not Contains(Key) but that would mean the later entries would be ignored on a FIRST_TO_START basis) which could be the one required!
Example – would it be (Hope Not)
selId 1234 “Joe Egg” 2.40 Fontwell 2m Novice Hrd mktId 1.4567 status “REMOVED” Kept!
selId 1234 “Joe Egg” 3.40 Warwick 3m Novice Hrd mktId 1.5678 status“ACTIVE” Dumped!
Or (Hopefully)
selId 1234 “Joe Egg” 2.40 Fontwell 2m Novice Hrd mktId 1.4567 status“REMOVED” Kept
selId 1345 “Joe Egg” 3.40 Warwick 3m Novice Hrd mktId 1.5678 status “ACTIVE” Kept
Would be grateful for any Input
Cheers

Dave


Comment