Skip to content

Commit

Permalink
correct orbit odds avergaing
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelnindodev committed Oct 19, 2023
1 parent abc1439 commit f368a9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/parsers/orbit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export class OrbitParser extends BaseParser {
betProviderId: `${item.clubA}_${item.clubB}_${item.eventDate}`, // TODO: create id creator on specific betProvider class
clubA: item.clubA,
clubB: item.clubB,
oddsAWin: (item.oddsArray[0], item.oddsArray[1]) / 2,
oddsBWin: (item.oddsArray[2], item.oddsArray[3]) / 2,
oddsAWin: (item.oddsArray[0] + item.oddsArray[1]) / 2,
oddsBWin: (item.oddsArray[2] + item.oddsArray[3]) / 2,
league: "N/A",
estimatedStartTimeUtc: item.estimatedStartTimeUtc,
meta: JSON.stringify({
Expand All @@ -86,9 +86,9 @@ export class OrbitParser extends BaseParser {
betProviderId: `${item.clubA}_${item.clubB}_${item.eventDate}`,
clubA: item.clubA,
clubB: item.clubB,
oddsAWin: (item.oddsArray[0], item.oddsArray[1]) / 2,
oddsBWin:(item.oddsArray[4], item.oddsArray[5]) / 2,
oddsDraw: (item.oddsArray[2], item.oddsArray[3]) / 2,
oddsAWin: (item.oddsArray[0] + item.oddsArray[1]) / 2,
oddsBWin:(item.oddsArray[4] + item.oddsArray[5]) / 2,
oddsDraw: (item.oddsArray[2] + item.oddsArray[3]) / 2,
league: "N/A",
estimatedStartTimeUtc: item.estimatedStartTimeUtc,
meta: JSON.stringify({
Expand Down

0 comments on commit f368a9c

Please sign in to comment.