Skip to content

Commit 134f4ef

Browse files
committed
feat: add complement match relation to SDK types
1 parent cb12661 commit 134f4ef

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.46.0] - 2026-05-25
6+
7+
### Added
8+
9+
- **Cross Exchange**: Add `complement` to the matched event and market cluster relation types in the core router types and TypeScript/Python SDK models, matching the hosted API's complement relation filter.
10+
511
## [2.45.1] - 2026-05-25
612

713
### Fixed

core/src/router/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { UnifiedMarket, UnifiedEvent } from '../types';
55
// Relation types (matches the matching engine's SetRelation)
66
// ---------------------------------------------------------------------------
77

8-
export type MatchRelation = 'identity' | 'subset' | 'superset' | 'overlap' | 'disjoint';
8+
export type MatchRelation = 'identity' | 'complement' | 'subset' | 'superset' | 'overlap' | 'disjoint';
99

1010
// ---------------------------------------------------------------------------
1111
// Constructor options

sdks/python/pmxt/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ class EventFetchParams(TypedDict, total=False):
599599
# Router Types
600600
# ----------------------------------------------------------------------------
601601

602-
MatchRelation = Literal["identity", "subset", "superset", "overlap", "disjoint"]
602+
MatchRelation = Literal["identity", "complement", "subset", "superset", "overlap", "disjoint"]
603603
ClusterSortOption = Literal["volume", "confidence"]
604604
VenueFilter = Union[str, List[str]]
605605

sdks/typescript/pmxt/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ export interface SubscribedAddressSnapshot {
824824
// ----------------------------------------------------------------------------
825825

826826
/** Set-theoretic relation between two markets' resolution conditions. */
827-
export type MatchRelation = 'identity' | 'subset' | 'superset' | 'overlap' | 'disjoint';
827+
export type MatchRelation = 'identity' | 'complement' | 'subset' | 'superset' | 'overlap' | 'disjoint';
828828

829829
/** A cross-venue market match with relation classification.
830830
* Market properties (title, slug, url, etc.) are accessible directly on the result. */

0 commit comments

Comments
 (0)