Generate a Smartbet

Returns a Smartbet generated based on input parameters

POST https://api.betstack.io/bc/smartbets/{code}

json payload

{
  "stake": 10,
  "win": 10000,
  "risk": "1.25-4.99"
}

Response example

{
  "stake": 10,
  "win": 10000,
  "risk": "1.25-1.99",
  "potential_win": 10265.41,
  "events": [
    {
      "id": 106202,
      "starts": "2024-01-31T18:00:00",
      "category": {
        "league_id": 1001,
        "league_slug": "football/spain/la-liga",
        "league_name": "La Liga",
        "country_id": 101,
        "country_slug": "spain",
        "country_name": "Spain"
      },
      "home_team": {
        "slug": "barcelona",
        "name": "Barcelona",
        "id": 100020
      },
      "away_team": {
        "slug": "osasuna",
        "name": "Osasuna",
        "id": 100019
      },
      "bet": {
        "id": 14,
        "bet_code": "O",
        "bet_name": "Over",
        "market_code": "OUFT",
        "market_name": "Over/Under Full Time",
        "line_code": "25",
        "line_name": "2.5",
        "odds": 1.61,
        "updated": "2024-01-27T01:41:07"
      }
    }
  ]
}

If a Smartbet can't be generated due to lack of events an error response is retured with status code 400

{
  "code": 104,
  "message": "Not enough data to generate a Smartbet 4253A4"
}

Last updated