Commit 31ba1c1
feat: add optional team_side + market_segment to odds/EV/closing models (#76, #689) (#13)
Adds the structured `team_side` + `market_segment` axes the SharpAPI now
emits (sharp-api-go #76 Phase C / #689) to the response models.
- `OddsLine`, `EVOpportunity`, `ClosingOddsLine` each gain optional
`team_side` (`"home"|"away"|"draw"`) and `market_segment`
(`"full_game"`, `"1st_half"`, ...).
- Additive, default `None`; existing code unaffected.
- The API keeps emitting the compound `selection_type` for back-compat
(Go re-synthesizes it), so this is purely additive on the consumer side.
Smoke-tested model instantiation with the new fields. Bump 0.3.3 →
0.3.4.
Type: feat
Co-authored-by: paperclip-resolver[bot] <3736210+paperclip-resolver[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9ca991c commit 31ba1c1
3 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
5 | 18 | | |
6 | 19 | | |
7 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
217 | 223 | | |
218 | 224 | | |
219 | 225 | | |
| |||
293 | 299 | | |
294 | 300 | | |
295 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
296 | 305 | | |
297 | 306 | | |
298 | 307 | | |
| |||
572 | 581 | | |
573 | 582 | | |
574 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
575 | 587 | | |
576 | 588 | | |
577 | 589 | | |
| |||
0 commit comments