bepronetwork / ms-esports Goto Github PK
View Code? Open in Web Editor NEWEsport HTTP Microservice - @BetProtocol - Integrated with Pandascore API
Esport HTTP Microservice - @BetProtocol - Integrated with Pandascore API
List an Specific Match:
/api/get/match/specific/layout
required:
user_id
app_id
match_id
Show an Specific Team Stats:
/api/get/videogame/team/layout
required:
user_id
app_id
team_id
slug
Show an Specific Player Stats:
/api/get/videogame/player/layout
required:
user_id
app_id
player_id
slug
Should be triggered by any change on the game (for now only do end of game)
Should crawl all bets of the db (only the ones that are in pending state and depend on this game_id and bet_type_id) and :
If Simple
Verify if user won the bet
Determine the winAmount (betAmount-houseEdge * odd) or 0 if lost (100% equal to casino)
Change the DB bet info for "state" to "finished" and outcome to "won" or "lost"
Add all the other relevant fields like winAmount, outcomeResult (ex : "2" or "X"), etc..
Change the balance for app/user (copy as the casino structure)
If Multiple
Verify if user won the bet
Determine if this was the last game dependent on result (not "finished")
If no
To change the sub-bet (betResult) place of the array to the result and new state "finished"
If yes
To change the sub-bet (betResult) place of the array to the result and new state "finished"
Determine the winAmount (betAmount-houseEdge * odd) or 0 if lost (100% equal to casino)
Change the DB bet info for "state" to "finished" and outcome to "won" or "lost"
Add all the other relevant fields like winAmount, outcomeResult (ex : "2" or "X"), etc..
Change the balance for app/user (copy as the casino structure)
Note :
List All Booked Matches:
/api/get/matches/all/layout
required:
user_id
app_id
List Booked Matches Per Serie:
/api/get/matches/series/layout
required:
user_id
app_id
serie_id: { Type: Array of Series (Number) }
Filter by Casino or Esports
Filter by begin and end date
Create Filter Date to Matches/Booked Matches For Backoffice/Layout
Create Status of Match Filter for Backoffice/Layout
Dont have any parameter to send to backend to inform if a bet is single or multiple, the backend knows the difference if a bets are single or multiple, when there is an unique bet is single, when there are more than one bet, it's a multiple bet.
The problem is when the user choose many options (n) to bet as single be, is necessary to make many requests (n) to API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.