@structbuild/sdk 0.3.10-staging.0 → 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.
- package/dist/generated/polymarket.d.ts +227 -195
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +11 -11
- package/dist/index.js.map +3 -3
- package/dist/namespaces/analytics.d.ts +7 -7
- package/dist/types/index.d.ts +7 -6
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
-
"/polymarket/analytics/
|
|
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
|
|
15
|
-
* @description Returns
|
|
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["
|
|
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/
|
|
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
|
|
35
|
-
* @description Returns
|
|
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["
|
|
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/
|
|
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
|
|
55
|
-
* @description Returns
|
|
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["
|
|
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/
|
|
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
|
|
215
|
-
* @description
|
|
214
|
+
* Event analytics % change
|
|
215
|
+
* @description Per-metric % change over the requested lookback window for a specific event.
|
|
216
216
|
*/
|
|
217
|
-
get: operations["
|
|
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/
|
|
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
|
|
235
|
-
* @description
|
|
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["
|
|
237
|
+
get: operations["get_event_analytics_deltas"];
|
|
238
238
|
put?: never;
|
|
239
239
|
post?: never;
|
|
240
240
|
delete?: never;
|
|
@@ -392,7 +392,7 @@ export interface paths {
|
|
|
392
392
|
};
|
|
393
393
|
/**
|
|
394
394
|
* Get bonds
|
|
395
|
-
* @description Retrieve bond markets with sorting, probability range filter, and
|
|
395
|
+
* @description Retrieve bond markets with sorting, probability range filter, and deterministic keyset pagination.
|
|
396
396
|
*/
|
|
397
397
|
get: operations["get_bonds"];
|
|
398
398
|
put?: never;
|
|
@@ -623,7 +623,7 @@ export interface paths {
|
|
|
623
623
|
patch?: never;
|
|
624
624
|
trace?: never;
|
|
625
625
|
};
|
|
626
|
-
"/polymarket/market/{condition_id}/analytics/
|
|
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
|
|
635
|
-
* @description
|
|
634
|
+
* Market analytics % change
|
|
635
|
+
* @description Per-metric % change over the requested lookback window for a specific market.
|
|
636
636
|
*/
|
|
637
|
-
get: operations["
|
|
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/
|
|
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
|
|
655
|
-
* @description
|
|
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["
|
|
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/
|
|
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
|
|
895
|
-
* @description
|
|
894
|
+
* Tag analytics % change
|
|
895
|
+
* @description Per-metric % change over the requested lookback window for a specific tag.
|
|
896
896
|
*/
|
|
897
|
-
get: operations["
|
|
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/
|
|
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
|
|
915
|
-
* @description
|
|
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["
|
|
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/
|
|
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
|
|
1195
|
-
* @description
|
|
1194
|
+
* Trader analytics % change
|
|
1195
|
+
* @description Per-metric % change over the requested lookback window for a specific trader address.
|
|
1196
1196
|
*/
|
|
1197
|
-
get: operations["
|
|
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/
|
|
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
|
|
1215
|
-
* @description
|
|
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["
|
|
1217
|
+
get: operations["get_trader_analytics_deltas"];
|
|
1218
1218
|
put?: never;
|
|
1219
1219
|
post?: never;
|
|
1220
1220
|
delete?: never;
|
|
@@ -1417,6 +1417,8 @@ export interface components {
|
|
|
1417
1417
|
/** Format: double */
|
|
1418
1418
|
price: number;
|
|
1419
1419
|
};
|
|
1420
|
+
/** @enum {string} */
|
|
1421
|
+
BondsSortBy: "end_date" | "apy" | "liquidity" | "volume";
|
|
1420
1422
|
/** @description Output payload for Cancelled orders. */
|
|
1421
1423
|
CancelledTrade: {
|
|
1422
1424
|
id: string;
|
|
@@ -1444,7 +1446,7 @@ export interface components {
|
|
|
1444
1446
|
* @description Lookback window for `/analytics/changes` endpoints.
|
|
1445
1447
|
* @enum {string}
|
|
1446
1448
|
*/
|
|
1447
|
-
ChangeTimeframe: "1h" | "24h" | "7d" | "30d" | "1y";
|
|
1449
|
+
ChangeTimeframe: "1h" | "24h" | "7d" | "30d" | "1mo" | "1y";
|
|
1448
1450
|
/** @enum {string} */
|
|
1449
1451
|
ChartResolution: "1H" | "6H" | "1D" | "1W" | "1M" | "ALL";
|
|
1450
1452
|
/** @description CLOB reward (public API format) */
|
|
@@ -1629,6 +1631,77 @@ export interface components {
|
|
|
1629
1631
|
EventPnlSortBy: "realized_pnl_usd" | "total_volume_usd" | "markets_traded" | "total_fees" | "realized_pnl_pct";
|
|
1630
1632
|
/** @enum {string} */
|
|
1631
1633
|
EventSortBy: "volume" | "txns" | "unique_traders" | "title" | "creation_date" | "start_date" | "end_date" | "relevance";
|
|
1634
|
+
/**
|
|
1635
|
+
* @description Response body for `GET /polymarket/analytics/counts`.
|
|
1636
|
+
* Cumulative analytics metrics (from ClickHouse `analytics_global`) plus
|
|
1637
|
+
* entity-count enrichment (from Postgres `pg_class.reltuples` estimates).
|
|
1638
|
+
*/
|
|
1639
|
+
GlobalCountsResponse: {
|
|
1640
|
+
/**
|
|
1641
|
+
* Format: int32
|
|
1642
|
+
* @description Unix-second timestamp of the latest block reflected in the metrics.
|
|
1643
|
+
*/
|
|
1644
|
+
ts: number;
|
|
1645
|
+
/**
|
|
1646
|
+
* Format: int64
|
|
1647
|
+
* @description Latest block number processed.
|
|
1648
|
+
*/
|
|
1649
|
+
block: number;
|
|
1650
|
+
/** Format: double */
|
|
1651
|
+
volume_usd: number;
|
|
1652
|
+
/** Format: double */
|
|
1653
|
+
buy_volume_usd: number;
|
|
1654
|
+
/** Format: double */
|
|
1655
|
+
sell_volume_usd: number;
|
|
1656
|
+
/** Format: int64 */
|
|
1657
|
+
unique_traders: number;
|
|
1658
|
+
/** Format: int64 */
|
|
1659
|
+
txn_count: number;
|
|
1660
|
+
/** Format: int64 */
|
|
1661
|
+
buy_count: number;
|
|
1662
|
+
/** Format: int64 */
|
|
1663
|
+
sell_count: number;
|
|
1664
|
+
/** Format: int64 */
|
|
1665
|
+
redemption_count: number;
|
|
1666
|
+
/** Format: double */
|
|
1667
|
+
redemption_volume_usd: number;
|
|
1668
|
+
/** Format: int64 */
|
|
1669
|
+
merge_count: number;
|
|
1670
|
+
/** Format: int64 */
|
|
1671
|
+
split_count: number;
|
|
1672
|
+
/** Format: double */
|
|
1673
|
+
fees_usd: number;
|
|
1674
|
+
/** Format: double */
|
|
1675
|
+
shares_volume: number;
|
|
1676
|
+
/** Format: double */
|
|
1677
|
+
yes_volume_usd: number;
|
|
1678
|
+
/** Format: double */
|
|
1679
|
+
no_volume_usd: number;
|
|
1680
|
+
/** Format: int64 */
|
|
1681
|
+
yes_count: number;
|
|
1682
|
+
/** Format: int64 */
|
|
1683
|
+
no_count: number;
|
|
1684
|
+
/**
|
|
1685
|
+
* Format: int64
|
|
1686
|
+
* @description Estimated row count of `polymarket_tags` (Postgres pg_class.reltuples).
|
|
1687
|
+
*/
|
|
1688
|
+
tags: number;
|
|
1689
|
+
/**
|
|
1690
|
+
* Format: int64
|
|
1691
|
+
* @description Estimated row count of `polymarket_events`.
|
|
1692
|
+
*/
|
|
1693
|
+
events: number;
|
|
1694
|
+
/**
|
|
1695
|
+
* Format: int64
|
|
1696
|
+
* @description Estimated row count of `prediction_markets`.
|
|
1697
|
+
*/
|
|
1698
|
+
markets: number;
|
|
1699
|
+
/**
|
|
1700
|
+
* Format: int64
|
|
1701
|
+
* @description Estimated row count of `polymarket_accounts` (traders / positions).
|
|
1702
|
+
*/
|
|
1703
|
+
positions: number;
|
|
1704
|
+
};
|
|
1632
1705
|
/** @enum {string} */
|
|
1633
1706
|
GlobalPnlSortBy: "realized_pnl_usd" | "buys" | "sells" | "redemptions" | "merges" | "avg_hold_time" | "markets_traded" | "events_traded" | "markets_won" | "volume_usd" | "fees" | "best_trade";
|
|
1634
1707
|
/** @description Individual trader entry in the global PnL leaderboard */
|
|
@@ -1725,47 +1798,6 @@ export interface components {
|
|
|
1725
1798
|
/** Format: int64 */
|
|
1726
1799
|
last_trade_at?: number | null;
|
|
1727
1800
|
};
|
|
1728
|
-
/** @description Latest cumulative metrics snapshot — read from `analytics_global_all FINAL`. */
|
|
1729
|
-
LatestMetricsRow: {
|
|
1730
|
-
/** Format: int32 */
|
|
1731
|
-
ts: number;
|
|
1732
|
-
/** Format: int64 */
|
|
1733
|
-
block: number;
|
|
1734
|
-
/** Format: double */
|
|
1735
|
-
volume_usd: number;
|
|
1736
|
-
/** Format: double */
|
|
1737
|
-
buy_volume_usd: number;
|
|
1738
|
-
/** Format: double */
|
|
1739
|
-
sell_volume_usd: number;
|
|
1740
|
-
/** Format: int64 */
|
|
1741
|
-
unique_traders: number;
|
|
1742
|
-
/** Format: int64 */
|
|
1743
|
-
txn_count: number;
|
|
1744
|
-
/** Format: int64 */
|
|
1745
|
-
buy_count: number;
|
|
1746
|
-
/** Format: int64 */
|
|
1747
|
-
sell_count: number;
|
|
1748
|
-
/** Format: int64 */
|
|
1749
|
-
redemption_count: number;
|
|
1750
|
-
/** Format: double */
|
|
1751
|
-
redemption_volume_usd: number;
|
|
1752
|
-
/** Format: int64 */
|
|
1753
|
-
merge_count: number;
|
|
1754
|
-
/** Format: int64 */
|
|
1755
|
-
split_count: number;
|
|
1756
|
-
/** Format: double */
|
|
1757
|
-
fees_usd: number;
|
|
1758
|
-
/** Format: double */
|
|
1759
|
-
shares_volume: number;
|
|
1760
|
-
/** Format: double */
|
|
1761
|
-
yes_volume_usd: number;
|
|
1762
|
-
/** Format: double */
|
|
1763
|
-
no_volume_usd: number;
|
|
1764
|
-
/** Format: int64 */
|
|
1765
|
-
yes_count: number;
|
|
1766
|
-
/** Format: int64 */
|
|
1767
|
-
no_count: number;
|
|
1768
|
-
};
|
|
1769
1801
|
/**
|
|
1770
1802
|
* @description Market category filter for the trader leaderboard.
|
|
1771
1803
|
* Mirrors `common::gamma::categories::Category` plus `overall` (= all).
|
|
@@ -3297,19 +3329,11 @@ export interface components {
|
|
|
3297
3329
|
}
|
|
3298
3330
|
export type $defs = Record<string, never>;
|
|
3299
3331
|
export interface operations {
|
|
3300
|
-
|
|
3332
|
+
get_global_analytics_changes: {
|
|
3301
3333
|
parameters: {
|
|
3302
|
-
query
|
|
3303
|
-
/** @description
|
|
3304
|
-
|
|
3305
|
-
/** @description Start timestamp (Unix seconds). Omit for all-time. */
|
|
3306
|
-
from?: number;
|
|
3307
|
-
/** @description End timestamp (Unix seconds) */
|
|
3308
|
-
to?: number;
|
|
3309
|
-
/** @description Max data points (default: 500, max: 2500) */
|
|
3310
|
-
count_back?: number;
|
|
3311
|
-
/** @description Cursor from previous response for next page */
|
|
3312
|
-
pagination_key?: string;
|
|
3334
|
+
query: {
|
|
3335
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
|
|
3336
|
+
timeframe: components["schemas"]["ChangeTimeframe"];
|
|
3313
3337
|
};
|
|
3314
3338
|
header?: never;
|
|
3315
3339
|
path?: never;
|
|
@@ -3317,56 +3341,64 @@ export interface operations {
|
|
|
3317
3341
|
};
|
|
3318
3342
|
requestBody?: never;
|
|
3319
3343
|
responses: {
|
|
3320
|
-
/** @description
|
|
3344
|
+
/** @description Per-metric pct change */
|
|
3321
3345
|
200: {
|
|
3322
3346
|
headers: {
|
|
3323
3347
|
[name: string]: unknown;
|
|
3324
3348
|
};
|
|
3325
3349
|
content: {
|
|
3326
|
-
"application/json": components["schemas"]["
|
|
3350
|
+
"application/json": components["schemas"]["MetricPctChange"];
|
|
3327
3351
|
};
|
|
3328
3352
|
};
|
|
3329
3353
|
};
|
|
3330
3354
|
};
|
|
3331
|
-
|
|
3355
|
+
get_analytics_counts: {
|
|
3332
3356
|
parameters: {
|
|
3333
|
-
query
|
|
3334
|
-
/** @description Lookback window: 1h, 24h, 7d, 30d, 1y */
|
|
3335
|
-
timeframe: components["schemas"]["ChangeTimeframe"];
|
|
3336
|
-
};
|
|
3357
|
+
query?: never;
|
|
3337
3358
|
header?: never;
|
|
3338
3359
|
path?: never;
|
|
3339
3360
|
cookie?: never;
|
|
3340
3361
|
};
|
|
3341
3362
|
requestBody?: never;
|
|
3342
3363
|
responses: {
|
|
3343
|
-
/** @description
|
|
3364
|
+
/** @description Latest global metrics snapshot */
|
|
3344
3365
|
200: {
|
|
3345
3366
|
headers: {
|
|
3346
3367
|
[name: string]: unknown;
|
|
3347
3368
|
};
|
|
3348
3369
|
content: {
|
|
3349
|
-
"application/json": components["schemas"]["
|
|
3370
|
+
"application/json": components["schemas"]["GlobalCountsResponse"];
|
|
3350
3371
|
};
|
|
3351
3372
|
};
|
|
3352
3373
|
};
|
|
3353
3374
|
};
|
|
3354
|
-
|
|
3375
|
+
get_global_analytics_deltas: {
|
|
3355
3376
|
parameters: {
|
|
3356
|
-
query?:
|
|
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
|
+
};
|
|
3357
3389
|
header?: never;
|
|
3358
3390
|
path?: never;
|
|
3359
3391
|
cookie?: never;
|
|
3360
3392
|
};
|
|
3361
3393
|
requestBody?: never;
|
|
3362
3394
|
responses: {
|
|
3363
|
-
/** @description
|
|
3395
|
+
/** @description Delta time-bucketed analytics */
|
|
3364
3396
|
200: {
|
|
3365
3397
|
headers: {
|
|
3366
3398
|
[name: string]: unknown;
|
|
3367
3399
|
};
|
|
3368
3400
|
content: {
|
|
3369
|
-
"application/json": components["schemas"]["
|
|
3401
|
+
"application/json": components["schemas"]["TimeBucketRow"][];
|
|
3370
3402
|
};
|
|
3371
3403
|
};
|
|
3372
3404
|
};
|
|
@@ -3668,19 +3700,11 @@ export interface operations {
|
|
|
3668
3700
|
};
|
|
3669
3701
|
};
|
|
3670
3702
|
};
|
|
3671
|
-
|
|
3703
|
+
get_event_analytics_changes: {
|
|
3672
3704
|
parameters: {
|
|
3673
|
-
query
|
|
3674
|
-
/** @description
|
|
3675
|
-
|
|
3676
|
-
/** @description Start timestamp (Unix seconds) */
|
|
3677
|
-
from?: number;
|
|
3678
|
-
/** @description End timestamp (Unix seconds) */
|
|
3679
|
-
to?: number;
|
|
3680
|
-
/** @description Max data points (default: 500, max: 2500) */
|
|
3681
|
-
count_back?: number;
|
|
3682
|
-
/** @description Cursor from previous response */
|
|
3683
|
-
pagination_key?: string;
|
|
3705
|
+
query: {
|
|
3706
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
3707
|
+
timeframe: components["schemas"]["ChangeTimeframe"];
|
|
3684
3708
|
};
|
|
3685
3709
|
header?: never;
|
|
3686
3710
|
path: {
|
|
@@ -3691,22 +3715,30 @@ export interface operations {
|
|
|
3691
3715
|
};
|
|
3692
3716
|
requestBody?: never;
|
|
3693
3717
|
responses: {
|
|
3694
|
-
/** @description
|
|
3718
|
+
/** @description Per-metric pct change */
|
|
3695
3719
|
200: {
|
|
3696
3720
|
headers: {
|
|
3697
3721
|
[name: string]: unknown;
|
|
3698
3722
|
};
|
|
3699
3723
|
content: {
|
|
3700
|
-
"application/json": components["schemas"]["
|
|
3724
|
+
"application/json": components["schemas"]["MetricPctChange"];
|
|
3701
3725
|
};
|
|
3702
3726
|
};
|
|
3703
3727
|
};
|
|
3704
3728
|
};
|
|
3705
|
-
|
|
3729
|
+
get_event_analytics_deltas: {
|
|
3706
3730
|
parameters: {
|
|
3707
|
-
query
|
|
3708
|
-
/** @description
|
|
3709
|
-
|
|
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;
|
|
3710
3742
|
};
|
|
3711
3743
|
header?: never;
|
|
3712
3744
|
path: {
|
|
@@ -3717,13 +3749,13 @@ export interface operations {
|
|
|
3717
3749
|
};
|
|
3718
3750
|
requestBody?: never;
|
|
3719
3751
|
responses: {
|
|
3720
|
-
/** @description
|
|
3752
|
+
/** @description Delta time-bucketed event analytics */
|
|
3721
3753
|
200: {
|
|
3722
3754
|
headers: {
|
|
3723
3755
|
[name: string]: unknown;
|
|
3724
3756
|
};
|
|
3725
3757
|
content: {
|
|
3726
|
-
"application/json": components["schemas"]["
|
|
3758
|
+
"application/json": components["schemas"]["TimeBucketRow"][];
|
|
3727
3759
|
};
|
|
3728
3760
|
};
|
|
3729
3761
|
};
|
|
@@ -4075,12 +4107,12 @@ export interface operations {
|
|
|
4075
4107
|
/** @description Maximum hours until market end */
|
|
4076
4108
|
max_hours?: number;
|
|
4077
4109
|
/** @description Sort by: apy, liquidity, volume, end_date (default: end_date) */
|
|
4078
|
-
sort_by?:
|
|
4110
|
+
sort_by?: components["schemas"]["BondsSortBy"];
|
|
4079
4111
|
/** @description Number of results (default: 10, max: 250) */
|
|
4080
4112
|
limit?: number;
|
|
4081
|
-
/** @description
|
|
4113
|
+
/** @description Initial skip (default: 0). Applied only on the first page; ignored when pagination_key is supplied. */
|
|
4082
4114
|
offset?: number;
|
|
4083
|
-
/** @description
|
|
4115
|
+
/** @description Keyset cursor from previous response. Opaque token — pass verbatim to fetch the next page. */
|
|
4084
4116
|
pagination_key?: string;
|
|
4085
4117
|
};
|
|
4086
4118
|
header?: never;
|
|
@@ -4633,19 +4665,11 @@ export interface operations {
|
|
|
4633
4665
|
};
|
|
4634
4666
|
};
|
|
4635
4667
|
};
|
|
4636
|
-
|
|
4668
|
+
get_market_analytics_changes: {
|
|
4637
4669
|
parameters: {
|
|
4638
|
-
query
|
|
4639
|
-
/** @description
|
|
4640
|
-
|
|
4641
|
-
/** @description Start timestamp (Unix seconds) */
|
|
4642
|
-
from?: number;
|
|
4643
|
-
/** @description End timestamp (Unix seconds) */
|
|
4644
|
-
to?: number;
|
|
4645
|
-
/** @description Max data points (default: 500, max: 2500) */
|
|
4646
|
-
count_back?: number;
|
|
4647
|
-
/** @description Cursor from previous response */
|
|
4648
|
-
pagination_key?: string;
|
|
4670
|
+
query: {
|
|
4671
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
4672
|
+
timeframe: components["schemas"]["ChangeTimeframe"];
|
|
4649
4673
|
};
|
|
4650
4674
|
header?: never;
|
|
4651
4675
|
path: {
|
|
@@ -4656,22 +4680,30 @@ export interface operations {
|
|
|
4656
4680
|
};
|
|
4657
4681
|
requestBody?: never;
|
|
4658
4682
|
responses: {
|
|
4659
|
-
/** @description
|
|
4683
|
+
/** @description Per-metric pct change */
|
|
4660
4684
|
200: {
|
|
4661
4685
|
headers: {
|
|
4662
4686
|
[name: string]: unknown;
|
|
4663
4687
|
};
|
|
4664
4688
|
content: {
|
|
4665
|
-
"application/json": components["schemas"]["
|
|
4689
|
+
"application/json": components["schemas"]["MetricPctChange"];
|
|
4666
4690
|
};
|
|
4667
4691
|
};
|
|
4668
4692
|
};
|
|
4669
4693
|
};
|
|
4670
|
-
|
|
4694
|
+
get_market_analytics_deltas: {
|
|
4671
4695
|
parameters: {
|
|
4672
|
-
query
|
|
4673
|
-
/** @description
|
|
4674
|
-
|
|
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;
|
|
4675
4707
|
};
|
|
4676
4708
|
header?: never;
|
|
4677
4709
|
path: {
|
|
@@ -4682,13 +4714,13 @@ export interface operations {
|
|
|
4682
4714
|
};
|
|
4683
4715
|
requestBody?: never;
|
|
4684
4716
|
responses: {
|
|
4685
|
-
/** @description
|
|
4717
|
+
/** @description Delta time-bucketed market analytics */
|
|
4686
4718
|
200: {
|
|
4687
4719
|
headers: {
|
|
4688
4720
|
[name: string]: unknown;
|
|
4689
4721
|
};
|
|
4690
4722
|
content: {
|
|
4691
|
-
"application/json": components["schemas"]["
|
|
4723
|
+
"application/json": components["schemas"]["TimeBucketRow"][];
|
|
4692
4724
|
};
|
|
4693
4725
|
};
|
|
4694
4726
|
};
|
|
@@ -5202,19 +5234,11 @@ export interface operations {
|
|
|
5202
5234
|
};
|
|
5203
5235
|
};
|
|
5204
5236
|
};
|
|
5205
|
-
|
|
5237
|
+
get_tag_analytics_changes: {
|
|
5206
5238
|
parameters: {
|
|
5207
|
-
query
|
|
5208
|
-
/** @description
|
|
5209
|
-
|
|
5210
|
-
/** @description Start timestamp (Unix seconds) */
|
|
5211
|
-
from?: number;
|
|
5212
|
-
/** @description End timestamp (Unix seconds) */
|
|
5213
|
-
to?: number;
|
|
5214
|
-
/** @description Max data points (default: 500, max: 2500) */
|
|
5215
|
-
count_back?: number;
|
|
5216
|
-
/** @description Cursor from previous response */
|
|
5217
|
-
pagination_key?: string;
|
|
5239
|
+
query: {
|
|
5240
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
5241
|
+
timeframe: components["schemas"]["ChangeTimeframe"];
|
|
5218
5242
|
};
|
|
5219
5243
|
header?: never;
|
|
5220
5244
|
path: {
|
|
@@ -5225,22 +5249,30 @@ export interface operations {
|
|
|
5225
5249
|
};
|
|
5226
5250
|
requestBody?: never;
|
|
5227
5251
|
responses: {
|
|
5228
|
-
/** @description
|
|
5252
|
+
/** @description Per-metric pct change */
|
|
5229
5253
|
200: {
|
|
5230
5254
|
headers: {
|
|
5231
5255
|
[name: string]: unknown;
|
|
5232
5256
|
};
|
|
5233
5257
|
content: {
|
|
5234
|
-
"application/json": components["schemas"]["
|
|
5258
|
+
"application/json": components["schemas"]["MetricPctChange"];
|
|
5235
5259
|
};
|
|
5236
5260
|
};
|
|
5237
5261
|
};
|
|
5238
5262
|
};
|
|
5239
|
-
|
|
5263
|
+
get_tag_analytics_deltas: {
|
|
5240
5264
|
parameters: {
|
|
5241
|
-
query
|
|
5242
|
-
/** @description
|
|
5243
|
-
|
|
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;
|
|
5244
5276
|
};
|
|
5245
5277
|
header?: never;
|
|
5246
5278
|
path: {
|
|
@@ -5251,13 +5283,13 @@ export interface operations {
|
|
|
5251
5283
|
};
|
|
5252
5284
|
requestBody?: never;
|
|
5253
5285
|
responses: {
|
|
5254
|
-
/** @description
|
|
5286
|
+
/** @description Delta time-bucketed tag analytics */
|
|
5255
5287
|
200: {
|
|
5256
5288
|
headers: {
|
|
5257
5289
|
[name: string]: unknown;
|
|
5258
5290
|
};
|
|
5259
5291
|
content: {
|
|
5260
|
-
"application/json": components["schemas"]["
|
|
5292
|
+
"application/json": components["schemas"]["TimeBucketRow"][];
|
|
5261
5293
|
};
|
|
5262
5294
|
};
|
|
5263
5295
|
};
|
|
@@ -5731,19 +5763,11 @@ export interface operations {
|
|
|
5731
5763
|
};
|
|
5732
5764
|
};
|
|
5733
5765
|
};
|
|
5734
|
-
|
|
5766
|
+
get_trader_analytics_changes: {
|
|
5735
5767
|
parameters: {
|
|
5736
|
-
query
|
|
5737
|
-
/** @description
|
|
5738
|
-
|
|
5739
|
-
/** @description Start timestamp (Unix seconds) */
|
|
5740
|
-
from?: number;
|
|
5741
|
-
/** @description End timestamp (Unix seconds) */
|
|
5742
|
-
to?: number;
|
|
5743
|
-
/** @description Max data points (default: 500, max: 2500) */
|
|
5744
|
-
count_back?: number;
|
|
5745
|
-
/** @description Cursor from previous response */
|
|
5746
|
-
pagination_key?: string;
|
|
5768
|
+
query: {
|
|
5769
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
5770
|
+
timeframe: components["schemas"]["ChangeTimeframe"];
|
|
5747
5771
|
};
|
|
5748
5772
|
header?: never;
|
|
5749
5773
|
path: {
|
|
@@ -5754,22 +5778,30 @@ export interface operations {
|
|
|
5754
5778
|
};
|
|
5755
5779
|
requestBody?: never;
|
|
5756
5780
|
responses: {
|
|
5757
|
-
/** @description
|
|
5781
|
+
/** @description Per-metric pct change */
|
|
5758
5782
|
200: {
|
|
5759
5783
|
headers: {
|
|
5760
5784
|
[name: string]: unknown;
|
|
5761
5785
|
};
|
|
5762
5786
|
content: {
|
|
5763
|
-
"application/json": components["schemas"]["
|
|
5787
|
+
"application/json": components["schemas"]["MetricPctChange"];
|
|
5764
5788
|
};
|
|
5765
5789
|
};
|
|
5766
5790
|
};
|
|
5767
5791
|
};
|
|
5768
|
-
|
|
5792
|
+
get_trader_analytics_deltas: {
|
|
5769
5793
|
parameters: {
|
|
5770
|
-
query
|
|
5771
|
-
/** @description
|
|
5772
|
-
|
|
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;
|
|
5773
5805
|
};
|
|
5774
5806
|
header?: never;
|
|
5775
5807
|
path: {
|
|
@@ -5780,13 +5812,13 @@ export interface operations {
|
|
|
5780
5812
|
};
|
|
5781
5813
|
requestBody?: never;
|
|
5782
5814
|
responses: {
|
|
5783
|
-
/** @description
|
|
5815
|
+
/** @description Delta time-bucketed trader analytics */
|
|
5784
5816
|
200: {
|
|
5785
5817
|
headers: {
|
|
5786
5818
|
[name: string]: unknown;
|
|
5787
5819
|
};
|
|
5788
5820
|
content: {
|
|
5789
|
-
"application/json": components["schemas"]["
|
|
5821
|
+
"application/json": components["schemas"]["TimeBucketRow"][];
|
|
5790
5822
|
};
|
|
5791
5823
|
};
|
|
5792
5824
|
};
|