Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multi betting #329

Merged
merged 17 commits into from
Sep 20, 2024
Merged

Add support for multi betting #329

merged 17 commits into from
Sep 20, 2024

Conversation

Adamantios
Copy link
Collaborator

No description provided.

The logic was updated to allow for multiple bets on the same market. The bet status is not necessary anymore. It is replaced by the timestamp in which we processed a bet (either bet on it or blacklisted it) and the number of bets we have placed on it. From now on, we can check when we last placed a bet on a market to decide whether we can bet on it or not, and we can also check whether the number of bets has been increased to determine whether the action taken was to bet or to blacklist it.
- `update_market_info`: we will need to update the markets instead of keeping them as they are since we need to use the latest information about the market conditions, such as liquidity when rebetting.
- `rebet_allowed`: we will need to check if a rebet is allowed based on some rules
We now update the existing bets' market information.
We will need to know which range is considered acceptable to vote before a market opens, and what is the chance to rebet vs choosing a new market to bet on.
@Adamantios Adamantios added the enhancement New feature or request label Sep 19, 2024
That is because after adding support for rebetting, the selection round needs to generate a random number in order to decide whether to rebet or not, based on the `rebet_chance` configuration.
@Adamantios Adamantios force-pushed the feat/multi-bet branch 2 times, most recently from 71c0b2d to a7a81c1 Compare September 19, 2024 16:36
@Adamantios Adamantios merged commit 78c0864 into main Sep 20, 2024
18 checks passed
@Adamantios Adamantios deleted the feat/multi-bet branch September 20, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant