@structbuild/sdk 0.3.10-staging.9 → 0.4.1

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.
@@ -11,7 +11,7 @@ export interface paths {
11
11
  cookie?: never;
12
12
  };
13
13
  /**
14
- * Global analytics % change
14
+ * Global analytics pct change
15
15
  * @description Returns % change for each metric over the requested lookback window. `null` fields mean the window predates the available data.
16
16
  */
17
17
  get: operations["get_global_analytics_changes"];
@@ -231,7 +231,7 @@ export interface paths {
231
231
  cookie?: never;
232
232
  };
233
233
  /**
234
- * Event analytics % change
234
+ * Event analytics pct change
235
235
  * @description Per-metric % change over the requested lookback window for a specific event.
236
236
  */
237
237
  get: operations["get_event_analytics_changes"];
@@ -711,7 +711,7 @@ export interface paths {
711
711
  cookie?: never;
712
712
  };
713
713
  /**
714
- * Market analytics % change
714
+ * Market analytics pct change
715
715
  * @description Per-metric % change over the requested lookback window for a specific market.
716
716
  */
717
717
  get: operations["get_market_analytics_changes"];
@@ -971,7 +971,7 @@ export interface paths {
971
971
  cookie?: never;
972
972
  };
973
973
  /**
974
- * Tag analytics % change
974
+ * Tag analytics pct change
975
975
  * @description Per-metric % change over the requested lookback window for a specific tag.
976
976
  */
977
977
  get: operations["get_tag_analytics_changes"];
@@ -1271,7 +1271,7 @@ export interface paths {
1271
1271
  cookie?: never;
1272
1272
  };
1273
1273
  /**
1274
- * Trader analytics % change
1274
+ * Trader analytics pct change
1275
1275
  * @description Per-metric % change over the requested lookback window for a specific trader address.
1276
1276
  */
1277
1277
  get: operations["get_trader_analytics_changes"];
@@ -3399,6 +3399,108 @@ export interface components {
3399
3399
  token_id: string;
3400
3400
  outcome: string;
3401
3401
  };
