overtime-live-trading-utils 4.0.0 → 4.0.2

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": "4.0.0",
3
+ "version": "4.0.2",
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.66",
17
+ "overtime-utils": "^0.1.68",
18
18
  "react": "^17.0.1"
19
19
  },
20
20
  "devDependencies": {
package/src/utils/odds.ts CHANGED
@@ -263,7 +263,7 @@ export const createChildMarkets: (
263
263
  const homeAwayOddsWithSpreadAdjusted = adjustSpreadOnChildOdds(homeAwayFormattedOdds);
264
264
 
265
265
  homeAwayOddsWithSpreadAdjusted.forEach((data) => {
266
- let childMarket = {
266
+ let childMarket: ChildMarket = {
267
267
  leagueId: Number(data.sportId),
268
268
  typeId: Number(data.typeId),
269
269
  type: MarketTypeMap[data.typeId as MarketType]?.key || '',
@@ -308,7 +308,7 @@ export const createChildMarkets: (
308
308
  const minOdds = leagueInfoByTypeId?.minOdds;
309
309
  const maxOdds = leagueInfoByTypeId?.maxOdds;
310
310
 
311
- const childMarket = {
311
+ const childMarket: ChildMarket = {
312
312
  leagueId: Number(data.sportId),
313
313
  typeId: Number(data.typeId),
314
314
  type: MarketTypeMap[data.typeId as MarketType]?.key || '',
@@ -318,6 +318,11 @@ export const createChildMarkets: (
318
318
  return !minOdds || !maxOdds || impliedOdds >= minOdds || impliedOdds <= maxOdds ? 0 : impliedOdds;
319
319
  }),
320
320
  positionNames: data.positionNames,
321
+ playerProps: {
322
+ playerId: 0,
323
+ playerName: '',
324
+ },
325
+ isPlayerPropsMarket: false,
321
326
  };
322
327
  childMarkets.push(childMarket);
323
328
  });