APIAPI v2V2 endpoint referenceBetting
/teams/{teamId}/betting-history
Simulate a flat stake on a team's recent fixtures
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
Range
1 <= value <= 500Default
38stake?number
Flat stake placed on every fixture; defaults to 100
Range
0.01 <= valueDefault
100side?"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
Format
dateto?string
Latest kickoff day, inclusive
Format
datebracket?array<string>
Price band as minOdds:maxOdds:label; repeat up to 10 times. Omit for the default favourite-to-underdog bands.
Items
items <= 10Response 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" } }}