From b43598cdcc09c8b11ac2f78891173b94d8ec3625 Mon Sep 17 00:00:00 2001 From: adamantmm Date: Fri, 7 Aug 2026 23:11:14 +0300 Subject: [PATCH] fix(ts-sdk): exclude markets missing resolutionDate in filterMarkets Align the TypeScript SDK with core and the Python SDK: when filtering by resolutionDate, markets without a date are excluded instead of silently passing through. Co-authored-by: Cursor --- sdks/typescript/pmxt/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/typescript/pmxt/client.ts b/sdks/typescript/pmxt/client.ts index 04ddc27f..01e5e043 100644 --- a/sdks/typescript/pmxt/client.ts +++ b/sdks/typescript/pmxt/client.ts @@ -3086,8 +3086,9 @@ export abstract class Exchange { } // ResolutionDate filter - if (criteria.resolutionDate && market.resolutionDate) { + if (criteria.resolutionDate) { const resDate = market.resolutionDate; + if (!resDate) return false; if (criteria.resolutionDate.before && resDate >= criteria.resolutionDate.before) { return false; }