@structbuild/sdk 0.3.10-staging.1 → 0.3.10-staging.10

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.
@@ -3,7 +3,7 @@
3
3
  * Do not make direct changes to the file.
4
4
  */
5
5
  export interface paths {
6
- "/polymarket/analytics/candles": {
6
+ "/polymarket/analytics/changes": {
7
7
  parameters: {
8
8
  query?: never;
9
9
  header?: never;
@@ -11,10 +11,10 @@ export interface paths {
11
11
  cookie?: never;
12
12
  };
13
13
  /**
14
- * Global analytics candles (per-bucket deltas)
15
- * @description Returns per-bucket deltas (volume, traders, fees etc. that happened *during* each bucket). Use for bar-chart visualisations of activity over time.
14
+ * Global analytics % change
15
+ * @description Returns % change for each metric over the requested lookback window. `null` fields mean the window predates the available data.
16
16
  */
17
- get: operations["get_global_analytics_candles"];
17
+ get: operations["get_global_analytics_changes"];
18
18
  put?: never;
19
19
  post?: never;
20
20
  delete?: never;
@@ -23,7 +23,7 @@ export interface paths {
23
23
  patch?: never;
24
24
  trace?: never;
25
25
  };
26
- "/polymarket/analytics/changes": {
26
+ "/polymarket/analytics/counts": {
27
27
  parameters: {
28
28
  query?: never;
29
29
  header?: never;
@@ -31,10 +31,10 @@ export interface paths {
31
31
  cookie?: never;
32
32
  };
33
33
  /**
34
- * Global analytics % change
35
- * @description Returns % change for each metric over the requested lookback window. `null` fields mean the window predates the available data.
34
+ * Global analytics snapshot
35
+ * @description Returns the latest cumulative analytics metrics across all of Polymarket: volume, traders, txn counts, fees, yes/no splits, and buy distribution.
36
36
  */
37
- get: operations["get_global_analytics_changes"];
37
+ get: operations["get_analytics_counts"];
38
38
  put?: never;
39
39
  post?: never;
40
40
  delete?: never;
@@ -43,7 +43,7 @@ export interface paths {
43
43
  patch?: never;
44
44
  trace?: never;
45
45
  };
46
- "/polymarket/analytics/counts": {
46
+ "/polymarket/analytics/deltas": {
47
47
  parameters: {
48
48
  query?: never;
49
49
  header?: never;
@@ -51,10 +51,10 @@ export interface paths {
51
51
  cookie?: never;
52
52
  };
53
53
  /**
54
- * Global analytics snapshot
55
- * @description Returns the latest cumulative analytics metrics across all of Polymarket: volume, traders, txn counts, fees, yes/no splits, and buy distribution.
54
+ * Global analytics candles (per-bucket deltas)
55
+ * @description Returns per-bucket deltas (volume, traders, fees etc. that happened *during* each bucket). Use for bar-chart visualisations of activity over time.
56
56
  */
57
- get: operations["get_analytics_counts"];
57
+ get: operations["get_global_analytics_deltas"];
58
58
  put?: never;
59
59
  post?: never;
60
60
  delete?: never;
@@ -203,7 +203,7 @@ export interface paths {
203
203
  patch?: never;
204
204
  trace?: never;
205
205
  };
206
- "/polymarket/events/{event_slug}/analytics/candles": {
206
+ "/polymarket/events/top-traders": {
207
207
  parameters: {
208
208
  query?: never;
209
209
  header?: never;
@@ -211,10 +211,10 @@ export interface paths {
211
211
  cookie?: never;
212
212
  };
213
213
  /**
214
- * Event analytics candles (per-bucket deltas)
215
- * @description Returns per-bucket deltas for a specific event (what happened during each bucket).
214
+ * Get top traders for an event
215
+ * @description Top traders ranked by realized PnL for a given event.
216
216
  */
217
- get: operations["get_event_analytics_candles"];
217
+ get: operations["get_event_top_traders"];
218
218
  put?: never;
219
219
  post?: never;
220
220
  delete?: never;
@@ -243,6 +243,26 @@ export interface paths {
243
243
  patch?: never;
244
244
  trace?: never;
245
245
  };
246
+ "/polymarket/events/{event_slug}/analytics/deltas": {
247
+ parameters: {
248
+ query?: never;
249
+ header?: never;
250
+ path?: never;
251
+ cookie?: never;
252
+ };
253
+ /**
254
+ * Event analytics candles (per-bucket deltas)
255
+ * @description Returns per-bucket deltas for a specific event (what happened during each bucket).
256
+ */
257
+ get: operations["get_event_analytics_deltas"];
258
+ put?: never;
259
+ post?: never;
260
+ delete?: never;
261
+ options?: never;
262
+ head?: never;
263
+ patch?: never;
264
+ trace?: never;
265
+ };
246
266
  "/polymarket/events/{event_slug}/analytics/timeseries": {
247
267
  parameters: {
248
268
  query?: never;
@@ -292,7 +312,7 @@ export interface paths {
292
312
  };
293
313
  /**
294
314
  * Get market holders
295
- * @description Retrieve holders of a market grouped by outcome, sorted by shares held. Identify the market with either `condition_id` or `market_slug` — exactly one must be provided. Set `include_pnl=true` to include a nested holder `pnl` object.
315
+ * @description Retrieve holders of a market grouped by outcome, sorted by shares held. Identify the market with either `condition_id` or `market_slug` — exactly one must be provided. Set `include_pnl=true` to include a nested holder `pnl` object. Uses cursor-based pagination.
296
316
  */
297
317
  get: operations["get_market_holders"];
298
318
  put?: never;
@@ -463,6 +483,26 @@ export interface paths {
463
483
  patch?: never;
464
484
  trace?: never;
465
485
  };
486
+ "/polymarket/market/oracle-events": {
487
+ parameters: {
488
+ query?: never;
489
+ header?: never;
490
+ path?: never;
491
+ cookie?: never;
492
+ };
493
+ /**
494
+ * List oracle events
495
+ * @description Retrieve on-chain oracle lifecycle events (resolutions, disputes, assertions, emergency resolutions). Filter by `condition_ids` or `event_types` and paginate with `limit`/`pagination_key`.
496
+ */
497
+ get: operations["get_oracle_events"];
498
+ put?: never;
499
+ post?: never;
500
+ delete?: never;
501
+ options?: never;
502
+ head?: never;
503
+ patch?: never;
504
+ trace?: never;
505
+ };
466
506
  "/polymarket/market/position/candlestick": {
467
507
  parameters: {
468
508
  query?: never;
@@ -503,6 +543,26 @@ export interface paths {
503
543
  patch?: never;
504
544
  trace?: never;
505
545
  };
546
+ "/polymarket/market/position/top-traders": {
547
+ parameters: {
548
+ query?: never;
549
+ header?: never;
550
+ path?: never;
551
+ cookie?: never;
552
+ };
553
+ /**
554
+ * Get top traders for a position id / outcome
555
+ * @description Top traders ranked by realized PnL on a specific position (ERC1155 outcome token).
556
+ */
557
+ get: operations["get_position_top_traders"];
558
+ put?: never;
559
+ post?: never;
560
+ delete?: never;
561
+ options?: never;
562
+ head?: never;
563
+ patch?: never;
564
+ trace?: never;
565
+ };
506
566
  "/polymarket/market/position/volume-chart": {
507
567
  parameters: {
508
568
  query?: never;
@@ -563,6 +623,26 @@ export interface paths {
563
623
  patch?: never;
564
624
  trace?: never;
565
625
  };
626
+ "/polymarket/market/top-traders": {
627
+ parameters: {
628
+ query?: never;
629
+ header?: never;
630
+ path?: never;
631
+ cookie?: never;
632
+ };
633
+ /**
634
+ * Get top traders for a market
635
+ * @description Top traders ranked by realized PnL for a given market (condition_id or market_slug).
636
+ */
637
+ get: operations["get_market_top_traders"];
638
+ put?: never;
639
+ post?: never;
640
+ delete?: never;
641
+ options?: never;
642
+ head?: never;
643
+ patch?: never;
644
+ trace?: never;
645
+ };
566
646
  "/polymarket/market/trades": {
567
647
  parameters: {
568
648
  query?: never;
@@ -623,7 +703,7 @@ export interface paths {
623
703
  patch?: never;
624
704
  trace?: never;
625
705
  };
626
- "/polymarket/market/{condition_id}/analytics/candles": {
706
+ "/polymarket/market/{condition_id}/analytics/changes": {
627
707
  parameters: {
628
708
  query?: never;
629
709
  header?: never;
@@ -631,10 +711,10 @@ export interface paths {
631
711
  cookie?: never;
632
712
  };
633
713
  /**
634
- * Market analytics candles (per-bucket deltas)
635
- * @description Returns per-bucket deltas for a specific market (what happened during each bucket).
714
+ * Market analytics % change
715
+ * @description Per-metric % change over the requested lookback window for a specific market.
636
716
  */
637
- get: operations["get_market_analytics_candles"];
717
+ get: operations["get_market_analytics_changes"];
638
718
  put?: never;
639
719
  post?: never;
640
720
  delete?: never;
@@ -643,7 +723,7 @@ export interface paths {
643
723
  patch?: never;
644
724
  trace?: never;
645
725
  };
646
- "/polymarket/market/{condition_id}/analytics/changes": {
726
+ "/polymarket/market/{condition_id}/analytics/deltas": {
647
727
  parameters: {
648
728
  query?: never;
649
729
  header?: never;
@@ -651,10 +731,10 @@ export interface paths {
651
731
  cookie?: never;
652
732
  };
653
733
  /**
654
- * Market analytics % change
655
- * @description Per-metric % change over the requested lookback window for a specific market.
734
+ * Market analytics candles (per-bucket deltas)
735
+ * @description Returns per-bucket deltas for a specific market (what happened during each bucket).
656
736
  */
657
- get: operations["get_market_analytics_changes"];
737
+ get: operations["get_market_analytics_deltas"];
658
738
  put?: never;
659
739
  post?: never;
660
740
  delete?: never;
@@ -852,7 +932,7 @@ export interface paths {
852
932
  };
853
933
  /**
854
934
  * Get tags
855
- * @description Retrieve all available event tags/categories. Supports both cursor-based and offset-based pagination.
935
+ * @description Retrieve all available event tags/categories. Default listing is alphabetical (cursor-paginated). If either `sort` or `timeframe` is provided, the listing is ranked by the chosen metric+window (offset-paginated): sort defaults to `volume` when only `timeframe` is set, timeframe defaults to `24h` when only `sort` is set.
856
936
  */
857
937
  get: operations["get_tags"];
858
938
  put?: never;
@@ -872,7 +952,7 @@ export interface paths {
872
952
  };
873
953
  /**
874
954
  * Get tag by slug
875
- * @description Retrieve a single tag by its ID or slug
955
+ * @description Retrieve a single tag by its ID or slug. Pass `include_metrics=true` to attach analytics metrics (volume_usd, txn_count, unique_traders, fees_usd) — adds +1 credit. Use `timeframe` to select the window; defaults to `1d`.
876
956
  */
877
957
  get: operations["get_tag_by_id"];
878
958
  put?: never;
@@ -883,7 +963,7 @@ export interface paths {
883
963
  patch?: never;
884
964
  trace?: never;
885
965
  };
886
- "/polymarket/tags/{tag}/analytics/candles": {
966
+ "/polymarket/tags/{tag}/analytics/changes": {
887
967
  parameters: {
888
968
  query?: never;
889
969
  header?: never;
@@ -891,10 +971,10 @@ export interface paths {
891
971
  cookie?: never;
892
972
  };
893
973
  /**
894
- * Tag analytics candles (per-bucket deltas)
895
- * @description Returns per-bucket deltas for a specific tag (what happened during each bucket).
974
+ * Tag analytics % change
975
+ * @description Per-metric % change over the requested lookback window for a specific tag.
896
976
  */
897
- get: operations["get_tag_analytics_candles"];
977
+ get: operations["get_tag_analytics_changes"];
898
978
  put?: never;
899
979
  post?: never;
900
980
  delete?: never;
@@ -903,7 +983,7 @@ export interface paths {
903
983
  patch?: never;
904
984
  trace?: never;
905
985
  };
906
- "/polymarket/tags/{tag}/analytics/changes": {
986
+ "/polymarket/tags/{tag}/analytics/deltas": {
907
987
  parameters: {
908
988
  query?: never;
909
989
  header?: never;
@@ -911,10 +991,10 @@ export interface paths {
911
991
  cookie?: never;
912
992
  };
913
993
  /**
914
- * Tag analytics % change
915
- * @description Per-metric % change over the requested lookback window for a specific tag.
994
+ * Tag analytics candles (per-bucket deltas)
995
+ * @description Returns per-bucket deltas for a specific tag (what happened during each bucket).
916
996
  */
917
- get: operations["get_tag_analytics_changes"];
997
+ get: operations["get_tag_analytics_deltas"];
918
998
  put?: never;
919
999
  post?: never;
920
1000
  delete?: never;
@@ -1092,7 +1172,7 @@ export interface paths {
1092
1172
  };
1093
1173
  /**
1094
1174
  * Get trader position PnL
1095
- * @description Retrieve per-outcome-token lifetime PnL for a trader from polymarket_accounts. Includes open/closed state, win/loss outcome, redemption payouts, and share quantities. Filter by status and won/lost to segment portfolio views.
1175
+ * @description Retrieve per-outcome-token lifetime PnL for a trader. Includes open/closed state, win/loss outcome, redemption payouts, and share quantities. Filter by status and won/lost to segment portfolio views.
1096
1176
  */
1097
1177
  get: operations["get_trader_position_pnl"];
1098
1178
  put?: never;
@@ -1183,7 +1263,7 @@ export interface paths {
1183
1263
  patch?: never;
1184
1264
  trace?: never;
1185
1265
  };
1186
- "/polymarket/trader/{address}/analytics/candles": {
1266
+ "/polymarket/trader/{address}/analytics/changes": {
1187
1267
  parameters: {
1188
1268
  query?: never;
1189
1269
  header?: never;
@@ -1191,10 +1271,10 @@ export interface paths {
1191
1271
  cookie?: never;
1192
1272
  };
1193
1273
  /**
1194
- * Trader analytics candles (per-bucket deltas)
1195
- * @description Returns per-bucket deltas for a specific trader address (what happened during each bucket).
1274
+ * Trader analytics % change
1275
+ * @description Per-metric % change over the requested lookback window for a specific trader address.
1196
1276
  */
1197
- get: operations["get_trader_analytics_candles"];
1277
+ get: operations["get_trader_analytics_changes"];
1198
1278
  put?: never;
1199
1279
  post?: never;
1200
1280
  delete?: never;
@@ -1203,7 +1283,7 @@ export interface paths {
1203
1283
  patch?: never;
1204
1284
  trace?: never;
1205
1285
  };
1206
- "/polymarket/trader/{address}/analytics/changes": {
1286
+ "/polymarket/trader/{address}/analytics/deltas": {
1207
1287
  parameters: {
1208
1288
  query?: never;
1209
1289
  header?: never;
@@ -1211,10 +1291,10 @@ export interface paths {
1211
1291
  cookie?: never;
1212
1292
  };
1213
1293
  /**
1214
- * Trader analytics % change
1215
- * @description Per-metric % change over the requested lookback window for a specific trader address.
1294
+ * Trader analytics candles (per-bucket deltas)
1295
+ * @description Returns per-bucket deltas for a specific trader address (what happened during each bucket).
1216
1296
  */
1217
- get: operations["get_trader_analytics_changes"];
1297
+ get: operations["get_trader_analytics_deltas"];
1218
1298
  put?: never;
1219
1299
  post?: never;
1220
1300
  delete?: never;
@@ -1247,6 +1327,14 @@ export interface paths {
1247
1327
  export type webhooks = Record<string, never>;
1248
1328
  export interface components {
1249
1329
  schemas: {
1330
+ /**
1331
+ * @description Resolution for `/analytics/timeseries` and `/analytics/deltas`.
1332
+ * Superset of `CandlestickResolution` — adds 7-day (`W`/`1W`) and calendar
1333
+ * month (`M`/`1M`) buckets, which are pre-aggregated for global and tag
1334
+ * domains and re-bucketed from the `_1d` MV for market/event/trader.
1335
+ * @enum {string}
1336
+ */
1337
+ AnalyticsResolution: "60" | "240" | "D" | "1D" | "W" | "1W" | "M" | "1M";
1250
1338
  /** @description Output payload for ERC1155 setApprovalForAll events. */
1251
1339
  ApprovalTrade: {
1252
1340
  id: string;
@@ -1446,7 +1534,7 @@ export interface components {
1446
1534
  * @description Lookback window for `/analytics/changes` endpoints.
1447
1535
  * @enum {string}
1448
1536
  */
1449
- ChangeTimeframe: "1h" | "24h" | "7d" | "30d" | "1y";
1537
+ ChangeTimeframe: "1h" | "24h" | "7d" | "30d" | "1mo" | "1y";
1450
1538
  /** @enum {string} */
1451
1539
  ChartResolution: "1H" | "6H" | "1D" | "1W" | "1M" | "ALL";
1452
1540
  /** @description CLOB reward (public API format) */
@@ -1534,6 +1622,36 @@ export interface components {
1534
1622
  slug?: string | null;
1535
1623
  event_slug?: string | null;
1536
1624
  };
1625
+ /** @description V2 UMA OOv2: a proposed price was disputed. */
1626
+ DisputePriceEvent: {
1627
+ id: string;
1628
+ hash: string;
1629
+ /** Format: int64 */
1630
+ block?: number | null;
1631
+ /** Format: int64 */
1632
+ confirmed_at?: number | null;
1633
+ /** Format: int64 */
1634
+ received_at?: number | null;
1635
+ /** Format: int64 */
1636
+ log_index?: number | null;
1637
+ /** Format: int64 */
1638
+ block_index?: number | null;
1639
+ oracle_contract: string;
1640
+ requester: string;
1641
+ proposer: string;
1642
+ disputer: string;
1643
+ identifier: string;
1644
+ timestamp: string;
1645
+ ancillary_data: string;
1646
+ /** Format: int64 */
1647
+ proposed_price: number;
1648
+ condition_id?: string | null;
1649
+ proposed_outcome?: string | null;
1650
+ question?: string | null;
1651
+ image_url?: string | null;
1652
+ slug?: string | null;
1653
+ event_slug?: string | null;
1654
+ };
1537
1655
  /** @description Enriched market data for event API responses */
1538
1656
  EventMarket: {
1539
1657
  /** @default */
@@ -1633,8 +1751,7 @@ export interface components {
1633
1751
  EventSortBy: "volume" | "txns" | "unique_traders" | "title" | "creation_date" | "start_date" | "end_date" | "relevance";
1634
1752
  /**
1635
1753
  * @description Response body for `GET /polymarket/analytics/counts`.
1636
- * Cumulative analytics metrics (from ClickHouse `analytics_global`) plus
1637
- * entity-count enrichment (from Postgres `pg_class.reltuples` estimates).
1754
+ * Cumulative analytics metrics plus entity-count enrichment.
1638
1755
  */
1639
1756
  GlobalCountsResponse: {
1640
1757
  /**
@@ -1653,8 +1770,21 @@ export interface components {
1653
1770
  buy_volume_usd: number;
1654
1771
  /** Format: double */
1655
1772
  sell_volume_usd: number;
1656
- /** Format: int64 */
1773
+ /**
1774
+ * Format: int64
1775
+ * @description Distinct addresses that have ever traded on Polymarket (lifetime).
1776
+ */
1657
1777
  unique_traders: number;
1778
+ /**
1779
+ * Format: int64
1780
+ * @description Distinct makers ever active (lifetime distinct).
1781
+ */
1782
+ unique_makers: number;
1783
+ /**
1784
+ * Format: int64
1785
+ * @description Distinct takers ever active (lifetime distinct).
1786
+ */
1787
+ unique_takers: number;
1658
1788
  /** Format: int64 */
1659
1789
  txn_count: number;
1660
1790
  /** Format: int64 */
@@ -1667,9 +1797,13 @@ export interface components {
1667
1797
  redemption_volume_usd: number;
1668
1798
  /** Format: int64 */
1669
1799
  merge_count: number;
1800
+ /** Format: double */
1801
+ merge_volume_usd: number;
1670
1802
  /** Format: int64 */
1671
1803
  split_count: number;
1672
1804
  /** Format: double */
1805
+ split_volume_usd: number;
1806
+ /** Format: double */
1673
1807
  fees_usd: number;
1674
1808
  /** Format: double */
1675
1809
  shares_volume: number;
@@ -1681,24 +1815,36 @@ export interface components {
1681
1815
  yes_count: number;
1682
1816
  /** Format: int64 */
1683
1817
  no_count: number;
1818
+ /** Format: int64 */
1819
+ buy_dist_under_10: number;
1820
+ /** Format: int64 */
1821
+ buy_dist_10_100: number;
1822
+ /** Format: int64 */
1823
+ buy_dist_100_1k: number;
1824
+ /** Format: int64 */
1825
+ buy_dist_1k_10k: number;
1826
+ /** Format: int64 */
1827
+ buy_dist_10k_50k: number;
1828
+ /** Format: int64 */
1829
+ buy_dist_50k_plus: number;
1684
1830
  /**
1685
1831
  * Format: int64
1686
- * @description Estimated row count of `polymarket_tags` (Postgres pg_class.reltuples).
1832
+ * @description Estimated total number of tags.
1687
1833
  */
1688
1834
  tags: number;
1689
1835
  /**
1690
1836
  * Format: int64
1691
- * @description Estimated row count of `polymarket_events`.
1837
+ * @description Estimated total number of events.
1692
1838
  */
1693
1839
  events: number;
1694
1840
  /**
1695
1841
  * Format: int64
1696
- * @description Estimated row count of `prediction_markets`.
1842
+ * @description Estimated total number of markets.
1697
1843
  */
1698
1844
  markets: number;
1699
1845
  /**
1700
1846
  * Format: int64
1701
- * @description Estimated row count of `polymarket_accounts` (traders / positions).
1847
+ * @description Estimated total number of unique positions / traders.
1702
1848
  */
1703
1849
  positions: number;
1704
1850
  };
@@ -1805,11 +1951,10 @@ export interface components {
1805
1951
  */
1806
1952
  LeaderboardCategory: "overall" | "politics" | "sports" | "crypto" | "finance" | "culture" | "mentions" | "weather" | "economics" | "tech";
1807
1953
  /**
1808
- * @description Flat response row. `trader` is the canonical `TraderInfo` used across all
1809
- * our other endpoints; all enrichment fields sit at the top level. Fields
1810
- * other than `trader`, `rank`, `pnl`, and `timeframe` are sourced from our
1811
- * `prediction_trader_pnl_*_v2` tables and are `null` when we don't yet have
1812
- * a row for that address in the selected timeframe.
1954
+ * @description Flat response row. `trader` is the canonical `TraderInfo` used across
1955
+ * endpoints; enrichment fields sit at the top level. Fields other than
1956
+ * `trader`, `rank`, `pnl`, and `timeframe` may be `null` when PnL data for
1957
+ * the trader in the selected timeframe isn't yet available.
1813
1958
  */
1814
1959
  LeaderboardEntry: {
1815
1960
  /** Format: int64 */
@@ -2038,8 +2183,16 @@ export interface components {
2038
2183
  /** Format: double */
2039
2184
  sell_volume_usd?: number | null;
2040
2185
  /** Format: double */
2186
+ merge_volume_usd?: number | null;
2187
+ /** Format: double */
2188
+ split_volume_usd?: number | null;
2189
+ /** Format: double */
2041
2190
  unique_traders?: number | null;
2042
2191
  /** Format: double */
2192
+ unique_makers?: number | null;
2193
+ /** Format: double */
2194
+ unique_takers?: number | null;
2195
+ /** Format: double */
2043
2196
  txn_count?: number | null;
2044
2197
  /** Format: double */
2045
2198
  fees_usd?: number | null;
@@ -2074,6 +2227,62 @@ export interface components {
2074
2227
  slug?: string | null;
2075
2228
  event_slug?: string | null;
2076
2229
  };
2230
+ /**
2231
+ * @description Tagged enum for all oracle event types — serializes with `"event_type": "..."` discriminator
2232
+ * and only includes fields relevant to each type.
2233
+ */
2234
+ OracleEventTyped: (components["schemas"]["AssertionMadeEvent"] & {
2235
+ /** @enum {string} */
2236
+ event_type: "AssertionMade";
2237
+ }) | (components["schemas"]["AssertionDisputedEvent"] & {
2238
+ /** @enum {string} */
2239
+ event_type: "AssertionDisputed";
2240
+ }) | (components["schemas"]["AssertionSettledEvent"] & {
2241
+ /** @enum {string} */
2242
+ event_type: "AssertionSettled";
2243
+ }) | (components["schemas"]["RequestPriceEvent"] & {
2244
+ /** @enum {string} */
2245
+ event_type: "RequestPrice";
2246
+ }) | (components["schemas"]["ProposePriceEvent"] & {
2247
+ /** @enum {string} */
2248
+ event_type: "ProposePrice";
2249
+ }) | (components["schemas"]["DisputePriceEvent"] & {
2250
+ /** @enum {string} */
2251
+ event_type: "DisputePrice";
2252
+ }) | (components["schemas"]["SettleEvent"] & {
2253
+ /** @enum {string} */
2254
+ event_type: "Settle";
2255
+ }) | (components["schemas"]["QuestionResolvedEvent"] & {
2256
+ /** @enum {string} */
2257
+ event_type: "QuestionResolved";
2258
+ }) | (components["schemas"]["QuestionEmergencyResolvedEvent"] & {
2259
+ /** @enum {string} */
2260
+ event_type: "QuestionEmergencyResolved";
2261
+ }) | (components["schemas"]["QuestionResetEvent"] & {
2262
+ /** @enum {string} */
2263
+ event_type: "QuestionReset";
2264
+ }) | (components["schemas"]["QuestionInitializedEvent"] & {
2265
+ /** @enum {string} */
2266
+ event_type: "QuestionInitialized";
2267
+ }) | (components["schemas"]["QuestionPausedEvent"] & {
2268
+ /** @enum {string} */
2269
+ event_type: "QuestionPaused";
2270
+ }) | (components["schemas"]["QuestionUnpausedEvent"] & {
2271
+ /** @enum {string} */
2272
+ event_type: "QuestionUnpaused";
2273
+ }) | (components["schemas"]["QuestionFlaggedEvent"] & {
2274
+ /** @enum {string} */
2275
+ event_type: "QuestionFlagged";
2276
+ }) | (components["schemas"]["QuestionUnflaggedEvent"] & {
2277
+ /** @enum {string} */
2278
+ event_type: "QuestionUnflagged";
2279
+ }) | (components["schemas"]["ConditionResolutionEvent"] & {
2280
+ /** @enum {string} */
2281
+ event_type: "ConditionResolution";
2282
+ }) | (components["schemas"]["NegRiskOutcomeReportedEvent"] & {
2283
+ /** @enum {string} */
2284
+ event_type: "NegRiskOutcomeReported";
2285
+ });
2077
2286
  /** @description Output payload for OrderFilled and OrdersMatched trades (actual buy/sell). */
2078
2287
  OrderFilledTrade: {
2079
2288
  id: string;
@@ -2121,6 +2330,11 @@ export interface components {
2121
2330
  * trades and may be `0x0000…` for V2 trades placed without a builder code.
2122
2331
  */
2123
2332
  builder_code?: string | null;
2333
+ /**
2334
+ * Format: double
2335
+ * @description Builder fee in USDC. Absent when no builder code is attached.
2336
+ */
2337
+ builder_fee?: number | null;
2124
2338
  };
2125
2339
  OrderbookHistoryRow: {
2126
2340
  /** Format: int64 */
@@ -2440,6 +2654,39 @@ export interface components {
2440
2654
  label: string;
2441
2655
  /** @default null */
2442
2656
  slug: string | null;
2657
+ /**
2658
+ * Format: double
2659
+ * @default null
2660
+ */
2661
+ volume_usd: number;
2662
+ /**
2663
+ * Format: int64
2664
+ * @default null
2665
+ */
2666
+ txn_count: number;
2667
+ /**
2668
+ * Format: int64
2669
+ * @description Distinct active traders in the window.
2670
+ * @default null
2671
+ */
2672
+ unique_traders: number;
2673
+ /**
2674
+ * Format: int64
2675
+ * @description Distinct active makers in the window.
2676
+ * @default null
2677
+ */
2678
+ unique_makers: number;
2679
+ /**
2680
+ * Format: int64
2681
+ * @description Distinct active takers in the window.
2682
+ * @default null
2683
+ */
2684
+ unique_takers: number;
2685
+ /**
2686
+ * Format: double
2687
+ * @default null
2688
+ */
2689
+ fees_usd: number;
2443
2690
  };
2444
2691
  /** @description Polymarket user profile (public API format) */
2445
2692
  PolymarketUserProfile: {
@@ -2478,7 +2725,7 @@ export interface components {
2478
2725
  * @description Outcome index (0 = Yes, 1 = No for binary)
2479
2726
  */
2480
2727
  outcome_index: number;
2481
- /** @description Outcome name (e.g. "Yes", "No") — enriched from market metadata */
2728
+ /** @description Outcome name (e.g. "Yes", "No"). Optional may be omitted when the market metadata isn't yet available. */
2482
2729
  outcome?: string | null;
2483
2730
  /** @description Amount of shares created/burned/redeemed for this position */
2484
2731
  amount: string;
@@ -2630,8 +2877,8 @@ export interface components {
2630
2877
  };
2631
2878
  /** @enum {string} */
2632
2879
  PriceJumpResolution: "1" | "5" | "15" | "30" | "60" | "240";
2633
- /** @description UMA CTF Adapter: admin emergency resolution. */
2634
- QuestionEmergencyResolvedEvent: {
2880
+ /** @description V2 UMA OOv2: a price was proposed (resolution proposal). */
2881
+ ProposePriceEvent: {
2635
2882
  id: string;
2636
2883
  hash: string;
2637
2884
  /** Format: int64 */
@@ -2645,15 +2892,24 @@ export interface components {
2645
2892
  /** Format: int64 */
2646
2893
  block_index?: number | null;
2647
2894
  oracle_contract: string;
2648
- condition_id: string;
2895
+ requester: string;
2896
+ proposer: string;
2897
+ identifier: string;
2898
+ timestamp: string;
2899
+ ancillary_data: string;
2900
+ /** Format: int64 */
2901
+ proposed_price: number;
2902
+ expiration_timestamp: string;
2903
+ currency: string;
2904
+ condition_id?: string | null;
2649
2905
  proposed_outcome?: string | null;
2650
2906
  question?: string | null;
2651
2907
  image_url?: string | null;
2652
2908
  slug?: string | null;
2653
2909
  event_slug?: string | null;
2654
2910
  };
2655
- /** @description UMA CTF Adapter: market flagged for emergency resolution. */
2656
- QuestionFlaggedEvent: {
2911
+ /** @description UMA CTF Adapter: admin emergency resolution. */
2912
+ QuestionEmergencyResolvedEvent: {
2657
2913
  id: string;
2658
2914
  hash: string;
2659
2915
  /** Format: int64 */
@@ -2668,13 +2924,14 @@ export interface components {
2668
2924
  block_index?: number | null;
2669
2925
  oracle_contract: string;
2670
2926
  condition_id: string;
2927
+ proposed_outcome?: string | null;
2671
2928
  question?: string | null;
2672
2929
  image_url?: string | null;
2673
2930
  slug?: string | null;
2674
2931
  event_slug?: string | null;
2675
2932
  };
2676
- /** @description UMA CTF Adapter: questionID first initialized on-chain. */
2677
- QuestionInitializedEvent: {
2933
+ /** @description UMA CTF Adapter: market flagged for emergency resolution. */
2934
+ QuestionFlaggedEvent: {
2678
2935
  id: string;
2679
2936
  hash: string;
2680
2937
  /** Format: int64 */
@@ -2689,9 +2946,30 @@ export interface components {
2689
2946
  block_index?: number | null;
2690
2947
  oracle_contract: string;
2691
2948
  condition_id: string;
2692
- creator: string;
2693
- reward_token: string;
2694
- reward: string;
2949
+ question?: string | null;
2950
+ image_url?: string | null;
2951
+ slug?: string | null;
2952
+ event_slug?: string | null;
2953
+ };
2954
+ /** @description UMA CTF Adapter: questionID first initialized on-chain. */
2955
+ QuestionInitializedEvent: {
2956
+ id: string;
2957
+ hash: string;
2958
+ /** Format: int64 */
2959
+ block?: number | null;
2960
+ /** Format: int64 */
2961
+ confirmed_at?: number | null;
2962
+ /** Format: int64 */
2963
+ received_at?: number | null;
2964
+ /** Format: int64 */
2965
+ log_index?: number | null;
2966
+ /** Format: int64 */
2967
+ block_index?: number | null;
2968
+ oracle_contract: string;
2969
+ condition_id: string;
2970
+ creator: string;
2971
+ reward_token: string;
2972
+ reward: string;
2695
2973
  proposal_bond: string;
2696
2974
  question?: string | null;
2697
2975
  image_url?: string | null;
@@ -2860,6 +3138,41 @@ export interface components {
2860
3138
  event_slug?: string | null;
2861
3139
  exchange: components["schemas"]["PolymarketExchange"];
2862
3140
  };
3141
+ /** @description V2 UMA OOv2: a price request was made (market initialization). */
3142
+ RequestPriceEvent: {
3143
+ id: string;
3144
+ hash: string;
3145
+ /** Format: int64 */
3146
+ block?: number | null;
3147
+ /** Format: int64 */
3148
+ confirmed_at?: number | null;
3149
+ /** Format: int64 */
3150
+ received_at?: number | null;
3151
+ /** Format: int64 */
3152
+ log_index?: number | null;
3153
+ /** Format: int64 */
3154
+ block_index?: number | null;
3155
+ oracle_contract: string;
3156
+ requester: string;
3157
+ identifier: string;
3158
+ /**
3159
+ * @description UMA request timestamp (seconds, decimal string).
3160
+ * The point in time the requester is asking the oracle to resolve the
3161
+ * price for — part of the request identity tuple
3162
+ * `(requester, identifier, timestamp, ancillaryData)`. Not the block
3163
+ * timestamp of this event; see `confirmed_at` for that.
3164
+ */
3165
+ timestamp: string;
3166
+ ancillary_data: string;
3167
+ currency: string;
3168
+ reward: string;
3169
+ final_fee: string;
3170
+ condition_id?: string | null;
3171
+ question?: string | null;
3172
+ image_url?: string | null;
3173
+ slug?: string | null;
3174
+ event_slug?: string | null;
3175
+ };
2863
3176
  SearchResponse: {
2864
3177
  events?: components["schemas"]["PolymarketEvent"][] | null;
2865
3178
  events_pagination?: null | components["schemas"]["PaginationMeta"];
@@ -2873,6 +3186,38 @@ export interface components {
2873
3186
  * @enum {string}
2874
3187
  */
2875
3188
  SearchSortBy: "volume" | "txns" | "unique_traders" | "relevance" | "title" | "creation_date" | "start_date" | "end_date" | "liquidity" | "holders" | "end_time" | "start_time" | "created_time";
3189
+ /** @description V2 UMA OOv2: a price request was settled (final resolution). */
3190
+ SettleEvent: {
3191
+ id: string;
3192
+ hash: string;
3193
+ /** Format: int64 */
3194
+ block?: number | null;
3195
+ /** Format: int64 */
3196
+ confirmed_at?: number | null;
3197
+ /** Format: int64 */
3198
+ received_at?: number | null;
3199
+ /** Format: int64 */
3200
+ log_index?: number | null;
3201
+ /** Format: int64 */
3202
+ block_index?: number | null;
3203
+ oracle_contract: string;
3204
+ requester: string;
3205
+ proposer: string;
3206
+ disputer: string;
3207
+ identifier: string;
3208
+ timestamp: string;
3209
+ ancillary_data: string;
3210
+ /** Format: int64 */
3211
+ proposed_price: number;
3212
+ payout: string;
3213
+ disputed: boolean;
3214
+ condition_id?: string | null;
3215
+ proposed_outcome?: string | null;
3216
+ question?: string | null;
3217
+ image_url?: string | null;
3218
+ slug?: string | null;
3219
+ event_slug?: string | null;
3220
+ };
2876
3221
  SimpleTimeframeMetrics: {
2877
3222
  /**
2878
3223
  * Format: double
@@ -2952,11 +3297,32 @@ export interface components {
2952
3297
  ask_levels?: number | null;
2953
3298
  };
2954
3299
  /**
2955
- * @description Timeseries bucket row.
3300
+ * @description Metric to order by when `sort=<value>` is provided.
3301
+ *
3302
+ * `unique_*` ranks by window-distinct addresses — exact `uniqExact` count
3303
+ * of addresses active in the timeframe.
3304
+ * @enum {string}
3305
+ */
3306
+ TagSortBy: "volume" | "txns" | "unique_traders" | "unique_makers" | "unique_takers" | "fees";
3307
+ /**
3308
+ * @description Timeframe for `?sort=...` — defines the window the metric is summed over
3309
+ * (or `lifetime` for all-time cumulative).
3310
+ * @enum {string}
3311
+ */
3312
+ TagSortTimeframe: "lifetime" | "1h" | "24h" | "7d" | "30d" | "1mo" | "1y";
3313
+ /**
3314
+ * @description Bucket row returned by both `/analytics/timeseries` (cumulative values
3315
+ * at end of bucket) and `/analytics/deltas` (per-bucket deltas). All metrics
3316
+ * the snapshot `/counts` returns are included.
3317
+ *
2956
3318
  * Short field names for compact JSON responses:
2957
3319
  * t=bucket (unix seconds), v=volume_usd, bv=buy_volume_usd, sv=sell_volume_usd,
2958
- * ut=unique_traders, tc=txn_count, f=fees_usd, sh=shares_volume,
2959
- * yv=yes_volume_usd, nv=no_volume_usd
3320
+ * ut=unique_traders, um=unique_makers, uk=unique_takers,
3321
+ * tc=txn_count, bc=buy_count, sc=sell_count,
3322
+ * rc=redemption_count, rv=redemption_volume_usd, mc=merge_count, mv=merge_volume_usd,
3323
+ * sp=split_count, spv=split_volume_usd, f=fees_usd, sh=shares_volume,
3324
+ * yv=yes_volume_usd, nv=no_volume_usd, yc=yes_count, nc=no_count,
3325
+ * bd_*=buy distribution by USD bucket
2960
3326
  */
2961
3327
  TimeBucketRow: {
2962
3328
  /** Format: int32 */
@@ -2968,9 +3334,23 @@ export interface components {
2968
3334
  /** Format: double */
2969
3335
  sv: number;
2970
3336
  /** Format: int64 */
2971
- ut: number;
2972
- /** Format: int64 */
2973
3337
  tc: number;
3338
+ /** Format: int64 */
3339
+ bc: number;
3340
+ /** Format: int64 */
3341
+ sc: number;
3342
+ /** Format: int64 */
3343
+ rc: number;
3344
+ /** Format: double */
3345
+ rv: number;
3346
+ /** Format: int64 */
3347
+ mc: number;
3348
+ /** Format: double */
3349
+ mv: number;
3350
+ /** Format: int64 */
3351
+ sp: number;
3352
+ /** Format: double */
3353
+ spv: number;
2974
3354
  /** Format: double */
2975
3355
  f: number;
2976
3356
  /** Format: double */
@@ -2979,6 +3359,40 @@ export interface components {
2979
3359
  yv: number;
2980
3360
  /** Format: double */
2981
3361
  nv: number;
3362
+ /** Format: int64 */
3363
+ yc: number;
3364
+ /** Format: int64 */
3365
+ nc: number;
3366
+ /**
3367
+ * Format: int64
3368
+ * @description Buy distribution — count of buy trades falling in each USD bucket.
3369
+ */
3370
+ bd_u10: number;
3371
+ /** Format: int64 */
3372
+ bd_100: number;
3373
+ /** Format: int64 */
3374
+ bd_1k: number;
3375
+ /** Format: int64 */
3376
+ bd_10k: number;
3377
+ /** Format: int64 */
3378
+ bd_50k: number;
3379
+ /** Format: int64 */
3380
+ bd_50p: number;
3381
+ /**
3382
+ * Format: int64
3383
+ * @description Distinct traders ACTIVE in this bucket (window-unique, not first-time).
3384
+ */
3385
+ ut: number;
3386
+ /**
3387
+ * Format: int64
3388
+ * @description Distinct makers active in this bucket.
3389
+ */
3390
+ um: number;
3391
+ /**
3392
+ * Format: int64
3393
+ * @description Distinct takers active in this bucket.
3394
+ */
3395
+ uk: number;
2982
3396
  };
2983
3397
  /** @description Token outcome (position) */
2984
3398
  TokenOutcome: {
@@ -3167,6 +3581,33 @@ export interface components {
3167
3581
  /** Format: double */
3168
3582
  realized_pnl_pct?: number | null;
3169
3583
  };
3584
+ /**
3585
+ * @description Per-metric percentage change over a lookback window for one trader
3586
+ * address. A `null` field means the window predates the trader's first
3587
+ * activity or the prior value was zero (percentage undefined).
3588
+ */
3589
+ TraderMetricPctChange: {
3590
+ /** Format: double */
3591
+ volume_usd?: number | null;
3592
+ /** Format: double */
3593
+ buy_volume_usd?: number | null;
3594
+ /** Format: double */
3595
+ sell_volume_usd?: number | null;
3596
+ /** Format: double */
3597
+ merge_volume_usd?: number | null;
3598
+ /** Format: double */
3599
+ split_volume_usd?: number | null;
3600
+ /** Format: double */
3601
+ txn_count?: number | null;
3602
+ /** Format: double */
3603
+ fees_usd?: number | null;
3604
+ /** Format: double */
3605
+ shares_volume?: number | null;
3606
+ /** Format: double */
3607
+ yes_volume_usd?: number | null;
3608
+ /** Format: double */
3609
+ no_volume_usd?: number | null;
3610
+ };
3170
3611
  /** @description Outcome-level PnL entry (per outcome token / position_id) */
3171
3612
  TraderOutcomePnlEntry: {
3172
3613
  position_id?: string | null;
@@ -3287,6 +3728,65 @@ export interface components {
3287
3728
  /** Format: int64 */
3288
3729
  last_trade_at?: number | null;
3289
3730
  };
3731
+ /**
3732
+ * @description Bucket row returned by the per-trader `/analytics/timeseries` and
3733
+ * `/analytics/deltas` endpoints. Mirrors `TimeBucketRow` minus the
3734
+ * distinct-address counters (`new_*` / `unique_*`) — those only carry
3735
+ * information for aggregations over many addresses (market, event, tag,
3736
+ * global), not for a single trader.
3737
+ */
3738
+ TraderTimeBucketRow: {
3739
+ /** Format: int32 */
3740
+ t: number;
3741
+ /** Format: double */
3742
+ v: number;
3743
+ /** Format: double */
3744
+ bv: number;
3745
+ /** Format: double */
3746
+ sv: number;
3747
+ /** Format: int64 */
3748
+ tc: number;
3749
+ /** Format: int64 */
3750
+ bc: number;
3751
+ /** Format: int64 */
3752
+ sc: number;
3753
+ /** Format: int64 */
3754
+ rc: number;
3755
+ /** Format: double */
3756
+ rv: number;
3757
+ /** Format: int64 */
3758
+ mc: number;
3759
+ /** Format: double */
3760
+ mv: number;
3761
+ /** Format: int64 */
3762
+ sp: number;
3763
+ /** Format: double */
3764
+ spv: number;
3765
+ /** Format: double */
3766
+ f: number;
3767
+ /** Format: double */
3768
+ sh: number;
3769
+ /** Format: double */
3770
+ yv: number;
3771
+ /** Format: double */
3772
+ nv: number;
3773
+ /** Format: int64 */
3774
+ yc: number;
3775
+ /** Format: int64 */
3776
+ nc: number;
3777
+ /** Format: int64 */
3778
+ bd_u10: number;
3779
+ /** Format: int64 */
3780
+ bd_100: number;
3781
+ /** Format: int64 */
3782
+ bd_1k: number;
3783
+ /** Format: int64 */
3784
+ bd_10k: number;
3785
+ /** Format: int64 */
3786
+ bd_50k: number;
3787
+ /** Format: int64 */
3788
+ bd_50p: number;
3789
+ };
3290
3790
  TraderVolumeChartResponse: {
3291
3791
  volumes: components["schemas"]["TraderVolumeDataPoint"][];
3292
3792
  has_more: boolean;
@@ -3329,19 +3829,11 @@ export interface components {
3329
3829
  }
3330
3830
  export type $defs = Record<string, never>;
3331
3831
  export interface operations {
3332
- get_global_analytics_candles: {
3832
+ get_global_analytics_changes: {
3333
3833
  parameters: {
3334
3834
  query?: {
3335
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3336
- resolution?: components["schemas"]["CandlestickResolution"];
3337
- /** @description Start timestamp (Unix seconds). Omit for all-time. */
3338
- from?: number;
3339
- /** @description End timestamp (Unix seconds) */
3340
- to?: number;
3341
- /** @description Max data points (default: 500, max: 2500) */
3342
- count_back?: number;
3343
- /** @description Cursor from previous response for next page */
3344
- pagination_key?: string;
3835
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
3836
+ timeframe?: components["schemas"]["ChangeTimeframe"];
3345
3837
  };
3346
3838
  header?: never;
3347
3839
  path?: never;
@@ -3349,56 +3841,64 @@ export interface operations {
3349
3841
  };
3350
3842
  requestBody?: never;
3351
3843
  responses: {
3352
- /** @description Delta time-bucketed analytics */
3844
+ /** @description Per-metric pct change */
3353
3845
  200: {
3354
3846
  headers: {
3355
3847
  [name: string]: unknown;
3356
3848
  };
3357
3849
  content: {
3358
- "application/json": components["schemas"]["TimeBucketRow"][];
3850
+ "application/json": components["schemas"]["MetricPctChange"];
3359
3851
  };
3360
3852
  };
3361
3853
  };
3362
3854
  };
3363
- get_global_analytics_changes: {
3855
+ get_analytics_counts: {
3364
3856
  parameters: {
3365
- query: {
3366
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
3367
- timeframe: components["schemas"]["ChangeTimeframe"];
3368
- };
3857
+ query?: never;
3369
3858
  header?: never;
3370
3859
  path?: never;
3371
3860
  cookie?: never;
3372
3861
  };
3373
3862
  requestBody?: never;
3374
3863
  responses: {
3375
- /** @description Per-metric pct change */
3864
+ /** @description Latest global metrics snapshot */
3376
3865
  200: {
3377
3866
  headers: {
3378
3867
  [name: string]: unknown;
3379
3868
  };
3380
3869
  content: {
3381
- "application/json": components["schemas"]["MetricPctChange"];
3870
+ "application/json": components["schemas"]["GlobalCountsResponse"];
3382
3871
  };
3383
3872
  };
3384
3873
  };
3385
3874
  };
3386
- get_analytics_counts: {
3875
+ get_global_analytics_deltas: {
3387
3876
  parameters: {
3388
- query?: never;
3877
+ query?: {
3878
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
3879
+ resolution?: components["schemas"]["AnalyticsResolution"];
3880
+ /** @description Start timestamp (Unix seconds). Omit for all-time. */
3881
+ from?: number;
3882
+ /** @description End timestamp (Unix seconds) */
3883
+ to?: number;
3884
+ /** @description Max data points (default: 500, max: 2500) */
3885
+ count_back?: number;
3886
+ /** @description Cursor from previous response for next page */
3887
+ pagination_key?: string;
3888
+ };
3389
3889
  header?: never;
3390
3890
  path?: never;
3391
3891
  cookie?: never;
3392
3892
  };
3393
3893
  requestBody?: never;
3394
3894
  responses: {
3395
- /** @description Latest global metrics snapshot */
3895
+ /** @description Delta time-bucketed analytics */
3396
3896
  200: {
3397
3897
  headers: {
3398
3898
  [name: string]: unknown;
3399
3899
  };
3400
3900
  content: {
3401
- "application/json": components["schemas"]["GlobalCountsResponse"];
3901
+ "application/json": components["schemas"]["TimeBucketRow"][];
3402
3902
  };
3403
3903
  };
3404
3904
  };
@@ -3406,8 +3906,8 @@ export interface operations {
3406
3906
  get_global_analytics_timeseries: {
3407
3907
  parameters: {
3408
3908
  query?: {
3409
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3410
- resolution?: components["schemas"]["CandlestickResolution"];
3909
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
3910
+ resolution?: components["schemas"]["AnalyticsResolution"];
3411
3911
  /** @description Start timestamp (Unix seconds). Omit for all-time. */
3412
3912
  from?: number;
3413
3913
  /** @description End timestamp (Unix seconds) */
@@ -3700,21 +4200,40 @@ export interface operations {
3700
4200
  };
3701
4201
  };
3702
4202
  };
3703
- get_event_analytics_candles: {
4203
+ get_event_top_traders: {
3704
4204
  parameters: {
3705
- query?: {
3706
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3707
- resolution?: components["schemas"]["CandlestickResolution"];
3708
- /** @description Start timestamp (Unix seconds) */
3709
- from?: number;
3710
- /** @description End timestamp (Unix seconds) */
3711
- to?: number;
3712
- /** @description Max data points (default: 500, max: 2500) */
3713
- count_back?: number;
3714
- /** @description Cursor from previous response */
4205
+ query: {
4206
+ /** @description Event slug */
4207
+ event_slug: string;
4208
+ /** @description Timeframe: 1d, 7d, 30d, lifetime (default: lifetime) */
4209
+ timeframe?: components["schemas"]["PnlTimeframe"];
4210
+ /** @description Results limit (default: 10, max: 200) */
4211
+ limit?: number;
4212
+ /** @description Pagination key from the previous response */
3715
4213
  pagination_key?: string;
3716
4214
  };
3717
4215
  header?: never;
4216
+ path?: never;
4217
+ cookie?: never;
4218
+ };
4219
+ requestBody?: never;
4220
+ responses: {
4221
+ /** @description Top traders sorted by realized PnL desc. */
4222
+ 200: {
4223
+ headers: {
4224
+ [name: string]: unknown;
4225
+ };
4226
+ content?: never;
4227
+ };
4228
+ };
4229
+ };
4230
+ get_event_analytics_changes: {
4231
+ parameters: {
4232
+ query?: {
4233
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
4234
+ timeframe?: components["schemas"]["ChangeTimeframe"];
4235
+ };
4236
+ header?: never;
3718
4237
  path: {
3719
4238
  /** @description Event slug */
3720
4239
  event_slug: string;
@@ -3723,22 +4242,30 @@ export interface operations {
3723
4242
  };
3724
4243
  requestBody?: never;
3725
4244
  responses: {
3726
- /** @description Delta time-bucketed event analytics */
4245
+ /** @description Per-metric pct change */
3727
4246
  200: {
3728
4247
  headers: {
3729
4248
  [name: string]: unknown;
3730
4249
  };
3731
4250
  content: {
3732
- "application/json": components["schemas"]["TimeBucketRow"][];
4251
+ "application/json": components["schemas"]["MetricPctChange"];
3733
4252
  };
3734
4253
  };
3735
4254
  };
3736
4255
  };
3737
- get_event_analytics_changes: {
4256
+ get_event_analytics_deltas: {
3738
4257
  parameters: {
3739
- query: {
3740
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
3741
- timeframe: components["schemas"]["ChangeTimeframe"];
4258
+ query?: {
4259
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
4260
+ resolution?: components["schemas"]["AnalyticsResolution"];
4261
+ /** @description Start timestamp (Unix seconds) */
4262
+ from?: number;
4263
+ /** @description End timestamp (Unix seconds) */
4264
+ to?: number;
4265
+ /** @description Max data points (default: 500, max: 2500) */
4266
+ count_back?: number;
4267
+ /** @description Cursor from previous response */
4268
+ pagination_key?: string;
3742
4269
  };
3743
4270
  header?: never;
3744
4271
  path: {
@@ -3749,13 +4276,13 @@ export interface operations {
3749
4276
  };
3750
4277
  requestBody?: never;
3751
4278
  responses: {
3752
- /** @description Per-metric pct change */
4279
+ /** @description Delta time-bucketed event analytics */
3753
4280
  200: {
3754
4281
  headers: {
3755
4282
  [name: string]: unknown;
3756
4283
  };
3757
4284
  content: {
3758
- "application/json": components["schemas"]["MetricPctChange"];
4285
+ "application/json": components["schemas"]["TimeBucketRow"][];
3759
4286
  };
3760
4287
  };
3761
4288
  };
@@ -3763,8 +4290,8 @@ export interface operations {
3763
4290
  get_event_analytics_timeseries: {
3764
4291
  parameters: {
3765
4292
  query?: {
3766
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3767
- resolution?: components["schemas"]["CandlestickResolution"];
4293
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
4294
+ resolution?: components["schemas"]["AnalyticsResolution"];
3768
4295
  /** @description Start timestamp (Unix seconds) */
3769
4296
  from?: number;
3770
4297
  /** @description End timestamp (Unix seconds) */
@@ -3840,8 +4367,10 @@ export interface operations {
3840
4367
  condition_id?: string;
3841
4368
  /** @description Market slug (e.g. `will-trump-win`) */
3842
4369
  market_slug?: string;
3843
- /** @description Results limit (default: 10, max: 100) */
4370
+ /** @description Results limit per outcome (default: 10, max: 100) */
3844
4371
  limit?: number;
4372
+ /** @description Cursor-based pagination key */
4373
+ pagination_key?: string;
3845
4374
  /** @description Minimum shares held (decimal string) */
3846
4375
  min_shares?: string;
3847
4376
  /** @description Maximum shares held (decimal string) */
@@ -3857,7 +4386,7 @@ export interface operations {
3857
4386
  };
3858
4387
  requestBody?: never;
3859
4388
  responses: {
3860
- /** @description Market holders grouped by outcome (sorted by shares DESC). Holder `pnl` is included only when `include_pnl=true`. */
4389
+ /** @description Market holders grouped by outcome (sorted by shares DESC). Holder `pnl` is included only when `include_pnl=true`. Response includes `pagination: { has_more, pagination_key }` for cursor-based pagination. */
3861
4390
  200: {
3862
4391
  headers: {
3863
4392
  [name: string]: unknown;
@@ -4226,6 +4755,43 @@ export interface operations {
4226
4755
  };
4227
4756
  };
4228
4757
  };
4758
+ get_oracle_events: {
4759
+ parameters: {
4760
+ query?: {
4761
+ /** @description Comma-separated condition IDs (max 20) */
4762
+ condition_ids?: string;
4763
+ /** @description Comma-separated event names: Initialization, Proposal, Dispute, Settled, Resolution, ConditionResolution, Reset, Flag, Unflag, Pause, Unpause, ManualResolution, NegRiskOutcomeReported. Empty = all oracle event types. */
4764
+ event_types?: string;
4765
+ /** @description Start timestamp (Unix seconds) */
4766
+ from?: number;
4767
+ /** @description End timestamp (Unix seconds) */
4768
+ to?: number;
4769
+ /** @description Results per page (default 10, max 250) */
4770
+ limit?: number;
4771
+ /** @description Pagination offset. Takes precedence over pagination_key. */
4772
+ offset?: number;
4773
+ /** @description Cursor-based pagination key */
4774
+ pagination_key?: string;
4775
+ /** @description Sort direction (default true = newest first) */
4776
+ sort_desc?: boolean;
4777
+ };
4778
+ header?: never;
4779
+ path?: never;
4780
+ cookie?: never;
4781
+ };
4782
+ requestBody?: never;
4783
+ responses: {
4784
+ /** @description Oracle events matching the filter */
4785
+ 200: {
4786
+ headers: {
4787
+ [name: string]: unknown;
4788
+ };
4789
+ content: {
4790
+ "application/json": components["schemas"]["TradeEvent"][];
4791
+ };
4792
+ };
4793
+ };
4794
+ };
4229
4795
  get_position_candlestick: {
4230
4796
  parameters: {
4231
4797
  query: {
@@ -4291,6 +4857,33 @@ export interface operations {
4291
4857
  };
4292
4858
  };
4293
4859
  };
4860
+ get_position_top_traders: {
4861
+ parameters: {
4862
+ query: {
4863
+ /** @description Position ID (ERC1155 token ID) */
4864
+ position_id: string;
4865
+ /** @description Filter by position status (omit for all) */
4866
+ status?: "open" | "closed";
4867
+ /** @description Results limit (default: 10, max: 200) */
4868
+ limit?: number;
4869
+ /** @description Pagination key from the previous response */
4870
+ pagination_key?: string;
4871
+ };
4872
+ header?: never;
4873
+ path?: never;
4874
+ cookie?: never;
4875
+ };
4876
+ requestBody?: never;
4877
+ responses: {
4878
+ /** @description Top traders sorted by realized PnL desc. */
4879
+ 200: {
4880
+ headers: {
4881
+ [name: string]: unknown;
4882
+ };
4883
+ content?: never;
4884
+ };
4885
+ };
4886
+ };
4294
4887
  get_position_volume_chart: {
4295
4888
  parameters: {
4296
4889
  query: {
@@ -4461,6 +5054,35 @@ export interface operations {
4461
5054
  };
4462
5055
  };
4463
5056
  };
5057
+ get_market_top_traders: {
5058
+ parameters: {
5059
+ query?: {
5060
+ /** @description Market condition ID */
5061
+ condition_id?: string;
5062
+ /** @description Market slug (alternative to condition_id) */
5063
+ market_slug?: string;
5064
+ /** @description Timeframe: 1d, 7d, 30d, lifetime (default: lifetime) */
5065
+ timeframe?: components["schemas"]["PnlTimeframe"];
5066
+ /** @description Results limit (default: 10, max: 200) */
5067
+ limit?: number;
5068
+ /** @description Pagination key from the previous response */
5069
+ pagination_key?: string;
5070
+ };
5071
+ header?: never;
5072
+ path?: never;
5073
+ cookie?: never;
5074
+ };
5075
+ requestBody?: never;
5076
+ responses: {
5077
+ /** @description Top traders sorted by realized PnL desc. */
5078
+ 200: {
5079
+ headers: {
5080
+ [name: string]: unknown;
5081
+ };
5082
+ content?: never;
5083
+ };
5084
+ };
5085
+ };
4464
5086
  get_market_trades: {
4465
5087
  parameters: {
4466
5088
  query?: {
@@ -4472,6 +5094,8 @@ export interface operations {
4472
5094
  position_ids?: string;
4473
5095
  /** @description Comma-separated trader addresses (max 25) */
4474
5096
  traders?: string;
5097
+ /** @description Comma-separated builder codes (max 25) */
5098
+ builder_codes?: string;
4475
5099
  /** @description Trade side: 0 (Buy), 1 (Sell) */
4476
5100
  side?: components["schemas"]["TradeSide"];
4477
5101
  /** @description Outcome name filter (e.g. Yes, No) */
@@ -4496,8 +5120,6 @@ export interface operations {
4496
5120
  from?: number;
4497
5121
  /** @description End timestamp (ms) */
4498
5122
  to?: number;
4499
- /** @description Return all-time trades, not just last 30 days (default: false) */
4500
- all?: boolean;
4501
5123
  /** @description Results per page (default: 10, max: 250) */
4502
5124
  limit?: number;
4503
5125
  /** @description Pagination offset (number of results to skip). Takes precedence over pagination_key. */
@@ -4665,19 +5287,11 @@ export interface operations {
4665
5287
  };
4666
5288
  };
4667
5289
  };
4668
- get_market_analytics_candles: {
5290
+ get_market_analytics_changes: {
4669
5291
  parameters: {
4670
5292
  query?: {
4671
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
4672
- resolution?: components["schemas"]["CandlestickResolution"];
4673
- /** @description Start timestamp (Unix seconds) */
4674
- from?: number;
4675
- /** @description End timestamp (Unix seconds) */
4676
- to?: number;
4677
- /** @description Max data points (default: 500, max: 2500) */
4678
- count_back?: number;
4679
- /** @description Cursor from previous response */
4680
- pagination_key?: string;
5293
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
5294
+ timeframe?: components["schemas"]["ChangeTimeframe"];
4681
5295
  };
4682
5296
  header?: never;
4683
5297
  path: {
@@ -4688,22 +5302,30 @@ export interface operations {
4688
5302
  };
4689
5303
  requestBody?: never;
4690
5304
  responses: {
4691
- /** @description Delta time-bucketed market analytics */
5305
+ /** @description Per-metric pct change */
4692
5306
  200: {
4693
5307
  headers: {
4694
5308
  [name: string]: unknown;
4695
5309
  };
4696
5310
  content: {
4697
- "application/json": components["schemas"]["TimeBucketRow"][];
5311
+ "application/json": components["schemas"]["MetricPctChange"];
4698
5312
  };
4699
5313
  };
4700
5314
  };
4701
5315
  };
4702
- get_market_analytics_changes: {
5316
+ get_market_analytics_deltas: {
4703
5317
  parameters: {
4704
- query: {
4705
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
4706
- timeframe: components["schemas"]["ChangeTimeframe"];
5318
+ query?: {
5319
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
5320
+ resolution?: components["schemas"]["AnalyticsResolution"];
5321
+ /** @description Start timestamp (Unix seconds) */
5322
+ from?: number;
5323
+ /** @description End timestamp (Unix seconds) */
5324
+ to?: number;
5325
+ /** @description Max data points (default: 500, max: 2500) */
5326
+ count_back?: number;
5327
+ /** @description Cursor from previous response */
5328
+ pagination_key?: string;
4707
5329
  };
4708
5330
  header?: never;
4709
5331
  path: {
@@ -4714,13 +5336,13 @@ export interface operations {
4714
5336
  };
4715
5337
  requestBody?: never;
4716
5338
  responses: {
4717
- /** @description Per-metric pct change */
5339
+ /** @description Delta time-bucketed market analytics */
4718
5340
  200: {
4719
5341
  headers: {
4720
5342
  [name: string]: unknown;
4721
5343
  };
4722
5344
  content: {
4723
- "application/json": components["schemas"]["MetricPctChange"];
5345
+ "application/json": components["schemas"]["TimeBucketRow"][];
4724
5346
  };
4725
5347
  };
4726
5348
  };
@@ -4728,8 +5350,8 @@ export interface operations {
4728
5350
  get_market_analytics_timeseries: {
4729
5351
  parameters: {
4730
5352
  query?: {
4731
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
4732
- resolution?: components["schemas"]["CandlestickResolution"];
5353
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
5354
+ resolution?: components["schemas"]["AnalyticsResolution"];
4733
5355
  /** @description Start timestamp (Unix seconds) */
4734
5356
  from?: number;
4735
5357
  /** @description End timestamp (Unix seconds) */
@@ -5184,8 +5806,14 @@ export interface operations {
5184
5806
  limit?: number;
5185
5807
  /** @description Offset-based pagination (number of results to skip). Takes precedence over pagination_key. */
5186
5808
  offset?: number;
5187
- /** @description Cursor-based pagination key */
5809
+ /** @description Cursor-based pagination key (alphabetical mode only). */
5188
5810
  pagination_key?: string;
5811
+ /** @description Sort metric. Defaults to `volume` when only `timeframe` is set. Setting either `sort` or `timeframe` adds +2 credits. */
5812
+ sort?: components["schemas"]["TagSortBy"];
5813
+ /** @description Window for the sort metric. Defaults to `24h` when only `sort` is set. Setting either `sort` or `timeframe` adds +2 credits. */
5814
+ timeframe?: components["schemas"]["TagSortTimeframe"];
5815
+ /** @description Sort direction (default: true = highest first). Only applies to sort/timeframe mode. */
5816
+ sort_desc?: boolean;
5189
5817
  };
5190
5818
  header?: never;
5191
5819
  path?: never;
@@ -5206,7 +5834,12 @@ export interface operations {
5206
5834
  };
5207
5835
  get_tag_by_id: {
5208
5836
  parameters: {
5209
- query?: never;
5837
+ query?: {
5838
+ /** @description Attach analytics metrics. +1 credit. */
5839
+ include_metrics?: boolean;
5840
+ /** @description Metrics window. Default `1d` (= `24h`). Ignored unless `include_metrics=true`. */
5841
+ timeframe?: components["schemas"]["TagSortTimeframe"];
5842
+ };
5210
5843
  header?: never;
5211
5844
  path: {
5212
5845
  /** @description Tag ID or slug */
@@ -5234,19 +5867,11 @@ export interface operations {
5234
5867
  };
5235
5868
  };
5236
5869
  };
5237
- get_tag_analytics_candles: {
5870
+ get_tag_analytics_changes: {
5238
5871
  parameters: {
5239
5872
  query?: {
5240
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5241
- resolution?: components["schemas"]["CandlestickResolution"];
5242
- /** @description Start timestamp (Unix seconds) */
5243
- from?: number;
5244
- /** @description End timestamp (Unix seconds) */
5245
- to?: number;
5246
- /** @description Max data points (default: 500, max: 2500) */
5247
- count_back?: number;
5248
- /** @description Cursor from previous response */
5249
- pagination_key?: string;
5873
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
5874
+ timeframe?: components["schemas"]["ChangeTimeframe"];
5250
5875
  };
5251
5876
  header?: never;
5252
5877
  path: {
@@ -5257,22 +5882,30 @@ export interface operations {
5257
5882
  };
5258
5883
  requestBody?: never;
5259
5884
  responses: {
5260
- /** @description Delta time-bucketed tag analytics */
5885
+ /** @description Per-metric pct change */
5261
5886
  200: {
5262
5887
  headers: {
5263
5888
  [name: string]: unknown;
5264
5889
  };
5265
5890
  content: {
5266
- "application/json": components["schemas"]["TimeBucketRow"][];
5891
+ "application/json": components["schemas"]["MetricPctChange"];
5267
5892
  };
5268
5893
  };
5269
5894
  };
5270
5895
  };
5271
- get_tag_analytics_changes: {
5896
+ get_tag_analytics_deltas: {
5272
5897
  parameters: {
5273
- query: {
5274
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
5275
- timeframe: components["schemas"]["ChangeTimeframe"];
5898
+ query?: {
5899
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
5900
+ resolution?: components["schemas"]["AnalyticsResolution"];
5901
+ /** @description Start timestamp (Unix seconds) */
5902
+ from?: number;
5903
+ /** @description End timestamp (Unix seconds) */
5904
+ to?: number;
5905
+ /** @description Max data points (default: 500, max: 2500) */
5906
+ count_back?: number;
5907
+ /** @description Cursor from previous response */
5908
+ pagination_key?: string;
5276
5909
  };
5277
5910
  header?: never;
5278
5911
  path: {
@@ -5283,13 +5916,13 @@ export interface operations {
5283
5916
  };
5284
5917
  requestBody?: never;
5285
5918
  responses: {
5286
- /** @description Per-metric pct change */
5919
+ /** @description Delta time-bucketed tag analytics */
5287
5920
  200: {
5288
5921
  headers: {
5289
5922
  [name: string]: unknown;
5290
5923
  };
5291
5924
  content: {
5292
- "application/json": components["schemas"]["MetricPctChange"];
5925
+ "application/json": components["schemas"]["TimeBucketRow"][];
5293
5926
  };
5294
5927
  };
5295
5928
  };
@@ -5297,8 +5930,8 @@ export interface operations {
5297
5930
  get_tag_analytics_timeseries: {
5298
5931
  parameters: {
5299
5932
  query?: {
5300
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5301
- resolution?: components["schemas"]["CandlestickResolution"];
5933
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
5934
+ resolution?: components["schemas"]["AnalyticsResolution"];
5302
5935
  /** @description Start timestamp (Unix seconds) */
5303
5936
  from?: number;
5304
5937
  /** @description End timestamp (Unix seconds) */
@@ -5674,6 +6307,8 @@ export interface operations {
5674
6307
  slugs?: string;
5675
6308
  /** @description Comma-separated position IDs */
5676
6309
  position_ids?: string;
6310
+ /** @description Comma-separated builder codes (max 25) */
6311
+ builder_codes?: string;
5677
6312
  /** @description Trade side: 0 (Buy), 1 (Sell) */
5678
6313
  side?: components["schemas"]["TradeSide"];
5679
6314
  /** @description Outcome name filter (e.g. Yes, No) */
@@ -5698,8 +6333,6 @@ export interface operations {
5698
6333
  from?: number;
5699
6334
  /** @description End timestamp (ms) */
5700
6335
  to?: number;
5701
- /** @description Return all-time trades, not just last 30 days (default: false) */
5702
- all?: boolean;
5703
6336
  /** @description Results per page (default: 10, max: 250) */
5704
6337
  limit?: number;
5705
6338
  /** @description Pagination offset (number of results to skip). Takes precedence over pagination_key. */
@@ -5763,19 +6396,11 @@ export interface operations {
5763
6396
  };
5764
6397
  };
5765
6398
  };
5766
- get_trader_analytics_candles: {
6399
+ get_trader_analytics_changes: {
5767
6400
  parameters: {
5768
6401
  query?: {
5769
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5770
- resolution?: components["schemas"]["CandlestickResolution"];
5771
- /** @description Start timestamp (Unix seconds) */
5772
- from?: number;
5773
- /** @description End timestamp (Unix seconds) */
5774
- to?: number;
5775
- /** @description Max data points (default: 500, max: 2500) */
5776
- count_back?: number;
5777
- /** @description Cursor from previous response */
5778
- pagination_key?: string;
6402
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
6403
+ timeframe?: components["schemas"]["ChangeTimeframe"];
5779
6404
  };
5780
6405
  header?: never;
5781
6406
  path: {
@@ -5786,22 +6411,30 @@ export interface operations {
5786
6411
  };
5787
6412
  requestBody?: never;
5788
6413
  responses: {
5789
- /** @description Delta time-bucketed trader analytics */
6414
+ /** @description Per-metric pct change */
5790
6415
  200: {
5791
6416
  headers: {
5792
6417
  [name: string]: unknown;
5793
6418
  };
5794
6419
  content: {
5795
- "application/json": components["schemas"]["TimeBucketRow"][];
6420
+ "application/json": components["schemas"]["TraderMetricPctChange"];
5796
6421
  };
5797
6422
  };
5798
6423
  };
5799
6424
  };
5800
- get_trader_analytics_changes: {
6425
+ get_trader_analytics_deltas: {
5801
6426
  parameters: {
5802
- query: {
5803
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
5804
- timeframe: components["schemas"]["ChangeTimeframe"];
6427
+ query?: {
6428
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
6429
+ resolution?: components["schemas"]["AnalyticsResolution"];
6430
+ /** @description Start timestamp (Unix seconds) */
6431
+ from?: number;
6432
+ /** @description End timestamp (Unix seconds) */
6433
+ to?: number;
6434
+ /** @description Max data points (default: 500, max: 2500) */
6435
+ count_back?: number;
6436
+ /** @description Cursor from previous response */
6437
+ pagination_key?: string;
5805
6438
  };
5806
6439
  header?: never;
5807
6440
  path: {
@@ -5812,13 +6445,13 @@ export interface operations {
5812
6445
  };
5813
6446
  requestBody?: never;
5814
6447
  responses: {
5815
- /** @description Per-metric pct change */
6448
+ /** @description Delta time-bucketed trader analytics */
5816
6449
  200: {
5817
6450
  headers: {
5818
6451
  [name: string]: unknown;
5819
6452
  };
5820
6453
  content: {
5821
- "application/json": components["schemas"]["MetricPctChange"];
6454
+ "application/json": components["schemas"]["TraderTimeBucketRow"][];
5822
6455
  };
5823
6456
  };
5824
6457
  };
@@ -5826,8 +6459,8 @@ export interface operations {
5826
6459
  get_trader_analytics_timeseries: {
5827
6460
  parameters: {
5828
6461
  query?: {
5829
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5830
- resolution?: components["schemas"]["CandlestickResolution"];
6462
+ /** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
6463
+ resolution?: components["schemas"]["AnalyticsResolution"];
5831
6464
  /** @description Start timestamp (Unix seconds) */
5832
6465
  from?: number;
5833
6466
  /** @description End timestamp (Unix seconds) */
@@ -5852,7 +6485,7 @@ export interface operations {
5852
6485
  [name: string]: unknown;
5853
6486
  };
5854
6487
  content: {
5855
- "application/json": components["schemas"]["TimeBucketRow"][];
6488
+ "application/json": components["schemas"]["TraderTimeBucketRow"][];
5856
6489
  };
5857
6490
  };
5858
6491
  };