overtime-live-trading-utils 0.0.76 → 0.0.78

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": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -129,7 +129,7 @@ export const createSpreadChildMarkets = (
129
129
  defaultSpreadForLiveMarkets
130
130
  ) => {
131
131
  console.log('CREATING SPREAD CHILD MARKETS');
132
- const childMarkets = [];
132
+ const childMarkets = [] as any;
133
133
  const spreadType = getLeagueSpreadType(leagueId);
134
134
  const commonData = {
135
135
  homeTeam: apiResponseWithOdds.home_team,
@@ -180,7 +180,7 @@ export const createTotalChildMarkets = (
180
180
  defaultSpreadForLiveMarkets
181
181
  ) => {
182
182
  console.log('CREATING TOTAL CHILD MARKETS');
183
- const childMarkets = [];
183
+ const childMarkets = [] as any;
184
184
  const totalType = getLeagueTotalType(leagueId);
185
185
 
186
186
  if (totalType) {
package/src/utils/odds.ts CHANGED
@@ -453,7 +453,7 @@ export const cutOddsCloseToValue = (oddsArray, threshold = 0.952) => {
453
453
  * @returns {Array} The processed total odds market objects.
454
454
  */
455
455
  export const processTotalOdds = (totalOdds, leagueId, spreadDataForSport, typeId, defaultSpreadForLiveMarkets) => {
456
- const childMarkets = [];
456
+ const childMarkets = [] as any;
457
457
  const validTotalOdds = totalOdds.filter((odd) => odd && Math.abs(odd.selection_points % 1) === 0.5);
458
458
  const groupedOdds = groupOddsBySelectionAndPoints(validTotalOdds);
459
459
  const iterableGroupedOdds = Object.entries(groupedOdds) as any;