Skip to content

Commit c1bece0

Browse files
paperclip-resolver[bot]claude
andcommitted
feat: add is_active field to NormalizedOdds (SHA-3803)
`false` = market suspended/closed with the price frozen (mirrors OpticOdds locked-odds, exposed as a queryable field). Absent on the wire = `true`. Additive; bumps 0.3.2 -> 0.4.0. Type: feat Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4aaebc8 commit c1bece0

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
All notable changes to `@sharp-api/client` are documented here.
44

5+
## 0.4.0 — 2026-05-31
6+
7+
### Added
8+
9+
- `NormalizedOdds.is_active` (boolean). `false` indicates the market is
10+
suspended/closed with the price frozen — mirrors OpticOdds `locked-odds` but
11+
as a queryable field. Absent on the wire is treated as `true`.
12+
13+
### Backward compatibility
14+
15+
- Additive optional field; existing code is unaffected.
16+
517
## 0.3.2 — 2026-05-07
618

719
### Changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sharp-api/client",
3-
"version": "0.3.2",
3+
"version": "0.4.0",
44
"description": "Official TypeScript/JavaScript client for the SharpAPI real-time sports betting odds API",
55
"type": "module",
66
"main": "./dist/index.cjs",

src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@ export interface NormalizedOdds extends NestedRefs {
306306
eventStartTime: string
307307
timestamp: string
308308
isLive: boolean
309+
/**
310+
* `true` (default) = market open and bettable; `false` = market
311+
* suspended/closed with the price frozen (mirrors OpticOdds `locked-odds`).
312+
* Absent on the wire is treated as `true`. Wire key is snake_case
313+
* `is_active` (the client returns raw JSON without key transforms). SHA-3803.
314+
*/
315+
is_active: boolean
309316
status: 'upcoming' | 'live' | 'ended'
310317
}
311318

0 commit comments

Comments
 (0)