Skip to main content

Odds360 Baseball

Odds360 baseball uses the same end-to-end flow as the baseball bookmaker pages in sportmicro-frontend:

  1. get the match from the SportMicro baseball feed
  2. request bookmaker-scoped Odds360 prices for that match_id
  3. keep the match updated with live streams

Service URLs

SportMicro baseball data: https://baseball.sportmicro.com/
Odds360 baseball feed: https://odds360.sportmicro.com/

Two access patterns

  • Public Odds360 API: https://odds360.sportmicro.com/baseball
  • Dashboard and bookmaker flow used by sportmicro-frontend: /bookmaker/{bookmakerId}/baseball/...

Supported baseball odd groups

  • player
  • team
  • inning-time
  • full-time

Odd group mapping

  • player -> odds.player
  • team -> odds.team
  • inning-time -> odds.inningTime
  • full-time -> odds.fullTime

1. Discover the match in SportMicro

Use the baseball data endpoints to get the match and metadata:

  • https://baseball.sportmicro.com/matches-live
  • https://baseball.sportmicro.com/matches-by-date
  • https://baseball.sportmicro.com/matches
  • https://baseball.sportmicro.com/leagues
  • https://baseball.sportmicro.com/classes

Important fields:

  • id or match_id
  • league_id
  • league_name
  • home_team_name
  • away_team_name
  • start_time
  • status_type

2. Confirm that the bookmaker can access baseball

GET /bookmaker/{bookmakerId}

The response contains the allowed sports for the bookmaker.

3. Load the baseball match list with prices

GET /bookmaker/{bookmakerId}/baseball/matches?page=0
GET /bookmaker/{bookmakerId}/baseball/matches?page=0&status=live
GET /bookmaker/{bookmakerId}/baseball/matches?page=0&awayTeam=Yankees

Available query parameters:

  • page
  • league
  • homeTeam
  • awayTeam
  • status with live or upcoming

Backend behavior:

  • page size is 100
  • postponed and finished matches are excluded
  • only matches with totalOdds > 0 are returned

4. Load the full baseball odds payload

GET /bookmaker/{bookmakerId}/baseball/{matchId}

Important response shape:

{
"matchId": 2450840,
"sport": "baseball",
"odds": {
"player": {},
"team": {},
"inningTime": {},
"fullTime": {}
},
"override": []
}

The frontend also loads:

GET /bookmaker/{bookmakerId}/baseball/{matchId}/verify

5. Use the raw Odds360 REST service

GET https://odds360.sportmicro.com/baseball
GET https://odds360.sportmicro.com/baseball-history
GET https://odds360.sportmicro.com/baseball-classes
GET https://odds360.sportmicro.com/baseball-leagues

6. Subscribe to live updates

Updates

wss://odds360.sportmicro.com/live/{bookmaker_id}/baseball/{match_id}/updates
https://odds360.sportmicro.com/live/{bookmaker_id}/baseball/{match_id}/updates

Overrides

wss://odds360.sportmicro.com/live/{bookmaker_id}/baseball/{match_id}/overrides
https://odds360.sportmicro.com/live/{bookmaker_id}/baseball/{match_id}/overrides

Dashboard subscriptions:

GET /bookmaker/{bookmakerId}/baseball/{matchId}/updates
GET /bookmaker/{bookmakerId}/baseball/{matchId}/overrides

7. Optional manual overrides

PATCH /bookmaker/{bookmakerId}/baseball/{matchId}/{oddType}

Typical body:

{
"oddKey": "market_name#outcome_key",
"oddValue": 1.85,
"durationSeconds": 3600,
"suspended": false
}

WebSocket example

const ws = new WebSocket(
"wss://odds360.sportmicro.com/live/<bookmaker_id>/baseball/<match_id>/updates"
);
ws.addEventListener("message", (ev) => console.log(JSON.parse(ev.data)));

SSE example

const es = new EventSource(
"https://odds360.sportmicro.com/live/<bookmaker_id>/baseball/<match_id>/updates"
);
es.addEventListener("message", (ev) => console.log(JSON.parse(ev.data)));

Notes

  • match_id should come from the baseball SportMicro match feed.
  • bookmaker_id is the UUID assigned to your Odds360 bookmaker.
  • /bookmaker/... routes are the authenticated dashboard routes used by sportmicro-frontend.
  • https://odds360.sportmicro.com/... routes are the public Odds360 API routes.
  • The frontend only shows odd groups that are present and non-empty for the match.