overtime-live-trading-utils 3.0.0-rc.0 → 3.0.0-rc.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/main.js +1 -1
- package/package.json +1 -1
- package/src/tests/mock/MockLeagueMap.ts +25 -0
- package/src/tests/mock/OpticOddsMock/MockNBA.ts +17269 -0
- package/src/tests/mock/OpticOddsMock/MockRedisNba.ts +21 -0
- package/src/tests/utils/helper.ts +1 -0
- package/src/types/resolution.ts +4 -0
- package/src/utils/bookmakers.ts +20 -32
- package/src/utils/odds.ts +4 -5
package/package.json
CHANGED
|
@@ -10,6 +10,16 @@ const baseLeagueInfo: LeagueConfigInfo = {
|
|
|
10
10
|
minOdds: 0.75,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
const baseLeagueInfoNba: LeagueConfigInfo = {
|
|
14
|
+
sportId: 4,
|
|
15
|
+
enabled: 'true',
|
|
16
|
+
marketName: 'Moneyline',
|
|
17
|
+
typeId: 0,
|
|
18
|
+
type: 'moneyline',
|
|
19
|
+
maxOdds: 0.25,
|
|
20
|
+
minOdds: 0.75,
|
|
21
|
+
};
|
|
22
|
+
|
|
13
23
|
const spreadMock: LeagueConfigInfo = {
|
|
14
24
|
sportId: 9806,
|
|
15
25
|
enabled: 'true',
|
|
@@ -121,6 +131,20 @@ const teamTotal: LeagueConfigInfo = {
|
|
|
121
131
|
primaryBookmaker: 'draftkings',
|
|
122
132
|
};
|
|
123
133
|
|
|
134
|
+
const PlayerAssist: LeagueConfigInfo[] = [
|
|
135
|
+
baseLeagueInfoNba,
|
|
136
|
+
{
|
|
137
|
+
sportId: 4,
|
|
138
|
+
enabled: 'true',
|
|
139
|
+
marketName: 'Player Assists',
|
|
140
|
+
typeId: 11039,
|
|
141
|
+
type: 'Total',
|
|
142
|
+
maxOdds: 0.25,
|
|
143
|
+
minOdds: 0.75,
|
|
144
|
+
primaryBookmaker: 'superbet',
|
|
145
|
+
},
|
|
146
|
+
];
|
|
147
|
+
|
|
124
148
|
const teamTotal2: LeagueConfigInfo = {
|
|
125
149
|
sportId: 9806,
|
|
126
150
|
enabled: 'true',
|
|
@@ -197,4 +221,5 @@ export const LeagueMocks = {
|
|
|
197
221
|
leagueInfoEnabledAll,
|
|
198
222
|
leagueInfoDisabledCorrectScoreAndDoubleChance,
|
|
199
223
|
leaguInfoDifferentPrimaryBookmaker,
|
|
224
|
+
PlayerAssist,
|
|
200
225
|
};
|