sharpapi 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sharpapi/models.py CHANGED
@@ -214,6 +214,12 @@ class OddsLine(BaseModel):
214
214
  market_type: str
215
215
  selection: str
216
216
  selection_type: str | None = None
217
+ # Structured side/segment axes (issue #76 / #689). team_side is the raw
218
+ # "home"|"away"|"draw" decomposed out of the compound selection_type vocab;
219
+ # market_segment is the contest slice ("full_game", "1st_half", ...). Both
220
+ # optional + additive — absent on rows the adapter didn't stamp.
221
+ team_side: str | None = None
222
+ market_segment: str | None = None
217
223
  odds_american: int | float
218
224
  odds_decimal: float
219
225
  probability: float
@@ -293,6 +299,9 @@ class EVOpportunity(BaseModel):
293
299
  detected_at: str | None = None
294
300
  external_event_id: str | None = None
295
301
  selection_id: str | None = None
302
+ # Structured side/segment axes (issue #76 / #689), additive + optional.
303
+ team_side: str | None = None
304
+ market_segment: str | None = None
296
305
  # Optional structured refs (additive, non-breaking).
297
306
  home: TeamRef | None = None
298
307
  away: TeamRef | None = None
@@ -572,6 +581,9 @@ class ClosingOddsLine(BaseModel):
572
581
  market_type: str
573
582
  selection: str
574
583
  selection_type: str | None = None
584
+ # Structured side/segment axes (issue #76 / #689), additive + optional.
585
+ team_side: str | None = None
586
+ market_segment: str | None = None
575
587
  odds_american: int | float
576
588
  odds_decimal: float
577
589
  line: float | None = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sharpapi
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Official Python SDK for the SharpAPI real-time sports betting odds API
5
5
  Project-URL: Homepage, https://sharpapi.io
6
6
  Project-URL: Documentation, https://docs.sharpapi.io/sdks/python
@@ -4,10 +4,10 @@ sharpapi/_utils.py,sha256=nQU1gNkzepAIr93HDYX455aRO2yhc6BeBbaWDnpI5lw,1143
4
4
  sharpapi/async_client.py,sha256=TBPvR0xGCJ-MK9tPvXiXToJ0wfXzCL9TxwGO2u6bmNo,19789
5
5
  sharpapi/client.py,sha256=Ev-Ye6-vF3R8WnUIGgJ6oE1TNuTQiL7G2fd69bPcrSw,27865
6
6
  sharpapi/exceptions.py,sha256=AqZmr5ceXKyEVKdVA8ua-D0klH6zrXEMgs9Rxn7O2eE,7095
7
- sharpapi/models.py,sha256=cqwp1sXsJxKuVaR93LEd7k2BXTempnD_aJB4BjRAwqU,19901
7
+ sharpapi/models.py,sha256=Fm9alXOvOptY_0G51X6gRBvUgfAZ3UCsMUKsOePxkjM,20572
8
8
  sharpapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  sharpapi/streaming.py,sha256=sSdVE9HzuiDYnYH_Lmr4NHq0CKvwbUIELJvbSdqaTCw,8940
10
- sharpapi-0.4.0.dist-info/METADATA,sha256=xjpVl1E9BPvmtDPcDSGd7up3XzP_RLhfHvCESWCStzs,5735
11
- sharpapi-0.4.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
12
- sharpapi-0.4.0.dist-info/licenses/LICENSE,sha256=EfZuzcYtp0eJC9ky4Nei3os5r0cFBYQmc-TpamV5OPw,1069
13
- sharpapi-0.4.0.dist-info/RECORD,,
10
+ sharpapi-0.4.1.dist-info/METADATA,sha256=zSspuWrdRTtDfdvqclfg7Gp4wVEO2IcwL7OVBJ2auR8,5735
11
+ sharpapi-0.4.1.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
12
+ sharpapi-0.4.1.dist-info/licenses/LICENSE,sha256=EfZuzcYtp0eJC9ky4Nei3os5r0cFBYQmc-TpamV5OPw,1069
13
+ sharpapi-0.4.1.dist-info/RECORD,,