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.
What
OrderHistoryParams.sinceandOrderHistoryParams.untilhave incompatible types across SDKs.sdks/typescript/pmxt/models.tssince?: Date,until?: Datesdks/python/pmxt/models.pysince: int,until: intTypeScript accepts
Dateobjects; Python expects Unix-millisecond integers.Impact
Callers using
fetchClosedOrders/fetch_closed_ordersorfetchAllOrders/fetch_all_orderswith time filters will encounter incompatible parameter types when porting code between SDKs. A Python caller referencing TypeScript docs that passDateobjects will receive a type error.