@structbuild/sdk 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1098,12 +1098,12 @@ export interface components {
1098
1098
  /** @enum {string} */
1099
1099
  EventSortBy: "volume" | "txns" | "unique_traders" | "title" | "creation_date" | "start_date" | "end_date" | "relevance";
1100
1100
  /** @enum {string} */
1101
- GlobalPnlSortBy: "pnl_usd" | "buys" | "sells" | "redemptions" | "merges" | "avg_hold_time" | "markets_traded" | "events_traded" | "markets_won" | "volume_usd" | "fees" | "best_trade" | "worst_trade";
1101
+ GlobalPnlSortBy: "realized_pnl_usd" | "buys" | "sells" | "redemptions" | "merges" | "avg_hold_time" | "markets_traded" | "events_traded" | "markets_won" | "volume_usd" | "fees" | "best_trade";
1102
1102
  /** @description Individual trader entry in the global PnL leaderboard */
1103
1103
  GlobalPnlTrader: {
1104
1104
  trader: components["schemas"]["TraderInfo"];
1105
1105
  /** Format: double */
1106
- pnl_usd?: number | null;
1106
+ realized_pnl_usd?: number | null;
1107
1107
  /** Format: int64 */
1108
1108
  events_traded?: number | null;
1109
1109
  /** Format: int64 */
@@ -1145,9 +1145,6 @@ export interface components {
1145
1145
  /** Format: double */
1146
1146
  best_trade_pnl_usd?: number | null;
1147
1147
  best_trade_condition_id?: string | null;
1148
- /** Format: double */
1149
- worst_trade_pnl_usd?: number | null;
1150
- worst_trade_condition_id?: string | null;
1151
1148
  /** Format: int64 */
1152
1149
  first_trade_at?: number | null;
1153
1150
  /** Format: int64 */
@@ -1828,6 +1825,7 @@ export interface components {
1828
1825
  question?: string | null;
1829
1826
  image_url?: string | null;
1830
1827
  slug?: string | null;
1828
+ event_slug?: string | null;
1831
1829
  /** Format: double */
1832
1830
  usd_amount: number;
1833
1831
  /** Format: double */
@@ -1936,7 +1934,7 @@ export interface components {
1936
1934
  /** @enum {string} */
1937
1935
  TradeSide: "0" | "1";
1938
1936
  /** @enum {string} */
1939
- TradeType: "0" | "1" | "2" | "4" | "6";
1937
+ TradeType: "0" | "1" | "2" | "3" | "4" | "5" | "6";
1940
1938
  /**
1941
1939
  * @description Trader profile info embedded in API responses
1942
1940
  *
@@ -2154,9 +2152,6 @@ export interface components {
2154
2152
  /** Format: double */
2155
2153
  best_trade_pnl_usd?: number | null;
2156
2154
  best_trade_condition_id?: string | null;
2157
- /** Format: double */
2158
- worst_trade_pnl_usd?: number | null;
2159
- worst_trade_condition_id?: string | null;
2160
2155
  /** Format: int64 */
2161
2156
  first_trade_at?: number | null;
2162
2157
  /** Format: int64 */
@@ -2726,6 +2721,8 @@ export interface operations {
2726
2721
  limit?: number;
2727
2722
  /** @description Cursor-based pagination key */
2728
2723
  pagination_key?: string;
2724
+ /** @description Only return markets that have CLOB rewards (default: false) */
2725
+ has_rewards?: boolean;
2729
2726
  /** @description Return truncated response optimized for AI consumers (default: false) */
2730
2727
  ai?: boolean;
2731
2728
  };
@@ -3103,8 +3100,8 @@ export interface operations {
3103
3100
  outcome?: string;
3104
3101
  /** @description Outcome index: 0 (Yes), 1 (No) */
3105
3102
  outcome_index?: components["schemas"]["OutcomeIndex"];
3106
- /** @description Trade type: 0 (OrderFilled), 1 (Redemption), 2 (Merge) */
3107
- trade_type?: components["schemas"]["TradeType"];
3103
+ /** @description Comma-separated trade types: OrderFilled, Redemption, Merge, Split, Cancelled, PositionsConverted, OrdersMatched */
3104
+ trade_types?: string;
3108
3105
  /** @description Min USD amount */
3109
3106
  min_usd_amount?: number;
3110
3107
  /** @description Max USD amount */
@@ -3702,7 +3699,7 @@ export interface operations {
3702
3699
  query?: {
3703
3700
  /** @description Timeframe: 1d, 7d, 30d, lifetime (default: lifetime) */
3704
3701
  timeframe?: components["schemas"]["PnlTimeframe"];
3705
- /** @description Sort: pnl_usd, buys, sells, redemptions, merges, avg_hold_time, markets_traded, events_traded, markets_won, volume_usd, fees, best_trade, worst_trade (default: pnl_usd) */
3702
+ /** @description Sort: realized_pnl_usd, buys, sells, redemptions, merges, avg_hold_time, markets_traded, events_traded, markets_won, volume_usd, fees, best_trade (default: realized_pnl_usd) */
3706
3703
  sort_by?: components["schemas"]["GlobalPnlSortBy"];
3707
3704
  /** @description Sort direction: asc, desc (default: desc) */
3708
3705
  sort_direction?: components["schemas"]["SortDirection"];
@@ -3913,6 +3910,8 @@ export interface operations {
3913
3910
  market_slug?: string;
3914
3911
  /** @description Filter by specific outcome token (position ID) */
3915
3912
  position_id?: string;
3913
+ /** @description Minimum shares balance to include (e.g. 1.0 to filter out dust positions) */
3914
+ min_shares?: number;
3916
3915
  };
3917
3916
  header?: never;
3918
3917
  path: {
@@ -4002,8 +4001,8 @@ export interface operations {
4002
4001
  outcome?: string;
4003
4002
  /** @description Outcome index: 0 (Yes), 1 (No) */
4004
4003
  outcome_index?: components["schemas"]["OutcomeIndex"];
4005
- /** @description Trade type: 0 (OrderFilled), 1 (Redemption), 2 (Merge) */
4006
- trade_type?: components["schemas"]["TradeType"];
4004
+ /** @description Comma-separated trade types: OrderFilled, Redemption, Merge, Split, Cancelled, PositionsConverted, OrdersMatched */
4005
+ trade_types?: string;
4007
4006
  /** @description Min USD amount */
4008
4007
  min_usd_amount?: number;
4009
4008
  /** @description Max USD amount */
@@ -924,10 +924,6 @@ export interface components {
924
924
  best_trade_pnl_usd?: number | null;
925
925
  /** @description Condition ID of the best trade */
926
926
  best_trade_condition_id?: string | null;
927
- /** @description Worst single-trade PnL in USD */
928
- worst_trade_pnl_usd?: number | null;
929
- /** @description Condition ID of the worst trade */
930
- worst_trade_condition_id?: string | null;
931
927
  /**
932
928
  * Format: int64
933
929
  * @description Timestamp of the first trade (Unix seconds)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@structbuild/sdk",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",