Skip to content

Tournaments Guide ​

Competitive events where users are ranked by a scoring metric over a time window. Top players win prizes.

Works standalone: no challenge or funded account required.


How It Works ​

  1. Operator creates a tournament with scoring rules and prize structure
  2. Users enter (auto, opt in, or invite)
  3. Bets during the window update leaderboard scores
  4. When the tournament ends, FAST closes it to new scores, fixes the ranks and grants every prize as a reward, all in one step: a tournament is completed only once every prize is granted, and a settlement that fails is retried
  5. tournament.settled webhook fires with results

Deployment Modes ​

ModeDescription
Challenges + TournamentsTournaments add competition to challenge players
Tournaments onlyStandalone competitive events on any bet activity

Tournament Fields ​

FieldRequiredDefaultDescription
nameYesTournament name
descriptionNoLonger description
scoringMetricYesHow to rank players (see below)
entryModeNoautoauto, opt_in or invite
minBetsToQualifyNo1Scoring bets a player needs to be ranked and win a prize
maxParticipantsNounlimitedCap on entries, in every entry mode. Once it is reached a join answers tournament_full, and in auto mode a new player's bets do not enter or score
tiebreakerNoearliest_entryearliest_entry, most_bets or highest_single_win
startsAtYesTournament window start. A start in the past opens the tournament at once and sends tournament.started right away
endsAtYesTournament window end
prizesYesArray of rank bands with reward types

A tournament can be edited only while it is upcoming; after that PUT answers 409 already_started. Status runs upcoming, active, settling, completed, or cancelled.


Scoring Metrics ​

Only bets placed or settled inside the window count.

MetricScored onScore
net_profitSettlementA win adds settlementAmount minus stake (0 if you sent no settlementAmount); a loss subtracts the stake. EUR
total_wageredPlacementAdds the stake. EUR
win_countSettlement+1 per won bet
bet_countPlacement+1 per bet
highest_odds_wonSettlementHighest odds of a won bet, times 100 (a win at 5.25 scores 525)
longest_win_streakSettlementLongest run of won bets in a row, in settlement order. A loss ends the run; the best run is kept. A voided bet is taken out and the streak is counted again from the bets that remain

Ties are broken by tiebreaker: earliest_entry puts the earlier entry first; most_bets puts more scoring bets first, then the earlier entry. highest_single_win currently orders the same as earliest_entry.


Entry Modes ​

ModeBehavior
autoNo enrollment needed: a player's entry is created on their first scoring bet
opt_inThe player joins in the widget or via POST /users/:id/tournaments/:id/join, while the tournament is active
inviteThe operator invites players via POST /admin/tournaments/:id/invite; an invited player then joins. Invite only tournaments are listed only to invited players

Join answers 409 with tournament_not_found (no active tournament with that id), tournament_is_auto_enroll, not_invited or tournament_full.


Prize Structure ​

Prizes are an array of rank bands with reward types. On settlement only players with at least minBetsToQualify scoring bets are ranked, and each prize is granted as a reward with apply mode auto:

json
{
  "prizes": [
    { "rankFrom": 1, "rankTo": 1, "rewardType": "free_bet", "rewardValue": 25 },
    { "rankFrom": 2, "rankTo": 3, "rewardType": "free_bet", "rewardValue": 10 },
    { "rankFrom": 4, "rankTo": 10, "rewardType": "bonus_credit", "rewardValue": 5 }
  ]
}

A money prize (free_bet, bonus_credit, balance_bonus, cashback_credit, purchase_discount_fixed) is in EUR, whole cents: 25 is 25.00 EUR. A value with a third decimal is refused with 400 invalid_prizes. rewardType must be one of balance_bonus, balance_boost_percent, purchase_discount_percent, purchase_discount_fixed, profit_split_boost, extended_duration, payout_cap_boost_percent, payout_bonus_percent, free_bet, bonus_credit, cashback_credit, loyalty_points, custom. Any other value, a typo included, is refused with a 400 when you save, so a prize can never fail later at settlement. Use a standalone type (free_bet, bonus_credit, cashback_credit, loyalty_points, custom) when you run without challenges.

Bands may not overlap: each rank wins one prize. Ranks start at 1 and rankTo is never below rankFrom. A tournament saved with bands that break this is refused with 400 invalid_prizes, on create and on update.

Only bets FAST accepted score, and each bet scores once, however often its event is delivered. A voided bet's score is taken back while the tournament runs. After it has settled the ranks stand; if the player won a prize with the voided bet, FAST opens a reconciliation flag for you to review.


API Reference ​

Operator (admin) ​

MethodEndpointPurpose
GET/v1/admin/tournamentsList tournaments (filter by status)
POST/v1/admin/tournamentsCreate a tournament
PUT/v1/admin/tournaments/:idUpdate an upcoming tournament (409 already_started after that)
POST/v1/admin/tournaments/:id/cancelCancel; returns cancelled true or false
POST/v1/admin/tournaments/:id/settleSettle now: ends the window at once and distributes prizes
GET/v1/admin/tournaments/:id/entriesView entries
POST/v1/admin/tournaments/:id/inviteInvite 1 to 100 users: { "userIds": [...] }, returns invited and alreadyInvited
GET/v1/admin/tournaments/:id/invitesList invites
GET/v1/admin/tournaments/statsStats

Invite answers 409 not_invite_mode for a tournament that is not in invite mode and 409 tournament_not_joinable once it is over or cancelled.

Public (widget key) ​

MethodEndpointPurpose
GET/v1/tournamentsActive and upcoming tournaments (pass userId to include invite only ones the user is invited to)
GET/v1/tournaments/:id/leaderboardLive leaderboard: entries, userEntry and totalEntries. No user ids: each row has an anonymous displayName and isYou on the viewer's own row. The viewer is the user of the widget token; a server key may pass userId. limit is 1 to 100, default 10
GET/v1/users/:userId/tournamentsThe user's active, upcoming and completed tournaments
POST/v1/users/:userId/tournaments/:id/joinJoin (opt in and invite modes)

Webhook Events ​

EventDataWhen
tournament.startedtournamentId, nameThe scheduler opened the window, or at once when the tournament is created with a start in the past
tournament.user_joinedUser joined
tournament.user_invitedUser invited
tournament.settledtournamentId, name, totalEntriesRanked and prizes granted
tournament.cancelledtournamentIdCancelled by admin

BLACKLINE CONSULTING d.o.o.