@structbuild/sdk 0.6.0 → 0.6.2

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.
@@ -5227,7 +5227,7 @@ export interface components {
5227
5227
  * closed those values are no longer meaningful.
5228
5228
  * @enum {string}
5229
5229
  */
5230
- PositionClosedPnlSortBy: "realized_pnl_usd" | "total_buy_usd" | "total_sell_usd" | "redemption_usd" | "total_buys" | "total_sells" | "total_shares_bought" | "total_shares_sold" | "avg_entry_price" | "avg_exit_price" | "avg_price" | "total_fees" | "first_trade_at" | "last_trade_at" | "realized_pnl_pct" | "total_pnl_pct" | "title" | "merge_count" | "split_count" | "end_date" | "is_neg_risk";
5230
+ PositionClosedPnlSortBy: "realized_pnl_usd" | "total_pnl_usd" | "unrealized_pnl_usd" | "merge_usd" | "convert_collateral_usd" | "converted_count" | "converted_shares_gained" | "converted_shares_lost" | "last_traded_price" | "total_buy_usd" | "total_sell_usd" | "redemption_usd" | "total_buys" | "total_sells" | "total_shares_bought" | "total_shares_sold" | "avg_entry_price" | "avg_exit_price" | "avg_price" | "total_fees" | "first_trade_at" | "last_trade_at" | "realized_pnl_pct" | "total_pnl_pct" | "title" | "merge_count" | "split_count" | "end_date" | "is_neg_risk";
5231
5231
  /** @description Per-position detail for Split/Merge/Redemption trades. */
5232
5232
  PositionDetail: {
5233
5233
  /** @description Market condition ID for this ERC1155 position. */
@@ -5256,11 +5256,6 @@ export interface components {
5256
5256
  condition_id?: string | null;
5257
5257
  market_slug?: string | null;
5258
5258
  event_slug?: string | null;
5259
- /**
5260
- * @description Market category slug — mirror of `PositionRollup.category_id`
5261
- * resolved server-side. Enables `?category=<slug>` filtering on
5262
- * the positions endpoint.
5263
- */
5264
5259
  category?: string | null;
5265
5260
  title?: string | null;
5266
5261
  question?: string | null;
@@ -5307,7 +5302,11 @@ export interface components {
5307
5302
  */
5308
5303
  avg_price?: number | null;
5309
5304
  /** Format: double */
5310
- realized_pnl_usd?: number | null;
5305
+ realized_pnl_usd?: number;
5306
+ /** Format: double */
5307
+ total_pnl_usd?: number;
5308
+ /** Format: double */
5309
+ unrealized_pnl_usd?: number;
5311
5310
  /** Format: double */
5312
5311
  total_fees?: number | null;
5313
5312
  /** Format: int64 */
@@ -5427,7 +5426,11 @@ export interface components {
5427
5426
  */
5428
5427
  avg_price?: number | null;
5429
5428
  /** Format: double */
5430
- realized_pnl_usd?: number | null;
5429
+ realized_pnl_usd?: number;
5430
+ /** Format: double */
5431
+ total_pnl_usd?: number;
5432
+ /** Format: double */
5433
+ unrealized_pnl_usd?: number;
5431
5434
  /** Format: double */
5432
5435
  total_fees?: number | null;
5433
5436
  /** Format: int64 */
@@ -5551,7 +5554,7 @@ export interface components {
5551
5554
  * (`redeemable`, `mergeable`) are exclusive to open positions.
5552
5555
  * @enum {string}
5553
5556
  */
5554
- PositionOpenPnlSortBy: "realized_pnl_usd" | "total_buy_usd" | "total_sell_usd" | "total_buys" | "total_sells" | "total_shares_bought" | "total_shares_sold" | "avg_entry_price" | "avg_exit_price" | "avg_price" | "total_fees" | "first_trade_at" | "last_trade_at" | "current_value" | "realized_pnl_pct" | "total_pnl_pct" | "title" | "current_price" | "current_shares_balance" | "merge_count" | "split_count" | "end_date" | "is_neg_risk" | "redeemable" | "mergeable";
5557
+ PositionOpenPnlSortBy: "realized_pnl_usd" | "total_pnl_usd" | "unrealized_pnl_usd" | "merge_usd" | "convert_collateral_usd" | "converted_count" | "converted_shares_gained" | "converted_shares_lost" | "last_traded_price" | "total_buy_usd" | "total_sell_usd" | "total_buys" | "total_sells" | "total_shares_bought" | "total_shares_sold" | "avg_entry_price" | "avg_exit_price" | "avg_price" | "total_fees" | "first_trade_at" | "last_trade_at" | "current_value" | "realized_pnl_pct" | "total_pnl_pct" | "title" | "current_price" | "current_shares_balance" | "merge_count" | "split_count" | "end_date" | "is_neg_risk" | "redeemable" | "mergeable";
5555
5558
  /**
5556
5559
  * @description Union of every sort_by value accepted by the positions endpoint
5557
5560
  * across both `status=open` and `status=closed`. Note that some
@@ -5562,7 +5565,7 @@ export interface components {
5562
5565
  * `PositionClosedPnlSortBy` for the exact per-status whitelists.
5563
5566
  * @enum {string}
5564
5567
  */
5565
- PositionPnlSortBy: "realized_pnl_usd" | "total_buy_usd" | "total_sell_usd" | "redemption_usd" | "total_buys" | "total_sells" | "total_shares_bought" | "total_shares_sold" | "avg_entry_price" | "avg_exit_price" | "avg_price" | "total_fees" | "first_trade_at" | "last_trade_at" | "current_value" | "realized_pnl_pct" | "total_pnl_pct" | "current_price" | "current_shares_balance" | "merge_count" | "split_count" | "title" | "end_date" | "is_neg_risk" | "redeemable" | "mergeable";
5568
+ PositionPnlSortBy: "realized_pnl_usd" | "total_pnl_usd" | "unrealized_pnl_usd" | "merge_usd" | "convert_collateral_usd" | "converted_count" | "converted_shares_gained" | "converted_shares_lost" | "last_traded_price" | "total_buy_usd" | "total_sell_usd" | "redemption_usd" | "total_buys" | "total_sells" | "total_shares_bought" | "total_shares_sold" | "avg_entry_price" | "avg_exit_price" | "avg_price" | "total_fees" | "first_trade_at" | "last_trade_at" | "current_value" | "realized_pnl_pct" | "total_pnl_pct" | "current_price" | "current_shares_balance" | "merge_count" | "split_count" | "title" | "end_date" | "is_neg_risk" | "redeemable" | "mergeable";
5566
5569
  /** @enum {string} */
5567
5570
  PositionStatus: "open" | "closed";
5568
5571
  PositionVolumeChartResponse: {
@@ -9502,7 +9505,7 @@ export interface operations {
9502
9505
  won?: boolean;
9503
9506
  /** @description Case-insensitive substring match on the market title. Scoped to the chosen `status` — results never cross the open/closed boundary. */
9504
9507
  search?: string;
9505
- /** @description Sort field. Default: realized_pnl_usd. status=open accepts: realized_pnl_usd, total_buy_usd, total_sell_usd, total_buys, total_sells, total_shares_bought, total_shares_sold, avg_entry_price, avg_exit_price, avg_price, total_fees, first_trade_at, last_trade_at, current_value, realized_pnl_pct, title, current_price, current_shares_balance, merge_count, split_count, end_date, is_neg_risk, redeemable, mergeable. status=closed accepts: realized_pnl_usd, total_buy_usd, total_sell_usd, redemption_usd, total_buys, total_sells, total_shares_bought, total_shares_sold, avg_entry_price, avg_exit_price, avg_price, total_fees, first_trade_at, last_trade_at, realized_pnl_pct, title, merge_count, split_count, end_date, is_neg_risk. */
9508
+ /** @description Sort field. Default: total_pnl_usd. status=open accepts: realized_pnl_usd, total_pnl_usd, unrealized_pnl_usd, merge_usd, convert_collateral_usd, converted_count, converted_shares_gained, converted_shares_lost, last_traded_price, total_buy_usd, total_sell_usd, total_buys, total_sells, total_shares_bought, total_shares_sold, avg_entry_price, avg_exit_price, avg_price, total_fees, first_trade_at, last_trade_at, current_value, realized_pnl_pct, total_pnl_pct, title, current_price, current_shares_balance, merge_count, split_count, end_date, is_neg_risk, redeemable, mergeable. status=closed accepts: realized_pnl_usd, total_pnl_usd, unrealized_pnl_usd, merge_usd, convert_collateral_usd, converted_count, converted_shares_gained, converted_shares_lost, last_traded_price, total_buy_usd, total_sell_usd, redemption_usd, total_buys, total_sells, total_shares_bought, total_shares_sold, avg_entry_price, avg_exit_price, avg_price, total_fees, first_trade_at, last_trade_at, realized_pnl_pct, total_pnl_pct, title, merge_count, split_count, end_date, is_neg_risk. */
9506
9509
  sort_by?: components["schemas"]["PositionPnlSortBy"];
9507
9510
  /** @description Default: desc */
9508
9511
  sort_direction?: components["schemas"]["SortDirection"];