odds-api-io 1.2.0 → 1.2.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/README.md +26 -3
- package/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -5,14 +5,17 @@
|
|
|
5
5
|
[](https://www.typescriptlang.org/)
|
|
6
6
|
[](https://nodejs.org)
|
|
7
7
|
|
|
8
|
-
Official Node.js SDK for [**Odds-API.io**](https://odds-api.io) - Real-time sports betting odds from
|
|
8
|
+
Official Node.js SDK for [**Odds-API.io**](https://odds-api.io) - Real-time sports betting odds from 265+ bookmakers.
|
|
9
|
+
|
|
10
|
+
Building with AI? See the [AI and vibe coding guide](https://docs.odds-api.io/ai-vibe-coding). Prefer Python? Check out the [Python SDK](https://github.com/odds-api-io/odds-api-python).
|
|
9
11
|
|
|
10
12
|
## Features
|
|
11
13
|
|
|
12
|
-
- 🏀 **
|
|
13
|
-
- 📊 **Comprehensive Odds Data** - Real-time odds from
|
|
14
|
+
- 🏀 **34 Sports** - Basketball, football, tennis, and more
|
|
15
|
+
- 📊 **Comprehensive Odds Data** - Real-time odds from 265+ bookmakers
|
|
14
16
|
- 💰 **Arbitrage Detection** - Find risk-free betting opportunities
|
|
15
17
|
- 📈 **Value Bets** - Identify positive expected value bets
|
|
18
|
+
- 📉 **Dropping Odds** - Track sharp bookmaker line movements
|
|
16
19
|
- 🔴 **Live Events** - Track in-play events and odds
|
|
17
20
|
- 🔍 **Advanced Search** - Search events, participants, and leagues
|
|
18
21
|
- ⚡ **TypeScript First** - Full type safety with TypeScript
|
|
@@ -148,6 +151,24 @@ valueBets.forEach(bet => {
|
|
|
148
151
|
});
|
|
149
152
|
```
|
|
150
153
|
|
|
154
|
+
### Tracking Dropping Odds
|
|
155
|
+
|
|
156
|
+
```typescript
|
|
157
|
+
// Find the biggest line movements from sharp bookmakers
|
|
158
|
+
const drops = await client.getDroppingOdds({
|
|
159
|
+
sport: 'football',
|
|
160
|
+
market: 'ML',
|
|
161
|
+
minDrop: 10,
|
|
162
|
+
sort: 'recent',
|
|
163
|
+
includeEventDetails: true
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
drops.forEach(drop => {
|
|
167
|
+
console.log(`${drop.event?.home} vs ${drop.event?.away}`);
|
|
168
|
+
console.log(`${drop.market.name} ${drop.betSide}: ${drop.odds.opening} → ${drop.odds.current} (↓${drop.odds.drop.sinceOpening}%)`);
|
|
169
|
+
});
|
|
170
|
+
```
|
|
171
|
+
|
|
151
172
|
### Working with Participants
|
|
152
173
|
|
|
153
174
|
```typescript
|
|
@@ -233,6 +254,7 @@ await client.clearSelectedBookmakers();
|
|
|
233
254
|
|--------|-------------|------|
|
|
234
255
|
| `getArbitrageBets(params)` | Find arbitrage opportunities | [Docs](https://docs.odds-api.io/api-reference/arbitrage-bets/get-arbitrage-betting-opportunities) |
|
|
235
256
|
| `getValueBets(params)` | Find value bets | [Docs](https://docs.odds-api.io/api-reference/value-bets/get-value-bets) |
|
|
257
|
+
| `getDroppingOdds(params)` | Track sharp bookmaker line movements | [Docs](https://docs.odds-api.io/api-reference/dropping-odds/get-dropping-odds) |
|
|
236
258
|
|
|
237
259
|
## Error Handling
|
|
238
260
|
|
|
@@ -296,6 +318,7 @@ import type {
|
|
|
296
318
|
HistoricalEventOdds,
|
|
297
319
|
ArbitrageBet,
|
|
298
320
|
ValueBet,
|
|
321
|
+
DroppingOddsEntry,
|
|
299
322
|
GetEventsParams,
|
|
300
323
|
GetHistoricalEventsParams,
|
|
301
324
|
GetHistoricalOddsParams
|
package/dist/cjs/index.js
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "odds-api-io",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "Official Node.js SDK for Odds-API.io - Real-time sports betting odds from
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "Official Node.js SDK for Odds-API.io - Real-time sports betting odds from 265+ bookmakers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"odds",
|
|
7
7
|
"betting",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"arbitrage",
|
|
11
11
|
"value-bets",
|
|
12
12
|
"bookmakers",
|
|
13
|
-
"odds-api"
|
|
13
|
+
"odds-api",
|
|
14
|
+
"betting-odds",
|
|
15
|
+
"sports-data"
|
|
14
16
|
],
|
|
15
17
|
"author": "Odds-API.io",
|
|
16
18
|
"license": "MIT",
|