3402
+ TopTraderEventEntry: {
3403
+ trader: components["schemas"]["TraderInfo"];
3404
+ /** Format: double */
3405
+ realized_pnl_usd?: number | null;
3406
+ /** Format: double */
3407
+ realized_pnl_pct?: number | null;
3408
+ /** Format: double */
3409
+ total_volume_usd?: number | null;
3410
+ /** Format: double */
3411
+ buy_usd?: number | null;
3412
+ /** Format: double */
3413
+ sell_usd?: number | null;
3414
+ /** Format: double */
3415
+ redemption_usd?: number | null;
3416
+ /** Format: double */
3417
+ merge_usd?: number | null;
3418
+ /** Format: double */
3419
+ total_fees?: number | null;
3420
+ /** Format: int64 */
3421
+ total_buys?: number | null;
3422
+ /** Format: int64 */
3423
+ total_sells?: number | null;
3424
+ /** Format: int64 */
3425
+ total_redemptions?: number | null;
3426
+ /** Format: int64 */
3427
+ total_merges?: number | null;
3428
+ /** Format: int64 */
3429
+ markets_traded?: number | null;
3430
+ /** Format: int64 */
3431
+ outcomes_traded?: number | null;
3432
+ /** Format: int64 */
3433
+ winning_markets?: number | null;
3434
+ /** Format: int64 */
3435
+ losing_markets?: number | null;
3436
+ /** Format: int64 */
3437
+ first_trade_at?: number | null;
3438
+ /** Format: int64 */
3439
+ last_trade_at?: number | null;
3440
+ };
3441
+ TopTraderMarketEntry: {
3442
+ trader: components["schemas"]["TraderInfo"];
3443
+ /** Format: double */
3444
+ realized_pnl_usd?: number | null;
3445
+ /** Format: double */
3446
+ realized_pnl_pct?: number | null;
3447
+ /** Format: double */
3448
+ buy_usd?: number | null;
3449
+ /** Format: double */
3450
+ sell_usd?: number | null;
3451
+ /** Format: double */
3452
+ redemption_usd?: number | null;
3453
+ /** Format: double */
3454
+ merge_usd?: number | null;
3455
+ /** Format: double */
3456
+ total_fees?: number | null;
3457
+ /** Format: int64 */
3458
+ total_buys?: number | null;
3459
+ /** Format: int64 */
3460
+ total_sells?: number | null;
3461
+ /** Format: int64 */
3462
+ total_redemptions?: number | null;
3463
+ /** Format: int64 */
3464
+ total_merges?: number | null;
3465
+ /** Format: int64 */
3466
+ outcomes_traded?: number | null;
3467
+ /** Format: int64 */
3468
+ winning_outcomes?: number | null;
3469
+ /** Format: int64 */
3470
+ first_trade_at?: number | null;
3471
+ /** Format: int64 */
3472
+ last_trade_at?: number | null;
3473
+ };
3474
+ TopTraderPositionEntry: {
3475
+ trader: components["schemas"]["TraderInfo"];
3476
+ /** Format: double */
3477
+ realized_pnl_usd?: number | null;
3478
+ /** Format: double */
3479
+ realized_pnl_pct?: number | null;
3480
+ /** Format: double */
3481
+ shares?: number | null;
3482
+ /** Format: double */
3483
+ buy_usd?: number | null;
3484
+ /** Format: double */
3485
+ sell_usd?: number | null;
3486
+ /** Format: double */
3487
+ redemption_usd?: number | null;
3488
+ /** Format: double */
3489
+ total_fees?: number | null;
3490
+ /** Format: double */
3491
+ avg_entry_price?: number | null;
3492
+ /** Format: double */
3493
+ avg_exit_price?: number | null;
3494
+ /** Format: int64 */
3495
+ total_buys?: number | null;
3496
+ /** Format: int64 */
3497
+ total_sells?: number | null;
3498
+ won?: boolean | null;
3499
+ /** Format: int64 */
3500
+ first_trade_at?: number | null;
3501
+ /** Format: int64 */
3502
+ last_trade_at?: number | null;
3503
+ };
3402
3504
  /**
3403
3505
  * @description Tagged enum for all trade types — serializes with `"trade_type": "..."` discriminator
3404
3506
  * and only includes fields relevant to each type.
@@ -4223,7 +4325,9 @@ export interface operations {
4223
4325
  headers: {
4224
4326
  [name: string]: unknown;
4225
4327
  };
4226
- content?: never;
4328
+ content: {
4329
+ "application/json": components["schemas"]["TopTraderEventEntry"][];
4330
+ };
4227
4331
  };
4228
4332
  };
4229
4333
  };
@@ -4880,7 +4984,9 @@ export interface operations {
4880
4984
  headers: {
4881
4985
  [name: string]: unknown;
4882
4986
  };
4883
- content?: never;
4987
+ content: {
4988
+ "application/json": components["schemas"]["TopTraderPositionEntry"][];
4989
+ };
4884
4990
  };
4885
4991
  };
4886
4992
  };
@@ -5079,7 +5185,9 @@ export interface operations {
5079
5185
  headers: {
5080
5186
  [name: string]: unknown;
5081
5187
  };
5082
- content?: never;
5188
+ content: {
5189
+ "application/json": components["schemas"]["TopTraderMarketEntry"][];
5190
+ };
5083
5191
  };
5084
5192
  };
5085
5193
  };
@@ -5120,8 +5228,6 @@ export interface operations {
5120
5228
  from?: number;
5121
5229
  /** @description End timestamp (ms) */
5122
5230
  to?: number;
5123
- /** @description Return all-time trades, not just last 30 days (default: false) */
5124
- all?: boolean;
5125
5231
  /** @description Results per page (default: 10, max: 250) */
5126
5232
  limit?: number;
5127
5233
  /** @description Pagination offset (number of results to skip). Takes precedence over pagination_key. */
@@ -4063,8 +4063,9 @@ export interface components {
4063
4063
  * "log_index": 0,
4064
4064
  * "block_index": 0,
4065
4065
  * "oracle_contract": "0x0000000000000000000000000000000000000000",
4066
- * "condition_id": "",
4067
- * "settled_price": 1000000000000000000
4066
+ * "condition_id": "0x0000000000000000000000000000000000000000000000000000000000000000",
4067
+ * "settled_price": 1000000000000000000,
4068
+ * "proposed_outcome": "Yes"
4068
4069
  * }
4069
4070
  * }
4070
4071
  */