@structbuild/sdk 0.6.2 → 0.6.4

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.
@@ -477,6 +477,66 @@ export interface webhooks {
477
477
  patch?: never;
478
478
  trace?: never;
479
479
  };
480
+ "position-liquidity": {
481
+ parameters: {
482
+ query?: never;
483
+ header?: never;
484
+ path?: never;
485
+ cookie?: never;
486
+ };
487
+ get?: never;
488
+ put?: never;
489
+ /**
490
+ * Position liquidity threshold callback
491
+ * @description Fired when a position's USD order-book liquidity crosses a threshold. **`position_ids` is required**, plus at least one of `min_liquidity_usd` (fires when liquidity crosses **up** through the value) or `max_liquidity_usd` (fires when it crosses **down**). Thresholds are edge-triggered and re-arm once liquidity crosses back, unless `one_shot` is set (fire once, then delete).
492
+ */
493
+ post: operations["position-liquidity"];
494
+ delete?: never;
495
+ options?: never;
496
+ head?: never;
497
+ patch?: never;
498
+ trace?: never;
499
+ };
500
+ "market-liquidity": {
501
+ parameters: {
502
+ query?: never;
503
+ header?: never;
504
+ path?: never;
505
+ cookie?: never;
506
+ };
507
+ get?: never;
508
+ put?: never;
509
+ /**
510
+ * Market liquidity threshold callback
511
+ * @description Fired when a market's total USD order-book liquidity crosses a threshold. **`condition_ids` is required**, plus at least one of `min_liquidity_usd` (fires when liquidity crosses **up** through the value) or `max_liquidity_usd` (fires when it crosses **down**). Thresholds are edge-triggered and re-arm once liquidity crosses back, unless `one_shot` is set (fire once, then delete).
512
+ */
513
+ post: operations["market-liquidity"];
514
+ delete?: never;
515
+ options?: never;
516
+ head?: never;
517
+ patch?: never;
518
+ trace?: never;
519
+ };
520
+ "event-liquidity": {
521
+ parameters: {
522
+ query?: never;
523
+ header?: never;
524
+ path?: never;
525
+ cookie?: never;
526
+ };
527
+ get?: never;
528
+ put?: never;
529
+ /**
530
+ * Event liquidity threshold callback
531
+ * @description Fired when an event's total USD order-book liquidity (summed across its markets) crosses a threshold. **`event_slugs` is required**, plus at least one of `min_liquidity_usd` (fires when liquidity crosses **up** through the value) or `max_liquidity_usd` (fires when it crosses **down**). Thresholds are edge-triggered and re-arm once liquidity crosses back, unless `one_shot` is set (fire once, then delete).
532
+ */
533
+ post: operations["event-liquidity"];
534
+ delete?: never;
535
+ options?: never;
536
+ head?: never;
537
+ patch?: never;
538
+ trace?: never;
539
+ };
480
540
  "market-volume-milestone": {
481
541
  parameters: {
482
542
  query?: never;
@@ -967,73 +1027,170 @@ export interface components {
967
1027
  AssetWindowFilterTimeframe: "5m" | "15m" | "1h" | "4h" | "1d" | "24h";
968
1028
  /** @description Category PnL webhook payload. */
969
1029
  CategoryPnlPayload: {
1030
+ /** @description Trader wallet address. */
970
1031
  trader?: string | null;
1032
+ /** @description Category. */
971
1033
  category?: string | null;
972
1034
  /** @description Aggregation timeframe: "1d", "7d", "30d", or "lifetime" */
973
1035
  timeframe: string;
974
- /** Format: double */
1036
+ /**
1037
+ * Format: double
1038
+ * @description Realized pnl in USD.
1039
+ */
975
1040
  realized_pnl_usd?: number | null;
976
- /** Format: int64 */
1041
+ /**
1042
+ * Format: int64
1043
+ * @description Markets in this category.
1044
+ */
977
1045
  markets_in_category?: number | null;
978
- /** Format: int64 */
1046
+ /**
1047
+ * Format: int64
1048
+ * @description Markets traded.
1049
+ */
979
1050
  markets_traded?: number | null;
980
- /** Format: int64 */
1051
+ /**
1052
+ * Format: int64
1053
+ * @description Number of outcomes traded.
1054
+ */
981
1055
  outcomes_traded?: number | null;
982
- /** Format: int64 */
1056
+ /**
1057
+ * Format: int64
1058
+ * @description Total buy count.
1059
+ */
983
1060
  total_buys?: number | null;
984
- /** Format: int64 */
1061
+ /**
1062
+ * Format: int64
1063
+ * @description Total sell count.
1064
+ */
985
1065
  total_sells?: number | null;
986
- /** Format: int64 */
1066
+ /**
1067
+ * Format: int64
1068
+ * @description Total redemption count.
1069
+ */
987
1070
  total_redemptions?: number | null;
988
- /** Format: int64 */
1071
+ /**
1072
+ * Format: int64
1073
+ * @description Total merge count.
1074
+ */
989
1075
  total_merges?: number | null;
990
- /** Format: int64 */
1076
+ /**
1077
+ * Format: int64
1078
+ * @description Total split count.
1079
+ */
991
1080
  total_splits?: number | null;
992
- /** Format: double */
1081
+ /**
1082
+ * Format: double
1083
+ * @description Total volume in USD.
1084
+ */
993
1085
  total_volume_usd?: number | null;
994
- /** Format: double */
1086
+ /**
1087
+ * Format: double
1088
+ * @description Buy in USD.
1089
+ */
995
1090
  buy_usd?: number | null;
996
- /** Format: double */
1091
+ /**
1092
+ * Format: double
1093
+ * @description Sell in USD.
1094
+ */
997
1095
  sell_usd?: number | null;
998
- /** Format: double */
1096
+ /**
1097
+ * Format: double
1098
+ * @description Redemption in USD.
1099
+ */
999
1100
  redemption_usd?: number | null;
1000
- /** Format: double */
1101
+ /**
1102
+ * Format: double
1103
+ * @description Merge in USD.
1104
+ */
1001
1105
  merge_usd?: number | null;
1002
- /** Format: double */
1106
+ /**
1107
+ * Format: double
1108
+ * @description Convert collateral in USD.
1109
+ */
1003
1110
  convert_collateral_usd?: number | null;
1004
- /** Format: double */
1111
+ /**
1112
+ * Format: double
1113
+ * @description Split volume in USD.
1114
+ */
1005
1115
  split_volume_usd?: number | null;
1006
- /** Format: double */
1116
+ /**
1117
+ * Format: double
1118
+ * @description Total fees amount.
1119
+ */
1007
1120
  total_fees?: number | null;
1008
- /** Format: double */
1121
+ /**
1122
+ * Format: double
1123
+ * @description Total shares bought.
1124
+ */
1009
1125
  total_shares_bought?: number | null;
1010
- /** Format: int64 */
1126
+ /**
1127
+ * Format: int64
1128
+ * @description Markets won.
1129
+ */
1011
1130
  markets_won?: number | null;
1012
- /** Format: int64 */
1131
+ /**
1132
+ * Format: int64
1133
+ * @description Markets lost.
1134
+ */
1013
1135
  markets_lost?: number | null;
1014
- /** Format: double */
1136
+ /**
1137
+ * Format: double
1138
+ * @description Market win rate percent.
1139
+ */
1015
1140
  market_win_rate_pct?: number | null;
1016
- /** Format: double */
1141
+ /**
1142
+ * Format: double
1143
+ * @description Average hold time seconds.
1144
+ */
1017
1145
  avg_hold_time_seconds?: number | null;
1018
- /** Format: double */
1146
+ /**
1147
+ * Format: double
1148
+ * @description Best trade pnl in USD.
1149
+ */
1019
1150
  best_trade_pnl_usd?: number | null;
1151
+ /** @description Best trade condition id. */
1020
1152
  best_trade_condition_id?: string | null;
1021
- /** Format: double */
1153
+ /**
1154
+ * Format: double
1155
+ * @description Worst trade pnl in USD.
1156
+ */
1022
1157
  worst_trade_pnl_usd?: number | null;
1158
+ /** @description Worst trade condition id. */
1023
1159
  worst_trade_condition_id?: string | null;
1024
- /** Format: double */
1160
+ /**
1161
+ * Format: double
1162
+ * @description Total wins in USD.
1163
+ */
1025
1164
  total_wins_usd?: number | null;
1026
- /** Format: double */
1165
+ /**
1166
+ * Format: double
1167
+ * @description Total losses in USD.
1168
+ */
1027
1169
  total_losses_usd?: number | null;
1028
- /** Format: double */
1170
+ /**
1171
+ * Format: double
1172
+ * @description Average win in USD.
1173
+ */
1029
1174
  avg_win_usd?: number | null;
1030
- /** Format: double */
1175
+ /**
1176
+ * Format: double
1177
+ * @description Average loss in USD.
1178
+ */
1031
1179
  avg_loss_usd?: number | null;
1032
- /** Format: double */
1180
+ /**
1181
+ * Format: double
1182
+ * @description Profit factor.
1183
+ */
1033
1184
  profit_factor?: number | null;
1034
- /** Format: int64 */
1185
+ /**
1186
+ * Format: int64
1187
+ * @description First trade timestamp.
1188
+ */
1035
1189
  first_trade_at?: number | null;
1036
- /** Format: int64 */
1190
+ /**
1191
+ * Format: int64
1192
+ * @description Last trade timestamp.
1193
+ */
1037
1194
  last_trade_at?: number | null;
1038
1195
  };
1039
1196
  /**
@@ -1146,6 +1303,7 @@ export interface components {
1146
1303
  threshold: number;
1147
1304
  };
1148
1305
  ConditionHolderMetricsFilters: {
1306
+ /** @description Market condition IDs to match. */
1149
1307
  condition_ids?: string[];
1150
1308
  /**
1151
1309
  * @description Fire-and-delete: when `true`, delete the subscription after its first
@@ -1154,12 +1312,22 @@ export interface components {
1154
1312
  one_shot?: boolean | null;
1155
1313
  };
1156
1314
  ConditionHolderMetricsPayload: {
1157
- /** Format: int32 */
1315
+ /**
1316
+ * Format: int32
1317
+ * @description Unix timestamp in seconds.
1318
+ */
1158
1319
  ts: number;
1159
- /** Format: int64 */
1320
+ /**
1321
+ * Format: int64
1322
+ * @description Block number.
1323
+ */
1160
1324
  block: number;
1325
+ /** @description Market condition ID. */
1161
1326
  condition_id: string;
1162
- /** Format: int32 */
1327
+ /**
1328
+ * Format: int32
1329
+ * @description Number of holders.
1330
+ */
1163
1331
  holder_count: number;
1164
1332
  };
1165
1333
  /** @description Payload delivered when a market's volume or transaction metrics cross a configured threshold */
@@ -1266,6 +1434,7 @@ export interface components {
1266
1434
  };
1267
1435
  /** @description Delete webhook response */
1268
1436
  DeleteWebhookResponse: {
1437
+ /** @description Whether the webhook was deleted. */
1269
1438
  deleted: boolean;
1270
1439
  };
1271
1440
  /**
@@ -1318,6 +1487,7 @@ export interface components {
1318
1487
  event_slug?: string | null;
1319
1488
  };
1320
1489
  EventHolderMetricsFilters: {
1490
+ /** @description Event slugs to match. */
1321
1491
  event_slugs?: string[];
1322
1492
  /**
1323
1493
  * @description Fire-and-delete: when `true`, delete the subscription after its first
@@ -1326,14 +1496,75 @@ export interface components {
1326
1496
  one_shot?: boolean | null;
1327
1497
  };
1328
1498
  EventHolderMetricsPayload: {
1329
- /** Format: int32 */
1499
+ /**
1500
+ * Format: int32
1501
+ * @description Unix timestamp in seconds.
1502
+ */
1330
1503
  ts: number;
1331
- /** Format: int64 */
1504
+ /**
1505
+ * Format: int64
1506
+ * @description Block number.
1507
+ */
1332
1508
  block: number;
1509
+ /** @description Event slug. */
1333
1510
  event_slug: string;
1334
- /** Format: int32 */
1511
+ /**
1512
+ * Format: int32
1513
+ * @description Number of holders.
1514
+ */
1335
1515
  holder_count: number;
1336
1516
  };
1517
+ /**
1518
+ * @description Subscription filters for the `event_liquidity` event.
1519
+ *
1520
+ * At least one of `min_liquidity_usd`, `max_liquidity_usd`, or `one_shot` must be set.
1521
+ * Thresholds are edge-triggered: a callback fires when liquidity crosses the threshold,
1522
+ * then re-arms once it crosses back (unless `one_shot`).
1523
+ */
1524
+ EventLiquidityFilters: {
1525
+ /**
1526
+ * @description Fire-and-delete: when `true`, delete the subscription after its first
1527
+ * successful delivery.
1528
+ */
1529
+ one_shot?: boolean | null;
1530
+ /**
1531
+ * Format: double
1532
+ * @description Fire when total liquidity crosses up through this USD value.
1533
+ */
1534
+ min_liquidity_usd?: number | null;
1535
+ /**
1536
+ * Format: double
1537
+ * @description Fire when total liquidity crosses down through this USD value.
1538
+ */
1539
+ max_liquidity_usd?: number | null;
1540
+ /** @description **Required.** Events to receive liquidity updates for. */
1541
+ event_slugs: string[];
1542
+ };
1543
+ /** @description Event liquidity webhook payload. */
1544
+ EventLiquidityPayload: {
1545
+ /** @description Event slug. */
1546
+ event_slug: string;
1547
+ /**
1548
+ * Format: double
1549
+ * @description Total order-book liquidity in USD at the time of firing.
1550
+ */
1551
+ liquidity_usd: number;
1552
+ /**
1553
+ * Format: double
1554
+ * @description The threshold (USD) that was crossed.
1555
+ */
1556
+ threshold_usd: number;
1557
+ /**
1558
+ * @description `"above"` when liquidity crossed up through `min_liquidity_usd`,
1559
+ * `"below"` when it crossed down through `max_liquidity_usd`.
1560
+ */
1561
+ direction: string;
1562
+ /**
1563
+ * Format: int64
1564
+ * @description Update timestamp (Unix millis).
1565
+ */
1566
+ liquidity_updated_at: number;
1567
+ };
1337
1568
  /** @description Subscription filters for the `event_metrics` event. All fields are optional. */
1338
1569
  EventMetricsFilters: {
1339
1570
  /**
@@ -1350,13 +1581,25 @@ export interface components {
1350
1581
  * @description Only fire when aggregated event volume ≥ this value (USD).
1351
1582
  */
1352
1583
  min_volume_usd?: number | null;
1353
- /** Format: double */
1584
+ /**
1585
+ * Format: double
1586
+ * @description Maximum volume USD.
1587
+ */
1354
1588
  max_volume_usd?: number | null;
1355
- /** Format: int64 */
1589
+ /**
1590
+ * Format: int64
1591
+ * @description Minimum transactions.
1592
+ */
1356
1593
  min_txns?: number | null;
1357
- /** Format: int64 */
1594
+ /**
1595
+ * Format: int64
1596
+ * @description Minimum unique traders.
1597
+ */
1358
1598
  min_unique_traders?: number | null;
1359
- /** Format: double */
1599
+ /**
1600
+ * Format: double
1601
+ * @description Minimum fees.
1602
+ */
1360
1603
  min_fees?: number | null;
1361
1604
  /** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
1362
1605
  exclude_shortterm_markets?: boolean | null;
@@ -1446,7 +1689,9 @@ export interface components {
1446
1689
  };
1447
1690
  /** @description Event volume milestone webhook payload */
1448
1691
  EventVolumeMilestonePayload: {
1692
+ /** @description Event slug. */
1449
1693
  event_slug: string;
1694
+ /** @description Metric timeframe. */
1450
1695
  timeframe: string;
1451
1696
  /**
1452
1697
  * Format: double
@@ -1495,9 +1740,13 @@ export interface components {
1495
1740
  };
1496
1741
  /** @description Event volume spike webhook payload */
1497
1742
  EventVolumeSpikePayload: {
1743
+ /** @description Event slug. */
1498
1744
  event_slug: string;
1745
+ /** @description Event title. */
1499
1746
  event_title?: string | null;
1747
+ /** @description Image URL. */
1500
1748
  image_url?: string | null;
1749
+ /** @description Metric timeframe. */
1501
1750
  timeframe: string;
1502
1751
  /**
1503
1752
  * Format: double
@@ -1532,33 +1781,57 @@ export interface components {
1532
1781
  };
1533
1782
  /** @description Exit Markers webhook payload — one position open->closed transition. */
1534
1783
  ExitMarkersPayload: {
1784
+ /** @description Trader wallet address. */
1535
1785
  trader: string;
1786
+ /** @description Outcome token ID. */
1536
1787
  position_id: string;
1788
+ /** @description Market condition ID. */
1537
1789
  condition_id: string;
1790
+ /** @description Event slug. */
1538
1791
  event_slug: string;
1792
+ /** @description Market slug. */
1539
1793
  market_slug: string;
1794
+ /** @description Title. */
1540
1795
  title: string;
1796
+ /** @description Market question. */
1541
1797
  question: string;
1798
+ /** @description Image URL. */
1542
1799
  image_url: string;
1800
+ /** @description Outcome name. */
1543
1801
  outcome: string;
1544
- /** Format: int32 */
1545
- outcome_index?: number | null;
1546
- /** Format: double */
1547
- pnl_usd: number;
1548
- /** Format: double */
1549
- pnl_pct: number;
1550
- /** Format: double */
1551
- cost_basis_usd: number;
1552
- /** @description resolved_win | resolved_loss | sold_win | sold_loss */
1553
- reason: string;
1554
- /** Format: int64 */
1555
- block: number;
1556
1802
  /**
1557
1803
  * Format: int32
1558
- * @description Exit time, unix seconds.
1804
+ * @description Outcome index.
1559
1805
  */
1560
- ts: number;
1561
- };
1806
+ outcome_index?: number | null;
1807
+ /**
1808
+ * Format: double
1809
+ * @description Pnl in USD.
1810
+ */
1811
+ pnl_usd: number;
1812
+ /**
1813
+ * Format: double
1814
+ * @description Pnl percent.
1815
+ */
1816
+ pnl_pct: number;
1817
+ /**
1818
+ * Format: double
1819
+ * @description Cost basis in USD.
1820
+ */
1821
+ cost_basis_usd: number;
1822
+ /** @description resolved_win | resolved_loss | sold_win | sold_loss */
1823
+ reason: string;
1824
+ /**
1825
+ * Format: int64
1826
+ * @description Block number.
1827
+ */
1828
+ block: number;
1829
+ /**
1830
+ * Format: int32
1831
+ * @description Exit time, unix seconds.
1832
+ */
1833
+ ts: number;
1834
+ };
1562
1835
  /** @description Payload delivered when a tracked trader executes their first-ever trade on Polymarket */
1563
1836
  FirstTradePayload: {
1564
1837
  /** @description Limit-order maker wallet address (lowercase) */
@@ -1627,6 +1900,7 @@ export interface components {
1627
1900
  };
1628
1901
  /** @description Global PnL webhook payload. */
1629
1902
  GlobalPnlPayload: {
1903
+ /** @description Trader wallet address. */
1630
1904
  trader?: string | null;
1631
1905
  /** @description Aggregation timeframe: "1d", "7d", "30d", or "lifetime" */
1632
1906
  timeframe: string;
@@ -1635,83 +1909,194 @@ export interface components {
1635
1909
  * @description Realized PnL for the timeframe (matches REST `/pnl/global`).
1636
1910
  */
1637
1911
  realized_pnl_usd?: number | null;
1638
- /** Format: int64 */
1912
+ /**
1913
+ * Format: int64
1914
+ * @description Events traded.
1915
+ */
1639
1916
  events_traded?: number | null;
1640
- /** Format: int64 */
1917
+ /**
1918
+ * Format: int64
1919
+ * @description Markets traded.
1920
+ */
1641
1921
  markets_traded?: number | null;
1642
- /** Format: int64 */
1922
+ /**
1923
+ * Format: int64
1924
+ * @description Total buy count.
1925
+ */
1643
1926
  total_buys?: number | null;
1644
- /** Format: int64 */
1927
+ /**
1928
+ * Format: int64
1929
+ * @description Total sell count.
1930
+ */
1645
1931
  total_sells?: number | null;
1646
- /** Format: int64 */
1932
+ /**
1933
+ * Format: int64
1934
+ * @description Total redemption count.
1935
+ */
1647
1936
  total_redemptions?: number | null;
1648
- /** Format: int64 */
1937
+ /**
1938
+ * Format: int64
1939
+ * @description Total merge count.
1940
+ */
1649
1941
  total_merges?: number | null;
1650
- /** Format: int64 */
1942
+ /**
1943
+ * Format: int64
1944
+ * @description Total split count.
1945
+ */
1651
1946
  total_splits?: number | null;
1652
- /** Format: double */
1947
+ /**
1948
+ * Format: double
1949
+ * @description Total volume in USD.
1950
+ */
1653
1951
  total_volume_usd?: number | null;
1654
- /** Format: double */
1952
+ /**
1953
+ * Format: double
1954
+ * @description Buy volume in USD.
1955
+ */
1655
1956
  buy_volume_usd?: number | null;
1656
- /** Format: double */
1957
+ /**
1958
+ * Format: double
1959
+ * @description Sell volume in USD.
1960
+ */
1657
1961
  sell_volume_usd?: number | null;
1658
- /** Format: double */
1962
+ /**
1963
+ * Format: double
1964
+ * @description Redemption volume in USD.
1965
+ */
1659
1966
  redemption_volume_usd?: number | null;
1660
- /** Format: double */
1967
+ /**
1968
+ * Format: double
1969
+ * @description Merge volume in USD.
1970
+ */
1661
1971
  merge_volume_usd?: number | null;
1662
- /** Format: double */
1972
+ /**
1973
+ * Format: double
1974
+ * @description Convert collateral in USD.
1975
+ */
1663
1976
  convert_collateral_usd?: number | null;
1664
- /** Format: double */
1977
+ /**
1978
+ * Format: double
1979
+ * @description Split volume in USD.
1980
+ */
1665
1981
  split_volume_usd?: number | null;
1666
- /** Format: int64 */
1982
+ /**
1983
+ * Format: int64
1984
+ * @description Maker rebate count.
1985
+ */
1667
1986
  maker_rebate_count?: number | null;
1668
- /** Format: double */
1987
+ /**
1988
+ * Format: double
1989
+ * @description Maker rebate in USD.
1990
+ */
1669
1991
  maker_rebate_usd?: number | null;
1670
- /** Format: int64 */
1992
+ /**
1993
+ * Format: int64
1994
+ * @description Reward count.
1995
+ */
1671
1996
  reward_count?: number | null;
1672
- /** Format: double */
1997
+ /**
1998
+ * Format: double
1999
+ * @description Reward in USD.
2000
+ */
1673
2001
  reward_usd?: number | null;
1674
- /** Format: int64 */
2002
+ /**
2003
+ * Format: int64
2004
+ * @description Yield count.
2005
+ */
1675
2006
  yield_count?: number | null;
1676
- /** Format: double */
2007
+ /**
2008
+ * Format: double
2009
+ * @description Yield in USD.
2010
+ */
1677
2011
  yield_usd?: number | null;
1678
- /** Format: int64 */
2012
+ /**
2013
+ * Format: int64
2014
+ * @description Total credit count.
2015
+ */
1679
2016
  total_credit_count?: number | null;
1680
- /** Format: double */
2017
+ /**
2018
+ * Format: double
2019
+ * @description Total credit in USD.
2020
+ */
1681
2021
  total_credit_usd?: number | null;
1682
- /** Format: int64 */
2022
+ /**
2023
+ * Format: int64
2024
+ * @description Markets won.
2025
+ */
1683
2026
  markets_won?: number | null;
1684
- /** Format: int64 */
2027
+ /**
2028
+ * Format: int64
2029
+ * @description Markets lost.
2030
+ */
1685
2031
  markets_lost?: number | null;
1686
- /** Format: double */
2032
+ /**
2033
+ * Format: double
2034
+ * @description Market win rate percent.
2035
+ */
1687
2036
  market_win_rate_pct?: number | null;
1688
- /** Format: double */
2037
+ /**
2038
+ * Format: double
2039
+ * @description Total wins in USD.
2040
+ */
1689
2041
  total_wins_usd?: number | null;
1690
- /** Format: double */
2042
+ /**
2043
+ * Format: double
2044
+ * @description Total losses in USD.
2045
+ */
1691
2046
  total_losses_usd?: number | null;
1692
- /** Format: double */
2047
+ /**
2048
+ * Format: double
2049
+ * @description Average win in USD.
2050
+ */
1693
2051
  avg_win_usd?: number | null;
1694
- /** Format: double */
2052
+ /**
2053
+ * Format: double
2054
+ * @description Average loss in USD.
2055
+ */
1695
2056
  avg_loss_usd?: number | null;
1696
- /** Format: double */
2057
+ /**
2058
+ * Format: double
2059
+ * @description Profit factor.
2060
+ */
1697
2061
  profit_factor?: number | null;
1698
- /** Format: double */
2062
+ /**
2063
+ * Format: double
2064
+ * @description Average hold time seconds.
2065
+ */
1699
2066
  avg_hold_time_seconds?: number | null;
1700
- /** Format: double */
2067
+ /**
2068
+ * Format: double
2069
+ * @description Total fees amount.
2070
+ */
1701
2071
  total_fees?: number | null;
1702
- /** Format: double */
2072
+ /**
2073
+ * Format: double
2074
+ * @description Best trade pnl in USD.
2075
+ */
1703
2076
  best_trade_pnl_usd?: number | null;
2077
+ /** @description Best trade condition id. */
1704
2078
  best_trade_condition_id?: string | null;
1705
- /** Format: double */
2079
+ /**
2080
+ * Format: double
2081
+ * @description Worst trade pnl in USD.
2082
+ */
1706
2083
  worst_trade_pnl_usd?: number | null;
2084
+ /** @description Worst trade condition id. */
1707
2085
  worst_trade_condition_id?: string | null;
1708
- /** Format: int64 */
2086
+ /**
2087
+ * Format: int64
2088
+ * @description First trade timestamp.
2089
+ */
1709
2090
  first_trade_at?: number | null;
1710
- /** Format: int64 */
2091
+ /**
2092
+ * Format: int64
2093
+ * @description Last trade timestamp.
2094
+ */
1711
2095
  last_trade_at?: number | null;
1712
2096
  };
1713
2097
  /** @description Response for GET /v1/webhook/events */
1714
2098
  ListEventsResponse: {
2099
+ /** @description Supported webhook events. */
1715
2100
  events: components["schemas"]["WebhookEventInfo"][];
1716
2101
  };
1717
2102
  /** @description Subscription filters for the `market_created` event. All fields are optional. */
@@ -1823,6 +2208,57 @@ export interface components {
1823
2208
  */
1824
2209
  confirmed_at?: number | null;
1825
2210
  };
2211
+ /**
2212
+ * @description Subscription filters for the `market_liquidity` event.
2213
+ *
2214
+ * At least one of `min_liquidity_usd`, `max_liquidity_usd`, or `one_shot` must be set.
2215
+ * Thresholds are edge-triggered: a callback fires when liquidity crosses the threshold,
2216
+ * then re-arms once it crosses back (unless `one_shot`).
2217
+ */
2218
+ MarketLiquidityFilters: {
2219
+ /**
2220
+ * @description Fire-and-delete: when `true`, delete the subscription after its first
2221
+ * successful delivery.
2222
+ */
2223
+ one_shot?: boolean | null;
2224
+ /**
2225
+ * Format: double
2226
+ * @description Fire when total liquidity crosses up through this USD value.
2227
+ */
2228
+ min_liquidity_usd?: number | null;
2229
+ /**
2230
+ * Format: double
2231
+ * @description Fire when total liquidity crosses down through this USD value.
2232
+ */
2233
+ max_liquidity_usd?: number | null;
2234
+ /** @description **Required.** Markets to receive liquidity updates for. */
2235
+ condition_ids: string[];
2236
+ };
2237
+ /** @description Market liquidity webhook payload. */
2238
+ MarketLiquidityPayload: {
2239
+ /** @description Market condition ID. */
2240
+ condition_id: string;
2241
+ /**
2242
+ * Format: double
2243
+ * @description Total order-book liquidity in USD at the time of firing.
2244
+ */
2245
+ liquidity_usd: number;
2246
+ /**
2247
+ * Format: double
2248
+ * @description The threshold (USD) that was crossed.
2249
+ */
2250
+ threshold_usd: number;
2251
+ /**
2252
+ * @description `"above"` when liquidity crossed up through `min_liquidity_usd`,
2253
+ * `"below"` when it crossed down through `max_liquidity_usd`.
2254
+ */
2255
+ direction: string;
2256
+ /**
2257
+ * Format: int64
2258
+ * @description Update timestamp (Unix millis).
2259
+ */
2260
+ liquidity_updated_at: number;
2261
+ };
1826
2262
  /** @description Subscription filters for the `condition_metrics` event. All fields are optional. */
1827
2263
  MarketMetricsFilters: {
1828
2264
  /**
@@ -1862,47 +2298,105 @@ export interface components {
1862
2298
  };
1863
2299
  /** @description Market PnL webhook payload. */
1864
2300
  MarketPnlPayload: {
2301
+ /** @description Trader wallet address. */
1865
2302
  trader?: string | null;
2303
+ /** @description Market condition ID. */
1866
2304
  condition_id?: string | null;
2305
+ /** @description Event slug. */
1867
2306
  event_slug?: string | null;
2307
+ /** @description Category. */
1868
2308
  category?: string | null;
1869
2309
  /** @description Aggregation timeframe: "1d", "7d", "30d", or "lifetime" */
1870
2310
  timeframe: string;
1871
- /** Format: double */
2311
+ /**
2312
+ * Format: double
2313
+ * @description Realized pnl in USD.
2314
+ */
1872
2315
  realized_pnl_usd?: number | null;
1873
- /** Format: double */
2316
+ /**
2317
+ * Format: double
2318
+ * @description Current shares balance.
2319
+ */
1874
2320
  current_shares_balance?: number | null;
1875
- /** Format: int64 */
2321
+ /**
2322
+ * Format: int64
2323
+ * @description Number of outcomes traded.
2324
+ */
1876
2325
  outcomes_traded?: number | null;
1877
- /** Format: int64 */
2326
+ /**
2327
+ * Format: int64
2328
+ * @description Total buy count.
2329
+ */
1878
2330
  total_buys?: number | null;
1879
- /** Format: int64 */
2331
+ /**
2332
+ * Format: int64
2333
+ * @description Total sell count.
2334
+ */
1880
2335
  total_sells?: number | null;
1881
- /** Format: int64 */
2336
+ /**
2337
+ * Format: int64
2338
+ * @description Total redemption count.
2339
+ */
1882
2340
  total_redemptions?: number | null;
1883
- /** Format: int64 */
2341
+ /**
2342
+ * Format: int64
2343
+ * @description Total merge count.
2344
+ */
1884
2345
  total_merges?: number | null;
1885
- /** Format: int64 */
2346
+ /**
2347
+ * Format: int64
2348
+ * @description Total split count.
2349
+ */
1886
2350
  total_splits?: number | null;
1887
- /** Format: double */
2351
+ /**
2352
+ * Format: double
2353
+ * @description Buy in USD.
2354
+ */
1888
2355
  buy_usd?: number | null;
1889
- /** Format: double */
2356
+ /**
2357
+ * Format: double
2358
+ * @description Sell in USD.
2359
+ */
1890
2360
  sell_usd?: number | null;
1891
- /** Format: double */
2361
+ /**
2362
+ * Format: double
2363
+ * @description Redemption in USD.
2364
+ */
1892
2365
  redemption_usd?: number | null;
1893
- /** Format: double */
2366
+ /**
2367
+ * Format: double
2368
+ * @description Merge in USD.
2369
+ */
1894
2370
  merge_usd?: number | null;
1895
- /** Format: double */
2371
+ /**
2372
+ * Format: double
2373
+ * @description Convert collateral in USD.
2374
+ */
1896
2375
  convert_collateral_usd?: number | null;
1897
- /** Format: double */
2376
+ /**
2377
+ * Format: double
2378
+ * @description Split volume in USD.
2379
+ */
1898
2380
  split_volume_usd?: number | null;
1899
- /** Format: double */
2381
+ /**
2382
+ * Format: double
2383
+ * @description Total fees amount.
2384
+ */
1900
2385
  total_fees?: number | null;
1901
- /** Format: double */
2386
+ /**
2387
+ * Format: double
2388
+ * @description Total shares bought.
2389
+ */
1902
2390
  total_shares_bought?: number | null;
1903
- /** Format: int64 */
2391
+ /**
2392
+ * Format: int64
2393
+ * @description First trade timestamp.
2394
+ */
1904
2395
  first_trade_at?: number | null;
1905
- /** Format: int64 */
2396
+ /**
2397
+ * Format: int64
2398
+ * @description Last trade timestamp.
2399
+ */
1906
2400
  last_trade_at?: number | null;
1907
2401
  };
1908
2402
  /** @description Subscription filters for the `market_resolved` event. All fields are optional. */
@@ -1997,11 +2491,17 @@ export interface components {
1997
2491
  };
1998
2492
  /** @description Market volume spike webhook payload */
1999
2493
  MarketVolumeSpikePayload: {
2494
+ /** @description Market condition ID. */
2000
2495
  condition_id: string;
2496
+ /** @description Market question. */
2001
2497
  question?: string | null;
2498
+ /** @description Market slug. */
2002
2499
  market_slug?: string | null;
2500
+ /** @description Event slug. */
2003
2501
  event_slug?: string | null;
2502
+ /** @description Image URL. */
2004
2503
  image_url?: string | null;
2504
+ /** @description Metric timeframe. */
2005
2505
  timeframe: string;
2006
2506
  /**
2007
2507
  * Format: double
@@ -2211,6 +2711,7 @@ export interface components {
2211
2711
  /**
2212
2712
  * @description CLOB V2 builder code (lower-cased `0x...` bytes32 hex). Absent on V1
2213
2713
  * trades; may be `0x0000…` for V2 trades placed without a builder code.
2714
+ * CLOB builder code.
2214
2715
  */
2215
2716
  builder_code?: string | null;
2216
2717
  /**
@@ -2313,7 +2814,7 @@ export interface components {
2313
2814
  * @description Polymarket webhook event types
2314
2815
  * @enum {string}
2315
2816
  */
2316
- PolymarketWebhookEvent: "trader_first_trade" | "trader_new_market" | "trader_whale_trade" | "trader_new_trade" | "trader_trade_event" | "trader_global_pnl" | "trader_market_pnl" | "trader_category_pnl" | "trader_position_resolved" | "trader_exit_markers" | "position_holder_metrics" | "condition_holder_metrics" | "event_holder_metrics" | "condition_metrics" | "event_metrics" | "tag_metrics" | "position_metrics" | "market_volume_milestone" | "event_volume_milestone" | "position_volume_milestone" | "probability_spike" | "market_volume_spike" | "event_volume_spike" | "position_volume_spike" | "close_to_bond" | "market_created" | "asset_price_tick" | "asset_price_window_update" | "price_spike" | "oracle_events" | "price_threshold" | "market_resolved" | "market_disputed";
2817
+ PolymarketWebhookEvent: "trader_first_trade" | "trader_new_market" | "trader_whale_trade" | "trader_new_trade" | "trader_trade_event" | "trader_global_pnl" | "trader_market_pnl" | "trader_category_pnl" | "trader_position_resolved" | "trader_exit_markers" | "position_holder_metrics" | "condition_holder_metrics" | "event_holder_metrics" | "condition_metrics" | "event_metrics" | "tag_metrics" | "position_metrics" | "position_liquidity" | "market_liquidity" | "event_liquidity" | "market_volume_milestone" | "event_volume_milestone" | "position_volume_milestone" | "probability_spike" | "market_volume_spike" | "event_volume_spike" | "position_volume_spike" | "close_to_bond" | "market_created" | "asset_price_tick" | "asset_price_window_update" | "price_spike" | "oracle_events" | "price_threshold" | "market_resolved" | "market_disputed";
2317
2818
  /**
2318
2819
  * @description Polymarket-specific webhook filters
2319
2820
  *
@@ -2348,27 +2849,41 @@ export interface components {
2348
2849
  * Implements Hash + Eq manually (f64 fields use bit representation)
2349
2850
  */
2350
2851
  PolymarketWebhookFilter: {
2351
- /** @description Filter by wallet addresses (for first_trade, normalized to lowercase). Max 500 entries. */
2852
+ /**
2853
+ * @description Filter by wallet addresses (for first_trade, normalized to lowercase). Max 500 entries.
2854
+ * Wallet addresses to match.
2855
+ */
2352
2856
  wallet_addresses?: string[];
2353
- /** @description Filter by trader addresses (for PnL webhooks, normalized to lowercase). Max 500 entries. */
2857
+ /**
2858
+ * @description Filter by trader addresses (for PnL webhooks, normalized to lowercase). Max 500 entries.
2859
+ * Trader wallet addresses to match.
2860
+ */
2354
2861
  traders?: string[];
2355
- /** @description Filter by market/condition IDs. Max 500 entries. */
2862
+ /**
2863
+ * @description Filter by market/condition IDs. Max 500 entries.
2864
+ * Market condition IDs to match.
2865
+ */
2356
2866
  condition_ids?: string[];
2357
2867
  /**
2358
2868
  * Format: double
2359
2869
  * @description Filter by minimum USD value (for trades)
2360
2870
  */
2361
2871
  min_usd_value?: number | null;
2362
- /** @description Filter by event slugs. Max 500 entries. */
2872
+ /**
2873
+ * @description Filter by event slugs. Max 500 entries.
2874
+ * Event slugs to match.
2875
+ */
2363
2876
  event_slugs?: string[];
2364
2877
  /**
2365
2878
  * @description Filter by tags or category names (case-insensitive). Matches a market's
2366
2879
  * tags or its category label. Max 500 entries.
2880
+ * Tags to match.
2367
2881
  */
2368
2882
  tags?: string[];
2369
2883
  /**
2370
2884
  * @description Filter by series slugs (case-insensitive). Matches a market's parent
2371
2885
  * series. Max 500 entries.
2886
+ * Series slugs to match.
2372
2887
  */
2373
2888
  series_slugs?: string[];
2374
2889
  /**
@@ -2401,6 +2916,18 @@ export interface components {
2401
2916
  * @description Maximum volume (USD) - for metrics webhooks
2402
2917
  */
2403
2918
  max_volume_usd?: number | null;
2919
+ /**
2920
+ * Format: double
2921
+ * @description Minimum order-book liquidity (USD) - for liquidity webhooks.
2922
+ * Fires when liquidity crosses up through this value.
2923
+ */
2924
+ min_liquidity_usd?: number | null;
2925
+ /**
2926
+ * Format: double
2927
+ * @description Maximum order-book liquidity (USD) - for liquidity webhooks.
2928
+ * Fires when liquidity crosses down through this value.
2929
+ */
2930
+ max_liquidity_usd?: number | null;
2404
2931
  /**
2405
2932
  * Format: double
2406
2933
  * @description Minimum buy volume (USD) - for PnL and metrics webhooks
@@ -2426,16 +2953,26 @@ export interface components {
2426
2953
  * @description Maximum net shares - for position PnL webhooks
2427
2954
  */
2428
2955
  max_net_shares?: number | null;
2429
- /** @description Filter by position IDs - for position PnL webhooks. Max 500 entries. */
2956
+ /**
2957
+ * @description Filter by position IDs - for position PnL webhooks. Max 500 entries.
2958
+ * Outcome token IDs to match.
2959
+ */
2430
2960
  position_ids?: string[];
2431
- /** @description Filter by outcomes (e.g., "Yes", "No") - for position PnL webhooks. Max 500 entries. */
2961
+ /**
2962
+ * @description Filter by outcomes (e.g., "Yes", "No") - for position PnL webhooks. Max 500 entries.
2963
+ * Outcome names to match.
2964
+ */
2432
2965
  outcomes?: string[];
2433
2966
  /**
2434
2967
  * @description Filter by position outcome index — for close_to_bond. Position 0 usually represents Yes/Up, 1 = No.
2435
2968
  * When non-empty, only trades whose outcome_index is in this list will match. Max 500 entries.
2969
+ * Outcome indices to match.
2436
2970
  */
2437
2971
  position_outcome_indices?: number[];
2438
- /** @description Filter by trade type (e.g. "OrderFilled", "Redemption", "Merge", "Split"). Empty = default behavior per handler. */
2972
+ /**
2973
+ * @description Filter by trade type (e.g. "OrderFilled", "Redemption", "Merge", "Split"). Empty = default behavior per handler.
2974
+ * Trade types to match.
2975
+ */
2439
2976
  trade_types?: string[];
2440
2977
  /**
2441
2978
  * Format: double
@@ -2467,9 +3004,15 @@ export interface components {
2467
3004
  * @description Minimum probability change percentage - for position metrics webhooks
2468
3005
  */
2469
3006
  min_probability_change_pct?: number | null;
2470
- /** @description Timeframes to track - for metrics webhooks (1m, 5m, 30m, 1h, 6h, 24h, 7d, 30d). */
3007
+ /**
3008
+ * @description Timeframes to track - for metrics webhooks (1m, 5m, 30m, 1h, 6h, 24h, 7d, 30d).
3009
+ * Metric timeframes to match.
3010
+ */
2471
3011
  timeframes?: components["schemas"]["WebhookTimeframe"][];
2472
- /** @description Milestone amounts to track - for volume milestone webhooks (e.g., 10000, 100000, 1000000). Max 500 entries. */
3012
+ /**
3013
+ * @description Milestone amounts to track - for volume milestone webhooks (e.g., 10000, 100000, 1000000). Max 500 entries.
3014
+ * Milestone amounts to match.
3015
+ */
2473
3016
  milestone_amounts?: number[];
2474
3017
  /**
2475
3018
  * Format: double
@@ -2488,6 +3031,7 @@ export interface components {
2488
3031
  /**
2489
3032
  * @description Filter by crypto asset symbol — for `asset_price_tick` and `asset_price_window_update` webhooks.
2490
3033
  * Valid values: "BTC", "ETH", "SOL", "XRP", "DOGE", "BNB", "HYPE". Empty = all assets.
3034
+ * Asset symbols to match.
2491
3035
  */
2492
3036
  asset_symbols?: components["schemas"]["WebhookAssetSymbol"][];
2493
3037
  spike_direction?: null | components["schemas"]["SpikeDirection"];
@@ -2511,6 +3055,7 @@ export interface components {
2511
3055
  * `QuestionInitialized`, `QuestionPaused`, `QuestionUnpaused`,
2512
3056
  * `QuestionFlagged`, `QuestionUnflagged`, `ConditionResolution`,
2513
3057
  * `NegRiskOutcomeReported`. Empty = all types.
3058
+ * Oracle event types to match.
2514
3059
  */
2515
3060
  oracle_event_types?: string[];
2516
3061
  /**
@@ -2526,6 +3071,7 @@ export interface components {
2526
3071
  fire_if_already_past?: boolean;
2527
3072
  };
2528
3073
  PositionHolderMetricsFilters: {
3074
+ /** @description Outcome token IDs to match. */
2529
3075
  position_ids?: string[];
2530
3076
  /**
2531
3077
  * @description Fire-and-delete: when `true`, delete the subscription after its first
@@ -2534,22 +3080,95 @@ export interface components {
2534
3080
  one_shot?: boolean | null;
2535
3081
  };
2536
3082
  PositionHolderMetricsPayload: {
2537
- /** Format: int32 */
3083
+ /**
3084
+ * Format: int32
3085
+ * @description Unix timestamp in seconds.
3086
+ */
2538
3087
  ts: number;
2539
- /** Format: int64 */
3088
+ /**
3089
+ * Format: int64
3090
+ * @description Block number.
3091
+ */
2540
3092
  block: number;
3093
+ /** @description Outcome token ID. */
2541
3094
  position_id: string;
2542
- /** Format: int32 */
3095
+ /**
3096
+ * Format: int32
3097
+ * @description Number of holders.
3098
+ */
2543
3099
  holder_count: number;
2544
- /** Format: double */
3100
+ /**
3101
+ * Format: double
3102
+ * @description Total shares held.
3103
+ */
2545
3104
  total_balance: number;
2546
- /** Format: double */
3105
+ /**
3106
+ * Format: double
3107
+ * @description Total holder cost basis in USD.
3108
+ */
2547
3109
  total_cost_basis: number;
2548
- /** Format: int32 */
3110
+ /**
3111
+ * Format: int32
3112
+ * @description Number of market-level holders.
3113
+ */
2549
3114
  condition_holder_count?: number | null;
2550
- /** Format: int32 */
3115
+ /**
3116
+ * Format: int32
3117
+ * @description Number of event-level holders.
3118
+ */
2551
3119
  event_holder_count?: number | null;
2552
3120
  };
3121
+ /**
3122
+ * @description Subscription filters for the `position_liquidity` event.
3123
+ *
3124
+ * At least one of `min_liquidity_usd`, `max_liquidity_usd`, or `one_shot` must be set.
3125
+ * Thresholds are edge-triggered: a callback fires when liquidity crosses the threshold,
3126
+ * then re-arms once it crosses back (unless `one_shot`).
3127
+ */
3128
+ PositionLiquidityFilters: {
3129
+ /**
3130
+ * @description Fire-and-delete: when `true`, delete the subscription after its first
3131
+ * successful delivery.
3132
+ */
3133
+ one_shot?: boolean | null;
3134
+ /**
3135
+ * Format: double
3136
+ * @description Fire when liquidity crosses up through this USD value.
3137
+ */
3138
+ min_liquidity_usd?: number | null;
3139
+ /**
3140
+ * Format: double
3141
+ * @description Fire when liquidity crosses down through this USD value.
3142
+ */
3143
+ max_liquidity_usd?: number | null;
3144
+ /** @description **Required.** Outcome token IDs to receive liquidity updates for. */
3145
+ position_ids: string[];
3146
+ };
3147
+ /** @description Position liquidity webhook payload. */
3148
+ PositionLiquidityPayload: {
3149
+ /** @description Outcome token (position) ID. */
3150
+ position_id: string;
3151
+ /**
3152
+ * Format: double
3153
+ * @description Order-book liquidity in USD at the time of firing.
3154
+ */
3155
+ liquidity_usd: number;
3156
+ /**
3157
+ * Format: double
3158
+ * @description The threshold (USD) that was crossed.
3159
+ */
3160
+ threshold_usd: number;
3161
+ /**
3162
+ * @description `"above"` when liquidity crossed up through `min_liquidity_usd`,
3163
+ * `"below"` when it crossed down through `max_liquidity_usd`.
3164
+ */
3165
+ direction: string;
3166
+ /**
3167
+ * Format: int64
3168
+ * @description Update timestamp (Unix millis).
3169
+ */
3170
+ liquidity_updated_at: number;
3171
+ };
2553
3172
  /** @description Subscription filters for the `position_metrics` event. All fields are optional. */
2554
3173
  PositionMetricsFilters: {
2555
3174
  /**
@@ -2570,15 +3189,30 @@ export interface components {
2570
3189
  * @description Only fire when position volume ≥ this value (USD).
2571
3190
  */
2572
3191
  min_volume_usd?: number | null;
2573
- /** Format: double */
3192
+ /**
3193
+ * Format: double
3194
+ * @description Maximum volume USD.
3195
+ */
2574
3196
  max_volume_usd?: number | null;
2575
- /** Format: double */
3197
+ /**
3198
+ * Format: double
3199
+ * @description Minimum buy USD.
3200
+ */
2576
3201
  min_buy_usd?: number | null;
2577
- /** Format: double */
3202
+ /**
3203
+ * Format: double
3204
+ * @description Minimum sell volume USD.
3205
+ */
2578
3206
  min_sell_volume_usd?: number | null;
2579
- /** Format: int64 */
3207
+ /**
3208
+ * Format: int64
3209
+ * @description Minimum transactions.
3210
+ */
2580
3211
  min_txns?: number | null;
2581
- /** Format: int64 */
3212
+ /**
3213
+ * Format: int64
3214
+ * @description Minimum unique traders.
3215
+ */
2582
3216
  min_unique_traders?: number | null;
2583
3217
  /**
2584
3218
  * Format: double
@@ -2590,7 +3224,10 @@ export interface components {
2590
3224
  * @description Only fire when probability change % ≥ this value.
2591
3225
  */
2592
3226
  min_probability_change_pct?: number | null;
2593
- /** Format: double */
3227
+ /**
3228
+ * Format: double
3229
+ * @description Minimum fees.
3230
+ */
2594
3231
  min_fees?: number | null;
2595
3232
  };
2596
3233
  /** @description Payload delivered when a position's volume or transaction metrics cross a configured threshold */
@@ -2676,47 +3313,110 @@ export interface components {
2676
3313
  * @description Builder-attributed fees in USD
2677
3314
  */
2678
3315
  builder_fees?: number | null;
2679
- /** Format: int64 */
3316
+ /**
3317
+ * Format: int64
3318
+ * @description Transaction count.
3319
+ */
2680
3320
  txns?: number | null;
2681
- /** Format: int64 */
3321
+ /**
3322
+ * Format: int64
3323
+ * @description Buy count.
3324
+ */
2682
3325
  buys?: number | null;
2683
- /** Format: int64 */
3326
+ /**
3327
+ * Format: int64
3328
+ * @description Sell count.
3329
+ */
2684
3330
  sells?: number | null;
2685
- /** Format: int64 */
3331
+ /**
3332
+ * Format: int64
3333
+ * @description Builder-attributed transaction count.
3334
+ */
2686
3335
  builder_txns?: number | null;
2687
- /** Format: int64 */
3336
+ /**
3337
+ * Format: int64
3338
+ * @description Builder-attributed buy count.
3339
+ */
2688
3340
  builder_buys?: number | null;
2689
- /** Format: int64 */
3341
+ /**
3342
+ * Format: int64
3343
+ * @description Builder-attributed sell count.
3344
+ */
2690
3345
  builder_sells?: number | null;
2691
- /** Format: int64 */
3346
+ /**
3347
+ * Format: int64
3348
+ * @description Unique traders.
3349
+ */
2692
3350
  unique_traders?: number | null;
2693
- /** Format: int64 */
3351
+ /**
3352
+ * Format: int64
3353
+ * @description Unique makers.
3354
+ */
2694
3355
  unique_makers?: number | null;
2695
- /** Format: int64 */
3356
+ /**
3357
+ * Format: int64
3358
+ * @description Unique takers.
3359
+ */
2696
3360
  unique_takers?: number | null;
2697
- /** Format: int64 */
3361
+ /**
3362
+ * Format: int64
3363
+ * @description Unique builder traders.
3364
+ */
2698
3365
  unique_builder_traders?: number | null;
2699
- /** Format: double */
3366
+ /**
3367
+ * Format: double
3368
+ * @description Opening price.
3369
+ */
2700
3370
  price_open?: number | null;
2701
- /** Format: double */
3371
+ /**
3372
+ * Format: double
3373
+ * @description Closing price.
3374
+ */
2702
3375
  price_close?: number | null;
2703
- /** Format: double */
3376
+ /**
3377
+ * Format: double
3378
+ * @description Highest price.
3379
+ */
2704
3380
  price_high?: number | null;
2705
- /** Format: double */
3381
+ /**
3382
+ * Format: double
3383
+ * @description Lowest price.
3384
+ */
2706
3385
  price_low?: number | null;
2707
- /** Format: double */
3386
+ /**
3387
+ * Format: double
3388
+ * @description Opening implied probability.
3389
+ */
2708
3390
  probability_open?: number | null;
2709
- /** Format: double */
3391
+ /**
3392
+ * Format: double
3393
+ * @description Closing implied probability.
3394
+ */
2710
3395
  probability_close?: number | null;
2711
- /** Format: double */
3396
+ /**
3397
+ * Format: double
3398
+ * @description Highest implied probability.
3399
+ */
2712
3400
  probability_high?: number | null;
2713
- /** Format: double */
3401
+ /**
3402
+ * Format: double
3403
+ * @description Lowest implied probability.
3404
+ */
2714
3405
  probability_low?: number | null;
2715
- /** Format: double */
3406
+ /**
3407
+ * Format: double
3408
+ * @description Average shares per trade.
3409
+ */
2716
3410
  avg_trade_shares?: number | null;
2717
- /** Format: double */
3411
+ /**
3412
+ * Format: double
3413
+ * @description Average shares per buy.
3414
+ */
2718
3415
  avg_buy_shares?: number | null;
2719
- /** Format: double */
3416
+ /**
3417
+ * Format: double
3418
+ * @description Average shares per sell.
3419
+ */
2720
3420
  avg_sell_shares?: number | null;
2721
3421
  };
2722
3422
  PositionResolvedPayload: {
@@ -2878,11 +3578,18 @@ export interface components {
2878
3578
  };
2879
3579
  /** @description Position volume milestone webhook payload */
2880
3580
  PositionVolumeMilestonePayload: {
3581
+ /** @description Market condition ID. */
2881
3582
  condition_id?: string | null;
3583
+ /** @description Outcome token ID. */
2882
3584
  position_id: string;
3585
+ /** @description Outcome name. */
2883
3586
  outcome?: string | null;
2884
- /** Format: int32 */
3587
+ /**
3588
+ * Format: int32
3589
+ * @description Outcome index.
3590
+ */
2885
3591
  outcome_index?: number | null;
3592
+ /** @description Metric timeframe. */
2886
3593
  timeframe: string;
2887
3594
  /**
2888
3595
  * Format: double
@@ -2953,15 +3660,26 @@ export interface components {
2953
3660
  };
2954
3661
  /** @description Position volume spike webhook payload */
2955
3662
  PositionVolumeSpikePayload: {
3663
+ /** @description Outcome token ID. */
2956
3664
  position_id: string;
3665
+ /** @description Market condition ID. */
2957
3666
  condition_id: string;
3667
+ /** @description Market question. */
2958
3668
  question?: string | null;
3669
+ /** @description Market slug. */
2959
3670
  market_slug?: string | null;
3671
+ /** @description Event slug. */
2960
3672
  event_slug?: string | null;
3673
+ /** @description Image URL. */
2961
3674
  image_url?: string | null;
3675
+ /** @description Outcome name. */
2962
3676
  outcome?: string | null;
2963
- /** Format: int32 */
3677
+ /**
3678
+ * Format: int32
3679
+ * @description Outcome index.
3680
+ */
2964
3681
  outcome_index?: number | null;
3682
+ /** @description Metric timeframe. */
2965
3683
  timeframe: string;
2966
3684
  /**
2967
3685
  * Format: double
@@ -3049,14 +3767,24 @@ export interface components {
3049
3767
  };
3050
3768
  /** @description Position price spike webhook payload */
3051
3769
  PriceSpikePayload: {
3770
+ /** @description Outcome token ID. */
3052
3771
  position_id: string;
3772
+ /** @description Market condition ID. */
3053
3773
  condition_id?: string | null;
3774
+ /** @description Market question. */
3054
3775
  question?: string | null;
3776
+ /** @description Market slug. */
3055
3777
  market_slug?: string | null;
3778
+ /** @description Event slug. */
3056
3779
  event_slug?: string | null;
3780
+ /** @description Image URL. */
3057
3781
  image_url?: string | null;
3782
+ /** @description Outcome name. */
3058
3783
  outcome?: string | null;
3059
- /** Format: int32 */
3784
+ /**
3785
+ * Format: int32
3786
+ * @description Outcome index.
3787
+ */
3060
3788
  outcome_index?: number | null;
3061
3789
  /**
3062
3790
  * Format: double
@@ -3244,14 +3972,24 @@ export interface components {
3244
3972
  };
3245
3973
  /** @description Position probability spike webhook payload */
3246
3974
  ProbabilitySpikePayload: {
3975
+ /** @description Outcome token ID. */
3247
3976
  position_id: string;
3977
+ /** @description Market condition ID. */
3248
3978
  condition_id?: string | null;
3979
+ /** @description Market question. */
3249
3980
  question?: string | null;
3981
+ /** @description Market slug. */
3250
3982
  market_slug?: string | null;
3983
+ /** @description Event slug. */
3251
3984
  event_slug?: string | null;
3985
+ /** @description Image URL. */
3252
3986
  image_url?: string | null;
3987
+ /** @description Outcome name. */
3253
3988
  outcome?: string | null;
3254
- /** Format: int32 */
3989
+ /**
3990
+ * Format: int32
3991
+ * @description Outcome index.
3992
+ */
3255
3993
  outcome_index?: number | null;
3256
3994
  /**
3257
3995
  * Format: double
@@ -3576,13 +4314,25 @@ export interface components {
3576
4314
  * @description Only fire when aggregated tag volume >= this value (USD).
3577
4315
  */
3578
4316
  min_volume_usd?: number | null;
3579
- /** Format: double */
4317
+ /**
4318
+ * Format: double
4319
+ * @description Maximum volume USD.
4320
+ */
3580
4321
  max_volume_usd?: number | null;
3581
- /** Format: int64 */
4322
+ /**
4323
+ * Format: int64
4324
+ * @description Minimum transactions.
4325
+ */
3582
4326
  min_txns?: number | null;
3583
- /** Format: int64 */
4327
+ /**
4328
+ * Format: int64
4329
+ * @description Minimum unique traders.
4330
+ */
3584
4331
  min_unique_traders?: number | null;
3585
- /** Format: double */
4332
+ /**
4333
+ * Format: double
4334
+ * @description Minimum fees.
4335
+ */
3586
4336
  min_fees?: number | null;
3587
4337
  };
3588
4338
  /** @description Payload delivered when a tag's aggregated volume or transaction metrics cross a configured threshold */
@@ -4025,7 +4775,9 @@ export interface components {
4025
4775
  };
4026
4776
  /** @description Volume milestone webhook payload */
4027
4777
  VolumeMilestonePayload: {
4778
+ /** @description Market condition ID. */
4028
4779
  condition_id: string;
4780
+ /** @description Metric timeframe. */
4029
4781
  timeframe: string;
4030
4782
  /**
4031
4783
  * Format: double
@@ -4419,6 +5171,7 @@ export interface components {
4419
5171
  /**
4420
5172
  * @description CLOB V2 builder code (lower-cased `0x...` bytes32 hex). Absent on V1
4421
5173
  * trades; may be `0x0000…` for V2 trades placed without a builder code.
5174
+ * CLOB builder code.
4422
5175
  */
4423
5176
  builder_code?: string | null;
4424
5177
  /**
@@ -6054,6 +6807,135 @@ export interface operations {
6054
6807
  };
6055
6808
  };
6056
6809
  };
6810
+ "position-liquidity": {
6811
+ parameters: {
6812
+ query?: never;
6813
+ header: {
6814
+ /** @description UUID of the webhook subscription that fired */
6815
+ "X-Webhook-ID": string;
6816
+ /** @description UUID of this specific delivery attempt (matches envelope `id` field) */
6817
+ "X-Delivery-ID": string;
6818
+ /** @description Event name string (e.g. `trader_first_trade`) */
6819
+ "X-Event-Type": string;
6820
+ /** @description Delivery attempt number (1 = first attempt) */
6821
+ "X-Attempt": number;
6822
+ /** @description HMAC-SHA256 of the raw request body: `sha256=<hex>`. Present only when the webhook has a secret configured. Verify with: HMAC-SHA256(secret, raw_body_bytes) == hex_part. */
6823
+ "X-Webhook-Signature"?: string;
6824
+ };
6825
+ path?: never;
6826
+ cookie?: never;
6827
+ };
6828
+ /** @description Webhook delivery envelope. The `data` field contains the event-specific payload. */
6829
+ requestBody: {
6830
+ content: {
6831
+ "application/json": components["schemas"]["WebhookDeliveryEnvelope"] & {
6832
+ data?: components["schemas"]["PositionLiquidityPayload"];
6833
+ };
6834
+ };
6835
+ };
6836
+ responses: {
6837
+ /** @description Webhook delivery acknowledged */
6838
+ 200: {
6839
+ headers: {
6840
+ [name: string]: unknown;
6841
+ };
6842
+ content?: never;
6843
+ };
6844
+ /** @description Server error (will retry) */
6845
+ 500: {
6846
+ headers: {
6847
+ [name: string]: unknown;
6848
+ };
6849
+ content?: never;
6850
+ };
6851
+ };
6852
+ };
6853
+ "market-liquidity": {
6854
+ parameters: {
6855
+ query?: never;
6856
+ header: {
6857
+ /** @description UUID of the webhook subscription that fired */
6858
+ "X-Webhook-ID": string;
6859
+ /** @description UUID of this specific delivery attempt (matches envelope `id` field) */
6860
+ "X-Delivery-ID": string;
6861
+ /** @description Event name string (e.g. `trader_first_trade`) */
6862
+ "X-Event-Type": string;
6863
+ /** @description Delivery attempt number (1 = first attempt) */
6864
+ "X-Attempt": number;
6865
+ /** @description HMAC-SHA256 of the raw request body: `sha256=<hex>`. Present only when the webhook has a secret configured. Verify with: HMAC-SHA256(secret, raw_body_bytes) == hex_part. */
6866
+ "X-Webhook-Signature"?: string;
6867
+ };
6868
+ path?: never;
6869
+ cookie?: never;
6870
+ };
6871
+ /** @description Webhook delivery envelope. The `data` field contains the event-specific payload. */
6872
+ requestBody: {
6873
+ content: {
6874
+ "application/json": components["schemas"]["WebhookDeliveryEnvelope"] & {
6875
+ data?: components["schemas"]["MarketLiquidityPayload"];
6876
+ };
6877
+ };
6878
+ };
6879
+ responses: {
6880
+ /** @description Webhook delivery acknowledged */
6881
+ 200: {
6882
+ headers: {
6883
+ [name: string]: unknown;
6884
+ };
6885
+ content?: never;
6886
+ };
6887
+ /** @description Server error (will retry) */
6888
+ 500: {
6889
+ headers: {
6890
+ [name: string]: unknown;
6891
+ };
6892
+ content?: never;
6893
+ };
6894
+ };
6895
+ };
6896
+ "event-liquidity": {
6897
+ parameters: {
6898
+ query?: never;
6899
+ header: {
6900
+ /** @description UUID of the webhook subscription that fired */
6901
+ "X-Webhook-ID": string;
6902
+ /** @description UUID of this specific delivery attempt (matches envelope `id` field) */
6903
+ "X-Delivery-ID": string;
6904
+ /** @description Event name string (e.g. `trader_first_trade`) */
6905
+ "X-Event-Type": string;
6906
+ /** @description Delivery attempt number (1 = first attempt) */
6907
+ "X-Attempt": number;
6908
+ /** @description HMAC-SHA256 of the raw request body: `sha256=<hex>`. Present only when the webhook has a secret configured. Verify with: HMAC-SHA256(secret, raw_body_bytes) == hex_part. */
6909
+ "X-Webhook-Signature"?: string;
6910
+ };
6911
+ path?: never;
6912
+ cookie?: never;
6913
+ };
6914
+ /** @description Webhook delivery envelope. The `data` field contains the event-specific payload. */
6915
+ requestBody: {
6916
+ content: {
6917
+ "application/json": components["schemas"]["WebhookDeliveryEnvelope"] & {
6918
+ data?: components["schemas"]["EventLiquidityPayload"];
6919
+ };
6920
+ };
6921
+ };
6922
+ responses: {
6923
+ /** @description Webhook delivery acknowledged */
6924
+ 200: {
6925
+ headers: {
6926
+ [name: string]: unknown;
6927
+ };
6928
+ content?: never;
6929
+ };
6930
+ /** @description Server error (will retry) */
6931
+ 500: {
6932
+ headers: {
6933
+ [name: string]: unknown;
6934
+ };
6935
+ content?: never;
6936
+ };
6937
+ };
6938
+ };
6057
6939
  "market-volume-milestone": {
6058
6940
  parameters: {
6059
6941
  query?: never;