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

Warn users about invalid markets #127

Open
kongzii opened this issue Oct 23, 2024 · 0 comments
Open

Warn users about invalid markets #127

kongzii opened this issue Oct 23, 2024 · 0 comments

Comments

@kongzii
Copy link
Contributor

kongzii commented Oct 23, 2024

There is a new endpoint, /market-invalid/; see https://labs-api.ai.gnosisdev.com/docs#/ for details.

Given market id, it returns boolean if the market is deemed invalid:

{
  "market_id": "0x303bf745ff66c457b7d8722a429824c6d3617c0c",
  "created_at": "2024-10-23T07:42:12.207835Z",
  "invalid": false
}

It's based on Omen rules, this is the prompt used for evaluation: https://github.com/gnosis/prediction-market-agent-tooling/blob/main/prediction_market_agent_tooling/tools/is_invalid.py#L22

(responses are cached forever, so it can be called as much as needed)

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