Skip to content

SDK drift: MatchedMarketCluster.volume24h is required in TypeScript but optional in Python #650

@realfishsam

Description

@realfishsam

SDK Drift Report

Category: Model / return-type drift

TypeScript location: sdks/typescript/pmxt/models.ts line 965 — MatchedMarketCluster

Python location: sdks/python/pmxt/models.py line 716 — MatchedMarketCluster


What the drift is

TypeScript declares volume24h as a required number field:

// sdks/typescript/pmxt/models.ts line 965
export interface MatchedMarketCluster {
  ...
  volume24h: number;   // required
}

Python declares the same field as optional with a default of None:

# sdks/python/pmxt/models.py line 716
@dataclass
class MatchedMarketCluster:
    ...
    volume_24h: Optional[float] = None   # optional

Why it matters

TypeScript callers can safely access cluster.volume24h without a null check. Python callers who follow the TypeScript contract and assume the value is always present will get unexpected None values and potential TypeErrors.


Expected behaviour

Both SDKs should agree on whether volume24h / volume_24h is required or optional. The field optionality should match the actual server contract.

Metadata

Metadata

Assignees

No one assigned

    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