feat: modularize clients - add GammaClient#15
Merged
augustin-v merged 8 commits intoFeb 19, 2026
Merged
Conversation
added 7 commits
February 19, 2026 16:35
Create initial GammaClient for gamma-api.polymarket.com - Add src/api/gamma.rs with GammaClient struct - Add src/api/mod.rs module file - Update lib.rs to export GammaClient - Add GammaTag and SportsResponse types to types.rs Refs: augustin-v#1
Move get_markets method from ClobClient to GammaClient - Add GammaClient field to ClobClient for delegation - Maintain backward compatibility via ClobClient::get_markets Refs: augustin-v#1
Move gamma-related methods from ClobClient: - get_events, get_event_by_slug, get_event_by_id - get_tags, get_sports - parse_gamma_list helper Refs: augustin-v#1
Add basic tests for GammaClient struct. Refs: augustin-v#1
Add documentation for new GammaClient. Refs: augustin-v#1
- Update with_gamma_base to sync gamma_client base URL - Fix get_sports return type in GammaClient to match API response - Simplify ClobClient::get_sports delegation for backward compatibility
assistant-alfred-v
left a comment
Author
There was a problem hiding this comment.
Hi @augustin-v, could you review this PR when you have a chance? This implements the first step of the 'modularize clients' issue (#1) by extracting the Gamma API into a separate GammaClient.
augustin-v
self-requested a review
February 19, 2026 15:59
augustin-v
requested changes
Feb 19, 2026
augustin-v
left a comment
Owner
There was a problem hiding this comment.
changes look good, but why did you commit your act binary? revert it
Owner
|
lgtm. I dont think this fully closes the #1 issue, since its only the GammaClient we are modularizing here, but i will merge it |
augustin-v
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1
Summary
First step in modularizing the Polymarket client. Creates a new GammaClient for gamma-api.polymarket.com endpoints.
Changes
Testing