SharpSports represents all bets in the same format, regardless of what sportsbook they come from. It's important to understand the 💰 BetSlip and 📃 Bet structure to decide how you'd like to present the bets to bettors.
Use this mapping to show users scores, stats and other pieces of information alongside their tracked bets.
You'll find mapped market ids to various data providers on the 🏷️ MarketSelection and 📃 Bet object. Different data providers define markets differently, so make sure to understand what the market corresponds to.
Use this mapping to show live odds, closing line value, and other relevant data points.
Use this mapping to show headshots, logos, and various stats related to those specific players and teams.
You'll notice that 📃 Bet and 💰 BetSlip objects have an
incomplete attribute. When
incomplete=true, that means that particular bet or betslip has not been fully parsed into all the relevant qualitative features.
All the attributes related to the accounting of the 💰 BetSlip (
status) and the
bookDescription will always be displayed but the specific event, player, team, proposition, position, etc. may not be included on the object.
When the bet is
incomplete SharpSports recommends only using those fields when displaying the bet to the user. You won't be able to filter or query by all the fields used on a
complete bet, but the bettor will always recognize the
bookDescription since it is the string representation of what they saw when they placed the bet.
The vast majority of bets are complete, and SharpSports is working towards a 100% complete rate but there are always edge cases and new types of bets that will be incomplete for some period of time.
Updated about 1 month ago