Skip to content

MarketFetchParams missing page and similarityThreshold fields in Python SDK #172

@realfishsam

Description

@realfishsam

Drift

TypeScript MarketFilterParams (aliased as MarketFetchParams) includes page and similarityThreshold fields that are absent from the Python MarketFetchParams TypedDict.

TypeScript SDK

sdks/typescript/pmxt/models.ts, lines 365–410:

export interface MarketFilterParams {
    // ...
    page?: number;                 // ← present
    similarityThreshold?: number;  // ← present
    // ...
}
export type MarketFetchParams = MarketFilterParams;

Python SDK

sdks/python/pmxt/models.py, lines 555–569:

class MarketFetchParams(TypedDict, total=False):
    query: str
    limit: int
    offset: int
    sort: Literal["volume", "liquidity", "newest"]
    status: Literal["active", "inactive", "closed", "all"]
    search_in: Literal["title", "description", "both"]
    slug: str
    market_id: str
    outcome_id: str
    event_id: str
    category: str
    tags: List[str]
    filter: MarketFilterCriteria
    # page — missing
    # similarity_threshold — missing

Expected

Python MarketFetchParams should add page: int and similarity_threshold: float to match the TypeScript interface.

Impact

Python users cannot pass page or similarity_threshold through the typed params object. While they may still pass them as raw dict keys, the missing type hints mean IDE completion and static analysis will not surface these options.


Found by automated SDK cross-language drift audit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions