24 lines
468 B
Go
24 lines
468 B
Go
package domain
|
|
|
|
import (
|
|
"encoding/json"
|
|
"time"
|
|
)
|
|
|
|
type Market struct {
|
|
EventID string
|
|
FI string
|
|
MarketCategory string
|
|
MarketType string
|
|
MarketName string
|
|
MarketID string
|
|
UpdatedAt time.Time
|
|
Odds []json.RawMessage
|
|
|
|
// Optional breakdown (extracted from odds)
|
|
Header string // only if processing one odd at a time
|
|
Name string
|
|
Handicap string
|
|
OddsVal float64
|
|
}
|