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

SMART strategy placed wrong bet #513

Open
AdamSaketume26 opened this issue Apr 28, 2024 · 0 comments
Open

SMART strategy placed wrong bet #513

AdamSaketume26 opened this issue Apr 28, 2024 · 0 comments

Comments

@AdamSaketume26
Copy link

Describe the bug

i saw logs that miner put bet on win with 88.5% when it should have put bet to lose because of smart strategy.
INFO - TwitchChannelPointsMiner.classes.Twitch - [make_predictions]: Place 10k channel points on: Win (BLUE), Points: 47k, Users: 6 (85.71%), Odds: 1.13 (88.5%)

bet=BetSettings(
strategy=Strategy.SMART, # Choose you strategy!
percentage=25, # Place the x% of your channel points
percentage_gap=35, # Gap difference between outcomesA and outcomesB (for SMART strategy)
max_points=10000, # If the x percentage of your channel points is gt bet_max_points set this value
stealth_mode=True, # If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points Issue Tkd-Alex#33
delay_mode=DelayMode.FROM_END, # When placing a bet, we will wait until delay seconds before the end of the timer
delay=10,
minimum_points=10000, # Place the bet only if we have at least 20k points. Issue #113
filter_condition=FilterCondition(
by=OutcomeKeys.TOTAL_USERS, # Where apply the filter. Allowed [PERCENTAGE_USERS, ODDS_PERCENTAGE, ODDS, TOP_POINTS, TOTAL_USERS, TOTAL_POINTS]
where=Condition.GTE, # 'by' must be [GT, LT, GTE, LTE] than value
value=10
)
)

88.5 - 11.5 = 77 < 35 percentage gap so it should bet on the 11.5% lose but it didnt . is this because TOTAL_USERS was < 10 FOR THE 11.5% LOSE OPTION ?? but isnt total users total users making ANY bet? what went wrong here?

Steps to reproduce

bet=BetSettings(
strategy=Strategy.SMART, # Choose you strategy!
percentage=25, # Place the x% of your channel points
percentage_gap=35, # Gap difference between outcomesA and outcomesB (for SMART strategy)
max_points=10000, # If the x percentage of your channel points is gt bet_max_points set this value
stealth_mode=True, # If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points Issue Tkd-Alex#33
delay_mode=DelayMode.FROM_END, # When placing a bet, we will wait until delay seconds before the end of the timer
delay=10,
minimum_points=10000, # Place the bet only if we have at least 20k points. Issue #113
filter_condition=FilterCondition(
by=OutcomeKeys.TOTAL_USERS, # Where apply the filter. Allowed [PERCENTAGE_USERS, ODDS_PERCENTAGE, ODDS, TOP_POINTS, TOTAL_USERS, TOTAL_POINTS]
where=Condition.GTE, # 'by' must be [GT, LT, GTE, LTE] than value
value=10
)
)

and make channel prediction 88.5 win with some users and 11.5 lose with only 2 users

Expected behavior

88.5 - 11.5 = 77 < 35 percentage gap so it should bet on the 11.5% lose but it didnt

Operating system

Windows 11

Python version

3.12

Miner version

1.9.5

Other relevant software versions

No response

Logs

INFO - TwitchChannelPointsMiner.classes.Twitch - [make_predictions]: Going to complete bet for EventPrediction(event_id=, streamer=Streamer(username=streamer, channel_id=id, channel_points=points), title=WIN MATCH?)
INFO - TwitchChannelPointsMiner.classes.Twitch - [make_predictions]: Place 10k channel points on: Win (BLUE), Points: 47k, Users: 6 (85.71%), Odds: 1.13 (88.5%)

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant