overtime-live-trading-utils 4.0.0-rc.12 → 4.0.0-rc.15
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/main.js +1 -1
- package/package.json +2 -2
- package/src/utils/odds.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overtime-live-trading-utils",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.15",
|
|
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.63",
|
|
18
18
|
"react": "^17.0.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
package/src/utils/odds.ts
CHANGED
|
@@ -291,9 +291,9 @@ export const createChildMarkets: (
|
|
|
291
291
|
const maxOdds = leagueInfoByTypeId?.maxOdds; // maximum odds configured for child market (e.g. 0.05 implied probability)
|
|
292
292
|
|
|
293
293
|
if (minOdds && maxOdds) {
|
|
294
|
-
const
|
|
294
|
+
const allowZeroOdds = ['Total'].includes(data.type);
|
|
295
295
|
const conditionToAddChildMarket = data.odds.every(
|
|
296
|
-
(odd: number) => (odd < minOdds && odd > maxOdds) || (
|
|
296
|
+
(odd: number) => (odd < minOdds && odd > maxOdds) || (allowZeroOdds && odd === ZERO)
|
|
297
297
|
);
|
|
298
298
|
if (conditionToAddChildMarket) {
|
|
299
299
|
childMarkets.push(childMarket);
|