Skip to content

Commit ee3fab2

Browse files
committed
Update client.ts
1 parent fedfe37 commit ee3fab2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

sdks/typescript/pmxt/client.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import {
99
DefaultApi,
1010
Configuration,
1111
FetchMarketsRequest,
12-
SearchMarketsRequest,
13-
GetMarketsBySlugRequest,
1412
FetchOHLCVRequest,
1513
FetchOrderBookRequest,
1614
FetchTradesRequest,
@@ -48,23 +46,23 @@ import { ServerManager } from "./server-manager.js";
4846
// Converter functions
4947
function convertMarket(raw: any): UnifiedMarket {
5048
const outcomes: MarketOutcome[] = (raw.outcomes || []).map((o: any) => ({
51-
id: o.id,
49+
outcomeId: o.outcomeId,
5250
label: o.label,
5351
price: o.price,
5452
priceChange24h: o.priceChange24h,
5553
metadata: o.metadata,
5654
}));
5755

5856
const convertOutcome = (o: any) => o ? ({
59-
id: o.id,
57+
outcomeId: o.outcomeId,
6058
label: o.label,
6159
price: o.price,
6260
priceChange24h: o.priceChange24h,
6361
metadata: o.metadata,
6462
}) : undefined;
6563

6664
return {
67-
id: raw.id,
65+
marketId: raw.marketId,
6866
title: raw.title,
6967
outcomes,
7068
volume24h: raw.volume24h || 0,

0 commit comments

Comments
 (0)