@structbuild/sdk 0.1.7 → 0.1.9

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.
@@ -563,26 +563,6 @@ export interface paths {
563
563
  patch?: never;
564
564
  trace?: never;
565
565
  };
566
- "/polymarket/trader/pnl/{address}/positions": {
567
- parameters: {
568
- query?: never;
569
- header?: never;
570
- path?: never;
571
- cookie?: never;
572
- };
573
- /**
574
- * Get trader position PnL
575
- * @description Retrieve position-level PnL breakdown for a trader
576
- */
577
- get: operations["get_trader_position_pnl"];
578
- put?: never;
579
- post?: never;
580
- delete?: never;
581
- options?: never;
582
- head?: never;
583
- patch?: never;
584
- trace?: never;
585
- };
586
566
  "/polymarket/trader/portfolio/{address}": {
587
567
  parameters: {
588
568
  query?: never;
@@ -612,7 +592,7 @@ export interface paths {
612
592
  };
613
593
  /**
614
594
  * Get trader positions
615
- * @description Retrieve a trader's active or closed positions with optional PnL data
595
+ * @description Retrieve a trader's active positions with PnL data, sorted by the specified field
616
596
  */
617
597
  get: operations["get_portfolio_positions"];
618
598
  put?: never;
@@ -752,7 +732,8 @@ export interface components {
752
732
  ConditionMetricsResponse: {
753
733
  condition_id: string;
754
734
  timeframe: string;
755
- volume_usd: string;
735
+ /** Format: double */
736
+ volume_usd: number;
756
737
  /** Format: double */
757
738
  fees: number;
758
739
  /** Format: int32 */
@@ -766,6 +747,8 @@ export interface components {
766
747
  trader: components["schemas"]["Trader"];
767
748
  /** @description Total shares across all positions in this event */
768
749
  total_shares: string;
750
+ /** @description USD value of all shares (sum of shares * price per position) */
751
+ shares_usd?: string | null;
769
752
  /**
770
753
  * Format: int32
771
754
  * @description Number of distinct positions held
@@ -773,7 +756,11 @@ export interface components {
773
756
  position_count: number;
774
757
  /** @description USD balance (USDe on Polygon) */
775
758
  usd_balance?: string | null;
776
- pnl?: null | components["schemas"]["EventHolderPnl"];
759
+ /**
760
+ * Format: double
761
+ * @description Lifetime realized PnL in USD
762
+ */
763
+ realized_pnl_usd?: number | null;
777
764
  };
778
765
  /** @description Event-level PnL data for a holder */
779
766
  EventHolderPnl: {
@@ -811,8 +798,6 @@ export interface components {
811
798
  total_holders: number;
812
799
  /** @description Top holders across all markets */
813
800
  holders: components["schemas"]["EventHolder"][];
814
- /** @description Pagination info */
815
- has_more: boolean;
816
801
  };
817
802
  /** @description Enriched market data for event API responses */
818
803
  EventMarket: {
@@ -858,10 +843,6 @@ export interface components {
858
843
  category: string | null;
859
844
  /** @default [] */
860
845
  clob_rewards: components["schemas"]["ClobReward"][];
861
- /** @default {} */
862
- metrics: {
863
- [key: string]: components["schemas"]["SimpleTimeframeMetrics"];
864
- };
865
846
  /** @default [] */
866
847
  outcomes: components["schemas"]["EventMarketOutcome"][];
867
848
  };
@@ -876,7 +857,8 @@ export interface components {
876
857
  EventMetricsResponse: {
877
858
  event_slug: string;
878
859
  timeframe: string;
879
- volume_usd: string;
860
+ /** Format: double */
861
+ volume_usd: number;
880
862
  /** Format: double */
881
863
  fees: number;
882
864
  /** Format: int32 */
@@ -889,7 +871,7 @@ export interface components {
889
871
  /** @enum {string} */
890
872
  EventSortBy: "volume" | "txns" | "unique_traders" | "title" | "creation_date" | "start_date" | "end_date" | "relevance";
891
873
  /** @enum {string} */
892
- GlobalPnlSortBy: "pnl_usd" | "win_rate" | "wins" | "losses" | "buys" | "sells" | "redemptions" | "merges" | "avg_hold_time" | "positions_traded" | "markets_traded" | "events_traded" | "markets_won" | "volume_usd" | "fees";
874
+ GlobalPnlSortBy: "pnl_usd" | "buys" | "sells" | "redemptions" | "merges" | "avg_hold_time" | "markets_traded" | "events_traded" | "markets_won" | "volume_usd" | "fees" | "best_trade" | "worst_trade";
893
875
  /** @description Individual trader entry in the global PnL leaderboard */
894
876
  GlobalPnlTrader: {
895
877
  trader: components["schemas"]["TraderInfo"];
@@ -898,16 +880,8 @@ export interface components {
898
880
  /** Format: int64 */
899
881
  events_traded?: number | null;
900
882
  /** Format: int64 */
901
- positions_traded?: number | null;
902
- /** Format: int64 */
903
883
  markets_traded?: number | null;
904
884
  /** Format: int64 */
905
- winning_positions?: number | null;
906
- /** Format: int64 */
907
- losing_positions?: number | null;
908
- /** Format: double */
909
- win_rate_pct?: number | null;
910
- /** Format: int64 */
911
885
  markets_won?: number | null;
912
886
  /** Format: int64 */
913
887
  markets_lost?: number | null;
@@ -933,16 +907,20 @@ export interface components {
933
907
  total_merges?: number | null;
934
908
  /** Format: int64 */
935
909
  total_trades?: number | null;
936
- /** Format: int64 */
937
- open_positions?: number | null;
938
910
  /** Format: double */
939
911
  total_fees?: number | null;
940
912
  /** Format: double */
941
- avg_pnl_per_position?: number | null;
913
+ avg_pnl_per_market?: number | null;
942
914
  /** Format: double */
943
915
  avg_pnl_per_trade?: number | null;
944
916
  /** Format: double */
945
917
  avg_hold_time_seconds?: number | null;
918
+ /** Format: double */
919
+ best_trade_pnl_usd?: number | null;
920
+ best_trade_condition_id?: string | null;
921
+ /** Format: double */
922
+ worst_trade_pnl_usd?: number | null;
923
+ worst_trade_condition_id?: string | null;
946
924
  /** Format: int64 */
947
925
  first_trade_at?: number | null;
948
926
  /** Format: int64 */
@@ -958,20 +936,18 @@ export interface components {
958
936
  shares_usd?: string | null;
959
937
  /** @description USD balance of wallet (USDe on Polygon) */
960
938
  usd_balance?: string | null;
961
- pnl?: null | components["schemas"]["PositionHolderPnl"];
939
+ /**
940
+ * Format: double
941
+ * @description Lifetime realized PnL in USD
942
+ */
943
+ realized_pnl_usd?: number | null;
962
944
  };
963
945
  /** @description Holder statistics data point (single time bucket) */
964
946
  HolderHistoryCandle: {
965
- /** Format: date-time */
966
- bucket: string;
967
- /** Format: int64 */
968
- total_holders?: number | null;
969
- /** Format: int64 */
970
- bot_holders?: number | null;
971
947
  /** Format: int64 */
972
- insider_holders?: number | null;
948
+ timestamp: number;
973
949
  /** Format: int64 */
974
- smart_money_holders?: number | null;
950
+ total_holders?: number | null;
975
951
  };
976
952
  /** @description Market-level PnL data for a holder */
977
953
  MarketHolderPnl: {
@@ -992,8 +968,6 @@ export interface components {
992
968
  /** Format: int64 */
993
969
  winning_outcomes?: number | null;
994
970
  /** Format: int64 */
995
- losing_outcomes?: number | null;
996
- /** Format: int64 */
997
971
  first_trade_at?: number | null;
998
972
  /** Format: int64 */
999
973
  last_trade_at?: number | null;
@@ -1118,7 +1092,7 @@ export interface components {
1118
1092
  * Format: double
1119
1093
  * @description Current price/probability
1120
1094
  */
1121
- last_price?: number | null;
1095
+ price?: number | null;
1122
1096
  /**
1123
1097
  * Format: int64
1124
1098
  * @description Total holders count from holder_stats
@@ -1127,6 +1101,8 @@ export interface components {
1127
1101
  /** @description Top holders for this outcome */
1128
1102
  holders: components["schemas"]["Holder"][];
1129
1103
  };
1104
+ /** @enum {string} */
1105
+ OutcomeIndex: "0" | "1";
1130
1106
  OutcomeTimeframeMetrics: {
1131
1107
  /**
1132
1108
  * Format: double
@@ -1392,7 +1368,7 @@ export interface components {
1392
1368
  * Format: double
1393
1369
  * @description Current price
1394
1370
  */
1395
- last_price?: number | null;
1371
+ price?: number | null;
1396
1372
  /**
1397
1373
  * Format: int64
1398
1374
  * @description Total holders count from holder_stats
@@ -1400,17 +1376,18 @@ export interface components {
1400
1376
  total_holders: number;
1401
1377
  /** @description Top holders */
1402
1378
  holders: components["schemas"]["Holder"][];
1403
- /** @description Pagination info */
1404
- has_more: boolean;
1405
1379
  };
1406
1380
  /** @description Response type for position metrics query */
1407
1381
  PositionMetricsResponse: {
1408
1382
  position_id: string;
1409
1383
  condition_id: string;
1410
1384
  timeframe: string;
1411
- volume_usd: string;
1412
- buy_volume_usd: string;
1413
- sell_volume_usd: string;
1385
+ /** Format: double */
1386
+ volume_usd: number;
1387
+ /** Format: double */
1388
+ buy_volume_usd: number;
1389
+ /** Format: double */
1390
+ sell_volume_usd: number;
1414
1391
  /** Format: double */
1415
1392
  fees: number;
1416
1393
  /** Format: int32 */
@@ -1430,10 +1407,6 @@ export interface components {
1430
1407
  /** Format: double */
1431
1408
  price_close: number;
1432
1409
  };
1433
- /** @enum {string} */
1434
- PositionPnlSortBy: "realized_pnl_usd" | "buy_usd" | "net_shares" | "cost_basis" | "total_fees";
1435
- /** @enum {string} */
1436
- PositionStatus: "active" | "resolved" | "all";
1437
1410
  PositionVolumeChartResponse: {
1438
1411
  volumes: components["schemas"]["PositionVolumeDataPoint"][];
1439
1412
  has_more: boolean;
@@ -1567,6 +1540,10 @@ export interface components {
1567
1540
  token_id: string;
1568
1541
  outcome: string;
1569
1542
  };
1543
+ /** @enum {string} */
1544
+ TradeSide: "0" | "1";
1545
+ /** @enum {string} */
1546
+ TradeType: "0" | "1" | "2" | "4";
1570
1547
  /**
1571
1548
  * @description Trader profile info embedded in API responses
1572
1549
  *
@@ -1638,8 +1615,8 @@ export interface operations {
1638
1615
  sort_dir?: components["schemas"]["SortDirection"];
1639
1616
  /** @description Metrics timeframe: 1m, 5m, 30m, 1h, 6h, 24h, 7d, 30d */
1640
1617
  timeframe?: components["schemas"]["MetricsTimeframe"];
1641
- /** @description Filter by status: 'open' or 'closed' */
1642
- status?: string;
1618
+ /** @description Filter by status: open or closed */
1619
+ status?: components["schemas"]["MarketStatus"];
1643
1620
  /** @description Comma-separated category filters */
1644
1621
  categories?: string;
1645
1622
  /** @description Comma-separated categories to exclude */
@@ -1677,7 +1654,7 @@ export interface operations {
1677
1654
  };
1678
1655
  requestBody?: never;
1679
1656
  responses: {
1680
- /** @description List of Polymarket events with nested tags, markets, and series */
1657
+ /** @description List of Polymarket events with nested tags, markets, and series. Response includes `pagination: { has_more, pagination_key }` for cursor-based pagination. */
1681
1658
  200: {
1682
1659
  headers: {
1683
1660
  [name: string]: unknown;
@@ -1745,9 +1722,7 @@ export interface operations {
1745
1722
  min_shares?: string;
1746
1723
  /** @description Maximum total shares held (decimal string) */
1747
1724
  max_shares?: string;
1748
- /** @description Include event-level PnL data (costs extra credits, default: false) */
1749
- include_pnl?: boolean;
1750
- /** @description PnL timeframe: 1d, 7d, 30d, lifetime (default: 7d) */
1725
+ /** @description PnL timeframe: 1d, 7d, 30d, lifetime (default: lifetime) */
1751
1726
  timeframe?: components["schemas"]["PnlTimeframe"];
1752
1727
  };
1753
1728
  header?: never;
@@ -1759,7 +1734,7 @@ export interface operations {
1759
1734
  };
1760
1735
  requestBody?: never;
1761
1736
  responses: {
1762
- /** @description Event holders aggregated across markets (sorted by total_shares DESC) */
1737
+ /** @description Event holders aggregated across markets (sorted by total_shares DESC). Response includes `pagination: { has_more, pagination_key }` for cursor-based pagination. */
1763
1738
  200: {
1764
1739
  headers: {
1765
1740
  [name: string]: unknown;
@@ -1819,9 +1794,7 @@ export interface operations {
1819
1794
  min_shares?: string;
1820
1795
  /** @description Maximum shares held (decimal string) */
1821
1796
  max_shares?: string;
1822
- /** @description Include position-level PnL data (costs extra credits, default: false) */
1823
- include_pnl?: boolean;
1824
- /** @description PnL timeframe: 1d, 7d, 30d, lifetime (default: 7d) */
1797
+ /** @description PnL timeframe: 1d, 7d, 30d, lifetime (default: lifetime) */
1825
1798
  timeframe?: components["schemas"]["PnlTimeframe"];
1826
1799
  };
1827
1800
  header?: never;
@@ -1895,10 +1868,6 @@ export interface operations {
1895
1868
  min_shares?: string;
1896
1869
  /** @description Maximum shares held (decimal string) */
1897
1870
  max_shares?: string;
1898
- /** @description Include position-level PnL data (costs extra credits, default: false) */
1899
- include_pnl?: boolean;
1900
- /** @description PnL timeframe: 1d, 7d, 30d, lifetime (default: 7d) */
1901
- timeframe?: components["schemas"]["PnlTimeframe"];
1902
1871
  };
1903
1872
  header?: never;
1904
1873
  path: {
@@ -1909,7 +1878,7 @@ export interface operations {
1909
1878
  };
1910
1879
  requestBody?: never;
1911
1880
  responses: {
1912
- /** @description Position holders (sorted by shares DESC) */
1881
+ /** @description Position holders (sorted by shares DESC). Response includes `pagination: { has_more, pagination_key }` for cursor-based pagination. */
1913
1882
  200: {
1914
1883
  headers: {
1915
1884
  [name: string]: unknown;
@@ -2023,7 +1992,7 @@ export interface operations {
2023
1992
  include_event?: boolean;
2024
1993
  /** @description Include all timeframe metrics (default: true) */
2025
1994
  include_metrics?: boolean;
2026
- /** @description Results limit (default: 50, max: 100) */
1995
+ /** @description Results limit (default: 10, max: 100) */
2027
1996
  limit?: number;
2028
1997
  /** @description Cursor-based pagination key (base64-encoded, obtained from previous response's pagination.pagination_key) */
2029
1998
  pagination_key?: string;
@@ -2034,7 +2003,7 @@ export interface operations {
2034
2003
  };
2035
2004
  requestBody?: never;
2036
2005
  responses: {
2037
- /** @description List of markets with metadata, outcomes, tags, event, and metrics */
2006
+ /** @description List of markets with metadata, outcomes, tags, event, and metrics. Response includes `pagination: { has_more, pagination_key }` for cursor-based pagination. */
2038
2007
  200: {
2039
2008
  headers: {
2040
2009
  [name: string]: unknown;
@@ -2057,7 +2026,7 @@ export interface operations {
2057
2026
  min_probability?: number;
2058
2027
  /** @description Maximum hours until market end */
2059
2028
  max_hours?: number;
2060
- /** @description Number of results (default: 10, max: 200) */
2029
+ /** @description Number of results (default: 10, max: 250) */
2061
2030
  limit?: number;
2062
2031
  /** @description Cursor for pagination: end_date (unix epoch) of the last item from the previous page */
2063
2032
  pagination_key?: number;
@@ -2261,14 +2230,14 @@ export interface operations {
2261
2230
  position_ids?: string;
2262
2231
  /** @description Comma-separated trader addresses (max 25) */
2263
2232
  traders?: string;
2264
- /** @description 0 = Buy, 1 = Sell */
2265
- side?: number;
2233
+ /** @description Trade side: 0 (Buy), 1 (Sell) */
2234
+ side?: components["schemas"]["TradeSide"];
2266
2235
  /** @description Outcome name filter (e.g. Yes, No) */
2267
2236
  outcome?: string;
2268
- /** @description Outcome index (0 or 1) */
2269
- outcome_index?: number;
2270
- /** @description 0 = OrderFilled, 1 = Redemption, 2 = Merge */
2271
- trade_type?: number;
2237
+ /** @description Outcome index: 0 (Yes), 1 (No) */
2238
+ outcome_index?: components["schemas"]["OutcomeIndex"];
2239
+ /** @description Trade type: 0 (OrderFilled), 1 (Redemption), 2 (Merge) */
2240
+ trade_type?: components["schemas"]["TradeType"];
2272
2241
  /** @description Min USD amount */
2273
2242
  min_usd_amount?: number;
2274
2243
  /** @description Max USD amount */
@@ -2527,9 +2496,9 @@ export interface operations {
2527
2496
  get_global_pnl: {
2528
2497
  parameters: {
2529
2498
  query?: {
2530
- /** @description Timeframe: 1d, 7d, 30d (default: 7d) */
2499
+ /** @description Timeframe: 1d, 7d, 30d, lifetime (default: 7d) */
2531
2500
  timeframe?: components["schemas"]["PnlTimeframe"];
2532
- /** @description Sort: pnl_usd, win_rate, wins, losses, buys, sells, redemptions, merges, avg_hold_time, positions_traded, markets_traded, events_traded, markets_won, volume_usd, fees (default: pnl_usd) */
2501
+ /** @description Sort: pnl_usd, buys, sells, redemptions, merges, avg_hold_time, markets_traded, events_traded, markets_won, volume_usd, fees, best_trade, worst_trade (default: pnl_usd) */
2533
2502
  sort_by?: components["schemas"]["GlobalPnlSortBy"];
2534
2503
  /** @description Sort direction: asc, desc (default: desc) */
2535
2504
  sort_direction?: components["schemas"]["SortDirection"];
@@ -2544,7 +2513,7 @@ export interface operations {
2544
2513
  };
2545
2514
  requestBody?: never;
2546
2515
  responses: {
2547
- /** @description Global PnL leaderboard with trader stats */
2516
+ /** @description Global PnL leaderboard with trader stats. Response includes `pagination: { has_more, pagination_key }` for cursor-based pagination. */
2548
2517
  200: {
2549
2518
  headers: {
2550
2519
  [name: string]: unknown;
@@ -2575,7 +2544,9 @@ export interface operations {
2575
2544
  headers: {
2576
2545
  [name: string]: unknown;
2577
2546
  };
2578
- content?: never;
2547
+ content: {
2548
+ "application/json": components["schemas"]["GlobalPnlTrader"];
2549
+ };
2579
2550
  };
2580
2551
  /** @description Trader not found */
2581
2552
  404: {
@@ -2641,7 +2612,7 @@ export interface operations {
2641
2612
  };
2642
2613
  requestBody?: never;
2643
2614
  responses: {
2644
- /** @description Event-level PnL entries for this trader */
2615
+ /** @description Event-level PnL entries for this trader. Response includes `pagination: { has_more, pagination_key }` for offset-based pagination. */
2645
2616
  200: {
2646
2617
  headers: {
2647
2618
  [name: string]: unknown;
@@ -2677,43 +2648,7 @@ export interface operations {
2677
2648
  };
2678
2649
  requestBody?: never;
2679
2650
  responses: {
2680
- /** @description Market-level PnL entries for this trader */
2681
- 200: {
2682
- headers: {
2683
- [name: string]: unknown;
2684
- };
2685
- content?: never;
2686
- };
2687
- };
2688
- };
2689
- get_trader_position_pnl: {
2690
- parameters: {
2691
- query?: {
2692
- /** @description Timeframe: 1d, 7d, 30d, lifetime (default: 7d) */
2693
- timeframe?: components["schemas"]["PnlTimeframe"];
2694
- /** @description Sort: realized_pnl_usd, buy_usd, net_shares, cost_basis, total_fees (default: realized_pnl_usd) */
2695
- sort_by?: components["schemas"]["PositionPnlSortBy"];
2696
- /** @description Sort direction: asc, desc (default: desc) */
2697
- sort_direction?: components["schemas"]["SortDirection"];
2698
- /** @description Results limit (default: 10, max: 200) */
2699
- limit?: number;
2700
- /** @description Offset-based pagination key */
2701
- pagination_key?: number;
2702
- /** @description Filter by condition ID */
2703
- condition_id?: string;
2704
- /** @description Filter by event slug */
2705
- event_slug?: string;
2706
- };
2707
- header?: never;
2708
- path: {
2709
- /** @description Trader wallet address */
2710
- address: string;
2711
- };
2712
- cookie?: never;
2713
- };
2714
- requestBody?: never;
2715
- responses: {
2716
- /** @description Position-level PnL entries for this trader */
2651
+ /** @description Market-level PnL entries for this trader. Response includes `pagination: { has_more, pagination_key }` for offset-based pagination. */
2717
2652
  200: {
2718
2653
  headers: {
2719
2654
  [name: string]: unknown;
@@ -2737,7 +2672,7 @@ export interface operations {
2737
2672
  };
2738
2673
  requestBody?: never;
2739
2674
  responses: {
2740
- /** @description Full portfolio with stats, positions, and PnL chart */
2675
+ /** @description Full portfolio with stats, positions, and PnL chart. Positions include `pagination: { has_more, pagination_key }` for offset-based pagination. */
2741
2676
  200: {
2742
2677
  headers: {
2743
2678
  [name: string]: unknown;
@@ -2749,15 +2684,15 @@ export interface operations {
2749
2684
  get_portfolio_positions: {
2750
2685
  parameters: {
2751
2686
  query?: {
2752
- /** @description Position status: active, resolved, all (default: all) */
2753
- status?: components["schemas"]["PositionStatus"];
2687
+ /** @description Sort field: shares_usd (default), shares, realized_pnl_usd, price, buy_usd */
2688
+ sort_by?: string;
2689
+ /** @description Sort direction: asc, desc (default: desc) */
2690
+ sort_direction?: components["schemas"]["SortDirection"];
2754
2691
  /** @description Filter by condition ID */
2755
2692
  condition_id?: string;
2756
- /** @description Filter by market slug */
2757
- market_slug?: string;
2758
- /** @description Search by question text */
2759
- question?: string;
2760
- /** @description Results limit (default: 10, max: 100) */
2693
+ /** @description Filter by event slug */
2694
+ event_slug?: string;
2695
+ /** @description Results limit (default: 50, max: 200) */
2761
2696
  limit?: number;
2762
2697
  /** @description Offset-based pagination key (integer offset into result set) */
2763
2698
  pagination_key?: number;
@@ -2771,7 +2706,7 @@ export interface operations {
2771
2706
  };
2772
2707
  requestBody?: never;
2773
2708
  responses: {
2774
- /** @description Trader positions with market metadata */
2709
+ /** @description Trader positions with market metadata and PnL. Response includes `pagination: { has_more, pagination_key }` for offset-based pagination. */
2775
2710
  200: {
2776
2711
  headers: {
2777
2712
  [name: string]: unknown;
@@ -2797,7 +2732,9 @@ export interface operations {
2797
2732
  headers: {
2798
2733
  [name: string]: unknown;
2799
2734
  };
2800
- content?: never;
2735
+ content: {
2736
+ "application/json": components["schemas"]["PolymarketUserProfile"];
2737
+ };
2801
2738
  };
2802
2739
  /** @description Profile not found */
2803
2740
  404: {
@@ -2825,7 +2762,9 @@ export interface operations {
2825
2762
  headers: {
2826
2763
  [name: string]: unknown;
2827
2764
  };
2828
- content?: never;
2765
+ content: {
2766
+ "application/json": components["schemas"]["PolymarketUserProfile"][];
2767
+ };
2829
2768
  };
2830
2769
  /** @description Invalid request (empty addresses or more than 20) */
2831
2770
  400: {
@@ -2845,14 +2784,14 @@ export interface operations {
2845
2784
  slugs?: string;
2846
2785
  /** @description Comma-separated position IDs */
2847
2786
  position_ids?: string;
2848
- /** @description 0 = Buy, 1 = Sell */
2849
- side?: number;
2787
+ /** @description Trade side: 0 (Buy), 1 (Sell) */
2788
+ side?: components["schemas"]["TradeSide"];
2850
2789
  /** @description Outcome name filter (e.g. Yes, No) */
2851
2790
  outcome?: string;
2852
- /** @description Outcome index (0 or 1) */
2853
- outcome_index?: number;
2854
- /** @description 0 = OrderFilled, 1 = Redemption, 2 = Merge */
2855
- trade_type?: number;
2791
+ /** @description Outcome index: 0 (Yes), 1 (No) */
2792
+ outcome_index?: components["schemas"]["OutcomeIndex"];
2793
+ /** @description Trade type: 0 (OrderFilled), 1 (Redemption), 2 (Merge) */
2794
+ trade_type?: components["schemas"]["TradeType"];
2856
2795
  /** @description Min USD amount */
2857
2796
  min_usd_amount?: number;
2858
2797
  /** @description Max USD amount */