Documentation
¶
Overview ¶
Package asianscore provides a zero-dependency Go client and quantitative sports modeling primitives for AsianScore (https://asianscore.com/).
Features:
- Live open JSON feed client (https://asianscore.com/api/widget/summary)
- Multiplicative and Power odds devigging (https://asianscore.com/tools.html)
- Fractional Kelly criterion bankroll sizing
- Dixon-Coles low-score adjusted Poisson match probabilities
- Multi-class Brier score calibration verification (https://asianscore.com/models.html)
Index ¶
Constants ¶
const DefaultSummaryURL = "https://asianscore.com/api/widget/summary"
DefaultSummaryURL is the public CORS-enabled AsianScore summary JSON endpoint.
Variables ¶
This section is empty.
Functions ¶
func DevigPower ¶
DevigPower computes fair probabilities using the power devigging method.
func KellyFraction ¶
KellyFraction computes fractional Kelly stake sizing given fair probability and decimal odds.
Types ¶
type LedgerSummary ¶
type LedgerSummary struct {
TotalLocked int `json:"totalLocked"`
Settled int `json:"settled"`
Hits int `json:"hits"`
HitRatePct float64 `json:"hitRatePct"`
AvgBrier float64 `json:"avgBrier"`
}
LedgerSummary holds aggregate SHA-256 verifiable prediction ledger metrics.
type MatchSummary ¶
type MatchSummary struct {
ID string `json:"id"`
League string `json:"league"`
State string `json:"state"`
Kickoff string `json:"kickoff"`
HomeTeam string `json:"homeTeam"`
AwayTeam string `json:"awayTeam"`
HomeScore int `json:"homeScore"`
AwayScore int `json:"awayScore"`
TopLabel string `json:"topLabel"`
TopProbPct int `json:"topProbPct"`
URL string `json:"url"`
}
MatchSummary describes an upcoming or live fixture from AsianScore.
type OutcomeProbs ¶
OutcomeProbs holds 1X2 and Over 2.5 goal probabilities from Dixon-Coles.
func DixonColes ¶
func DixonColes(lambdaHome, lambdaAway, rho float64) OutcomeProbs
DixonColes computes low-score correlated bivariate Poisson football probabilities.
type WidgetSummary ¶
type WidgetSummary struct {
Brand string `json:"brand"`
Ledger LedgerSummary `json:"ledger"`
Matches []MatchSummary `json:"matches"`
}
WidgetSummary is the top-level JSON payload returned by DefaultSummaryURL.
func FetchSummary ¶
FetchSummary retrieves live scores and verifiable ledger metrics from AsianScore.