Skip to content

Instant Sports Feeds Integration

Introduction

Whilst scheduled feeds happen at defined cadences, the instant feeds are on-demand, i.e. the player controls when a new round is generated and settled.

Instant competitions happen fast, and the player is in full control on the timings.

From the integration point of view, it's a very different integration compared to the scheduled, and the flow is very different as well.

Abstraction of Leagues and Tournaments

Please refer to the Scheduled Sports page for an explanation of how leagues and tournaments are abstracted to use the same integration

Typical flow


sequenceDiagram
    actor Player

    Note right of Player: Load current round on game load.
    Player ->> +Operator Website: Player initiates game
    Operator Website ->> +Operator Feeds Api: GetCurrentRound(bearerToken)
    Operator Feeds Api ->> +Gamnify Instant Api: GetCurrentRound(userId)
    Gamnify Instant Api ->> -Operator Feeds Api: ReturnRoundData()
    Operator Feeds Api ->> -Operator Website: ReturnRoundData()
    Operator Website ->> -Player: Show Round Odds

    Note right of Player: GetNext and GetPrevious follow same flow as GetCurrent

    Player ->> +Operator Website: Get Next Round
    Note right of Operator Website: Rest of interactions ommitted 
    Operator Website ->> -Player: Show Round Odds
    Player ->> +Operator Website: Get Previous Round
    Note right of Operator Website: Goes to previous round if not yet resulted. 
    Operator Website ->> -Player: Show Round Odds


    Player ->> +Operator Website: Build Bet    
    Player ->> +Operator Website: Build Bet
    Note right of Operator Website: Player can place multiple bets.
    Player ->> +Operator Website: Place Bet


    Operator Website ->> +Operator Feeds Api: PlaceBets(bearerToken, betSlip[])
    Operator Feeds Api ->> +Gamnify Instant Api: ResultBets(userId, betSlip[])
    Gamnify Instant Api ->> -Operator Feeds Api: ReturnBetResults()
    Operator Feeds Api ->> -Operator Website: ReturnBetResults()
    Operator Website ->> -Player: Show Results

    Note right of Player: Player placed bet(s) on multiple rounds.
    Note right of Player: Rounds are now consumed and cannot go back to them.
    Note right of Player: Player can simply GetNextRound() and continue playing.
    Note right of Player: Or can quit and GetCurrentRound() to resume this point.



Please note that we're ommitting calls to GetFixtureStatistics() and GetPreviousStandings() and GetCurrentStandings() here. These calls can be made by the player at any point in time.