Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sdks/python/pmxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
MatchRelation,
ClusterSortOption,
MatchedClusterSort,
MatchedClusterFilterParams,
FetchMatchedMarketClustersParams,
FetchMatchedEventClustersParams,
SortOption,
Expand Down Expand Up @@ -251,6 +252,7 @@ def restart_server() -> None:
"MatchRelation",
"ClusterSortOption",
"MatchedClusterSort",
"MatchedClusterFilterParams",
"FetchMatchedMarketClustersParams",
"FetchMatchedEventClustersParams",
"MarketFilterCriteria",
Expand Down
33 changes: 11 additions & 22 deletions sdks/python/pmxt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -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
Expand Down
Loading