Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

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

## 0.4.0 — 2026-05-31

### Added

- `NormalizedOdds.is_active` (boolean). `false` indicates the market is
suspended/closed with the price frozen — mirrors OpticOdds `locked-odds` but
as a queryable field. Absent on the wire is treated as `true`.
- `'odds:locked'` `WebSocketEventType` — supplementary stream event carrying the
suspended subset of a delta (1:1 with OpticOdds `locked-odds`). The rows also
arrive in the normal odds update with `is_active: false`.

### Backward compatibility

- Additive optional field; existing code is unaffected.

## 0.3.2 — 2026-05-07

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sharp-api/client",
"version": "0.3.2",
"version": "0.4.0",
"description": "Official TypeScript/JavaScript client for the SharpAPI real-time sports betting odds API",
"type": "module",
"main": "./dist/index.cjs",
Expand Down
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ export interface NormalizedOdds extends NestedRefs {
eventStartTime: string
timestamp: string
isLive: boolean
/**
* `true` (default) = market open and bettable; `false` = market
* suspended/closed with the price frozen (mirrors OpticOdds `locked-odds`).
* Absent on the wire is treated as `true`. Wire key is snake_case
* `is_active` (the client returns raw JSON without key transforms). SHA-3803.
*/
is_active: boolean
status: 'upcoming' | 'live' | 'ended'
}

Expand Down Expand Up @@ -990,6 +997,7 @@ export type WebSocketEventType =
| 'initial'
| 'snapshot_complete'
| 'odds_update'
| 'odds:locked'
| 'ev:detected'
| 'ev:expired'
| 'arb:detected'
Expand Down