@structbuild/sdk 0.2.5 → 0.2.6
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 +38 -18
- package/package.json +1 -1
|
@@ -11,8 +11,8 @@ export interface paths {
|
|
|
11
11
|
cookie?: never;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Get
|
|
15
|
-
* @description
|
|
14
|
+
* Get Asset Price History
|
|
15
|
+
* @description Returns historical price data for supported crypto assets from Polymarket API
|
|
16
16
|
*/
|
|
17
17
|
get: operations["get_asset_history"];
|
|
18
18
|
put?: never;
|
|
@@ -2207,18 +2207,25 @@ export interface operations {
|
|
|
2207
2207
|
get_asset_history: {
|
|
2208
2208
|
parameters: {
|
|
2209
2209
|
query: {
|
|
2210
|
-
/**
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2210
|
+
/**
|
|
2211
|
+
* @description Asset ticker: BTC, ETH, XRP, SOL, DOGE, BNB, HYPE
|
|
2212
|
+
* @example BTC
|
|
2213
|
+
*/
|
|
2214
|
+
asset_symbol: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* @description Time window: 5m, 15m, 1h, 4h, 1d
|
|
2217
|
+
* @example 1h
|
|
2218
|
+
*/
|
|
2219
|
+
variant: string;
|
|
2220
|
+
/** @description Start timestamp in seconds (Unix epoch, inclusive) */
|
|
2215
2221
|
from?: number;
|
|
2216
|
-
/** @description End timestamp (Unix
|
|
2222
|
+
/** @description End timestamp in seconds (Unix epoch, inclusive) */
|
|
2217
2223
|
to?: number;
|
|
2218
|
-
/**
|
|
2224
|
+
/**
|
|
2225
|
+
* @description Number of results (default: 10, max: 100)
|
|
2226
|
+
* @example 10
|
|
2227
|
+
*/
|
|
2219
2228
|
limit?: number;
|
|
2220
|
-
/** @description Cursor-based pagination key Obtained from previous response's `pagination.pagination_key`. Pass this to fetch the next page of results. */
|
|
2221
|
-
pagination_key?: string;
|
|
2222
2229
|
};
|
|
2223
2230
|
header?: never;
|
|
2224
2231
|
path?: never;
|
|
@@ -2226,7 +2233,7 @@ export interface operations {
|
|
|
2226
2233
|
};
|
|
2227
2234
|
requestBody?: never;
|
|
2228
2235
|
responses: {
|
|
2229
|
-
/** @description
|
|
2236
|
+
/** @description Successful response */
|
|
2230
2237
|
200: {
|
|
2231
2238
|
headers: {
|
|
2232
2239
|
[name: string]: unknown;
|
|
@@ -2235,13 +2242,20 @@ export interface operations {
|
|
|
2235
2242
|
"application/json": components["schemas"]["AssetPriceHistoryRow"][];
|
|
2236
2243
|
};
|
|
2237
2244
|
};
|
|
2238
|
-
/** @description
|
|
2245
|
+
/** @description Bad request - missing or invalid parameters */
|
|
2239
2246
|
400: {
|
|
2240
2247
|
headers: {
|
|
2241
2248
|
[name: string]: unknown;
|
|
2242
2249
|
};
|
|
2243
2250
|
content?: never;
|
|
2244
2251
|
};
|
|
2252
|
+
/** @description Internal server error */
|
|
2253
|
+
500: {
|
|
2254
|
+
headers: {
|
|
2255
|
+
[name: string]: unknown;
|
|
2256
|
+
};
|
|
2257
|
+
content?: never;
|
|
2258
|
+
};
|
|
2245
2259
|
};
|
|
2246
2260
|
};
|
|
2247
2261
|
get_events: {
|
|
@@ -3509,7 +3523,7 @@ export interface operations {
|
|
|
3509
3523
|
query: {
|
|
3510
3524
|
/** @description Search query (min 2 characters). Prefix with 0x for exact wallet address lookup. */
|
|
3511
3525
|
q: string;
|
|
3512
|
-
/** @description Comma-separated categories to search: events, markets, traders (default: all three). Example: type=markets,traders */
|
|
3526
|
+
/** @description Comma-separated categories to search: events, markets, traders (default: all three, 1 credit per type). Example: type=markets,traders */
|
|
3513
3527
|
type?: string;
|
|
3514
3528
|
/** @description Include lifetime PnL summary for each trader (default: false, +1 credit) */
|
|
3515
3529
|
include_pnl?: boolean;
|
|
@@ -3807,7 +3821,9 @@ export interface operations {
|
|
|
3807
3821
|
sort_direction?: components["schemas"]["SortDirection"];
|
|
3808
3822
|
/** @description Results limit (default: 10, max: 200) */
|
|
3809
3823
|
limit?: number;
|
|
3810
|
-
/** @description
|
|
3824
|
+
/** @description Pagination offset (number of results to skip). Takes precedence over pagination_key. */
|
|
3825
|
+
offset?: number;
|
|
3826
|
+
/** @description Cursor-based pagination key obtained from previous response's pagination.pagination_key */
|
|
3811
3827
|
pagination_key?: string;
|
|
3812
3828
|
/** @description Filter by event slug */
|
|
3813
3829
|
event_slug?: string;
|
|
@@ -3843,7 +3859,9 @@ export interface operations {
|
|
|
3843
3859
|
sort_direction?: components["schemas"]["SortDirection"];
|
|
3844
3860
|
/** @description Results limit (default: 10, max: 200) */
|
|
3845
3861
|
limit?: number;
|
|
3846
|
-
/** @description
|
|
3862
|
+
/** @description Pagination offset (number of results to skip). Takes precedence over pagination_key. */
|
|
3863
|
+
offset?: number;
|
|
3864
|
+
/** @description Cursor-based pagination key obtained from previous response's pagination.pagination_key */
|
|
3847
3865
|
pagination_key?: string;
|
|
3848
3866
|
/** @description Filter by condition ID (or use market_slug) */
|
|
3849
3867
|
condition_id?: string;
|
|
@@ -4006,8 +4024,10 @@ export interface operations {
|
|
|
4006
4024
|
all?: boolean;
|
|
4007
4025
|
/** @description Results per page (default: 10, max: 250) */
|
|
4008
4026
|
limit?: number;
|
|
4009
|
-
/** @description
|
|
4010
|
-
|
|
4027
|
+
/** @description Pagination offset (number of results to skip). Takes precedence over pagination_key. */
|
|
4028
|
+
offset?: number;
|
|
4029
|
+
/** @description Cursor-based pagination key obtained from previous response's pagination.pagination_key */
|
|
4030
|
+
pagination_key?: string;
|
|
4011
4031
|
/** @description Sort newest first (default: true) */
|
|
4012
4032
|
sort_desc?: boolean;
|
|
4013
4033
|
/** @description Return truncated response optimized for AI consumers (default: false) */
|