Drift
TypeScript exports a named MyTradesParams interface documenting all filter parameters for fetchMyTrades. Python's fetch_my_trades accepts an untyped Optional[dict] with no equivalent typed structure defined or exported.
TypeScript SDK
sdks/typescript/pmxt/models.ts:551-564
export interface MyTradesParams {
outcomeId?: string;
marketId?: string;
since?: number;
until?: number;
limit?: number;
cursor?: string;
}
Exported from sdks/typescript/index.ts.
Python SDK
sdks/python/pmxt/client.py — fetch_my_trades signature:
async def fetch_my_trades(
self,
symbol: Optional[str] = None,
since: Optional[int] = None,
limit: Optional[int] = None,
params: Optional[dict] = None,
) -> List[UserTrade]:
No MyTradesParams TypedDict is defined in sdks/python/pmxt/models.py or exported from sdks/python/pmxt/__init__.py. The fields outcome_id, market_id, until, and cursor are not surfaced as typed parameters at all.
Expected
A MyTradesParams TypedDict should be defined in sdks/python/pmxt/models.py and exported, with snake_case equivalents of all TypeScript fields (outcome_id, market_id, since, until, limit, cursor).
Impact
Python users cannot discover or type-check the full set of filter options for fetch_my_trades; fields like outcome_id, until, and cursor are effectively hidden.
Drift
TypeScript exports a named
MyTradesParamsinterface documenting all filter parameters forfetchMyTrades. Python'sfetch_my_tradesaccepts an untypedOptional[dict]with no equivalent typed structure defined or exported.TypeScript SDK
sdks/typescript/pmxt/models.ts:551-564Exported from
sdks/typescript/index.ts.Python SDK
sdks/python/pmxt/client.py—fetch_my_tradessignature:No
MyTradesParamsTypedDict is defined insdks/python/pmxt/models.pyor exported fromsdks/python/pmxt/__init__.py. The fieldsoutcome_id,market_id,until, andcursorare not surfaced as typed parameters at all.Expected
A
MyTradesParamsTypedDict should be defined insdks/python/pmxt/models.pyand exported, with snake_case equivalents of all TypeScript fields (outcome_id,market_id,since,until,limit,cursor).Impact
Python users cannot discover or type-check the full set of filter options for
fetch_my_trades; fields likeoutcome_id,until, andcursorare effectively hidden.