Skip to content

get_market_vs_model

10 creditsTime-seriesPOST /v1/get_market_vs_model

In-play prices beside our win probability, lined up to the exact ball

Use it when you want to see where the in-play market and our model disagreed during a match, tied to the exact ball before each price.

Parameters

match_idstringrequired
Match id from get_matches.
leagueenum: cricket | test | odi | t20i | ipl | bbl | psl | cpl | blast | hundred | sa20 | ilt20 | county | wbbl | wpl | hundred_womenoptional
League. Defaults to cricket. One of: cricket, test, odi, t20i, ipl, bbl, psl, cpl, blast, hundred, sa20, ilt20, county, wbbl, wpl, hundred_women.

Notes

  • Over MCP, ask for it in plain English and the client calls get_market_vs_model itself. Point any MCP client at https://mcp.yorkerapi.com/mcp?key=YOUR_API_KEY.
  • Each call costs 10 credits, taken before it runs and refunded if the server errors.
  • Not the call you need? Find the right call by what you are trying to answer.

Request

curl -X POST https://mcp.yorkerapi.com/v1/get_market_vs_model \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "match_id": "1473511"
}'

Response

json
{
  "match_id": "1473511",
  "team1_id": "royal-challengers-bengaluru",
  "team2_id": "punjab-kings",
  "winner_id": "royal-challengers-bengaluru",
  "snapshots": [],
  "widest_gap": null,
  "count": 0,
  "note": "We hold in-play prices for this match but no ball times to line them up with.",
  "method": "market_team1 is the median margin-free in-play price on team 1 across books. model_team1 is our win probability after the last ball bowled before that snapshot, from team 1's side. gap is model minus market."
}