From 0a242e31c02d119e1c680698d1111b1d10e11518 Mon Sep 17 00:00:00 2001 From: "Samuel EF. Tinnerholm" Date: Sun, 24 May 2026 20:25:42 +0300 Subject: [PATCH] fix: add MarketFetchParams fields + align fetchOHLCV timeframe default Fixes #172 Fixes #177 --- sdks/python/pmxt/models.py | 2 ++ sdks/typescript/pmxt/feed-client.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sdks/python/pmxt/models.py b/sdks/python/pmxt/models.py index 1a7f8b16..963d2a83 100644 --- a/sdks/python/pmxt/models.py +++ b/sdks/python/pmxt/models.py @@ -570,6 +570,8 @@ class MarketFetchParams(TypedDict, total=False): category: str tags: List[str] filter: MarketFilterCriteria + page: int + similarity_threshold: float class EventFetchParams(TypedDict, total=False): diff --git a/sdks/typescript/pmxt/feed-client.ts b/sdks/typescript/pmxt/feed-client.ts index 2c786374..e61522c0 100644 --- a/sdks/typescript/pmxt/feed-client.ts +++ b/sdks/typescript/pmxt/feed-client.ts @@ -94,7 +94,7 @@ export class FeedClient { return this.get('fetchTickers', params); } - async fetchOHLCV(symbol: string, timeframe?: string, since?: number, limit?: number): Promise { + async fetchOHLCV(symbol: string, timeframe: string = '1h', since?: number, limit?: number): Promise { return this.get('fetchOHLCV', { symbol, timeframe, since, limit }); }