UOF.API.CustomBet (UOF_API v3.0.0)

Copy Markdown View Source

CustomBet is an extension for Unified Odds Feed and allows the creation of custom tailored bets for a specific fixture. In CustomBet it is possible to combine a wide range of betting markets into one single odds and probabilities calculation as if it was a regular accumulator bet.

CustomBet API is only available for soccer and basketball fixtures.

Functions return {:ok, response} | {:error, UOF.API.Error.t()}.

Summary

Functions

Get the markets that are available to be used in a custom bet from the given fixture.

Calculate the probability and odds for the given selections. It also returns a list of further markets that can be added to the custom bet.

Functions

available_selections(fixture, opts \\ [])

Get the markets that are available to be used in a custom bet from the given fixture.

calculate(selections, filter \\ false, opts \\ [])

Calculate the probability and odds for the given selections. It also returns a list of further markets that can be added to the custom bet.