StatsHub Docs
APIAPI v2V2 endpoint referenceBetting

/teams/{teamId}/betting-history

Simulate a flat stake on a team's recent fixtures

GET
/teams/{teamId}/betting-history

Simulate a flat stake on a team's recent fixtures

Path Parameters

teamId*string

Opaque resource ID

Match^[1-9][0-9]*$

Query Parameters

limit?integer

Most recent settled fixtures to simulate; defaults to 38

Range1 <= value <= 500
Default38
stake?number

Flat stake placed on every fixture; defaults to 100

Range0.01 <= value
Default100
side?"team"

Which side the stake backs

Value in

  • "team"
venue?string

Restrict to home or away fixtures

Value in

  • "home"
  • "away"
competitionId?string

Filter by competition

Match^[1-9][0-9]*$
from?string

Earliest kickoff day, inclusive

Formatdate
to?string

Latest kickoff day, inclusive

Formatdate
bracket?array<string>

Price band as minOdds:maxOdds:label; repeat up to 10 times. Omit for the default favourite-to-underdog bands.

Itemsitems <= 10

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/teams/string/betting-history"
{  "data": {    "brackets": [      {        "drawn": 0,        "label": "string",        "lost": 0,        "maxOdds": 0.1,        "minOdds": 0.1,        "played": 0,        "returns": {          "profit": 0.1,          "roiPercent": 0.1,          "totalReturned": 0.1,          "totalStaked": 0.1        },        "winRatePercent": 0.1,        "won": 0      }    ],    "filters": {      "competitionId": "string",      "from": "2019-08-24T14:15:22Z",      "limit": 0,      "side": "team",      "stake": 0.1,      "to": "2019-08-24T14:15:22Z",      "venue": "string"    },    "matches": [      {        "awayTeam": {          "id": "string",          "name": "string",          "slug": "string"        },        "bet": {          "backedOdds": 0,          "profit": 0,          "runningProfit": 0.1,          "stake": 0.1,          "won": true        },        "competition": {          "id": "string",          "name": "string",          "slug": "string"        },        "fixture": {          "id": "string",          "name": "string",          "slug": "string"        },        "home": true,        "homeTeam": {          "id": "string",          "name": "string",          "slug": "string"        },        "kickoffAt": "2019-08-24T14:15:22Z",        "odds": {          "bestAwayWin": 0,          "bestDraw": 0,          "bestHomeWin": 0,          "bookmaker": "string"        },        "result": "win",        "score": {          "away": 0,          "awayNormal": 0,          "home": 0,          "homeNormal": 0        }      }    ],    "summary": {      "backedWinRatePercent": 0.1,      "matchesWithOdds": 0,      "returns": {        "profit": 0.1,        "roiPercent": 0.1,        "totalReturned": 0.1,        "totalStaked": 0.1      },      "totalMatches": 0    },    "team": {      "id": "string",      "name": "string",      "slug": "string"    }  }}