overtime-live-trading-utils 2.1.35 → 2.1.37-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.circleci/config.yml +32 -32
  2. package/.prettierrc +9 -9
  3. package/codecov.yml +20 -20
  4. package/index.ts +26 -26
  5. package/jest.config.ts +16 -16
  6. package/main.js +1 -1
  7. package/package.json +30 -30
  8. package/src/constants/common.ts +8 -7
  9. package/src/constants/errors.ts +7 -6
  10. package/src/constants/sports.ts +78 -78
  11. package/src/enums/sports.ts +109 -109
  12. package/src/tests/mock/MockLeagueMap.ts +200 -170
  13. package/src/tests/mock/MockOpticOddsEvents.ts +662 -662
  14. package/src/tests/mock/MockOpticSoccer.ts +9864 -9378
  15. package/src/tests/mock/MockSoccerRedis.ts +2308 -2308
  16. package/src/tests/unit/bookmakers.test.ts +148 -79
  17. package/src/tests/unit/markets.test.ts +176 -156
  18. package/src/tests/unit/odds.test.ts +103 -92
  19. package/src/tests/unit/resolution.test.ts +1488 -1393
  20. package/src/tests/unit/sports.test.ts +58 -58
  21. package/src/tests/unit/spread.test.ts +144 -131
  22. package/src/tests/utils/helper.ts +10 -0
  23. package/src/types/bookmakers.ts +7 -0
  24. package/src/types/missing-types.d.ts +2 -2
  25. package/src/types/odds.ts +80 -61
  26. package/src/types/resolution.ts +96 -96
  27. package/src/types/sports.ts +22 -19
  28. package/src/utils/bookmakers.ts +315 -159
  29. package/src/utils/constraints.ts +210 -210
  30. package/src/utils/gameMatching.ts +81 -81
  31. package/src/utils/markets.ts +119 -119
  32. package/src/utils/odds.ts +947 -918
  33. package/src/utils/opticOdds.ts +71 -71
  34. package/src/utils/resolution.ts +319 -319
  35. package/src/utils/sportPeriodMapping.ts +36 -36
  36. package/src/utils/sports.ts +51 -51
  37. package/src/utils/spread.ts +97 -97
  38. package/tsconfig.json +17 -13
  39. package/webpack.config.js +24 -24
  40. package/CLAUDE.md +0 -84
  41. package/resolution_live_markets.md +0 -356
