UOF.API.Descriptions (UOF_API v3.0.0)

Copy Markdown View Source

Descriptions API.

Static, mostly language-dependent metadata that describes the values used throughout the feed: market and variant descriptions, producers, sport-specific match statuses and betting statuses used in odds_change messages, betstop reasons, and void reasons used in bet_settlement messages.

Every function returns {:ok, struct} | {:error, UOF.API.Error.t()}, where the struct is an UOF.Schemas.API.Descriptions.* embedded schema. Endpoints that vary by language take an optional lang (ISO code, default "en"). All functions accept a trailing opts keyword list merged into the Req request (see UOF.API.Utils.HTTP).

Summary

Functions

Describe all bet stop reasons.

Describes all betting statuses used in odds_change messages.

Describe all currently available markets.

Describe all sport-specific match status codes used during live matches in odds_change messages.

Describe all currently available producers and their ids.

Get a list of all variants and which markets they are used for.

Describe all possible void reasons used in bet_settlement messages.

Functions

betstop_reasons(opts \\ [])

Describe all bet stop reasons.

betting_statuses(opts \\ [])

Describes all betting statuses used in odds_change messages.

markets(lang \\ "en", include_mappings \\ false, opts \\ [])

Describe all currently available markets.

Pass include_mappings: true to also include each market's mappings to provider-specific market/outcome ids.

match_statuses(lang \\ "en", opts \\ [])

Describe all sport-specific match status codes used during live matches in odds_change messages.

producers(opts \\ [])

Describe all currently available producers and their ids.

variants(lang \\ "en", opts \\ [])

Get a list of all variants and which markets they are used for.

void_reasons(opts \\ [])

Describe all possible void reasons used in bet_settlement messages.