diff --git a/sdks/python/pmxt/__init__.py b/sdks/python/pmxt/__init__.py index 24e53837..b4e7989b 100644 --- a/sdks/python/pmxt/__init__.py +++ b/sdks/python/pmxt/__init__.py @@ -65,6 +65,10 @@ SeriesFetchParams, TradesParams, FetchOrderBookParams, + HistoryFilterParams, + OHLCVParams, + MyTradesParams, + OrderHistoryParams, ExchangeOptions, PolymarketOptions, RouterOptions, @@ -249,6 +253,10 @@ def restart_server() -> None: "SeriesFetchParams", "TradesParams", "FetchOrderBookParams", + "HistoryFilterParams", + "OHLCVParams", + "MyTradesParams", + "OrderHistoryParams", "SortOption", "SearchIn", "OrderSide", diff --git a/sdks/python/pmxt/models.py b/sdks/python/pmxt/models.py index de1cc856..d6c8e3a5 100644 --- a/sdks/python/pmxt/models.py +++ b/sdks/python/pmxt/models.py @@ -703,6 +703,22 @@ class TradesParams(TypedDict, total=False): cursor: str +class HistoryFilterParams(TypedDict, total=False): + """Parameters for generic history queries.""" + from_timestamp: int + until_timestamp: int + max_size: int + order: Literal["asc", "desc"] + + +class OHLCVParams(TypedDict, total=False): + """Parameters for OHLCV candle queries.""" + since: int + until: int + limit: int + resolution: str + + class FetchOrderBookParams(TypedDict, total=False): """Parameters for historical order book queries.""" side: Literal["yes", "no"] @@ -711,6 +727,25 @@ class FetchOrderBookParams(TypedDict, total=False): until: int +class MyTradesParams(TypedDict, total=False): + """Parameters for fetching authenticated user trades.""" + outcome_id: str + market_id: str + since: int + until: int + limit: int + cursor: str + + +class OrderHistoryParams(TypedDict, total=False): + """Parameters for fetching authenticated order history.""" + market_id: str + since: int + until: int + limit: int + cursor: str + + # ----------------------------------------------------------------------------- # Router Types # -----------------------------------------------------------------------------