@structbuild/sdk 0.3.10-staging.5 → 0.3.10-staging.7
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 +250 -39
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1254,7 +1254,7 @@ export interface components {
|
|
|
1254
1254
|
* domains and re-bucketed from the `_1d` MV for market/event/trader.
|
|
1255
1255
|
* @enum {string}
|
|
1256
1256
|
*/
|
|
1257
|
-
AnalyticsResolution: "
|
|
1257
|
+
AnalyticsResolution: "60" | "240" | "D" | "1D" | "W" | "1W" | "M" | "1M";
|
|
1258
1258
|
/** @description Output payload for ERC1155 setApprovalForAll events. */
|
|
1259
1259
|
ApprovalTrade: {
|
|
1260
1260
|
id: string;
|
|
@@ -1660,8 +1660,21 @@ export interface components {
|
|
|
1660
1660
|
buy_volume_usd: number;
|
|
1661
1661
|
/** Format: double */
|
|
1662
1662
|
sell_volume_usd: number;
|
|
1663
|
-
/**
|
|
1663
|
+
/**
|
|
1664
|
+
* Format: int64
|
|
1665
|
+
* @description Distinct addresses that have ever traded on Polymarket (lifetime).
|
|
1666
|
+
*/
|
|
1664
1667
|
unique_traders: number;
|
|
1668
|
+
/**
|
|
1669
|
+
* Format: int64
|
|
1670
|
+
* @description Distinct makers ever active (lifetime distinct).
|
|
1671
|
+
*/
|
|
1672
|
+
unique_makers: number;
|
|
1673
|
+
/**
|
|
1674
|
+
* Format: int64
|
|
1675
|
+
* @description Distinct takers ever active (lifetime distinct).
|
|
1676
|
+
*/
|
|
1677
|
+
unique_takers: number;
|
|
1665
1678
|
/** Format: int64 */
|
|
1666
1679
|
txn_count: number;
|
|
1667
1680
|
/** Format: int64 */
|
|
@@ -1674,9 +1687,13 @@ export interface components {
|
|
|
1674
1687
|
redemption_volume_usd: number;
|
|
1675
1688
|
/** Format: int64 */
|
|
1676
1689
|
merge_count: number;
|
|
1690
|
+
/** Format: double */
|
|
1691
|
+
merge_volume_usd: number;
|
|
1677
1692
|
/** Format: int64 */
|
|
1678
1693
|
split_count: number;
|
|
1679
1694
|
/** Format: double */
|
|
1695
|
+
split_volume_usd: number;
|
|
1696
|
+
/** Format: double */
|
|
1680
1697
|
fees_usd: number;
|
|
1681
1698
|
/** Format: double */
|
|
1682
1699
|
shares_volume: number;
|
|
@@ -1688,6 +1705,18 @@ export interface components {
|
|
|
1688
1705
|
yes_count: number;
|
|
1689
1706
|
/** Format: int64 */
|
|
1690
1707
|
no_count: number;
|
|
1708
|
+
/** Format: int64 */
|
|
1709
|
+
buy_dist_under_10: number;
|
|
1710
|
+
/** Format: int64 */
|
|
1711
|
+
buy_dist_10_100: number;
|
|
1712
|
+
/** Format: int64 */
|
|
1713
|
+
buy_dist_100_1k: number;
|
|
1714
|
+
/** Format: int64 */
|
|
1715
|
+
buy_dist_1k_10k: number;
|
|
1716
|
+
/** Format: int64 */
|
|
1717
|
+
buy_dist_10k_50k: number;
|
|
1718
|
+
/** Format: int64 */
|
|
1719
|
+
buy_dist_50k_plus: number;
|
|
1691
1720
|
/**
|
|
1692
1721
|
* Format: int64
|
|
1693
1722
|
* @description Estimated total number of tags.
|
|
@@ -2045,8 +2074,22 @@ export interface components {
|
|
|
2045
2074
|
/** Format: double */
|
|
2046
2075
|
sell_volume_usd?: number | null;
|
|
2047
2076
|
/** Format: double */
|
|
2077
|
+
merge_volume_usd?: number | null;
|
|
2078
|
+
/** Format: double */
|
|
2079
|
+
split_volume_usd?: number | null;
|
|
2080
|
+
/** Format: double */
|
|
2081
|
+
new_traders?: number | null;
|
|
2082
|
+
/** Format: double */
|
|
2083
|
+
new_makers?: number | null;
|
|
2084
|
+
/** Format: double */
|
|
2085
|
+
new_takers?: number | null;
|
|
2086
|
+
/** Format: double */
|
|
2048
2087
|
unique_traders?: number | null;
|
|
2049
2088
|
/** Format: double */
|
|
2089
|
+
unique_makers?: number | null;
|
|
2090
|
+
/** Format: double */
|
|
2091
|
+
unique_takers?: number | null;
|
|
2092
|
+
/** Format: double */
|
|
2050
2093
|
txn_count?: number | null;
|
|
2051
2094
|
/** Format: double */
|
|
2052
2095
|
fees_usd?: number | null;
|
|
@@ -2459,9 +2502,40 @@ export interface components {
|
|
|
2459
2502
|
txn_count: number;
|
|
2460
2503
|
/**
|
|
2461
2504
|
* Format: int64
|
|
2505
|
+
* @description First-time-ever traders in the window (delta of the lifetime counter).
|
|
2506
|
+
* @default null
|
|
2507
|
+
*/
|
|
2508
|
+
new_traders: number;
|
|
2509
|
+
/**
|
|
2510
|
+
* Format: int64
|
|
2511
|
+
* @description First-time-ever makers in the window.
|
|
2512
|
+
* @default null
|
|
2513
|
+
*/
|
|
2514
|
+
new_makers: number;
|
|
2515
|
+
/**
|
|
2516
|
+
* Format: int64
|
|
2517
|
+
* @description First-time-ever takers in the window.
|
|
2518
|
+
* @default null
|
|
2519
|
+
*/
|
|
2520
|
+
new_takers: number;
|
|
2521
|
+
/**
|
|
2522
|
+
* Format: int64
|
|
2523
|
+
* @description Distinct active traders in the window.
|
|
2462
2524
|
* @default null
|
|
2463
2525
|
*/
|
|
2464
2526
|
unique_traders: number;
|
|
2527
|
+
/**
|
|
2528
|
+
* Format: int64
|
|
2529
|
+
* @description Distinct active makers in the window.
|
|
2530
|
+
* @default null
|
|
2531
|
+
*/
|
|
2532
|
+
unique_makers: number;
|
|
2533
|
+
/**
|
|
2534
|
+
* Format: int64
|
|
2535
|
+
* @description Distinct active takers in the window.
|
|
2536
|
+
* @default null
|
|
2537
|
+
*/
|
|
2538
|
+
unique_takers: number;
|
|
2465
2539
|
/**
|
|
2466
2540
|
* Format: double
|
|
2467
2541
|
* @default null
|
|
@@ -2980,12 +3054,16 @@ export interface components {
|
|
|
2980
3054
|
};
|
|
2981
3055
|
/**
|
|
2982
3056
|
* @description Metric to order by when `sort=<value>` is provided.
|
|
2983
|
-
*
|
|
2984
|
-
*
|
|
2985
|
-
*
|
|
3057
|
+
*
|
|
3058
|
+
* `new_*` ranks by first-time-ever arrivals — counted once in the bucket
|
|
3059
|
+
* where the address first appears, regardless of subsequent activity. Read
|
|
3060
|
+
* from the cumulative / delta MVs.
|
|
3061
|
+
*
|
|
3062
|
+
* `unique_*` ranks by window-distinct addresses — exact `uniqExact` count
|
|
3063
|
+
* of addresses active in the timeframe. Read from the active MVs.
|
|
2986
3064
|
* @enum {string}
|
|
2987
3065
|
*/
|
|
2988
|
-
TagSortBy: "volume" | "txns" | "
|
|
3066
|
+
TagSortBy: "volume" | "txns" | "new_traders" | "new_makers" | "new_takers" | "unique_traders" | "unique_makers" | "unique_takers" | "fees";
|
|
2989
3067
|
/**
|
|
2990
3068
|
* @description Timeframe for `?sort=...` — defines the window the metric is summed over
|
|
2991
3069
|
* (or `lifetime` for all-time cumulative).
|
|
@@ -2999,7 +3077,7 @@ export interface components {
|
|
|
2999
3077
|
*
|
|
3000
3078
|
* Short field names for compact JSON responses:
|
|
3001
3079
|
* t=bucket (unix seconds), v=volume_usd, bv=buy_volume_usd, sv=sell_volume_usd,
|
|
3002
|
-
* ut=
|
|
3080
|
+
* ut=new_traders, tc=txn_count, bc=buy_count, sc=sell_count,
|
|
3003
3081
|
* rc=redemption_count, rv=redemption_volume_usd, mc=merge_count,
|
|
3004
3082
|
* sp=split_count, f=fees_usd, sh=shares_volume,
|
|
3005
3083
|
* yv=yes_volume_usd, nv=no_volume_usd, yc=yes_count, nc=no_count
|
|
@@ -3013,8 +3091,21 @@ export interface components {
|
|
|
3013
3091
|
bv: number;
|
|
3014
3092
|
/** Format: double */
|
|
3015
3093
|
sv: number;
|
|
3016
|
-
/**
|
|
3017
|
-
|
|
3094
|
+
/**
|
|
3095
|
+
* Format: int64
|
|
3096
|
+
* @description Traders appearing for the first-time-ever in this bucket.
|
|
3097
|
+
*/
|
|
3098
|
+
nt: number;
|
|
3099
|
+
/**
|
|
3100
|
+
* Format: int64
|
|
3101
|
+
* @description Unique makers (order-resting side). Only tracked for match events.
|
|
3102
|
+
*/
|
|
3103
|
+
nm: number;
|
|
3104
|
+
/**
|
|
3105
|
+
* Format: int64
|
|
3106
|
+
* @description Unique takers (order-initiator side). Only tracked for match events.
|
|
3107
|
+
*/
|
|
3108
|
+
nk: number;
|
|
3018
3109
|
/** Format: int64 */
|
|
3019
3110
|
tc: number;
|
|
3020
3111
|
/** Format: int64 */
|
|
@@ -3027,9 +3118,13 @@ export interface components {
|
|
|
3027
3118
|
rv: number;
|
|
3028
3119
|
/** Format: int64 */
|
|
3029
3120
|
mc: number;
|
|
3121
|
+
/** Format: double */
|
|
3122
|
+
mv: number;
|
|
3030
3123
|
/** Format: int64 */
|
|
3031
3124
|
sp: number;
|
|
3032
3125
|
/** Format: double */
|
|
3126
|
+
spv: number;
|
|
3127
|
+
/** Format: double */
|
|
3033
3128
|
f: number;
|
|
3034
3129
|
/** Format: double */
|
|
3035
3130
|
sh: number;
|
|
@@ -3041,6 +3136,36 @@ export interface components {
|
|
|
3041
3136
|
yc: number;
|
|
3042
3137
|
/** Format: int64 */
|
|
3043
3138
|
nc: number;
|
|
3139
|
+
/**
|
|
3140
|
+
* Format: int64
|
|
3141
|
+
* @description Buy distribution — count of buy trades falling in each USD bucket.
|
|
3142
|
+
*/
|
|
3143
|
+
bd_u10: number;
|
|
3144
|
+
/** Format: int64 */
|
|
3145
|
+
bd_100: number;
|
|
3146
|
+
/** Format: int64 */
|
|
3147
|
+
bd_1k: number;
|
|
3148
|
+
/** Format: int64 */
|
|
3149
|
+
bd_10k: number;
|
|
3150
|
+
/** Format: int64 */
|
|
3151
|
+
bd_50k: number;
|
|
3152
|
+
/** Format: int64 */
|
|
3153
|
+
bd_50p: number;
|
|
3154
|
+
/**
|
|
3155
|
+
* Format: int64
|
|
3156
|
+
* @description Distinct traders ACTIVE in this bucket (window-unique, not first-time).
|
|
3157
|
+
*/
|
|
3158
|
+
ut: number;
|
|
3159
|
+
/**
|
|
3160
|
+
* Format: int64
|
|
3161
|
+
* @description Distinct makers active in this bucket.
|
|
3162
|
+
*/
|
|
3163
|
+
um: number;
|
|
3164
|
+
/**
|
|
3165
|
+
* Format: int64
|
|
3166
|
+
* @description Distinct takers active in this bucket.
|
|
3167
|
+
*/
|
|
3168
|
+
uk: number;
|
|
3044
3169
|
};
|
|
3045
3170
|
/** @description Token outcome (position) */
|
|
3046
3171
|
TokenOutcome: {
|
|
@@ -3229,6 +3354,33 @@ export interface components {
|
|
|
3229
3354
|
/** Format: double */
|
|
3230
3355
|
realized_pnl_pct?: number | null;
|
|
3231
3356
|
};
|
|
3357
|
+
/**
|
|
3358
|
+
* @description Per-metric percentage change over a lookback window for one trader
|
|
3359
|
+
* address. A `null` field means the window predates the trader's first
|
|
3360
|
+
* activity or the prior value was zero (percentage undefined).
|
|
3361
|
+
*/
|
|
3362
|
+
TraderMetricPctChange: {
|
|
3363
|
+
/** Format: double */
|
|
3364
|
+
volume_usd?: number | null;
|
|
3365
|
+
/** Format: double */
|
|
3366
|
+
buy_volume_usd?: number | null;
|
|
3367
|
+
/** Format: double */
|
|
3368
|
+
sell_volume_usd?: number | null;
|
|
3369
|
+
/** Format: double */
|
|
3370
|
+
merge_volume_usd?: number | null;
|
|
3371
|
+
/** Format: double */
|
|
3372
|
+
split_volume_usd?: number | null;
|
|
3373
|
+
/** Format: double */
|
|
3374
|
+
txn_count?: number | null;
|
|
3375
|
+
/** Format: double */
|
|
3376
|
+
fees_usd?: number | null;
|
|
3377
|
+
/** Format: double */
|
|
3378
|
+
shares_volume?: number | null;
|
|
3379
|
+
/** Format: double */
|
|
3380
|
+
yes_volume_usd?: number | null;
|
|
3381
|
+
/** Format: double */
|
|
3382
|
+
no_volume_usd?: number | null;
|
|
3383
|
+
};
|
|
3232
3384
|
/** @description Outcome-level PnL entry (per outcome token / position_id) */
|
|
3233
3385
|
TraderOutcomePnlEntry: {
|
|
3234
3386
|
position_id?: string | null;
|
|
@@ -3349,6 +3501,65 @@ export interface components {
|
|
|
3349
3501
|
/** Format: int64 */
|
|
3350
3502
|
last_trade_at?: number | null;
|
|
3351
3503
|
};
|
|
3504
|
+
/**
|
|
3505
|
+
* @description Bucket row returned by the per-trader `/analytics/timeseries` and
|
|
3506
|
+
* `/analytics/deltas` endpoints. Mirrors `TimeBucketRow` minus the
|
|
3507
|
+
* distinct-address counters (`new_*` / `unique_*`) — those only carry
|
|
3508
|
+
* information for aggregations over many addresses (market, event, tag,
|
|
3509
|
+
* global), not for a single trader.
|
|
3510
|
+
*/
|
|
3511
|
+
TraderTimeBucketRow: {
|
|
3512
|
+
/** Format: int32 */
|
|
3513
|
+
t: number;
|
|
3514
|
+
/** Format: double */
|
|
3515
|
+
v: number;
|
|
3516
|
+
/** Format: double */
|
|
3517
|
+
bv: number;
|
|
3518
|
+
/** Format: double */
|
|
3519
|
+
sv: number;
|
|
3520
|
+
/** Format: int64 */
|
|
3521
|
+
tc: number;
|
|
3522
|
+
/** Format: int64 */
|
|
3523
|
+
bc: number;
|
|
3524
|
+
/** Format: int64 */
|
|
3525
|
+
sc: number;
|
|
3526
|
+
/** Format: int64 */
|
|
3527
|
+
rc: number;
|
|
3528
|
+
/** Format: double */
|
|
3529
|
+
rv: number;
|
|
3530
|
+
/** Format: int64 */
|
|
3531
|
+
mc: number;
|
|
3532
|
+
/** Format: double */
|
|
3533
|
+
mv: number;
|
|
3534
|
+
/** Format: int64 */
|
|
3535
|
+
sp: number;
|
|
3536
|
+
/** Format: double */
|
|
3537
|
+
spv: number;
|
|
3538
|
+
/** Format: double */
|
|
3539
|
+
f: number;
|
|
3540
|
+
/** Format: double */
|
|
3541
|
+
sh: number;
|
|
3542
|
+
/** Format: double */
|
|
3543
|
+
yv: number;
|
|
3544
|
+
/** Format: double */
|
|
3545
|
+
nv: number;
|
|
3546
|
+
/** Format: int64 */
|
|
3547
|
+
yc: number;
|
|
3548
|
+
/** Format: int64 */
|
|
3549
|
+
nc: number;
|
|
3550
|
+
/** Format: int64 */
|
|
3551
|
+
bd_u10: number;
|
|
3552
|
+
/** Format: int64 */
|
|
3553
|
+
bd_100: number;
|
|
3554
|
+
/** Format: int64 */
|
|
3555
|
+
bd_1k: number;
|
|
3556
|
+
/** Format: int64 */
|
|
3557
|
+
bd_10k: number;
|
|
3558
|
+
/** Format: int64 */
|
|
3559
|
+
bd_50k: number;
|
|
3560
|
+
/** Format: int64 */
|
|
3561
|
+
bd_50p: number;
|
|
3562
|
+
};
|
|
3352
3563
|
TraderVolumeChartResponse: {
|
|
3353
3564
|
volumes: components["schemas"]["TraderVolumeDataPoint"][];
|
|
3354
3565
|
has_more: boolean;
|
|
@@ -3393,9 +3604,9 @@ export type $defs = Record<string, never>;
|
|
|
3393
3604
|
export interface operations {
|
|
3394
3605
|
get_global_analytics_changes: {
|
|
3395
3606
|
parameters: {
|
|
3396
|
-
query
|
|
3397
|
-
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
3398
|
-
timeframe
|
|
3607
|
+
query?: {
|
|
3608
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
|
|
3609
|
+
timeframe?: components["schemas"]["ChangeTimeframe"];
|
|
3399
3610
|
};
|
|
3400
3611
|
header?: never;
|
|
3401
3612
|
path?: never;
|
|
@@ -3437,7 +3648,7 @@ export interface operations {
|
|
|
3437
3648
|
get_global_analytics_deltas: {
|
|
3438
3649
|
parameters: {
|
|
3439
3650
|
query?: {
|
|
3440
|
-
/** @description Bucket size:
|
|
3651
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3441
3652
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3442
3653
|
/** @description Start timestamp (Unix seconds). Omit for all-time. */
|
|
3443
3654
|
from?: number;
|
|
@@ -3468,7 +3679,7 @@ export interface operations {
|
|
|
3468
3679
|
get_global_analytics_timeseries: {
|
|
3469
3680
|
parameters: {
|
|
3470
3681
|
query?: {
|
|
3471
|
-
/** @description Bucket size:
|
|
3682
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3472
3683
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3473
3684
|
/** @description Start timestamp (Unix seconds). Omit for all-time. */
|
|
3474
3685
|
from?: number;
|
|
@@ -3764,9 +3975,9 @@ export interface operations {
|
|
|
3764
3975
|
};
|
|
3765
3976
|
get_event_analytics_changes: {
|
|
3766
3977
|
parameters: {
|
|
3767
|
-
query
|
|
3768
|
-
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
3769
|
-
timeframe
|
|
3978
|
+
query?: {
|
|
3979
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
|
|
3980
|
+
timeframe?: components["schemas"]["ChangeTimeframe"];
|
|
3770
3981
|
};
|
|
3771
3982
|
header?: never;
|
|
3772
3983
|
path: {
|
|
@@ -3791,7 +4002,7 @@ export interface operations {
|
|
|
3791
4002
|
get_event_analytics_deltas: {
|
|
3792
4003
|
parameters: {
|
|
3793
4004
|
query?: {
|
|
3794
|
-
/** @description Bucket size:
|
|
4005
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3795
4006
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3796
4007
|
/** @description Start timestamp (Unix seconds) */
|
|
3797
4008
|
from?: number;
|
|
@@ -3825,7 +4036,7 @@ export interface operations {
|
|
|
3825
4036
|
get_event_analytics_timeseries: {
|
|
3826
4037
|
parameters: {
|
|
3827
4038
|
query?: {
|
|
3828
|
-
/** @description Bucket size:
|
|
4039
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
3829
4040
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
3830
4041
|
/** @description Start timestamp (Unix seconds) */
|
|
3831
4042
|
from?: number;
|
|
@@ -4729,9 +4940,9 @@ export interface operations {
|
|
|
4729
4940
|
};
|
|
4730
4941
|
get_market_analytics_changes: {
|
|
4731
4942
|
parameters: {
|
|
4732
|
-
query
|
|
4733
|
-
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
4734
|
-
timeframe
|
|
4943
|
+
query?: {
|
|
4944
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
|
|
4945
|
+
timeframe?: components["schemas"]["ChangeTimeframe"];
|
|
4735
4946
|
};
|
|
4736
4947
|
header?: never;
|
|
4737
4948
|
path: {
|
|
@@ -4756,7 +4967,7 @@ export interface operations {
|
|
|
4756
4967
|
get_market_analytics_deltas: {
|
|
4757
4968
|
parameters: {
|
|
4758
4969
|
query?: {
|
|
4759
|
-
/** @description Bucket size:
|
|
4970
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
4760
4971
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
4761
4972
|
/** @description Start timestamp (Unix seconds) */
|
|
4762
4973
|
from?: number;
|
|
@@ -4790,7 +5001,7 @@ export interface operations {
|
|
|
4790
5001
|
get_market_analytics_timeseries: {
|
|
4791
5002
|
parameters: {
|
|
4792
5003
|
query?: {
|
|
4793
|
-
/** @description Bucket size:
|
|
5004
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
4794
5005
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
4795
5006
|
/** @description Start timestamp (Unix seconds) */
|
|
4796
5007
|
from?: number;
|
|
@@ -5252,6 +5463,8 @@ export interface operations {
|
|
|
5252
5463
|
sort?: components["schemas"]["TagSortBy"];
|
|
5253
5464
|
/** @description Window for the sort metric. Defaults to `24h` when only `sort` is set. Setting either `sort` or `timeframe` adds +2 credits. */
|
|
5254
5465
|
timeframe?: components["schemas"]["TagSortTimeframe"];
|
|
5466
|
+
/** @description Sort direction (default: true = highest first). Only applies to sort/timeframe mode. */
|
|
5467
|
+
sort_desc?: boolean;
|
|
5255
5468
|
};
|
|
5256
5469
|
header?: never;
|
|
5257
5470
|
path?: never;
|
|
@@ -5307,9 +5520,9 @@ export interface operations {
|
|
|
5307
5520
|
};
|
|
5308
5521
|
get_tag_analytics_changes: {
|
|
5309
5522
|
parameters: {
|
|
5310
|
-
query
|
|
5311
|
-
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
5312
|
-
timeframe
|
|
5523
|
+
query?: {
|
|
5524
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
|
|
5525
|
+
timeframe?: components["schemas"]["ChangeTimeframe"];
|
|
5313
5526
|
};
|
|
5314
5527
|
header?: never;
|
|
5315
5528
|
path: {
|
|
@@ -5334,7 +5547,7 @@ export interface operations {
|
|
|
5334
5547
|
get_tag_analytics_deltas: {
|
|
5335
5548
|
parameters: {
|
|
5336
5549
|
query?: {
|
|
5337
|
-
/** @description Bucket size:
|
|
5550
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5338
5551
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5339
5552
|
/** @description Start timestamp (Unix seconds) */
|
|
5340
5553
|
from?: number;
|
|
@@ -5368,7 +5581,7 @@ export interface operations {
|
|
|
5368
5581
|
get_tag_analytics_timeseries: {
|
|
5369
5582
|
parameters: {
|
|
5370
5583
|
query?: {
|
|
5371
|
-
/** @description Bucket size:
|
|
5584
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5372
5585
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5373
5586
|
/** @description Start timestamp (Unix seconds) */
|
|
5374
5587
|
from?: number;
|
|
@@ -5769,8 +5982,6 @@ export interface operations {
|
|
|
5769
5982
|
from?: number;
|
|
5770
5983
|
/** @description End timestamp (ms) */
|
|
5771
5984
|
to?: number;
|
|
5772
|
-
/** @description Return all-time trades, not just last 30 days (default: false) */
|
|
5773
|
-
all?: boolean;
|
|
5774
5985
|
/** @description Results per page (default: 10, max: 250) */
|
|
5775
5986
|
limit?: number;
|
|
5776
5987
|
/** @description Pagination offset (number of results to skip). Takes precedence over pagination_key. */
|
|
@@ -5836,9 +6047,9 @@ export interface operations {
|
|
|
5836
6047
|
};
|
|
5837
6048
|
get_trader_analytics_changes: {
|
|
5838
6049
|
parameters: {
|
|
5839
|
-
query
|
|
5840
|
-
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y */
|
|
5841
|
-
timeframe
|
|
6050
|
+
query?: {
|
|
6051
|
+
/** @description Lookback window: 1h, 24h, 7d, 30d, 1mo, 1y (default: 24h) */
|
|
6052
|
+
timeframe?: components["schemas"]["ChangeTimeframe"];
|
|
5842
6053
|
};
|
|
5843
6054
|
header?: never;
|
|
5844
6055
|
path: {
|
|
@@ -5855,7 +6066,7 @@ export interface operations {
|
|
|
5855
6066
|
[name: string]: unknown;
|
|
5856
6067
|
};
|
|
5857
6068
|
content: {
|
|
5858
|
-
"application/json": components["schemas"]["
|
|
6069
|
+
"application/json": components["schemas"]["TraderMetricPctChange"];
|
|
5859
6070
|
};
|
|
5860
6071
|
};
|
|
5861
6072
|
};
|
|
@@ -5863,7 +6074,7 @@ export interface operations {
|
|
|
5863
6074
|
get_trader_analytics_deltas: {
|
|
5864
6075
|
parameters: {
|
|
5865
6076
|
query?: {
|
|
5866
|
-
/** @description Bucket size:
|
|
6077
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5867
6078
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5868
6079
|
/** @description Start timestamp (Unix seconds) */
|
|
5869
6080
|
from?: number;
|
|
@@ -5889,7 +6100,7 @@ export interface operations {
|
|
|
5889
6100
|
[name: string]: unknown;
|
|
5890
6101
|
};
|
|
5891
6102
|
content: {
|
|
5892
|
-
"application/json": components["schemas"]["
|
|
6103
|
+
"application/json": components["schemas"]["TraderTimeBucketRow"][];
|
|
5893
6104
|
};
|
|
5894
6105
|
};
|
|
5895
6106
|
};
|
|
@@ -5897,7 +6108,7 @@ export interface operations {
|
|
|
5897
6108
|
get_trader_analytics_timeseries: {
|
|
5898
6109
|
parameters: {
|
|
5899
6110
|
query?: {
|
|
5900
|
-
/** @description Bucket size:
|
|
6111
|
+
/** @description Bucket size: 60, 240, D, 1D, W, 1W, M, 1M (default: 60) */
|
|
5901
6112
|
resolution?: components["schemas"]["AnalyticsResolution"];
|
|
5902
6113
|
/** @description Start timestamp (Unix seconds) */
|
|
5903
6114
|
from?: number;
|
|
@@ -5923,7 +6134,7 @@ export interface operations {
|
|
|
5923
6134
|
[name: string]: unknown;
|
|
5924
6135
|
};
|
|
5925
6136
|
content: {
|
|
5926
|
-
"application/json": components["schemas"]["
|
|
6137
|
+
"application/json": components["schemas"]["TraderTimeBucketRow"][];
|
|
5927
6138
|
};
|
|
5928
6139
|
};
|
|
5929
6140
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ export type TimeBucketRow = Schemas["TimeBucketRow"];
|
|
|
72
72
|
export type TokenOutcome = Schemas["TokenOutcome"];
|
|
73
73
|
export type Trader = Schemas["Trader"];
|
|
74
74
|
export type TraderInfo = Schemas["TraderInfo"];
|
|
75
|
+
export type TraderMetricPctChange = Schemas["TraderMetricPctChange"];
|
|
76
|
+
export type TraderTimeBucketRow = Schemas["TraderTimeBucketRow"];
|
|
75
77
|
export type TraderVolumeChartResponse = Schemas["TraderVolumeChartResponse"];
|
|
76
78
|
export type TraderOutcomePnlEntry = Schemas["TraderOutcomePnlEntry"];
|
|
77
79
|
export type TraderVolumeDataPoint = Schemas["TraderVolumeDataPoint"];
|