I hate to burst your bubble, but you won't manage to do this the way you and everyone else described.
In order to have deep linking (aff link which goes to a specific market), you have to create a custom solution for each bookmaker you're affiliated with. Most don't have deep linking, only some do. You're in over your head if you attempt to make this an automatic process, you'll spend a year and do nothing.
But I have a solution for you. 
Find a bookmaker which has a transparent URL which is showing the ID of the match and the market, and ask your affiliate manager can you insert the market code into your affiliate links manually to make those links go to that page.
Let's assume your affiliate link is www.bookie.com?aff=1234 and you manually change it to www.bookie.com?aff=1234&match=4567&market=789 if you want the link to land on match 4567, betting market 789. Got it?
Professional bizdev can help you, the affiliate, to negotiate better terms with casinos. PM for details and a free evaluation of what I can do for you. All geos.