Skip to content

Commit e2f0e6d

Browse files
paperclip-resolver[bot]claude
andcommitted
feat: add odds:locked WebSocketEventType (SHA-3803)
Supplementary stream event carrying the suspended subset of a delta (1:1 with OpticOdds locked-odds). Rows also arrive in the normal odds update with is_active=false. Pairs with sharp-api-go #725. Type: feat Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c1bece0 commit e2f0e6d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ All notable changes to `@sharp-api/client` are documented here.
99
- `NormalizedOdds.is_active` (boolean). `false` indicates the market is
1010
suspended/closed with the price frozen — mirrors OpticOdds `locked-odds` but
1111
as a queryable field. Absent on the wire is treated as `true`.
12+
- `'odds:locked'` `WebSocketEventType` — supplementary stream event carrying the
13+
suspended subset of a delta (1:1 with OpticOdds `locked-odds`). The rows also
14+
arrive in the normal odds update with `is_active: false`.
1215

1316
### Backward compatibility
1417

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ export type WebSocketEventType =
997997
| 'initial'
998998
| 'snapshot_complete'
999999
| 'odds_update'
1000+
| 'odds:locked'
10001001
| 'ev:detected'
10011002
| 'ev:expired'
10021003
| 'arb:detected'

0 commit comments

Comments
 (0)