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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to the `sharpapi` Python SDK are documented here.

## 0.4.0 — 2026-05-31

### Added

- `OddsLine.is_active` (bool, default `True`). `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`.

### Backward compatibility

- Additive optional field with a `True` default — existing code is unaffected,
and older API servers that omit the key parse as active.

## 0.3.2 — 2026-05-07

### Changed
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "sharpapi"
version = "0.3.3"
version = "0.4.0"
description = "Official Python SDK for the SharpAPI real-time sports betting odds API"
readme = "README.md"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/sharpapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
)
from .streaming import EventStream

__version__ = "0.3.1"
__version__ = "0.4.0"

__all__ = [
# Clients
Expand Down
4 changes: 4 additions & 0 deletions src/sharpapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ class OddsLine(BaseModel):
event_start_time: str | None = None
timestamp: str | None = None
is_live: bool = False
# 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. SHA-3803.
is_active: bool = True
deep_link: str | None = None
player_name: str | None = None
stat_category: str | None = None
Expand Down