@@ -1,58 +1,58 @@
1
- import {
2
- getBetTypesForLeague,
3
- getLeagueSpreadTypes,
4
- getLeagueTotalTypes,
5
- getLiveSupportedLeagues,
6
- } from '../../utils/sports';
7
- import { LeagueMocks } from '../mock/MockLeagueMap';
8
-
9
- describe('Sports', () => {
10
- it('Should return all enabled leagues for LIVE', () => {
11
- const supportedLeageus = getLiveSupportedLeagues(LeagueMocks.leagueInfoEnabledSpeadAndTotals);
12
-
13
- expect(supportedLeageus).toContain(9806);
14
- });
15
-
16
- it('Should return all enabled bet types for league', () => {
17
- const betTypes = getBetTypesForLeague(9806, LeagueMocks.leagueInfoEnabledAll);
18
-
19
- expect(betTypes).toContain('Moneyline');
20
- expect(betTypes).toContain('Goal Spread');
21
- expect(betTypes).toContain('Total Goals');
22
- expect(betTypes).toContain('Double Chance');
23
- expect(betTypes).toContain('Correct Score');
24
- });
25
-
26
- it('Should return all enabled bet types for league, and not contain disabled ones (Totals)', () => {
27
- const betTypes = getBetTypesForLeague(9806, LeagueMocks.leagueInfoEnabledSpreadDisabledTotals);
28
-
29
- expect(betTypes).toContain('Moneyline');
30
- expect(betTypes).toContain('Goal Spread');
31
- expect(betTypes).not.toContain('Total Goals');
32
- });
33
-
34
- it('Should return all enabled bet types for league, and not contain disabled ones (Double Chance and Correct Score)', () => {
35
- const betTypes = getBetTypesForLeague(9806, LeagueMocks.leagueInfoDisabledCorrectScoreAndDoubleChance);
36
-
37
- expect(betTypes).toContain('Moneyline');
38
- expect(betTypes).toContain('Goal Spread');
39
- expect(betTypes).not.toContain('Double Chance');
40
- expect(betTypes).not.toContain('Correct Score');
41
- });
42
-
43
- it('Should return all enabled spread bet types for league', () => {
44
- const betTypes = getLeagueSpreadTypes(9806, LeagueMocks.leagueInfoEnabledSpeadAndTotals);
45
-
46
- expect(betTypes).not.toContain('moneyline');
47
- expect(betTypes).toContain('goal spread');
48
- expect(betTypes).not.toContain('total goals');
49
- });
50
-
51
- it('Should return all enabled total bet types for league', () => {
52
- const betTypes = getLeagueTotalTypes(9806, LeagueMocks.leagueInfoEnabledSpeadAndTotals);
53
-
54
- expect(betTypes).not.toContain('moneyline');
55
- expect(betTypes).not.toContain('goal spread');
56
- expect(betTypes).toContain('total goals');
57
- });
58
- });
1
+ import {
2
+ getBetTypesForLeague,
3
+ getLeagueSpreadTypes,
4
+ getLeagueTotalTypes,
5
+ getLiveSupportedLeagues,
6
+ } from '../../utils/sports';
7
+ import { LeagueMocks } from '../mock/MockLeagueMap';
8
+
9
+ describe('Sports', () => {
10
+ it('Should return all enabled leagues for LIVE', () => {
11
+ const supportedLeageus = getLiveSupportedLeagues(LeagueMocks.leagueInfoEnabledSpeadAndTotals);
12
+
13
+ expect(supportedLeageus).toContain(9806);
14
+ });
15
+
16
+ it('Should return all enabled bet types for league', () => {
17
+ const betTypes = getBetTypesForLeague(9806, LeagueMocks.leagueInfoEnabledAll);
18
+
19
+ expect(betTypes).toContain('Moneyline');
20
+ expect(betTypes).toContain('Goal Spread');
21
+ expect(betTypes).toContain('Total Goals');
22
+ expect(betTypes).toContain('Double Chance');
23
+ expect(betTypes).toContain('Correct Score');
24
+ });
25
+
26
+ it('Should return all enabled bet types for league, and not contain disabled ones (Totals)', () => {
27
+ const betTypes = getBetTypesForLeague(9806, LeagueMocks.leagueInfoEnabledSpreadDisabledTotals);
28
+
29
+ expect(betTypes).toContain('Moneyline');
30
+ expect(betTypes).toContain('Goal Spread');
31
+ expect(betTypes).not.toContain('Total Goals');
32
+ });
33
+
34
+ it('Should return all enabled bet types for league, and not contain disabled ones (Double Chance and Correct Score)', () => {
35
+ const betTypes = getBetTypesForLeague(9806, LeagueMocks.leagueInfoDisabledCorrectScoreAndDoubleChance);
36
+
37
+ expect(betTypes).toContain('Moneyline');
38
+ expect(betTypes).toContain('Goal Spread');
39
+ expect(betTypes).not.toContain('Double Chance');
40
+ expect(betTypes).not.toContain('Correct Score');
41
+ });
42
+
43
+ it('Should return all enabled spread bet types for league', () => {
44
+ const betTypes = getLeagueSpreadTypes(9806, LeagueMocks.leagueInfoEnabledSpeadAndTotals);
45
+
46
+ expect(betTypes).not.toContain('moneyline');
47
+ expect(betTypes).toContain('goal spread');
48
+ expect(betTypes).not.toContain('total goals');
49
+ });
50
+
51
+ it('Should return all enabled total bet types for league', () => {
52
+ const betTypes = getLeagueTotalTypes(9806, LeagueMocks.leagueInfoEnabledSpeadAndTotals);
53
+
54
+ expect(betTypes).not.toContain('moneyline');
55
+ expect(betTypes).not.toContain('goal spread');
56
+ expect(betTypes).toContain('total goals');
57
+ });
58
+ });
@@ -1,131 +1,144 @@
1
- import { ZERO_ODDS_AFTER_SPREAD_ADJUSTMENT } from '../../constants/errors';
2
- import { processMarket } from '../../utils/markets';
3
- import { mapOpticOddsApiFixtureOdds } from '../../utils/opticOdds';
4
- import { LeagueMocks } from '../mock/MockLeagueMap';
5
- import { MockAfterSpreadZeroOdds1, MockOnlyMoneylineFavorite, MockOpticSoccer } from '../mock/MockOpticSoccer';
6
- import { mockSoccer } from '../mock/MockSoccerRedis';
7
-
8
- describe('Spread configuration', () => {
9
- it('Should return zero odds for quotes that sum up total probability above 1', () => {
10
- const freshMockSoccer = JSON.parse(JSON.stringify(mockSoccer));
11
- const freshMockOpticSoccer = JSON.parse(JSON.stringify(MockAfterSpreadZeroOdds1));
12
- const market = processMarket(
13
- freshMockSoccer,
14
- mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
15
- ['draftkings'],
16
- [],
17
- false,
18
- undefined,
19
- undefined,
20
- LeagueMocks.leagueInfoEnabledSpeadAndTotals
21
- );
22
-
23
- const hasOdds = market.odds.some(
24
- (odd: any) => odd.american !== 0 || odd.decimal !== 0 || odd.normalizedImplied !== 0
25
- );
26
-
27
- expect(hasOdds).toBe(false);
28
- expect(market).toHaveProperty('errorMessage');
29
- expect(market.errorMessage).toBe(ZERO_ODDS_AFTER_SPREAD_ADJUSTMENT); // should be no matching bookmakers mesage
30
- });
31
-
32
- it('Should have diff between odds equal to 3%', () => {
33
- const freshMockSoccer = JSON.parse(JSON.stringify(mockSoccer));
34
- const freshMockOpticSoccer = JSON.parse(JSON.stringify(MockOpticSoccer));
35
- const market = JSON.parse(
36
- JSON.stringify(
37
- processMarket(
38
- freshMockSoccer,
39
- mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
40
- ['draftkings'],
41
- [],
42
- true,
43
- undefined,
44
- undefined,
45
- LeagueMocks.leagueInfoOnlyParent
46
- )
47
- )
48
- );
49
-
50
- const marketWithAddedSpread = JSON.parse(
51
- JSON.stringify(
52
- processMarket(
53
- freshMockSoccer,
54
- mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
55
- ['draftkings'],
56
- [],
57
- true,
58
- undefined,
59
- undefined,
60
- LeagueMocks.leagueInfoOnlyParentWithSpreadAdded
61
- )
62
- )
63
- );
64
-
65
- const diff1 =
66
- ((market.odds[0].decimal - marketWithAddedSpread.odds[0].decimal) / marketWithAddedSpread.odds[0].decimal) *
67
- 100;
68
-
69
- const diff2 =
70
- ((market.odds[1].decimal - marketWithAddedSpread.odds[1].decimal) / marketWithAddedSpread.odds[1].decimal) *
71
- 100;
72
-
73
- const diff3 =
74
- ((market.odds[2].decimal - marketWithAddedSpread.odds[2].decimal) / marketWithAddedSpread.odds[2].decimal) *
75
- 100;
76
-
77
- expect(Math.round(diff1)).toBe(3);
78
- expect(Math.round(diff2)).toBe(3);
79
- expect(Math.round(diff3)).toBe(3);
80
- });
81
-
82
- it('Should have diff between odds equal to 3%, and one odd should stay the same', () => {
83
- const freshMockSoccer = JSON.parse(JSON.stringify(mockSoccer));
84
- const freshMockOpticSoccer = JSON.parse(JSON.stringify(MockOnlyMoneylineFavorite));
85
- const market = JSON.parse(
86
- JSON.stringify(
87
- processMarket(
88
- freshMockSoccer,
89
- mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
90
- ['draftkings'],
91
- [],
92
- true,
93
- undefined,
94
- undefined,
95
- LeagueMocks.leagueInfoOnlyParent
96
- )
97
- )
98
- );
99
-
100
- const marketWithAddedSpread = JSON.parse(
101
- JSON.stringify(
102
- processMarket(
103
- freshMockSoccer,
104
- mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
105
- ['draftkings'],
106
- [],
107
- true,
108
- undefined,
109
- undefined,
110
- LeagueMocks.leagueInfoOnlyParentWithSpreadAdded
111
- )
112
- )
113
- );
114
-
115
- const diff1 =
116
- ((market.odds[0].decimal - marketWithAddedSpread.odds[0].decimal) / marketWithAddedSpread.odds[0].decimal) *
117
- 100;
118
-
119
- const diff2 =
120
- ((market.odds[1].decimal - marketWithAddedSpread.odds[1].decimal) / marketWithAddedSpread.odds[1].decimal) *
121
- 100;
122
-
123
- const diff3 =
124
- ((market.odds[2].decimal - marketWithAddedSpread.odds[2].decimal) / marketWithAddedSpread.odds[2].decimal) *
125
- 100;
126
-
127
- expect(Math.round(diff1)).toBe(0);
128
- expect(Math.round(diff2)).toBe(3);
129
- expect(Math.round(diff3)).toBe(3);
130
- });
131
- });
1
+ import { ZERO_ODDS_AFTER_SPREAD_ADJUSTMENT } from '../../constants/errors';
2
+ import { processMarket } from '../../utils/markets';
3
+ import { mapOpticOddsApiFixtureOdds } from '../../utils/opticOdds';
4
+ import { LeagueMocks } from '../mock/MockLeagueMap';
5
+ import { MockAfterSpreadZeroOdds1, MockOnlyMoneylineFavorite, MockOpticSoccer } from '../mock/MockOpticSoccer';
6
+ import { mockSoccer } from '../mock/MockSoccerRedis';
7
+ import { getLastPolledMapForBookmakers, MAX_ALLOWED_PROVIDER_DATA_STALE_DELAY_TEST } from '../utils/helper';
8
+
9
+ const lastPolledMap = getLastPolledMapForBookmakers();
10
+
11
+ describe('Spread configuration', () => {
12
+ it('Should return zero odds for quotes that sum up total probability above 1', () => {
13
+ const freshMockSoccer = JSON.parse(JSON.stringify(mockSoccer));
14
+ const freshMockOpticSoccer = JSON.parse(JSON.stringify(MockAfterSpreadZeroOdds1));
15
+ const market = processMarket(
16
+ freshMockSoccer,
17
+ mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
18
+ ['draftkings'],
19
+ [],
20
+ false,
21
+ undefined,
22
+ undefined,
23
+ LeagueMocks.leagueInfoEnabledSpeadAndTotals,
24
+ lastPolledMap,
25
+ MAX_ALLOWED_PROVIDER_DATA_STALE_DELAY_TEST
26
+ );
27
+
28
+ const hasOdds = market.odds.some(
29
+ (odd: any) => odd.american !== 0 || odd.decimal !== 0 || odd.normalizedImplied !== 0
30
+ );
31
+
32
+ expect(hasOdds).toBe(false);
33
+ expect(market).toHaveProperty('errorMessage');
34
+ expect(market.errorMessage).toBe(ZERO_ODDS_AFTER_SPREAD_ADJUSTMENT); // should be no matching bookmakers mesage
35
+ });
36
+
37
+ it('Should have diff between odds equal to 3%', () => {
38
+ const freshMockSoccer = JSON.parse(JSON.stringify(mockSoccer));
39
+ const freshMockOpticSoccer = JSON.parse(JSON.stringify(MockOpticSoccer));
40
+ const market = JSON.parse(
41
+ JSON.stringify(
42
+ processMarket(
43
+ freshMockSoccer,
44
+ mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
45
+ ['draftkings'],
46
+ [],
47
+ true,
48
+ undefined,
49
+ undefined,
50
+ LeagueMocks.leagueInfoOnlyParent,
51
+ lastPolledMap,
52
+ MAX_ALLOWED_PROVIDER_DATA_STALE_DELAY_TEST
53
+ )
54
+ )
55
+ );
56
+
57
+ const marketWithAddedSpread = JSON.parse(
58
+ JSON.stringify(
59
+ processMarket(
60
+ freshMockSoccer,
61
+ mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
62
+ ['draftkings'],
63
+ [],
64
+ true,
65
+ undefined,
66
+ undefined,
67
+ LeagueMocks.leagueInfoOnlyParentWithSpreadAdded,
68
+ lastPolledMap,
69
+ MAX_ALLOWED_PROVIDER_DATA_STALE_DELAY_TEST
70
+ )
71
+ )
72
+ );
73
+
74
+ const diff1 =
75
+ ((market.odds[0].decimal - marketWithAddedSpread.odds[0].decimal) / marketWithAddedSpread.odds[0].decimal) *
76
+ 100;
77
+
78
+ const diff2 =
79
+ ((market.odds[1].decimal - marketWithAddedSpread.odds[1].decimal) / marketWithAddedSpread.odds[1].decimal) *
80
+ 100;
81
+
82
+ const diff3 =
83
+ ((market.odds[2].decimal - marketWithAddedSpread.odds[2].decimal) / marketWithAddedSpread.odds[2].decimal) *
84
+ 100;
85
+
86
+ expect(Math.round(diff1)).toBe(3);
87
+ expect(Math.round(diff2)).toBe(3);
88
+ expect(Math.round(diff3)).toBe(3);
89
+ });
90
+
91
+ it('Should have diff between odds equal to 3%, and one odd should stay the same', () => {
92
+ const freshMockSoccer = JSON.parse(JSON.stringify(mockSoccer));
93
+ const freshMockOpticSoccer = JSON.parse(JSON.stringify(MockOnlyMoneylineFavorite));
94
+ const market = JSON.parse(
95
+ JSON.stringify(
96
+ processMarket(
97
+ freshMockSoccer,
98
+ mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
99
+ ['draftkings'],
100
+ [],
101
+ true,
102
+ undefined,
103
+ undefined,
104
+ LeagueMocks.leagueInfoOnlyParent,
105
+ lastPolledMap,
106
+ MAX_ALLOWED_PROVIDER_DATA_STALE_DELAY_TEST
107
+ )
108
+ )
109
+ );
110
+
111
+ const marketWithAddedSpread = JSON.parse(
112
+ JSON.stringify(
113
+ processMarket(
114
+ freshMockSoccer,
115
+ mapOpticOddsApiFixtureOdds([freshMockOpticSoccer])[0],
116
+ ['draftkings'],
117
+ [],
118
+ true,
119
+ undefined,
120
+ undefined,
121
+ LeagueMocks.leagueInfoOnlyParentWithSpreadAdded,
122
+ lastPolledMap,
123
+ MAX_ALLOWED_PROVIDER_DATA_STALE_DELAY_TEST
124
+ )
125
+ )
126
+ );
127
+
128
+ const diff1 =
129
+ ((market.odds[0].decimal - marketWithAddedSpread.odds[0].decimal) / marketWithAddedSpread.odds[0].decimal) *
130
+ 100;
131
+
132
+ const diff2 =
133
+ ((market.odds[1].decimal - marketWithAddedSpread.odds[1].decimal) / marketWithAddedSpread.odds[1].decimal) *
134
+ 100;
135
+
136
+ const diff3 =
137
+ ((market.odds[2].decimal - marketWithAddedSpread.odds[2].decimal) / marketWithAddedSpread.odds[2].decimal) *
138
+ 100;
139
+
140
+ expect(Math.round(diff1)).toBe(0);
141
+ expect(Math.round(diff2)).toBe(3);
142
+ expect(Math.round(diff3)).toBe(3);
143
+ });
144
+ });
@@ -0,0 +1,10 @@
1
+ import { LastPolledArray } from '../../types/sports';
2
+
3
+ export const getLastPolledMapForBookmakers = () => {
4
+ const lastPolledMap: LastPolledArray = [];
5
+ lastPolledMap.push({ sportsbook: 'draftkings', timestamp: Date.now() });
6
+ lastPolledMap.push({ sportsbook: 'bovada', timestamp: Date.now() });
7
+ return lastPolledMap;
8
+ };
9
+
10
+ export const MAX_ALLOWED_PROVIDER_DATA_STALE_DELAY_TEST = 30000; // 30 seconds
@@ -0,0 +1,7 @@
1
+ export type BookmakersConfig = {
2
+ sportName: string;
3
+ sportId: number;
4
+ primaryBookmaker: string;
5
+ secondaryBookmaker: string;
6
+ tertiaryBookmaker: string;
7
+ };
@@ -1,2 +1,2 @@
1
- declare module 'oddslib';
2
- declare module 'bytes32';
1
+ declare module 'oddslib';
2
+ declare module 'bytes32';
package/src/types/odds.ts CHANGED
@@ -1,61 +1,80 @@
1
- export type Fixture = {
2
- gameId: string;
3
- startDate: number;
4
- homeTeam: string;
5
- awayTeam: string;
6
- };
7
-
8
- export type Odds = [
9
- {
10
- id: string;
11
- sportsBookName: string;
12
- name: string;
13
- price: number;
14
- timestamp: number;
15
- points: number;
16
- isMain: boolean;
17
- isLive: boolean;
18
- marketName: string;
19
- playerId: string;
20
- selection: string;
21
- selectionLine: string;
22
- }
23
- ];
24
-
25
- export type OddsObject = {
26
- gameId: string;
27
- startDate: number;
28
- homeTeam: string;
29
- awayTeam: string;
30
- isLive: boolean;
31
- status: string;
32
- sport: string;
33
- league: string;
34
- odds: Odds;
35
- };
36
-
37
- export type ScoresObject = {
38
- gameId: string;
39
- sport: string;
40
- league: string;
41
- status: string;
42
- isLive: boolean;
43
- clock: string;
44
- period: string;
45
- homeTeam: string;
46
- awayTeam: string;
47
- homeTotal: string;
48
- awayTotal: string;
49
- homePeriod1: string;
50
- awayPeriod1: string;
51
- homePeriod2: string;
52
- awayPeriod2: string;
53
- homePeriod3: string;
54
- awayPeriod3: string;
55
- homePeriod4: string;
56
- awayPeriod4: string;
57
- homePeriod5: string;
58
- awayPeriod5: string;
59
- };
60
-
61
- export type HomeAwayTeams = { homeTeam: string; awayTeam: string };
1
+ import { LeagueConfigInfo } from './sports';
2
+
3
+ export type Fixture = {
4
+ gameId: string;
5
+ startDate: number;
6
+ homeTeam: string;
7
+ awayTeam: string;
8
+ };
9
+
10
+ export type Odds = [
11
+ {
12
+ id: string;
13
+ sportsBookName: string;
14
+ name: string;
15
+ price: number;
16
+ timestamp: number;
17
+ points: number;
18
+ isMain: boolean;
19
+ isLive: boolean;
20
+ marketName: string;
21
+ playerId: string;
22
+ selection: string;
23
+ selectionLine: string;
24
+ }
25
+ ];
26
+
27
+ export type OddsObject = {
28
+ gameId: string;
29
+ startDate: number;
30
+ homeTeam: string;
31
+ awayTeam: string;
32
+ isLive: boolean;
33
+ status: string;
34
+ sport: string;
35
+ league: string;
36
+ odds: Odds;
37
+ };
38
+
39
+ export type OddsWithLeagueInfo = [
40
+ {
41
+ id: string;
42
+ sportsBookName: string;
43
+ name: string;
44
+ price: number;
45
+ timestamp: number;
46
+ points: number;
47
+ isMain: boolean;
48
+ isLive: boolean;
49
+ marketName: string;
50
+ playerId: string;
51
+ selection: string;
52
+ selectionLine: string;
53
+ } & LeagueConfigInfo
54
+ ];
55
+
56
+ export type ScoresObject = {
57
+ gameId: string;
58
+ sport: string;
59
+ league: string;
60
+ status: string;
61
+ isLive: boolean;
62
+ clock: string;
63
+ period: string;
64
+ homeTeam: string;
65
+ awayTeam: string;
66
+ homeTotal: string;
67
+ awayTotal: string;
68
+ homePeriod1: string;
69
+ awayPeriod1: string;
70
+ homePeriod2: string;
71
+ awayPeriod2: string;
72
+ homePeriod3: string;
73
+ awayPeriod3: string;
74
+ homePeriod4: string;
75
+ awayPeriod4: string;
76
+ homePeriod5: string;
77
+ awayPeriod5: string;
78
+ };
79
+
80
+ export type HomeAwayTeams = { homeTeam: string; awayTeam: string };