overtime-live-trading-utils 2.1.16 → 2.1.17
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overtime-live-trading-utils",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "main.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@types/node": "^20.8.10",
|
|
16
16
|
"oddslib": "^2.1.1",
|
|
17
|
-
"overtime-utils": "^0.1.
|
|
17
|
+
"overtime-utils": "^0.1.34",
|
|
18
18
|
"react": "^17.0.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
@@ -100,6 +100,16 @@ const drawNoBetMock: LeagueConfigInfo = {
|
|
|
100
100
|
minOdds: 0.99,
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
+
const willThereBeOvertime: LeagueConfigInfo = {
|
|
104
|
+
sportId: 9806,
|
|
105
|
+
enabled: 'true',
|
|
106
|
+
marketName: 'Will There Be Overtime',
|
|
107
|
+
typeId: 10131,
|
|
108
|
+
type: 'Both Teams To Score',
|
|
109
|
+
maxOdds: 0.01,
|
|
110
|
+
minOdds: 0.99,
|
|
111
|
+
};
|
|
112
|
+
|
|
103
113
|
const baseDiffSportId: LeagueConfigInfo = {
|
|
104
114
|
...baseLeagueInfo,
|
|
105
115
|
sportId: 4,
|
|
@@ -144,6 +154,7 @@ const leagueInfoEnabledAll: LeagueConfigInfo[] = [
|
|
|
144
154
|
bothTeamsToScoreMock1stHalf,
|
|
145
155
|
bothTeamsToScoreMock2ndHalf,
|
|
146
156
|
drawNoBetMock,
|
|
157
|
+
willThereBeOvertime,
|
|
147
158
|
];
|
|
148
159
|
|
|
149
160
|
// Grouped Exports
|
|
@@ -9338,5 +9338,41 @@ export const MockOpticSoccer = {
|
|
|
9338
9338
|
},
|
|
9339
9339
|
limits: null,
|
|
9340
9340
|
},
|
|
9341
|
+
{
|
|
9342
|
+
id: '81005-40644-2025-09-18-10:draftkings:will_there_be_overtime:no',
|
|
9343
|
+
sportsbook: 'DraftKings',
|
|
9344
|
+
market: 'Will There Be Overtime',
|
|
9345
|
+
name: 'No',
|
|
9346
|
+
is_main: true,
|
|
9347
|
+
selection: 'No',
|
|
9348
|
+
normalized_selection: 'no',
|
|
9349
|
+
market_id: 'will_there_be_overtime',
|
|
9350
|
+
selection_line: null,
|
|
9351
|
+
player_id: null,
|
|
9352
|
+
team_id: null,
|
|
9353
|
+
price: 1.071,
|
|
9354
|
+
timestamp: 1758173752.9656222,
|
|
9355
|
+
grouping_key: 'default',
|
|
9356
|
+
points: null,
|
|
9357
|
+
limits: null,
|
|
9358
|
+
},
|
|
9359
|
+
{
|
|
9360
|
+
id: '81005-40644-2025-09-18-10:draftkings:will_there_be_overtime:yes',
|
|
9361
|
+
sportsbook: 'DraftKings',
|
|
9362
|
+
market: 'Will There Be Overtime',
|
|
9363
|
+
name: 'Yes',
|
|
9364
|
+
is_main: true,
|
|
9365
|
+
selection: 'Yes',
|
|
9366
|
+
normalized_selection: 'yes',
|
|
9367
|
+
market_id: 'will_there_be_overtime',
|
|
9368
|
+
selection_line: null,
|
|
9369
|
+
player_id: null,
|
|
9370
|
+
team_id: null,
|
|
9371
|
+
price: 8.0,
|
|
9372
|
+
timestamp: 1758173752.9656222,
|
|
9373
|
+
grouping_key: 'default',
|
|
9374
|
+
points: null,
|
|
9375
|
+
limits: null,
|
|
9376
|
+
},
|
|
9341
9377
|
],
|
|
9342
9378
|
};
|
|
@@ -113,6 +113,9 @@ describe('Markets', () => {
|
|
|
113
113
|
(child: any) => child.type === 'secondPeriodBothTeamsToScore'
|
|
114
114
|
);
|
|
115
115
|
const containsChildDrawNoBet = market.childMarkets.some((child: any) => child.type === 'drawNoBet');
|
|
116
|
+
const containsWillThereBeOvertime = market.childMarkets.some(
|
|
117
|
+
(child: any) => child.type === 'willThereBeOvertime'
|
|
118
|
+
);
|
|
116
119
|
|
|
117
120
|
expect(containsChildGG).toBe(true);
|
|
118
121
|
expect(containsChildGG1stHalf).toBe(true);
|
|
@@ -124,6 +127,7 @@ describe('Markets', () => {
|
|
|
124
127
|
expect(containsChildDoubleChance).toBe(true);
|
|
125
128
|
expect(containsChildGG).toBe(true);
|
|
126
129
|
expect(containsChildDrawNoBet).toBe(true);
|
|
130
|
+
expect(containsWillThereBeOvertime).toBe(true);
|
|
127
131
|
});
|
|
128
132
|
|
|
129
133
|
it('Should return warning message that there are is no configuration available in league map csv', () => {
|