Skip to content

Fix incorrect method name in get_events#214

Closed
04cb wants to merge 1 commit intoPolymarket:mainfrom
04cb:fix/parse-event-method-name
Closed

Fix incorrect method name in get_events#214
04cb wants to merge 1 commit intoPolymarket:mainfrom
04cb:fix/parse-event-method-name

Conversation

@04cb
Copy link
Copy Markdown

@04cb 04cb commented Mar 7, 2026

Fixes #35. The get_events method was calling parse_event which does not exist. Changed to parse_pydantic_event to match the actual method name defined in the GammaMarketClient class.


Note

Low Risk
Single-line fix to call the correct event parser; low risk aside from potentially changing returned event object shape when parse_pydantic=True.

Overview
Fixes a broken code path in GammaMarketClient.get_events where the pydantic parsing branch called a non-existent parse_event method.

When parse_pydantic=True, events are now parsed via parse_pydantic_event, preventing runtime errors and returning PolymarketEvent instances as intended.

Written by Cursor Bugbot for commit b18afc7. This will update automatically on new commits. Configure here.

The get_events method was calling parse_event which does not exist.
Changed to parse_pydantic_event to match the actual method name in the class.
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to Polymarket Agents. Thank you for creating your first PR. Cheers!

@04cb 04cb closed this by deleting the head repository Mar 10, 2026
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.

Error generator raised StopIteration

1 participant