File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
4947function 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 ,
You can’t perform that action at this time.
0 commit comments