Skip to content

Bets

We expose details of previously placed bets as Bets, allowing customers to view the current state of the placement, resulting and settlement of the bet.

Placement

Placement provides information about the placement of the bet.

Key Concepts

There are two ways to bet synchronous and asynchronous.

When betting asynchronously to know whether a bet is accepted, rejected or failed then subscribe to a subscription.

To place bets asynchronously the mutation is placeBetsAsync instead of placeBets. The input matches the synchronous mutation.

Concept Description
Stake Provides information about how much was staked on the bet and in what currency
Legs A bet contains one or more legs. Each leg contains one or more selections that are covered by the bet; along with the position that they must finish in for the bet to settle as a winner
Product Provides information about the product that was bet on; with details such as the selections, bet type, rules, odds and dividends
Rejection Reason Provides information as to why a bet was rejected.
Status The status of the placement of the bet.
  • ACCEPTED - The bet has been accepted by Tote and the bet provider
  • PLACED - The bet has been accepted by Tote but is awaiting a response from the bet provider
  • REJECTED - The bet has failed validation. e.g. pool is not open. Refer to Rejection Reason
  • FAILED - The bet was not accepted by the bet provider

    Resulting

    Resulting provides information about the result of the bet.

    Key Concepts

    Concept Description
    Returns Provides information about how much was returned to the customer; either in refunds or winnings, and in what currency
    Status The status of the resulting of the bet.
    • CANCELLED - The bet has been cancelled by the bet provider
    • PENDING - The bet hasn't been resulted yet
    • RESULTED - The bet has been resulted. Refer to Returns for any refunds and/or winnings

      Settlement

      Key Concepts

      Concept Description
      Status The status of the settlement of the bet.
      • PENDING - The bet hasn't been settled yet
      • REFUNDED - The bet has been cancelled by the bet provider and the customer has been refunded
      • SETTLED - The bet has been settled as either a winning or losing bet and the customer has received their refunds and/or winnings