@structbuild/sdk 0.1.21 → 0.1.22

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.
@@ -152,7 +152,7 @@ export interface paths {
152
152
  };
153
153
  /**
154
154
  * Get market holders
155
- * @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. Each holder includes a nested `pnl` object with position-level PnL sourced from the position PnL table.
155
+ * @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. Each holder includes a nested `pnl` object with position-level PnL.
156
156
  */
157
157
  get: operations["get_market_holders"];
158
158
  put?: never;
@@ -192,7 +192,7 @@ export interface paths {
192
192
  };
193
193
  /**
194
194
  * Get position holders
195
- * @description Retrieve holders of a specific position (ERC1155 token), sorted by shares held. Each holder includes a nested `pnl` object with position-level PnL (realized_pnl_usd, buy_usd, sell_usd, avg_entry_price, avg_exit_price, total_buys, total_sells, total_fees, first/last_trade_at) sourced from the position PnL table — no extra joins required at query time. Uses cursor-based pagination for efficient traversal.
195
+ * @description Retrieve holders of a specific position (ERC1155 token), sorted by shares held. Each holder includes a nested `pnl` object with position-level PnL (realized_pnl_usd, buy_usd, sell_usd, avg_entry_price, avg_exit_price, total_buys, total_sells, total_fees, first/last_trade_at). Uses cursor-based pagination for efficient traversal.
196
196
  */
197
197
  get: operations["get_position_holders"];
198
198
  put?: never;
@@ -496,7 +496,7 @@ export interface paths {
496
496
  *
497
497
  * All three categories are queried in parallel. Each has independent cursor-based pagination via its own `*_pagination_key`.
498
498
  *
499
- * **Trader search** matches by wallet address (exact, `0x...` 42 chars) or by display name / pseudonym (ILIKE).
499
+ * **Trader search** matches by wallet address (exact, `0x...` 42 chars) or by display name / pseudonym (case-insensitive partial match).
500
500
  *
501
501
  * **sort_by / timeframe** apply to events and markets. Some sort fields only apply to one category (e.g. `liquidity` and `holders` are markets-only; `title`, `creation_date`, `start_date`, `end_date` are events-only) — unrecognised fields fall back to `volume`.
502
502
  */
@@ -2266,7 +2266,7 @@ export interface operations {
2266
2266
  };
2267
2267
  requestBody?: never;
2268
2268
  responses: {
2269
- /** @description Market holder count history with automatic view selection (1m/5m/15m/1h/6h buckets) */
2269
+ /** @description Market holder count history with automatic granularity (1m/5m/15m/1h/6h buckets) */
2270
2270
  200: {
2271
2271
  headers: {
2272
2272
  [name: string]: unknown;
@@ -2340,7 +2340,7 @@ export interface operations {
2340
2340
  };
2341
2341
  requestBody?: never;
2342
2342
  responses: {
2343
- /** @description Position holder count history with automatic view selection (1m/5m/15m/1h/6h buckets) */
2343
+ /** @description Position holder count history with automatic granularity (1m/5m/15m/1h/6h buckets) */
2344
2344
  200: {
2345
2345
  headers: {
2346
2346
  [name: string]: unknown;
@@ -2371,7 +2371,7 @@ export interface operations {
2371
2371
  market_slugs?: string;
2372
2372
  /** @description Filter by event slug(s) - comma-separated (max 50) */
2373
2373
  event_slugs?: string;
2374
- /** @description Filter by position ID(s) - comma-separated (max 50), resolved via market_outcomes table */
2374
+ /** @description Filter by position ID(s) - comma-separated (max 50) */
2375
2375
  position_ids?: string;
2376
2376
  /** @description Search in title (3-100 characters) */
2377
2377
  search?: string;