Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/api-doc-config.generated.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_generated": "Auto-generated by extract-jsdoc.js on 2026-06-08T09:58:54.515Z. Do not edit manually.",
"_generated": "Auto-generated by extract-jsdoc.js on 2026-06-08T11:09:35.749Z. Do not edit manually.",
"methods": {
"has": {
"summary": "HTTP verb for the endpoint (e.g. GET, POST). */",
Expand Down Expand Up @@ -786,7 +786,7 @@
{
"name": "params",
"type": "FetchMatchesParams",
"optional": false,
"optional": true,
"description": "Match filter parameters (uses relation: 'identity' internally)"
}
],
Expand All @@ -803,7 +803,7 @@
{
"name": "params",
"type": "FetchMatchesParams",
"optional": false,
"optional": true,
"description": "Match filter parameters"
}
],
Expand Down
4 changes: 2 additions & 2 deletions core/src/BaseExchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ export abstract class PredictionMarketExchange {
* @param params - Match filter parameters (uses relation: 'identity' internally)
* @returns Array of price comparisons across venues
*/
async compareMarketPrices(params: FetchMatchesParams): Promise<PriceComparison[]> {
async compareMarketPrices(params?: FetchMatchesParams): Promise<PriceComparison[]> {
throw new Error("Method compareMarketPrices not implemented.");
}

Expand All @@ -1572,7 +1572,7 @@ export abstract class PredictionMarketExchange {
* @param params - Match filter parameters
* @returns Array of subset/superset matches with live prices
*/
async fetchRelatedMarkets(params: FetchMatchesParams): Promise<PriceComparison[]> {
async fetchRelatedMarkets(params?: FetchMatchesParams): Promise<PriceComparison[]> {
throw new Error("Method fetchRelatedMarkets not implemented.");
}

Expand Down
4 changes: 2 additions & 2 deletions core/src/server/method-verbs.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
{
"name": "params",
"kind": "object",
"optional": false
"optional": true
}
]
},
Expand All @@ -459,7 +459,7 @@
{
"name": "params",
"kind": "object",
"optional": false
"optional": true
}
]
},
Expand Down
3 changes: 0 additions & 3 deletions core/src/server/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1941,11 +1941,8 @@ paths:
maxItems: 1
items:
$ref: '#/components/schemas/FetchMarketMatchesParams'
minItems: 1
credentials:
$ref: '#/components/schemas/ExchangeCredentials'
required:
- args
responses:
'200':
description: Compare Prices Across Venues response
Expand Down
8 changes: 2 additions & 6 deletions docs/api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6210,16 +6210,12 @@
"maxItems": 1,
"items": {
"$ref": "#/components/schemas/FetchMarketMatchesParams"
},
"minItems": 1
}
},
"credentials": {
"$ref": "#/components/schemas/ExchangeCredentials"
}
},
"required": [
"args"
]
}
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions sdks/python/API_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1055,12 +1055,12 @@ Compare live prices for the same market across venues. Finds identity matches an
**Signature:**

```python
def compare_market_prices(params: FetchMatchesParams) -> List[PriceComparison]:
def compare_market_prices(params: Optional[FetchMatchesParams] = None) -> List[PriceComparison]:
```

**Parameters:**

- `params` (FetchMatchesParams): Match filter parameters (uses relation: 'identity' internally)
- `params` (FetchMatchesParams) - **Optional**: Match filter parameters (uses relation: 'identity' internally)

