@structbuild/sdk 0.3.10-staging.1 → 0.3.10-staging.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.
@@ -3,7 +3,7 @@
3
3
  * Do not make direct changes to the file.
4
4
  */
5
5
  export interface paths {
6
- "/polymarket/analytics/candles": {
6
+ "/polymarket/analytics/changes": {
7
7
  parameters: {
8
8
  query?: never;
9
9
  header?: never;
@@ -11,10 +11,10 @@ export interface paths {
11
11
  cookie?: never;
12
12
  };
13
13
  /**
14
- * Global analytics candles (per-bucket deltas)
15
- * @description Returns per-bucket deltas (volume, traders, fees etc. that happened *during* each bucket). Use for bar-chart visualisations of activity over time.
14
+ * Global analytics % change
15
+ * @description Returns % change for each metric over the requested lookback window. `null` fields mean the window predates the available data.
16
16
  */
17
- get: operations["get_global_analytics_candles"];
17
+ get: operations["get_global_analytics_changes"];
18
18
  put?: never;
19
19
  post?: never;
20
20
  delete?: never;
@@ -23,7 +23,7 @@ export interface paths {
23
23
  patch?: never;
24
24
  trace?: never;
25
25
  };
26
- "/polymarket/analytics/changes": {
26
+ "/polymarket/analytics/counts": {
27
27
  parameters: {
28
28
  query?: never;
29
29
  header?: never;
@@ -31,10 +31,10 @@ export interface paths {
31
31
  cookie?: never;
32
32
  };
33
33
  /**
34
- * Global analytics % change
35
- * @description Returns % change for each metric over the requested lookback window. `null` fields mean the window predates the available data.
34
+ * Global analytics snapshot
35
+ * @description Returns the latest cumulative analytics metrics across all of Polymarket: volume, traders, txn counts, fees, yes/no splits, and buy distribution.
36
36
  */
37
- get: operations["get_global_analytics_changes"];
37
+ get: operations["get_analytics_counts"];
38
38
  put?: never;
39
39
  post?: never;
40
40
  delete?: never;
@@ -43,7 +43,7 @@ export interface paths {
43
43
  patch?: never;
44
44
  trace?: never;
45
45
  };
46
- "/polymarket/analytics/counts": {
46
+ "/polymarket/analytics/deltas": {
47
47
  parameters: {
48
48
  query?: never;
49
49
  header?: never;
@@ -51,10 +51,10 @@ export interface paths {
51
51
  cookie?: never;
52
52
  };
53
53
  /**
54
- * Global analytics snapshot
55
- * @description Returns the latest cumulative analytics metrics across all of Polymarket: volume, traders, txn counts, fees, yes/no splits, and buy distribution.
54
+ * Global analytics candles (per-bucket deltas)
55
+ * @description Returns per-bucket deltas (volume, traders, fees etc. that happened *during* each bucket). Use for bar-chart visualisations of activity over time.
56
56
  */
57
- get: operations["get_analytics_counts"];
57
+ get: operations["get_global_analytics_deltas"];
58
58
  put?: never;
59
59
  post?: never;
60
60
  delete?: never;
@@ -203,7 +203,7 @@ export interface paths {
203
203
  patch?: never;
204
204
  trace?: never;
205
205
  };
206
- "/polymarket/events/{event_slug}/analytics/candles": {
206
+ "/polymarket/events/{event_slug}/analytics/changes": {
207
207
  parameters: {
208
208
  query?: never;
209
209
  header?: never;
@@ -211,10 +211,10 @@ export interface paths {
211
211
  cookie?: never;
212
212
  };
213
213
  /**
214
- * Event analytics candles (per-bucket deltas)
215
- * @description Returns per-bucket deltas for a specific event (what happened during each bucket).
214
+ * Event analytics % change
215
+ * @description Per-metric % change over the requested lookback window for a specific event.
216
216
  */
217
- get: operations["get_event_analytics_candles"];
217
+ get: operations["get_event_analytics_changes"];
218
218
  put?: never;
219
219
  post?: never;
220
220
  delete?: never;
@@ -223,7 +223,7 @@ export interface paths {
223
223
  patch?: never;
224
224
  trace?: never;
225
225
  };
226
- "/polymarket/events/{event_slug}/analytics/changes": {
226
+ "/polymarket/events/{event_slug}/analytics/deltas": {
227
227
  parameters: {
228
228
  query?: never;
229
229
  header?: never;
@@ -231,10 +231,10 @@ export interface paths {
231
231
  cookie?: never;
232
232
  };
233
233
  /**
234
- * Event analytics % change
235
- * @description Per-metric % change over the requested lookback window for a specific event.
234
+ * Event analytics candles (per-bucket deltas)
235
+ * @description Returns per-bucket deltas for a specific event (what happened during each bucket).
236
236
  */
237
- get: operations["get_event_analytics_changes"];
237
+ get: operations["get_event_analytics_deltas"];
238
238
  put?: never;
239
239
  post?: never;
240
240
  delete?: never;
@@ -623,7 +623,7 @@ export interface paths {
623
623
  patch?: never;
624
624
  trace?: never;
625
625
  };
626
- "/polymarket/market/{condition_id}/analytics/candles": {
626
+ "/polymarket/market/{condition_id}/analytics/changes": {
627
627
  parameters: {
628
628
  query?: never;
629
629
  header?: never;
@@ -631,10 +631,10 @@ export interface paths {
631
631
  cookie?: never;
632
632
  };
633
633
  /**
634
- * Market analytics candles (per-bucket deltas)
635
- * @description Returns per-bucket deltas for a specific market (what happened during each bucket).
634
+ * Market analytics % change
635
+ * @description Per-metric % change over the requested lookback window for a specific market.
636
636
  */
637
- get: operations["get_market_analytics_candles"];
637
+ get: operations["get_market_analytics_changes"];
638
638
  put?: never;
639
639
  post?: never;
640
640
  delete?: never;
@@ -643,7 +643,7 @@ export interface paths {
643
643
  patch?: never;
644
644
  trace?: never;
645
645
  };
646
- "/polymarket/market/{condition_id}/analytics/changes": {
646
+ "/polymarket/market/{condition_id}/analytics/deltas": {
647
647
  parameters: {
648
648
  query?: never;
649
649
  header?: never;
@@ -651,10 +651,10 @@ export interface paths {
651
651
  cookie?: never;
652
652
  };
653
653
  /**
654
- * Market analytics % change
655
- * @description Per-metric % change over the requested lookback window for a specific market.
654
+ * Market analytics candles (per-bucket deltas)
655
+ * @description Returns per-bucket deltas for a specific market (what happened during each bucket).
656
656
  */
657
- get: operations["get_market_analytics_changes"];
657
+ get: operations["get_market_analytics_deltas"];
658
658
  put?: never;
659
659
  post?: never;
660
660
  delete?: never;
@@ -883,7 +883,7 @@ export interface paths {
883
883
  patch?: never;
884
884
  trace?: never;
885
885
  };
886
- "/polymarket/tags/{tag}/analytics/candles": {
886
+ "/polymarket/tags/{tag}/analytics/changes": {
887
887
  parameters: {
888
888
  query?: never;
889
889
  header?: never;
@@ -891,10 +891,10 @@ export interface paths {
891
891
  cookie?: never;
892
892
  };
893
893
  /**
894
- * Tag analytics candles (per-bucket deltas)
895
- * @description Returns per-bucket deltas for a specific tag (what happened during each bucket).
894
+ * Tag analytics % change
895
+ * @description Per-metric % change over the requested lookback window for a specific tag.
896
896
  */
897
- get: operations["get_tag_analytics_candles"];
897
+ get: operations["get_tag_analytics_changes"];
898
898
  put?: never;
899
899
  post?: never;
900
900
  delete?: never;
@@ -903,7 +903,7 @@ export interface paths {
903
903
  patch?: never;
904
904
  trace?: never;
905
905
  };
906
- "/polymarket/tags/{tag}/analytics/changes": {
906
+ "/polymarket/tags/{tag}/analytics/deltas": {
907
907
  parameters: {
908
908
  query?: never;
909
909
  header?: never;
@@ -911,10 +911,10 @@ export interface paths {
911
911
  cookie?: never;
912
912
  };
913
913
  /**
914
- * Tag analytics % change
915
- * @description Per-metric % change over the requested lookback window for a specific tag.
914
+ * Tag analytics candles (per-bucket deltas)
915
+ * @description Returns per-bucket deltas for a specific tag (what happened during each bucket).
916
916
  */
917
- get: operations["get_tag_analytics_changes"];
917
+ get: operations["get_tag_analytics_deltas"];
918
918
  put?: never;
919
919
  post?: never;
920
920
  delete?: never;
@@ -1183,7 +1183,7 @@ export interface paths {
1183
1183
  patch?: never;
1184
1184
  trace?: never;
1185
1185
  };
1186
- "/polymarket/trader/{address}/analytics/candles": {
1186
+ "/polymarket/trader/{address}/analytics/changes": {
1187
1187
  parameters: {
1188
1188
  query?: never;
1189
1189
  header?: never;
@@ -1191,10 +1191,10 @@ export interface paths {
1191
1191
  cookie?: never;
1192
1192
  };
1193
1193
  /**
1194
- * Trader analytics candles (per-bucket deltas)
1195
- * @description Returns per-bucket deltas for a specific trader address (what happened during each bucket).
1194
+ * Trader analytics % change
1195
+ * @description Per-metric % change over the requested lookback window for a specific trader address.
1196
1196
  */
1197
- get: operations["get_trader_analytics_candles"];
1197
+ get: operations["get_trader_analytics_changes"];
1198
1198
  put?: never;
1199
1199
  post?: never;
1200
1200
  delete?: never;
@@ -1203,7 +1203,7 @@ export interface paths {
1203
1203
  patch?: never;
1204
1204
  trace?: never;
1205
1205
  };
1206
- "/polymarket/trader/{address}/analytics/changes": {
1206
+ "/polymarket/trader/{address}/analytics/deltas": {
1207
1207
  parameters: {
1208
1208
  query?: never;
1209
1209
  header?: never;
@@ -1211,10 +1211,10 @@ export interface paths {
1211
1211
  cookie?: never;
1212
1212
  };
1213
1213
  /**
1214
- * Trader analytics % change
1215
- * @description Per-metric % change over the requested lookback window for a specific trader address.
1214
+ * Trader analytics candles (per-bucket deltas)
1215
+ * @description Returns per-bucket deltas for a specific trader address (what happened during each bucket).
1216
1216
  */
1217
- get: operations["get_trader_analytics_changes"];
1217
+ get: operations["get_trader_analytics_deltas"];
1218
1218
  put?: never;
1219
1219
  post?: never;
1220
1220
  delete?: never;
@@ -1446,7 +1446,7 @@ export interface components {
1446
1446
  * @description Lookback window for `/analytics/changes` endpoints.
1447
1447
  * @enum {string}
1448
1448
  */
1449
- ChangeTimeframe: "1h" | "24h" | "7d" | "30d" | "1y";
1449
+ ChangeTimeframe: "1h" | "24h" | "7d" | "30d" | "1mo" | "1y";
1450
1450
  /** @enum {string} */
1451
1451
  ChartResolution: "1H" | "6H" | "1D" | "1W" | "1M" | "ALL";
1452
1452
  /** @description CLOB reward (public API format) */
@@ -3329,19 +3329,11 @@ export interface components {
3329
3329
  }
3330
3330
  export type $defs = Record<string, never>;
3331
3331
  export interface operations {
3332
- get_global_analytics_candles: {
3332
+ get_global_analytics_changes: {
3333
3333
  parameters: {
3334
- query?: {
3335
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3336
- resolution?: components["schemas"]["CandlestickResolution"];
3337
- /** @description Start timestamp (Unix seconds). Omit for all-time. */
3338
- from?: number;
3339
- /** @description End timestamp (Unix seconds) */
3340
- to?: number;
3341
- /** @description Max data points (default: 500, max: 2500) */
3342
- count_back?: number;
3343
- /** @description Cursor from previous response for next page */
3344
- pagination_key?: string;
3334
+ query: {
3335
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
3336
+ timeframe: components["schemas"]["ChangeTimeframe"];
3345
3337
  };
3346
3338
  header?: never;
3347
3339
  path?: never;
@@ -3349,56 +3341,64 @@ export interface operations {
3349
3341
  };
3350
3342
  requestBody?: never;
3351
3343
  responses: {
3352
- /** @description Delta time-bucketed analytics */
3344
+ /** @description Per-metric pct change */
3353
3345
  200: {
3354
3346
  headers: {
3355
3347
  [name: string]: unknown;
3356
3348
  };
3357
3349
  content: {
3358
- "application/json": components["schemas"]["TimeBucketRow"][];
3350
+ "application/json": components["schemas"]["MetricPctChange"];
3359
3351
  };
3360
3352
  };
3361
3353
  };
3362
3354
  };
3363
- get_global_analytics_changes: {
3355
+ get_analytics_counts: {
3364
3356
  parameters: {
3365
- query: {
3366
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
3367
- timeframe: components["schemas"]["ChangeTimeframe"];
3368
- };
3357
+ query?: never;
3369
3358
  header?: never;
3370
3359
  path?: never;
3371
3360
  cookie?: never;
3372
3361
  };
3373
3362
  requestBody?: never;
3374
3363
  responses: {
3375
- /** @description Per-metric pct change */
3364
+ /** @description Latest global metrics snapshot */
3376
3365
  200: {
3377
3366
  headers: {
3378
3367
  [name: string]: unknown;
3379
3368
  };
3380
3369
  content: {
3381
- "application/json": components["schemas"]["MetricPctChange"];
3370
+ "application/json": components["schemas"]["GlobalCountsResponse"];
3382
3371
  };
3383
3372
  };
3384
3373
  };
3385
3374
  };
3386
- get_analytics_counts: {
3375
+ get_global_analytics_deltas: {
3387
3376
  parameters: {
3388
- query?: never;
3377
+ query?: {
3378
+ /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3379
+ resolution?: components["schemas"]["CandlestickResolution"];
3380
+ /** @description Start timestamp (Unix seconds). Omit for all-time. */
3381
+ from?: number;
3382
+ /** @description End timestamp (Unix seconds) */
3383
+ to?: number;
3384
+ /** @description Max data points (default: 500, max: 2500) */
3385
+ count_back?: number;
3386
+ /** @description Cursor from previous response for next page */
3387
+ pagination_key?: string;
3388
+ };
3389
3389
  header?: never;
3390
3390
  path?: never;
3391
3391
  cookie?: never;
3392
3392
  };
3393
3393
  requestBody?: never;
3394
3394
  responses: {
3395
- /** @description Latest global metrics snapshot */
3395
+ /** @description Delta time-bucketed analytics */
3396
3396
  200: {
3397
3397
  headers: {
3398
3398
  [name: string]: unknown;
3399
3399
  };
3400
3400
  content: {
3401
- "application/json": components["schemas"]["GlobalCountsResponse"];
3401
+ "application/json": components["schemas"]["TimeBucketRow"][];
3402
3402
  };
3403
3403
  };
3404
3404
  };
@@ -3700,19 +3700,11 @@ export interface operations {
3700
3700
  };
3701
3701
  };
3702
3702
  };
3703
- get_event_analytics_candles: {
3703
+ get_event_analytics_changes: {
3704
3704
  parameters: {
3705
- query?: {
3706
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3707
- resolution?: components["schemas"]["CandlestickResolution"];
3708
- /** @description Start timestamp (Unix seconds) */
3709
- from?: number;
3710
- /** @description End timestamp (Unix seconds) */
3711
- to?: number;
3712
- /** @description Max data points (default: 500, max: 2500) */
3713
- count_back?: number;
3714
- /** @description Cursor from previous response */
3715
- pagination_key?: string;
3705
+ query: {
3706
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
3707
+ timeframe: components["schemas"]["ChangeTimeframe"];
3716
3708
  };
3717
3709
  header?: never;
3718
3710
  path: {
@@ -3723,22 +3715,30 @@ export interface operations {
3723
3715
  };
3724
3716
  requestBody?: never;
3725
3717
  responses: {
3726
- /** @description Delta time-bucketed event analytics */
3718
+ /** @description Per-metric pct change */
3727
3719
  200: {
3728
3720
  headers: {
3729
3721
  [name: string]: unknown;
3730
3722
  };
3731
3723
  content: {
3732
- "application/json": components["schemas"]["TimeBucketRow"][];
3724
+ "application/json": components["schemas"]["MetricPctChange"];
3733
3725
  };
3734
3726
  };
3735
3727
  };
3736
3728
  };
3737
- get_event_analytics_changes: {
3729
+ get_event_analytics_deltas: {
3738
3730
  parameters: {
3739
- query: {
3740
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
3741
- timeframe: components["schemas"]["ChangeTimeframe"];
3731
+ query?: {
3732
+ /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
3733
+ resolution?: components["schemas"]["CandlestickResolution"];
3734
+ /** @description Start timestamp (Unix seconds) */
3735
+ from?: number;
3736
+ /** @description End timestamp (Unix seconds) */
3737
+ to?: number;
3738
+ /** @description Max data points (default: 500, max: 2500) */
3739
+ count_back?: number;
3740
+ /** @description Cursor from previous response */
3741
+ pagination_key?: string;
3742
3742
  };
3743
3743
  header?: never;
3744
3744
  path: {
@@ -3749,13 +3749,13 @@ export interface operations {
3749
3749
  };
3750
3750
  requestBody?: never;
3751
3751
  responses: {
3752
- /** @description Per-metric pct change */
3752
+ /** @description Delta time-bucketed event analytics */
3753
3753
  200: {
3754
3754
  headers: {
3755
3755
  [name: string]: unknown;
3756
3756
  };
3757
3757
  content: {
3758
- "application/json": components["schemas"]["MetricPctChange"];
3758
+ "application/json": components["schemas"]["TimeBucketRow"][];
3759
3759
  };
3760
3760
  };
3761
3761
  };
@@ -4665,19 +4665,11 @@ export interface operations {
4665
4665
  };
4666
4666
  };
4667
4667
  };
4668
- get_market_analytics_candles: {
4668
+ get_market_analytics_changes: {
4669
4669
  parameters: {
4670
- query?: {
4671
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
4672
- resolution?: components["schemas"]["CandlestickResolution"];
4673
- /** @description Start timestamp (Unix seconds) */
4674
- from?: number;
4675
- /** @description End timestamp (Unix seconds) */
4676
- to?: number;
4677
- /** @description Max data points (default: 500, max: 2500) */
4678
- count_back?: number;
4679
- /** @description Cursor from previous response */
4680
- pagination_key?: string;
4670
+ query: {
4671
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
4672
+ timeframe: components["schemas"]["ChangeTimeframe"];
4681
4673
  };
4682
4674
  header?: never;
4683
4675
  path: {
@@ -4688,22 +4680,30 @@ export interface operations {
4688
4680
  };
4689
4681
  requestBody?: never;
4690
4682
  responses: {
4691
- /** @description Delta time-bucketed market analytics */
4683
+ /** @description Per-metric pct change */
4692
4684
  200: {
4693
4685
  headers: {
4694
4686
  [name: string]: unknown;
4695
4687
  };
4696
4688
  content: {
4697
- "application/json": components["schemas"]["TimeBucketRow"][];
4689
+ "application/json": components["schemas"]["MetricPctChange"];
4698
4690
  };
4699
4691
  };
4700
4692
  };
4701
4693
  };
4702
- get_market_analytics_changes: {
4694
+ get_market_analytics_deltas: {
4703
4695
  parameters: {
4704
- query: {
4705
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
4706
- timeframe: components["schemas"]["ChangeTimeframe"];
4696
+ query?: {
4697
+ /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
4698
+ resolution?: components["schemas"]["CandlestickResolution"];
4699
+ /** @description Start timestamp (Unix seconds) */
4700
+ from?: number;
4701
+ /** @description End timestamp (Unix seconds) */
4702
+ to?: number;
4703
+ /** @description Max data points (default: 500, max: 2500) */
4704
+ count_back?: number;
4705
+ /** @description Cursor from previous response */
4706
+ pagination_key?: string;
4707
4707
  };
4708
4708
  header?: never;
4709
4709
  path: {
@@ -4714,13 +4714,13 @@ export interface operations {
4714
4714
  };
4715
4715
  requestBody?: never;
4716
4716
  responses: {
4717
- /** @description Per-metric pct change */
4717
+ /** @description Delta time-bucketed market analytics */
4718
4718
  200: {
4719
4719
  headers: {
4720
4720
  [name: string]: unknown;
4721
4721
  };
4722
4722
  content: {
4723
- "application/json": components["schemas"]["MetricPctChange"];
4723
+ "application/json": components["schemas"]["TimeBucketRow"][];
4724
4724
  };
4725
4725
  };
4726
4726
  };
@@ -5234,19 +5234,11 @@ export interface operations {
5234
5234
  };
5235
5235
  };
5236
5236
  };
5237
- get_tag_analytics_candles: {
5237
+ get_tag_analytics_changes: {
5238
5238
  parameters: {
5239
- query?: {
5240
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5241
- resolution?: components["schemas"]["CandlestickResolution"];
5242
- /** @description Start timestamp (Unix seconds) */
5243
- from?: number;
5244
- /** @description End timestamp (Unix seconds) */
5245
- to?: number;
5246
- /** @description Max data points (default: 500, max: 2500) */
5247
- count_back?: number;
5248
- /** @description Cursor from previous response */
5249
- pagination_key?: string;
5239
+ query: {
5240
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
5241
+ timeframe: components["schemas"]["ChangeTimeframe"];
5250
5242
  };
5251
5243
  header?: never;
5252
5244
  path: {
@@ -5257,22 +5249,30 @@ export interface operations {
5257
5249
  };
5258
5250
  requestBody?: never;
5259
5251
  responses: {
5260
- /** @description Delta time-bucketed tag analytics */
5252
+ /** @description Per-metric pct change */
5261
5253
  200: {
5262
5254
  headers: {
5263
5255
  [name: string]: unknown;
5264
5256
  };
5265
5257
  content: {
5266
- "application/json": components["schemas"]["TimeBucketRow"][];
5258
+ "application/json": components["schemas"]["MetricPctChange"];
5267
5259
  };
5268
5260
  };
5269
5261
  };
5270
5262
  };
5271
- get_tag_analytics_changes: {
5263
+ get_tag_analytics_deltas: {
5272
5264
  parameters: {
5273
- query: {
5274
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
5275
- timeframe: components["schemas"]["ChangeTimeframe"];
5265
+ query?: {
5266
+ /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5267
+ resolution?: components["schemas"]["CandlestickResolution"];
5268
+ /** @description Start timestamp (Unix seconds) */
5269
+ from?: number;
5270
+ /** @description End timestamp (Unix seconds) */
5271
+ to?: number;
5272
+ /** @description Max data points (default: 500, max: 2500) */
5273
+ count_back?: number;
5274
+ /** @description Cursor from previous response */
5275
+ pagination_key?: string;
5276
5276
  };
5277
5277
  header?: never;
5278
5278
  path: {
@@ -5283,13 +5283,13 @@ export interface operations {
5283
5283
  };
5284
5284
  requestBody?: never;
5285
5285
  responses: {
5286
- /** @description Per-metric pct change */
5286
+ /** @description Delta time-bucketed tag analytics */
5287
5287
  200: {
5288
5288
  headers: {
5289
5289
  [name: string]: unknown;
5290
5290
  };
5291
5291
  content: {
5292
- "application/json": components["schemas"]["MetricPctChange"];
5292
+ "application/json": components["schemas"]["TimeBucketRow"][];
5293
5293
  };
5294
5294
  };
5295
5295
  };
@@ -5763,19 +5763,11 @@ export interface operations {
5763
5763
  };
5764
5764
  };
5765
5765
  };
5766
- get_trader_analytics_candles: {
5766
+ get_trader_analytics_changes: {
5767
5767
  parameters: {
5768
- query?: {
5769
- /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5770
- resolution?: components["schemas"]["CandlestickResolution"];
5771
- /** @description Start timestamp (Unix seconds) */
5772
- from?: number;
5773
- /** @description End timestamp (Unix seconds) */
5774
- to?: number;
5775
- /** @description Max data points (default: 500, max: 2500) */
5776
- count_back?: number;
5777
- /** @description Cursor from previous response */
5778
- pagination_key?: string;
5768
+ query: {
5769
+ /** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
5770
+ timeframe: components["schemas"]["ChangeTimeframe"];
5779
5771
  };
5780
5772
  header?: never;
5781
5773
  path: {
@@ -5786,22 +5778,30 @@ export interface operations {
5786
5778
  };
5787
5779
  requestBody?: never;
5788
5780
  responses: {
5789
- /** @description Delta time-bucketed trader analytics */
5781
+ /** @description Per-metric pct change */
5790
5782
  200: {
5791
5783
  headers: {
5792
5784
  [name: string]: unknown;
5793
5785
  };
5794
5786
  content: {
5795
- "application/json": components["schemas"]["TimeBucketRow"][];
5787
+ "application/json": components["schemas"]["MetricPctChange"];
5796
5788
  };
5797
5789
  };
5798
5790
  };
5799
5791
  };
5800
- get_trader_analytics_changes: {
5792
+ get_trader_analytics_deltas: {
5801
5793
  parameters: {
5802
- query: {
5803
- /** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
5804
- timeframe: components["schemas"]["ChangeTimeframe"];
5794
+ query?: {
5795
+ /** @description Bucket size: 1, 5, 15, 30, 60, 240, D, 1D (default: 60) */
5796
+ resolution?: components["schemas"]["CandlestickResolution"];
5797
+ /** @description Start timestamp (Unix seconds) */
5798
+ from?: number;
5799
+ /** @description End timestamp (Unix seconds) */
5800
+ to?: number;
5801
+ /** @description Max data points (default: 500, max: 2500) */
5802
+ count_back?: number;
5803
+ /** @description Cursor from previous response */
5804
+ pagination_key?: string;
5805
5805
  };
5806
5806
  header?: never;
5807
5807
  path: {
@@ -5812,13 +5812,13 @@ export interface operations {
5812
5812
  };
5813
5813
  requestBody?: never;
5814
5814
  responses: {
5815
- /** @description Per-metric pct change */
5815
+ /** @description Delta time-bucketed trader analytics */
5816
5816
  200: {
5817
5817
  headers: {
5818
5818
  [name: string]: unknown;
5819
5819
  };
5820
5820
  content: {
5821
- "application/json": components["schemas"]["MetricPctChange"];
5821
+ "application/json": components["schemas"]["TimeBucketRow"][];
5822
5822
  };
5823
5823
  };
5824
5824
  };