Skip to content

KalshiFetcher.resetCache() not exposed on KalshiExchange or either SDK — series cache cannot be force-invalidated #1427

Description

@realfishsam

Gap type

Core → SDK (missing exposure)

Summary

KalshiFetcher has a public resetCache() method that clears its internal series/event cache. Neither KalshiExchange nor either SDK exposes this, so callers cannot force a cache refresh without re-instantiating the exchange.

Core

core/src/exchanges/kalshi/fetcher.ts:188

resetCache(): void {
    this.cachedEvents = null;
    this.cachedSeriesMap = null;
    this.lastCacheTime = 0;
}

KalshiExchange (core/src/exchanges/kalshi/index.ts) does not delegate this method.

TypeScript SDK

sdks/typescript/pmxt/client.tsKalshi class has no resetCache() method.

Python SDK

sdks/python/pmxt/_exchanges.pyKalshi class has no reset_cache() method.

Impact

The Kalshi fetcher caches events and series to reduce API calls. If stale cache causes incorrect market data, the only workaround is to recreate the exchange instance. Exposing resetCache() through the exchange class and sidecar route would let callers recover without reconnection overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-sdk-gapCore engine capabilities not exposed in SDKs

    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