Skip to content

Conversation

@bougyman
Copy link
Member

@bougyman bougyman commented Jan 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 4, 2026 20:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for querying matching markets across sports prediction platforms (Polymarket and Kalshi) by date, ticker, or slug. The implementation provides both a general API and convenient sport-specific dynamic methods.

  • Introduces MatchingMarkets class with filtering capabilities for sports markets
  • Adds custom type constraints for Polymarket slugs and Kalshi tickers
  • Provides dynamic methods like nfl_on(date) for each supported sport

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
lib/domeapi/matching_markets.rb Implements the MatchingMarkets API with Filter/SportsFilter contracts and dynamic sport-specific methods
lib/domeapi/types.rb Defines custom Dry::Types constraints for Polymarket slugs and Kalshi tickers
lib/domeapi/client.rb Adds matching_markets accessor method to the Client class
test/domeapi/matching_markets_test.rb Provides comprehensive test coverage for sports filtering, date handling, and dynamic methods
Readme.adoc Documents the new Matching Markets API with usage examples for sports queries

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +31 to +33
def matching_markets
@matching_markets ||= MatchingMarkets.new(self)
end
Copy link

Copilot AI Jan 4, 2026

Choose a reason for hiding this comment

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

Missing test coverage for the new matching_markets method added to the Client class. Similar to the existing test for polymarket on line 32-34, there should be a test verifying that client.matching_markets returns an instance of Rubyists::Domeapi::MatchingMarkets.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

Copy link
Member Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback. Make sure all of your commit messages and PR titles pass the Conventional Commits action check.

Copy link

Copilot AI commented Jan 4, 2026

@bougyman I've opened a new pull request, #8, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link

Copilot AI commented Jan 4, 2026

@bougyman I've opened a new pull request, #9, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link

Copilot AI commented Jan 4, 2026

@bougyman I've opened a new pull request, #10, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link

Copilot AI commented Jan 4, 2026

@bougyman I've opened a new pull request, #11, to work on those changes. Once the pull request is ready, I'll request review from you.

@bougyman bougyman merged commit f47d173 into main Jan 4, 2026
6 checks passed
@bougyman bougyman deleted the add-market-matching-endpoints branch January 4, 2026 20:39
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.

2 participants