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

Define criteria for bet sizes #56

Closed
kongzii opened this issue Apr 9, 2024 · 5 comments
Closed

Define criteria for bet sizes #56

kongzii opened this issue Apr 9, 2024 · 5 comments

Comments

@kongzii
Copy link
Contributor

kongzii commented Apr 9, 2024

Gabriel's original text:

Having worked a bit more in the PMA (https://github.com/gnosis/prediction-market-agent) repo, I believe we should think about having some infrastructure for the agent being able to determine the size of each bet. Currently this is the (standard) implementation for this:

def calculate_bet_amount(self, answer: bool, market: AgentMarket) -> BetAmount:
    """
    Calculate the bet amount. By default, it returns the minimum bet amount.
    """
    return market.get_tiny_bet_amount()

One option that comes to mind is let the agent determine the amount, based on a number of factors, e.g. xDAI balance, confidence on prediction, time left for market to close, etc. Those are all parameters we can already provide the agent.

@kongzii
Copy link
Contributor Author

kongzii commented Apr 9, 2024

Moving gnosis/prediction-market-agent-tooling#157 into PMA, to keep in mind that some more intelligent bet sizing is desirable.

If any universal functions/classes/methods come out of implementing this, we can promote that to the PMAT repo, of course.

@kongzii
Copy link
Contributor Author

kongzii commented Apr 9, 2024

Currently blocked by gnosis/prediction-market-agent-tooling#161

@gabrielfior
Copy link
Contributor

Another suggestion :
-> If we are defining bet_sizes in a mathematical way (e.g. based on difference between agent_p_yes and market_p_yes), then it's OK to have bet_amount : float
-> If we let the LLM decide on the bet amount, probably better to have it pick from a set of fixed sizes (e.g. `pick from [0.01, 0.1, 1., 10] xDAI instead of allowing for a continous range (see https://arize.com/blog-course/numeric-evals-for-llm-as-a-judge/)

@evangriffiths
Copy link
Contributor

We do have these betting strategies implemented in python to choose from https://github.com/gnosis/prediction-market-agent-tooling/tree/main/prediction_market_agent_tooling/tools/betting_strategies

@evangriffiths
Copy link
Contributor

Closing, as duplicate of #280

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

3 participants