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

Modify market-insights endpoint to question-insights #21

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

berteotti
Copy link
Contributor

@berteotti berteotti commented Jan 31, 2025

  • Question-insights endpoint receives a question instead of a market address
  • Updated names to reflect question instead of market

Fixes: #20

@berteotti berteotti force-pushed the berteotti/question-insights branch from ccc2e65 to 878f97d Compare January 31, 2025 12:53
"""Returns market insights for a given market on Omen."""
insights = market_insights(market_id)
logger.info(f"Insights for `{market_id}`: {insights.model_dump()}")
@app.get("/question-insights/")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need the same thing for the market-invalid endpoint? But it is fine by me to implement it once you need it, if not yet.

@kongzii kongzii merged commit ff349a5 into gnosis:main Feb 3, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

Add insight for open questions
2 participants