minus5 / go-uof-sdk

Betradar Unified Odds Feed SDK for the Go programming language.
MIT License
17 stars 17 forks source link

fix missing specifiers in bet_settlement #4

Closed MSalopek closed 4 years ago

MSalopek commented 4 years ago

-- reason: some markets can come as late as bet_settlement -- for markets coming in that late there was no odds_change message was ever received so they do not have specifiers -- example of the issue: eventID 20227321, market id="237" specifiers="hcp=-12.5" -- solution: added specifiers in BetSettlementMarket and its UnmarshalXML

Part of log dump:


12:04:46.237 market_template.go:32 invalid name lang:9 template:{$competitor2} ({-hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.237 market_template.go:32 invalid name lang:9 template:{$competitor1} ({+hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.237 market_template.go:32 invalid name lang:9 template:{$competitor2} ({-hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.237 market_template.go:32 invalid name lang:9 template:{$competitor1} ({+hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.238 market_template.go:32 invalid name lang:9 template:{$competitor2} ({-hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.238 market_template.go:32 invalid name lang:9 template:{$competitor2} ({-hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.238 market_template.go:32 invalid name lang:9 template:{$competitor1} ({+hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.238 market_template.go:32 invalid name lang:9 template:{$competitor1} ({+hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true
12:04:46.238 market_template.go:32 invalid name lang:9 template:{$competitor2} ({-hcp}) marketID:203 specifiers:map[] competitors:[GAB RAJ] isOutcome:true