Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Need to add functionality for pulling the results of matches #44

Closed
MichaelClarkFsu opened this issue Dec 4, 2024 · 7 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@MichaelClarkFsu
Copy link
Collaborator

We can use TheOdds api to get the results of the matches after they conclude.

@KPCOFGS KPCOFGS added the enhancement New feature or request label Dec 5, 2024
@KPCOFGS
Copy link
Owner

KPCOFGS commented Dec 5, 2024

The Odd API does not support historical data, and getting game scores can only go as far as 3 days before. We will be calculating the probability by using the formula 100/(Odds+100) for positive odds and -Odds/(-Odds+100) for negative odds. Assign the probability to each team and then randomly select the winning team according to the calculated probability

Edit: Do not use this method, just fetch the api anyway

@Nathanawaring Nathanawaring self-assigned this Dec 5, 2024
@MichaelClarkFsu
Copy link
Collaborator Author

While we can't pull historical odds we should still be able to pull the scores for all the matches and get the actual result instead of using the probabilities to make a random selection.

@KPCOFGS
Copy link
Owner

KPCOFGS commented Dec 5, 2024

Yes, but it is only allowed up to 3 days before the current day. If the user logs into their account 4 days after the games being concluded, some results cannot be fetched

@KPCOFGS
Copy link
Owner

KPCOFGS commented Dec 5, 2024

@MichaelClarkFsu
Copy link
Collaborator Author

MichaelClarkFsu commented Dec 5, 2024

Ah I see. So should we make a disclaimer about that issue to users and still pull scores anyway or would it cause too many problems?
Like we can put a note that all bets must be cashed in within 3 days?

@KPCOFGS
Copy link
Owner

KPCOFGS commented Dec 5, 2024

Sure I think that would work also

@KPCOFGS
Copy link
Owner

KPCOFGS commented Dec 7, 2024

Done

@KPCOFGS KPCOFGS closed this as completed Dec 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants