diff --git a/sdks/python/pmxt/__init__.py b/sdks/python/pmxt/__init__.py index 4250bb2e..602e1e94 100644 --- a/sdks/python/pmxt/__init__.py +++ b/sdks/python/pmxt/__init__.py @@ -89,6 +89,7 @@ MatchRelation, ClusterSortOption, MatchedClusterSort, + MatchedClusterFilterParams, FetchMatchedMarketClustersParams, FetchMatchedEventClustersParams, SortOption, @@ -251,6 +252,7 @@ def restart_server() -> None: "MatchRelation", "ClusterSortOption", "MatchedClusterSort", + "MatchedClusterFilterParams", "FetchMatchedMarketClustersParams", "FetchMatchedEventClustersParams", "MarketFilterCriteria", diff --git a/sdks/python/pmxt/models.py b/sdks/python/pmxt/models.py index 223413ca..c0be394c 100644 --- a/sdks/python/pmxt/models.py +++ b/sdks/python/pmxt/models.py @@ -841,12 +841,8 @@ class OrderHistoryParams(TypedDict, total=False): VenueFilter = Union[str, List[str]] -class MatchedMarketClusterParams(TypedDict, total=False): - """Parameters for fetching matched market clusters.""" - market: UnifiedMarket - market_id: str - slug: str - url: str +class MatchedClusterFilterParams(TypedDict, total=False): + """Shared filters for matched market/event cluster discovery.""" query: str category: str relations: Union[str, List[MatchRelation]] @@ -864,27 +860,20 @@ class MatchedMarketClusterParams(TypedDict, total=False): edge_limit: int -class MatchedEventClusterParams(TypedDict, total=False): +class MatchedMarketClusterParams(MatchedClusterFilterParams, total=False): + """Parameters for fetching matched market clusters.""" + market: UnifiedMarket + market_id: str + slug: str + url: str + + +class MatchedEventClusterParams(MatchedClusterFilterParams, total=False): """Parameters for fetching matched event clusters.""" event: UnifiedEvent event_id: str slug: str url: str - query: str - category: str - relations: Union[str, List[MatchRelation]] - relation: MatchRelation - min_confidence: float - venues: VenueFilter - exclude_venues: VenueFilter - min_venues: int - with_orderbook: bool - updated_since: Union[str, datetime] - include_raw_matches: bool - sort: ClusterSortOption - limit: int - offset: int - edge_limit: int @dataclass