Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To get the price for the current bet: GET sports/10/fixtures/123456/prices?legs=MatchResult_Home

...

The following call gets the price for the current bet: GET sports/10/fixtures/123456/prices?legs=MatchResult_Home,HomeTeamTotalGoalsOverUnder_Over_2.5

Code Block
{
    "decimalPrice": 1.77,
    "probability": 0.4656463943226999,
    "suspended": false
}

Step 4: Request to create a market for the required bet

The following call creates a market in the customer's Trading Platform, if that combination of legs were not requested previously. In case market has been created previously it gets the market id from the Integration Service along with any other available context from Trading Platform

GET /sports/10/fixtures/123456/markets?legs=MatchResult_Home%2CHomeTeamTotalGoalsOverUnder_Over_2.5

Code Block
{
  "id": "104517634",
  "tradingPlatformId": "123abc",
  "tradingPlatformMetadata": "CP$null$6768414.2$Lions%20v%20Jaguares$45592268.2...",
  "tradingPlatformFixtureId": "1234"
}

Step 5: Request a result for the bet

GET sports/10/fixtures/123456/results?legs=MatchResult_Home,HomeTeamTotalGoalsOverUnder_Over_2.5

...