Drift
Python FeedClient.fetch_ohlcv defaults timeframe to "1h" when omitted. TypeScript FeedClient.fetchOHLCV declares timeframe as optional (timeframe?: string) with no default, meaning the server receives an undefined/missing value when the caller omits it.
TypeScript SDK
sdks/typescript/pmxt/feed-client.ts, line 97:
async fetchOHLCV(symbol: string, timeframe?: string, since?: number, limit?: number): Promise<OHLCV[]>
When timeframe is undefined, it is excluded from the query string (see _get private method, line 121–124), so the server receives no timeframe key.
Python SDK
sdks/python/pmxt/feed_client.py, lines 125–128:
def fetch_ohlcv(
self,
symbol: str,
timeframe: str = "1h", # ← default "1h"
since: Optional[int] = None,
limit: Optional[int] = None,
) -> List[OHLCV]:
When timeframe is omitted, the server always receives timeframe=1h.
Expected
Both SDKs should agree on the default. TypeScript should either add timeframe: string = "1h" (apply the default before building the query string) or Python should remove the default, letting the server decide.
Impact
Calling feed.fetchOHLCV("BTC/USD") in TypeScript and feed.fetch_ohlcv("BTC/USD") in Python may return different candle granularities because the server receives different inputs.
Found by automated SDK cross-language drift audit
Drift
Python
FeedClient.fetch_ohlcvdefaultstimeframeto"1h"when omitted. TypeScriptFeedClient.fetchOHLCVdeclarestimeframeas optional (timeframe?: string) with no default, meaning the server receives an undefined/missing value when the caller omits it.TypeScript SDK
sdks/typescript/pmxt/feed-client.ts, line 97:When
timeframeisundefined, it is excluded from the query string (see_getprivate method, line 121–124), so the server receives notimeframekey.Python SDK
sdks/python/pmxt/feed_client.py, lines 125–128:When
timeframeis omitted, the server always receivestimeframe=1h.Expected
Both SDKs should agree on the default. TypeScript should either add
timeframe: string = "1h"(apply the default before building the query string) or Python should remove the default, letting the server decide.Impact
Calling
feed.fetchOHLCV("BTC/USD")in TypeScript andfeed.fetch_ohlcv("BTC/USD")in Python may return different candle granularities because the server receives different inputs.Found by automated SDK cross-language drift audit