minus5 / go-uof-sdk

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

add Raw field to uof.Fixture resulting from fixture_change #11

Closed MSalopek closed 4 years ago

MSalopek commented 4 years ago

Having raw fixture XML is useful for downstream debugging. This covers fixtures coming in as a result of an API poll initiated by a fixture_change message. The endpoint that is being polled: /v1/sports//sport_events//fixture.xml.

Fixtures coming from live or prematch schedule will not have the raw XML. This requires custom decoding with chunking of the schedule response to keep each fixture subelement inside a generated fixture uof.Message.