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

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

## 0.5.0 — 2026-06-02

### Changed

- `OddsLine.timestamp` / `ArbitrageLeg.timestamp` documented as the **delivery /
last-refreshed** feed-freshness timestamp (advances every ingest cycle),
matching OpticOdds' `timestamp` — NOT a price-last-changed time. The API now
populates this field (previously always `null`). The removed
`odds_changed_at` / `last_seen_at` / `wire_received_at` were never modeled by
this SDK, so no model change is needed. (SHA-1048)

## 0.4.0 — 2026-05-31

### Added
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.4.0"
version = "0.5.0"
description = "Official Python SDK for the SharpAPI real-time sports betting odds API"
readme = "README.md"
license = "MIT"
Expand Down
5 changes: 5 additions & 0 deletions src/sharpapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ class OddsLine(BaseModel):
probability: float
line: float | None = None
event_start_time: str | None = None
# ISO 8601 — when SharpAPI last refreshed this odd through its pipeline
# (advances every ingest cycle). A feed-freshness / delivery signal matching
# OpticOdds' `timestamp`; NOT a price-last-changed time. (SHA-1048)
timestamp: str | None = None
is_live: bool = False
# True (default) = market open and bettable; False = market suspended/closed
Expand Down Expand Up @@ -315,6 +318,8 @@ class ArbitrageLeg(BaseModel):
odds_decimal: float
implied_probability: float | None = None
stake_percent: float
# ISO 8601 last-refreshed (feed-freshness) timestamp for this leg's odd —
# see OddsLine.timestamp. (SHA-1048)
timestamp: str | None = None
external_event_id: str | None = None
selection_id: str | None = None
Expand Down