pmxtjs 2.35.19 → 2.35.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/pmxt/models.d.ts +2 -0
- package/dist/esm/pmxt/router.js +1 -0
- package/dist/pmxt/models.d.ts +2 -0
- package/dist/pmxt/router.js +1 -0
- package/generated/package.json +1 -1
- package/package.json +2 -2
- package/pmxt/models.ts +3 -0
- package/pmxt/router.ts +1 -0
|
@@ -522,6 +522,8 @@ export interface MatchResult extends Readonly<UnifiedMarket> {
|
|
|
522
522
|
bestBid?: number;
|
|
523
523
|
/** Best ask price on the matched venue (when includePrices=true). */
|
|
524
524
|
bestAsk?: number;
|
|
525
|
+
/** The source market this was matched against. Present in browse mode, absent in lookup mode. */
|
|
526
|
+
sourceMarket?: UnifiedMarket;
|
|
525
527
|
}
|
|
526
528
|
/** A cross-venue event match with constituent market matches.
|
|
527
529
|
* Event properties (title, slug, url, etc.) are accessible directly on the result. */
|
package/dist/esm/pmxt/router.js
CHANGED
package/dist/pmxt/models.d.ts
CHANGED
|
@@ -522,6 +522,8 @@ export interface MatchResult extends Readonly<UnifiedMarket> {
|
|
|
522
522
|
bestBid?: number;
|
|
523
523
|
/** Best ask price on the matched venue (when includePrices=true). */
|
|
524
524
|
bestAsk?: number;
|
|
525
|
+
/** The source market this was matched against. Present in browse mode, absent in lookup mode. */
|
|
526
|
+
sourceMarket?: UnifiedMarket;
|
|
525
527
|
}
|
|
526
528
|
/** A cross-venue event match with constituent market matches.
|
|
527
529
|
* Event properties (title, slug, url, etc.) are accessible directly on the result. */
|
package/dist/pmxt/router.js
CHANGED
|
@@ -111,6 +111,7 @@ function parseMatchResult(raw) {
|
|
|
111
111
|
reasoning: raw.reasoning,
|
|
112
112
|
bestBid: raw.bestBid ?? marketData.bestBid,
|
|
113
113
|
bestAsk: raw.bestAsk ?? marketData.bestAsk,
|
|
114
|
+
sourceMarket: raw.sourceMarket ? convertMarket(raw.sourceMarket) : undefined,
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
/**
|
package/generated/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.35.
|
|
3
|
+
"version": "2.35.21",
|
|
4
4
|
"description": "Unified prediction market data API - The ccxt for prediction markets",
|
|
5
5
|
"author": "PMXT Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"unified"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"pmxt-core": "2.35.
|
|
46
|
+
"pmxt-core": "2.35.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^30.0.0",
|
package/pmxt/models.ts
CHANGED
|
@@ -719,6 +719,9 @@ export interface MatchResult extends Readonly<UnifiedMarket> {
|
|
|
719
719
|
|
|
720
720
|
/** Best ask price on the matched venue (when includePrices=true). */
|
|
721
721
|
bestAsk?: number;
|
|
722
|
+
|
|
723
|
+
/** The source market this was matched against. Present in browse mode, absent in lookup mode. */
|
|
724
|
+
sourceMarket?: UnifiedMarket;
|
|
722
725
|
}
|
|
723
726
|
|
|
724
727
|
/** A cross-venue event match with constituent market matches.
|
package/pmxt/router.ts
CHANGED
|
@@ -90,6 +90,7 @@ function parseMatchResult(raw: any): MatchResult {
|
|
|
90
90
|
reasoning: raw.reasoning,
|
|
91
91
|
bestBid: raw.bestBid ?? marketData.bestBid,
|
|
92
92
|
bestAsk: raw.bestAsk ?? marketData.bestAsk,
|
|
93
|
+
sourceMarket: raw.sourceMarket ? convertMarket(raw.sourceMarket) : undefined,
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
|