Skip to content

SDK drift: OrderHistoryParams.since/until typed as Date in TypeScript but int in Python #1003

@realfishsam

Description

@realfishsam

What

OrderHistoryParams.since and OrderHistoryParams.until have incompatible types across SDKs.

SDK File Lines Type
TypeScript sdks/typescript/pmxt/models.ts 652–654 since?: Date, until?: Date
Python sdks/python/pmxt/models.py 829–830 since: int, until: int

TypeScript accepts Date objects; Python expects Unix-millisecond integers.

Impact

Callers using fetchClosedOrders / fetch_closed_orders or fetchAllOrders / fetch_all_orders with time filters will encounter incompatible parameter types when porting code between SDKs. A Python caller referencing TypeScript docs that pass Date objects will receive a type error.

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