**Returns:** List[[PriceComparison](#pricecomparison)] - Array of price comparisons across venues

Expand All @@ -1080,12 +1080,12 @@ Find related markets across venues. Discovers subset/superset market relationshi
**Signature:**

```python
def fetch_related_markets(params: FetchMatchesParams) -> List[PriceComparison]:
def fetch_related_markets(params: Optional[FetchMatchesParams] = None) -> List[PriceComparison]:
```

**Parameters:**

- `params` (FetchMatchesParams): Match filter parameters
- `params` (FetchMatchesParams) - **Optional**: Match filter parameters

**Returns:** List[[PriceComparison](#pricecomparison)] - Array of subset/superset matches with live prices

Expand Down
10 changes: 6 additions & 4 deletions sdks/python/pmxt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1260,12 +1260,13 @@ def fetch_event_matches(self, params: Optional[dict] = None, **kwargs) -> List[A
except ApiException as e:
raise self._parse_api_exception(e) from None

def compare_market_prices(self, params: dict, **kwargs) -> List[Any]:
def compare_market_prices(self, params: Optional[dict] = None, **kwargs) -> List[Any]:
try:
args = []
if kwargs:
params = {**(params or {}), **kwargs}
args.append(_convert_params_to_camel(params))
if params is not None:
args.append(_convert_params_to_camel(params))
body: dict = {"args": args}
creds = self._get_credentials_dict()
if creds:
Expand All @@ -1282,12 +1283,13 @@ def compare_market_prices(self, params: dict, **kwargs) -> List[Any]:
except ApiException as e:
raise self._parse_api_exception(e) from None

def fetch_related_markets(self, params: dict, **kwargs) -> List[Any]:
def fetch_related_markets(self, params: Optional[dict] = None, **kwargs) -> List[Any]:
try:
args = []
if kwargs:
params = {**(params or {}), **kwargs}
args.append(_convert_params_to_camel(params))
if params is not None:
args.append(_convert_params_to_camel(params))
body: dict = {"args": args}
creds = self._get_credentials_dict()
if creds:
Expand Down
8 changes: 4 additions & 4 deletions sdks/typescript/API_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1058,12 +1058,12 @@ Compare live prices for the same market across venues. Finds identity matches an
**Signature:**

```typescript
async compareMarketPrices(params: FetchMatchesParams): Promise<PriceComparison[]>
async compareMarketPrices(params?: FetchMatchesParams): Promise<PriceComparison[]>
```

**Parameters:**

- `params` (FetchMatchesParams): Match filter parameters (uses relation: 'identity' internally)
- `params` (FetchMatchesParams) - **Optional**: Match filter parameters (uses relation: 'identity' internally)

**Returns:** Promise<[PriceComparison](#pricecomparison)[]> - Array of price comparisons across venues

Expand All @@ -1083,12 +1083,12 @@ Find related markets across venues. Discovers subset/superset market relationshi
**Signature:**

```typescript
async fetchRelatedMarkets(params: FetchMatchesParams): Promise<PriceComparison[]>
async fetchRelatedMarkets(params?: FetchMatchesParams): Promise<PriceComparison[]>
```

**Parameters:**

- `params` (FetchMatchesParams): Match filter parameters
- `params` (FetchMatchesParams) - **Optional**: Match filter parameters

**Returns:** Promise<[PriceComparison](#pricecomparison)[]> - Array of subset/superset matches with live prices

Expand Down
8 changes: 4 additions & 4 deletions sdks/typescript/pmxt/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1394,11 +1394,11 @@ export abstract class Exchange {
}
}

async compareMarketPrices(params: any): Promise<any[]> {
async compareMarketPrices(params?: any): Promise<any[]> {
await this.initPromise;
try {
const args: any[] = [];
args.push(params);
if (params !== undefined) args.push(params);
const response = await this.fetchWithRetry(`${this.resolveBaseUrl()}/api/${this.exchangeName}/compareMarketPrices`, {
method: 'POST',
headers: { 'Content-Type': 'application/json', ...this.getAuthHeaders() },
Expand All @@ -1419,11 +1419,11 @@ export abstract class Exchange {
}
}

async fetchRelatedMarkets(params: any): Promise<any[]> {
async fetchRelatedMarkets(params?: any): Promise<any[]> {
await this.initPromise;
try {
const args: any[] = [];
args.push(params);
if (params !== undefined) args.push(params);
const response = await this.fetchWithRetry(`${this.resolveBaseUrl()}/api/${this.exchangeName}/fetchRelatedMarkets`, {
method: 'POST',
headers: { 'Content-Type': 'application/json', ...this.getAuthHeaders() },
Expand Down
Loading