@structbuild/sdk 0.5.6-staging.3 → 0.5.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/client.d.ts +1 -2
- package/dist/generated/polymarket.d.ts +2912 -5416
- package/dist/generated/webhooks.d.ts +1568 -939
- package/dist/generated/ws-alerts.d.ts +1620 -955
- package/dist/generated/ws.d.ts +1286 -278
- package/dist/index.cjs +1 -45
- package/dist/index.cjs.map +5 -6
- package/dist/index.js +1 -45
- package/dist/index.js.map +5 -6
- package/dist/namespaces/index.d.ts +0 -1
- package/dist/namespaces/trader.d.ts +1 -5
- package/dist/types/index.d.ts +9 -86
- package/dist/types/ws.d.ts +7 -2
- package/package.json +1 -1
- package/dist/namespaces/smartMoney.d.ts +0 -13
|
@@ -86,122 +86,233 @@ export interface components {
|
|
|
86
86
|
slug?: string | null;
|
|
87
87
|
event_slug?: string | null;
|
|
88
88
|
};
|
|
89
|
-
/** @description
|
|
89
|
+
/** @description Subscription filters for the `asset_price_tick` event. All fields are optional. */
|
|
90
|
+
AssetPriceTickFilters: {
|
|
91
|
+
/** @description Restrict to these crypto assets. Empty = all assets. */
|
|
92
|
+
asset_symbols?: components["schemas"]["WebhookAssetSymbol"][] | null;
|
|
93
|
+
};
|
|
94
|
+
/** @description Webhook payload for an asset price tick. */
|
|
90
95
|
AssetPriceTickPayload: {
|
|
96
|
+
/** @description Asset symbol */
|
|
97
|
+
symbol: components["schemas"]["WebhookAssetSymbol"];
|
|
91
98
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @
|
|
99
|
+
* Format: double
|
|
100
|
+
* @description Current price from the Chainlink feed
|
|
94
101
|
*/
|
|
95
|
-
symbol: "BTC" | "ETH" | "SOL" | "XRP" | "DOGE" | "BNB" | "HYPE";
|
|
96
|
-
/** @description Current asset price in USD from the Chainlink feed */
|
|
97
102
|
price: number;
|
|
98
103
|
/**
|
|
99
104
|
* Format: int64
|
|
100
|
-
* @description Tick timestamp (milliseconds since
|
|
105
|
+
* @description Tick timestamp as reported by the WebSocket feed (milliseconds since epoch)
|
|
101
106
|
*/
|
|
102
107
|
timestamp_ms: number;
|
|
103
108
|
};
|
|
104
|
-
/** @description
|
|
109
|
+
/** @description Subscription filters for the `asset_price_window_update` event. All fields are optional. */
|
|
110
|
+
AssetPriceWindowUpdateFilters: {
|
|
111
|
+
/** @description Restrict to these crypto assets. Empty = all assets. */
|
|
112
|
+
asset_symbols?: components["schemas"]["WebhookAssetSymbol"][] | null;
|
|
113
|
+
/** @description Restrict to these candle sizes. Empty = all sizes. */
|
|
114
|
+
timeframes?: components["schemas"]["AssetWindowFilterTimeframe"][] | null;
|
|
115
|
+
};
|
|
116
|
+
/** @description Webhook payload for an asset price window open or close. */
|
|
105
117
|
AssetPriceWindowUpdatePayload: {
|
|
106
|
-
/**
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
symbol: "BTC" | "ETH" | "SOL" | "XRP" | "DOGE" | "BNB" | "HYPE";
|
|
111
|
-
/**
|
|
112
|
-
* @description Candle / window size
|
|
113
|
-
* @enum {string}
|
|
114
|
-
*/
|
|
115
|
-
variant: "5m" | "15m" | "1h" | "4h" | "1d" | "24h";
|
|
118
|
+
/** @description Asset symbol */
|
|
119
|
+
symbol: components["schemas"]["WebhookAssetSymbol"];
|
|
120
|
+
/** @description Time-window variant */
|
|
121
|
+
variant: components["schemas"]["AssetPriceWindowVariant"];
|
|
116
122
|
/**
|
|
117
123
|
* Format: int64
|
|
118
|
-
* @description Window start timestamp (milliseconds since
|
|
124
|
+
* @description Window start timestamp (milliseconds since epoch)
|
|
119
125
|
*/
|
|
120
126
|
start_time: number;
|
|
121
127
|
/**
|
|
122
128
|
* Format: int64
|
|
123
|
-
* @description Window end timestamp (milliseconds since
|
|
129
|
+
* @description Window end timestamp (milliseconds since epoch)
|
|
124
130
|
*/
|
|
125
131
|
end_time: number;
|
|
126
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Format: double
|
|
134
|
+
* @description Opening price at start_time
|
|
135
|
+
*/
|
|
127
136
|
open_price: number;
|
|
128
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* Format: double
|
|
139
|
+
* @description Closing price at end_time (0.0 on an "open" update — not yet available)
|
|
140
|
+
*/
|
|
129
141
|
close_price: number;
|
|
142
|
+
/** @description "open" when the window starts, "close" when the window is complete */
|
|
143
|
+
update_type: components["schemas"]["AssetPriceWindowUpdateType"];
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* @description Whether this update is the open or the close of a candle.
|
|
147
|
+
* @enum {string}
|
|
148
|
+
*/
|
|
149
|
+
AssetPriceWindowUpdateType: "open" | "close";
|
|
150
|
+
/**
|
|
151
|
+
* @description Time-window variant emitted by the asset price window stream.
|
|
152
|
+
* @enum {string}
|
|
153
|
+
*/
|
|
154
|
+
AssetPriceWindowVariant: "5m" | "15m" | "1h" | "4h" | "1d" | "24h";
|
|
155
|
+
/**
|
|
156
|
+
* @description Candle sizes accepted by `asset_price_window_update.timeframes`.
|
|
157
|
+
* @enum {string}
|
|
158
|
+
*/
|
|
159
|
+
AssetWindowFilterTimeframe: "5m" | "15m" | "1h" | "4h" | "1d" | "24h";
|
|
160
|
+
/**
|
|
161
|
+
* @description Subscription filters for the `close_to_bond` event. At least one of
|
|
162
|
+
* `min_probability` or `max_probability` is required (enforced at runtime).
|
|
163
|
+
*/
|
|
164
|
+
CloseToBondFilters: {
|
|
130
165
|
/**
|
|
131
|
-
*
|
|
132
|
-
* @
|
|
166
|
+
* Format: double
|
|
167
|
+
* @description Trigger when the YES outcome price is ≥ this value (e.g. 0.95 for 95% certainty). At least one of `min_probability` or `max_probability` must be set.
|
|
168
|
+
*/
|
|
169
|
+
min_probability?: number | null;
|
|
170
|
+
/**
|
|
171
|
+
* Format: double
|
|
172
|
+
* @description Trigger when the YES outcome price is ≤ this value (e.g. 0.05 for near-certain NO).
|
|
133
173
|
*/
|
|
134
|
-
|
|
174
|
+
max_probability?: number | null;
|
|
175
|
+
/** @description Restrict to these markets. */
|
|
176
|
+
condition_ids?: string[] | null;
|
|
177
|
+
/** @description Restrict to these outcome token IDs. */
|
|
178
|
+
position_ids?: string[] | null;
|
|
179
|
+
/** @description Restrict to markets in these events. */
|
|
180
|
+
event_slugs?: string[] | null;
|
|
181
|
+
/** @description Restrict to these outcome names (e.g. \["Yes", "No"\]). */
|
|
182
|
+
outcomes?: string[] | null;
|
|
183
|
+
/** @description Restrict by outcome index. 0 = Yes/Up, 1 = No. Position 0 usually represents the Up/Yes side in binary markets. */
|
|
184
|
+
position_outcome_indices?: number[] | null;
|
|
185
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
186
|
+
exclude_shortterm_markets?: boolean | null;
|
|
135
187
|
};
|
|
136
|
-
/** @description
|
|
188
|
+
/** @description Close-to-bond webhook payload */
|
|
137
189
|
CloseToBondPayload: {
|
|
138
|
-
/** @description
|
|
190
|
+
/** @description Trader address (the limit-order maker) */
|
|
139
191
|
trader: string;
|
|
140
|
-
/** @description
|
|
192
|
+
/** @description Taker address (the order filler — often the exchange contract) */
|
|
141
193
|
taker: string;
|
|
142
|
-
/** @description
|
|
194
|
+
/** @description Position ID (ERC1155 token ID) */
|
|
143
195
|
position_id: string;
|
|
144
|
-
/** @description
|
|
196
|
+
/** @description Condition ID (parent market) */
|
|
145
197
|
condition_id?: string | null;
|
|
146
198
|
/** @description Outcome name (e.g. "Yes", "No") */
|
|
147
199
|
outcome?: string | null;
|
|
148
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* Format: int32
|
|
202
|
+
* @description Outcome index (0 = Yes/Up, 1 = No). Position 0 usually represents Yes/Up.
|
|
203
|
+
*/
|
|
149
204
|
outcome_index?: number | null;
|
|
205
|
+
/** @description Market question */
|
|
150
206
|
question?: string | null;
|
|
207
|
+
/** @description Market slug */
|
|
151
208
|
market_slug?: string | null;
|
|
209
|
+
/** @description Event slug */
|
|
152
210
|
event_slug?: string | null;
|
|
211
|
+
/** @description Trade ID */
|
|
153
212
|
trade_id: string;
|
|
154
213
|
/** @description Transaction hash */
|
|
155
214
|
hash: string;
|
|
156
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* Format: int64
|
|
217
|
+
* @description Block number
|
|
218
|
+
*/
|
|
157
219
|
block: number;
|
|
158
220
|
/**
|
|
159
221
|
* Format: int64
|
|
160
|
-
* @description Unix seconds
|
|
222
|
+
* @description Confirmed timestamp (Unix seconds)
|
|
161
223
|
*/
|
|
162
224
|
confirmed_at: number;
|
|
163
|
-
/**
|
|
225
|
+
/**
|
|
226
|
+
* Format: double
|
|
227
|
+
* @description USD size of the trade
|
|
228
|
+
*/
|
|
164
229
|
amount_usd: number;
|
|
230
|
+
/**
|
|
231
|
+
* Format: double
|
|
232
|
+
* @description Outcome shares traded
|
|
233
|
+
*/
|
|
165
234
|
shares_amount: number;
|
|
166
|
-
/**
|
|
235
|
+
/**
|
|
236
|
+
* Format: double
|
|
237
|
+
* @description Fee paid (USD)
|
|
238
|
+
*/
|
|
167
239
|
fee: number;
|
|
168
|
-
/** @
|
|
169
|
-
side:
|
|
170
|
-
/**
|
|
240
|
+
/** @description Trade side ("Buy" or "Sell") */
|
|
241
|
+
side: string;
|
|
242
|
+
/**
|
|
243
|
+
* Format: double
|
|
244
|
+
* @description Price per share (0.0–1.0) — the value that triggered the notification
|
|
245
|
+
*/
|
|
171
246
|
price: number;
|
|
172
|
-
/**
|
|
247
|
+
/**
|
|
248
|
+
* Format: double
|
|
249
|
+
* @description Implied probability of the outcome (0.0–1.0)
|
|
250
|
+
*/
|
|
173
251
|
probability?: number | null;
|
|
252
|
+
/** @description Which bond zone was entered: `"high"` (YES near-certain) or `"low"` (NO near-certain) */
|
|
253
|
+
bond_side: string;
|
|
174
254
|
/**
|
|
175
|
-
*
|
|
176
|
-
* @
|
|
255
|
+
* Format: double
|
|
256
|
+
* @description The probability threshold from the subscriber's filter that was breached
|
|
177
257
|
*/
|
|
178
|
-
bond_side: "high" | "low";
|
|
179
|
-
/** @description The probability threshold from the subscription filter that was breached */
|
|
180
258
|
threshold: number;
|
|
181
259
|
};
|
|
182
260
|
/** @description Payload delivered when a market's volume or transaction metrics cross a configured threshold */
|
|
183
261
|
ConditionMetricsPayload: {
|
|
184
262
|
/** @description Market condition ID */
|
|
185
263
|
condition_id?: string | null;
|
|
264
|
+
/** @description Aggregation window */
|
|
265
|
+
timeframe?: null | ("1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "6h" | "1d" | "24h" | "7d" | "30d");
|
|
186
266
|
/**
|
|
187
|
-
*
|
|
188
|
-
* @
|
|
267
|
+
* Format: double
|
|
268
|
+
* @description Total trading volume in USD for this timeframe
|
|
189
269
|
*/
|
|
190
|
-
timeframe?: "1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d" | null;
|
|
191
|
-
/** @description Total trading volume in USD for this timeframe */
|
|
192
270
|
volume_usd?: number | null;
|
|
193
|
-
/**
|
|
271
|
+
/**
|
|
272
|
+
* Format: double
|
|
273
|
+
* @description Total shares/contracts volume for this timeframe
|
|
274
|
+
*/
|
|
275
|
+
shares_volume?: number | null;
|
|
276
|
+
/**
|
|
277
|
+
* Format: double
|
|
278
|
+
* @description Builder-attributed trading volume in USD
|
|
279
|
+
*/
|
|
280
|
+
builder_usd_volume?: number | null;
|
|
281
|
+
/**
|
|
282
|
+
* Format: double
|
|
283
|
+
* @description Builder-attributed shares/contracts volume
|
|
284
|
+
*/
|
|
285
|
+
builder_shares_volume?: number | null;
|
|
286
|
+
/**
|
|
287
|
+
* Format: double
|
|
288
|
+
* @description Total fees collected in USD
|
|
289
|
+
*/
|
|
194
290
|
fees?: number | null;
|
|
291
|
+
/**
|
|
292
|
+
* Format: double
|
|
293
|
+
* @description Builder-attributed fees in USD
|
|
294
|
+
*/
|
|
295
|
+
builder_fees?: number | null;
|
|
195
296
|
/**
|
|
196
297
|
* Format: int64
|
|
197
298
|
* @description Total number of transactions
|
|
198
299
|
*/
|
|
199
300
|
txns?: number | null;
|
|
301
|
+
/**
|
|
302
|
+
* Format: int64
|
|
303
|
+
* @description Builder-attributed transaction count
|
|
304
|
+
*/
|
|
305
|
+
builder_txns?: number | null;
|
|
200
306
|
/**
|
|
201
307
|
* Format: int64
|
|
202
308
|
* @description Number of unique traders
|
|
203
309
|
*/
|
|
204
310
|
unique_traders?: number | null;
|
|
311
|
+
/**
|
|
312
|
+
* Format: int64
|
|
313
|
+
* @description Number of unique builder-attributed traders
|
|
314
|
+
*/
|
|
315
|
+
unique_builder_traders?: number | null;
|
|
205
316
|
};
|
|
206
317
|
/** @description CTF ConditionResolution: positions become redeemable on the Conditional Tokens contract. */
|
|
207
318
|
ConditionResolutionEvent: {
|
|
@@ -272,45 +383,92 @@ export interface components {
|
|
|
272
383
|
slug?: string | null;
|
|
273
384
|
event_slug?: string | null;
|
|
274
385
|
};
|
|
386
|
+
/** @description Subscription filters for the `event_metrics` event. All fields are optional. */
|
|
387
|
+
EventMetricsFilters: {
|
|
388
|
+
/** @description Restrict to these events. Empty = all events. */
|
|
389
|
+
event_slugs?: string[] | null;
|
|
390
|
+
/** @description Restrict to these aggregation windows. */
|
|
391
|
+
timeframes?: components["schemas"]["MetricFilterTimeframe"][] | null;
|
|
392
|
+
/**
|
|
393
|
+
* Format: double
|
|
394
|
+
* @description Only fire when aggregated event volume ≥ this value (USD).
|
|
395
|
+
*/
|
|
396
|
+
min_volume_usd?: number | null;
|
|
397
|
+
/** Format: double */
|
|
398
|
+
max_volume_usd?: number | null;
|
|
399
|
+
/** Format: int64 */
|
|
400
|
+
min_txns?: number | null;
|
|
401
|
+
/** Format: int64 */
|
|
402
|
+
min_unique_traders?: number | null;
|
|
403
|
+
/** Format: double */
|
|
404
|
+
min_fees?: number | null;
|
|
405
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
406
|
+
exclude_shortterm_markets?: boolean | null;
|
|
407
|
+
};
|
|
275
408
|
/** @description Payload delivered when an event's aggregated volume or transaction metrics cross a configured threshold */
|
|
276
409
|
EventMetricsPayload: {
|
|
277
410
|
/** @description Event slug */
|
|
278
411
|
event_slug?: string | null;
|
|
412
|
+
/** @description Aggregation window */
|
|
413
|
+
timeframe?: null | ("1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "6h" | "1d" | "24h" | "7d" | "30d");
|
|
279
414
|
/**
|
|
280
|
-
*
|
|
281
|
-
* @
|
|
415
|
+
* Format: double
|
|
416
|
+
* @description Total aggregated volume across all markets in the event (USD)
|
|
282
417
|
*/
|
|
283
|
-
timeframe?: "1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d" | null;
|
|
284
|
-
/** @description Total aggregated volume across all markets in the event (USD) */
|
|
285
418
|
volume_usd?: number | null;
|
|
286
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* Format: double
|
|
421
|
+
* @description Total aggregated shares/contracts volume across all markets in the event
|
|
422
|
+
*/
|
|
423
|
+
shares_volume?: number | null;
|
|
424
|
+
/**
|
|
425
|
+
* Format: double
|
|
426
|
+
* @description Builder-attributed aggregated volume in USD
|
|
427
|
+
*/
|
|
428
|
+
builder_usd_volume?: number | null;
|
|
429
|
+
/**
|
|
430
|
+
* Format: double
|
|
431
|
+
* @description Builder-attributed aggregated shares/contracts volume
|
|
432
|
+
*/
|
|
433
|
+
builder_shares_volume?: number | null;
|
|
434
|
+
/**
|
|
435
|
+
* Format: double
|
|
436
|
+
* @description Total fees collected in USD
|
|
437
|
+
*/
|
|
287
438
|
fees?: number | null;
|
|
439
|
+
/**
|
|
440
|
+
* Format: double
|
|
441
|
+
* @description Builder-attributed fees in USD
|
|
442
|
+
*/
|
|
443
|
+
builder_fees?: number | null;
|
|
288
444
|
/**
|
|
289
445
|
* Format: int64
|
|
290
446
|
* @description Total number of transactions
|
|
291
447
|
*/
|
|
292
448
|
txns?: number | null;
|
|
449
|
+
/**
|
|
450
|
+
* Format: int64
|
|
451
|
+
* @description Builder-attributed transaction count
|
|
452
|
+
*/
|
|
453
|
+
builder_txns?: number | null;
|
|
293
454
|
/**
|
|
294
455
|
* Format: int64
|
|
295
456
|
* @description Number of unique traders
|
|
296
457
|
*/
|
|
297
458
|
unique_traders?: number | null;
|
|
459
|
+
/**
|
|
460
|
+
* Format: int64
|
|
461
|
+
* @description Number of unique builder-attributed traders
|
|
462
|
+
*/
|
|
463
|
+
unique_builder_traders?: number | null;
|
|
298
464
|
};
|
|
299
|
-
/** @description
|
|
465
|
+
/** @description Event PnL webhook payload. */
|
|
300
466
|
EventPnlPayload: {
|
|
301
|
-
/** @description Trader wallet address (lowercase) */
|
|
302
467
|
trader?: string | null;
|
|
303
|
-
/** @description Event slug */
|
|
304
468
|
event_slug?: string | null;
|
|
305
|
-
/**
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
*/
|
|
309
|
-
timeframe: "1d" | "7d" | "30d" | "lifetime";
|
|
310
|
-
/**
|
|
311
|
-
* Format: int64
|
|
312
|
-
* @description Number of distinct markets traded in this event
|
|
313
|
-
*/
|
|
469
|
+
/** @description Aggregation timeframe: "1d", "7d", "30d", or "lifetime" */
|
|
470
|
+
timeframe: string;
|
|
471
|
+
/** Format: int64 */
|
|
314
472
|
markets_traded?: number | null;
|
|
315
473
|
/** Format: int64 */
|
|
316
474
|
outcomes_traded?: number | null;
|
|
@@ -322,44 +480,58 @@ export interface components {
|
|
|
322
480
|
total_redemptions?: number | null;
|
|
323
481
|
/** Format: int64 */
|
|
324
482
|
total_merges?: number | null;
|
|
325
|
-
/**
|
|
483
|
+
/** Format: double */
|
|
326
484
|
total_volume_usd?: number | null;
|
|
485
|
+
/** Format: double */
|
|
327
486
|
buy_usd?: number | null;
|
|
487
|
+
/** Format: double */
|
|
328
488
|
sell_usd?: number | null;
|
|
489
|
+
/** Format: double */
|
|
329
490
|
redemption_usd?: number | null;
|
|
491
|
+
/** Format: double */
|
|
330
492
|
merge_usd?: number | null;
|
|
331
|
-
/**
|
|
493
|
+
/** Format: double */
|
|
332
494
|
realized_pnl_usd?: number | null;
|
|
333
495
|
/** Format: int64 */
|
|
334
496
|
winning_markets?: number | null;
|
|
335
497
|
/** Format: int64 */
|
|
336
498
|
losing_markets?: number | null;
|
|
499
|
+
/** Format: double */
|
|
337
500
|
total_fees?: number | null;
|
|
338
|
-
/**
|
|
339
|
-
* Format: int64
|
|
340
|
-
* @description Unix seconds
|
|
341
|
-
*/
|
|
501
|
+
/** Format: int64 */
|
|
342
502
|
first_trade_at?: number | null;
|
|
343
|
-
/**
|
|
344
|
-
* Format: int64
|
|
345
|
-
* @description Unix seconds
|
|
346
|
-
*/
|
|
503
|
+
/** Format: int64 */
|
|
347
504
|
last_trade_at?: number | null;
|
|
348
505
|
};
|
|
349
|
-
/** @description
|
|
506
|
+
/** @description Subscription filters for the `event_volume_milestone` event. */
|
|
507
|
+
EventVolumeMilestoneFilters: {
|
|
508
|
+
/** @description **Required.** Aggregation windows to monitor. */
|
|
509
|
+
timeframes: components["schemas"]["MetricFilterTimeframe"][];
|
|
510
|
+
/** @description Restrict to these events. */
|
|
511
|
+
event_slugs?: string[] | null;
|
|
512
|
+
/** @description Specific USD milestones to trigger on. */
|
|
513
|
+
milestone_amounts?: number[] | null;
|
|
514
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
515
|
+
exclude_shortterm_markets?: boolean | null;
|
|
516
|
+
};
|
|
517
|
+
/** @description Event volume milestone webhook payload */
|
|
350
518
|
EventVolumeMilestonePayload: {
|
|
351
|
-
/** @description Event slug */
|
|
352
519
|
event_slug: string;
|
|
520
|
+
timeframe: string;
|
|
353
521
|
/**
|
|
354
|
-
*
|
|
355
|
-
* @
|
|
522
|
+
* Format: double
|
|
523
|
+
* @description Milestone amount reached (USD)
|
|
356
524
|
*/
|
|
357
|
-
timeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d";
|
|
358
|
-
/** @description The USD milestone amount that was crossed */
|
|
359
525
|
milestone_usd: number;
|
|
360
|
-
/**
|
|
526
|
+
/**
|
|
527
|
+
* Format: double
|
|
528
|
+
* @description Current volume (USD) that triggered the milestone
|
|
529
|
+
*/
|
|
361
530
|
current_volume_usd: number;
|
|
362
|
-
/**
|
|
531
|
+
/**
|
|
532
|
+
* Format: double
|
|
533
|
+
* @description Total fees collected in this timeframe
|
|
534
|
+
*/
|
|
363
535
|
fees: number;
|
|
364
536
|
/**
|
|
365
537
|
* Format: int64
|
|
@@ -367,25 +539,60 @@ export interface components {
|
|
|
367
539
|
*/
|
|
368
540
|
txns: number;
|
|
369
541
|
};
|
|
370
|
-
/** @description
|
|
542
|
+
/** @description Subscription filters for the `event_volume_spike` event. `spike_ratio` is required. */
|
|
543
|
+
EventVolumeSpikeFilters: {
|
|
544
|
+
/**
|
|
545
|
+
* Format: double
|
|
546
|
+
* @description **Required.** Multiplier threshold (must be > 1.0). Fires when current volume >= snapshot × ratio.
|
|
547
|
+
*/
|
|
548
|
+
spike_ratio: number;
|
|
549
|
+
/**
|
|
550
|
+
* Format: int64
|
|
551
|
+
* @description Force snapshot reset after this many seconds (max 600 / 10 minutes).
|
|
552
|
+
*/
|
|
553
|
+
window_secs?: number | null;
|
|
554
|
+
/** @description Restrict to these events. */
|
|
555
|
+
event_slugs?: string[] | null;
|
|
556
|
+
/** @description Restrict to these aggregation windows. */
|
|
557
|
+
timeframes?: components["schemas"]["VolumeSpikeFilterTimeframe"][] | null;
|
|
558
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
559
|
+
exclude_shortterm_markets?: boolean | null;
|
|
560
|
+
};
|
|
561
|
+
/** @description Event volume spike webhook payload */
|
|
371
562
|
EventVolumeSpikePayload: {
|
|
372
|
-
/** @description Event slug */
|
|
373
563
|
event_slug: string;
|
|
564
|
+
event_title?: string | null;
|
|
565
|
+
image_url?: string | null;
|
|
566
|
+
timeframe: string;
|
|
374
567
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @
|
|
568
|
+
* Format: double
|
|
569
|
+
* @description Current aggregated event volume at the time of the spike (USD)
|
|
377
570
|
*/
|
|
378
|
-
timeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "1d" | "24h" | "7d" | "30d";
|
|
379
|
-
/** @description Current aggregated event volume at time of the spike (USD) */
|
|
380
571
|
current_volume_usd: number;
|
|
381
|
-
/**
|
|
572
|
+
/**
|
|
573
|
+
* Format: double
|
|
574
|
+
* @description Volume at the snapshot baseline (USD)
|
|
575
|
+
*/
|
|
382
576
|
snapshot_volume_usd: number;
|
|
383
|
-
/**
|
|
577
|
+
/**
|
|
578
|
+
* Format: double
|
|
579
|
+
* @description New volume since the snapshot that triggered this notification (USD)
|
|
580
|
+
*/
|
|
384
581
|
delta_volume_usd: number;
|
|
385
|
-
/**
|
|
582
|
+
/**
|
|
583
|
+
* Format: double
|
|
584
|
+
* @description Volume growth as a percentage of the snapshot (e.g. 200.0 means volume tripled)
|
|
585
|
+
*/
|
|
386
586
|
spike_pct: number;
|
|
387
|
-
/**
|
|
587
|
+
/**
|
|
588
|
+
* Format: int64
|
|
589
|
+
* @description Total transactions in this timeframe
|
|
590
|
+
*/
|
|
388
591
|
txns: number;
|
|
592
|
+
/**
|
|
593
|
+
* Format: double
|
|
594
|
+
* @description Total fees in this timeframe
|
|
595
|
+
*/
|
|
389
596
|
fees: number;
|
|
390
597
|
};
|
|
391
598
|
/** @description Payload delivered when a tracked trader executes their first-ever trade on Polymarket */
|
|
@@ -400,7 +607,10 @@ export interface components {
|
|
|
400
607
|
condition_id?: string | null;
|
|
401
608
|
/** @description Outcome name (e.g. "Yes", "No") */
|
|
402
609
|
outcome?: string | null;
|
|
403
|
-
/**
|
|
610
|
+
/**
|
|
611
|
+
* Format: int32
|
|
612
|
+
* @description Outcome index: 0 = Yes/Up, 1 = No
|
|
613
|
+
*/
|
|
404
614
|
outcome_index?: number | null;
|
|
405
615
|
/** @description Market question text */
|
|
406
616
|
question?: string | null;
|
|
@@ -408,6 +618,8 @@ export interface components {
|
|
|
408
618
|
market_slug?: string | null;
|
|
409
619
|
/** @description Parent event slug */
|
|
410
620
|
event_slug?: string | null;
|
|
621
|
+
/** @description Market image URL */
|
|
622
|
+
image_url?: string | null;
|
|
411
623
|
/** @description Unique trade identifier */
|
|
412
624
|
trade_id: string;
|
|
413
625
|
/** @description Transaction hash */
|
|
@@ -422,148 +634,128 @@ export interface components {
|
|
|
422
634
|
* @description Block confirmation timestamp (Unix seconds)
|
|
423
635
|
*/
|
|
424
636
|
confirmed_at: number;
|
|
425
|
-
/**
|
|
637
|
+
/**
|
|
638
|
+
* Format: double
|
|
639
|
+
* @description USD size of the trade (6 decimal places)
|
|
640
|
+
*/
|
|
426
641
|
amount_usd: number;
|
|
427
|
-
/** @description Outcome shares traded (6 decimal places) */
|
|
428
|
-
shares_amount: number;
|
|
429
|
-
/** @description Fee paid in USD (6 decimal places) */
|
|
430
|
-
fee: number;
|
|
431
642
|
/**
|
|
432
|
-
*
|
|
433
|
-
* @
|
|
643
|
+
* Format: double
|
|
644
|
+
* @description Outcome shares traded (6 decimal places)
|
|
434
645
|
*/
|
|
435
|
-
|
|
436
|
-
/** @description Outcome token price (0.0–1.0) */
|
|
437
|
-
price: number;
|
|
646
|
+
shares_amount: number;
|
|
438
647
|
/**
|
|
439
|
-
*
|
|
440
|
-
* @
|
|
648
|
+
* Format: double
|
|
649
|
+
* @description Fee paid in USD (6 decimal places)
|
|
441
650
|
*/
|
|
442
|
-
|
|
651
|
+
fee: number;
|
|
652
|
+
/** @description Trade direction */
|
|
653
|
+
side: "Buy" | "Sell";
|
|
443
654
|
/**
|
|
444
|
-
*
|
|
445
|
-
* @
|
|
655
|
+
* Format: double
|
|
656
|
+
* @description Outcome token price (0.0–1.0)
|
|
446
657
|
*/
|
|
658
|
+
price: number;
|
|
659
|
+
/** @description Exchange contract that processed the trade */
|
|
660
|
+
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "CTFExchangeV2" | "NegRiskExchangeV2" | "Unknown";
|
|
661
|
+
/** @description Trade type (webhook events only fire on order fills) */
|
|
447
662
|
trade_type: "OrderFilled" | "OrdersMatched";
|
|
448
663
|
};
|
|
449
|
-
/** @description
|
|
664
|
+
/** @description Global PnL webhook payload. */
|
|
450
665
|
GlobalPnlPayload: {
|
|
451
|
-
/** @description Trader wallet address (lowercase) */
|
|
452
666
|
trader?: string | null;
|
|
453
|
-
/**
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
*/
|
|
457
|
-
timeframe: "1d" | "7d" | "30d" | "lifetime";
|
|
458
|
-
/** @description Realized PnL in USD (positive = profit, negative = loss) */
|
|
667
|
+
/** @description Aggregation timeframe: "1d", "7d", "30d", or "lifetime" */
|
|
668
|
+
timeframe: string;
|
|
669
|
+
/** Format: double */
|
|
459
670
|
realized_pnl_usd?: number | null;
|
|
460
|
-
/**
|
|
461
|
-
* Format: int64
|
|
462
|
-
* @description Number of distinct events traded
|
|
463
|
-
*/
|
|
671
|
+
/** Format: int64 */
|
|
464
672
|
events_traded?: number | null;
|
|
465
|
-
/**
|
|
466
|
-
* Format: int64
|
|
467
|
-
* @description Number of distinct markets traded
|
|
468
|
-
*/
|
|
673
|
+
/** Format: int64 */
|
|
469
674
|
markets_traded?: number | null;
|
|
470
|
-
/**
|
|
471
|
-
* Format: int64
|
|
472
|
-
* @description Total buy transactions
|
|
473
|
-
*/
|
|
675
|
+
/** Format: int64 */
|
|
474
676
|
total_buys?: number | null;
|
|
475
|
-
/**
|
|
476
|
-
* Format: int64
|
|
477
|
-
* @description Total sell transactions
|
|
478
|
-
*/
|
|
677
|
+
/** Format: int64 */
|
|
479
678
|
total_sells?: number | null;
|
|
480
|
-
/**
|
|
481
|
-
* Format: int64
|
|
482
|
-
* @description Total redemption transactions
|
|
483
|
-
*/
|
|
679
|
+
/** Format: int64 */
|
|
484
680
|
total_redemptions?: number | null;
|
|
485
|
-
/**
|
|
486
|
-
* Format: int64
|
|
487
|
-
* @description Total merge transactions
|
|
488
|
-
*/
|
|
681
|
+
/** Format: int64 */
|
|
489
682
|
total_merges?: number | null;
|
|
490
|
-
/**
|
|
683
|
+
/** Format: double */
|
|
491
684
|
total_volume_usd?: number | null;
|
|
492
|
-
/**
|
|
685
|
+
/** Format: double */
|
|
493
686
|
buy_volume_usd?: number | null;
|
|
494
|
-
/**
|
|
687
|
+
/** Format: double */
|
|
495
688
|
sell_volume_usd?: number | null;
|
|
496
|
-
/**
|
|
689
|
+
/** Format: double */
|
|
497
690
|
redemption_volume_usd?: number | null;
|
|
498
|
-
/**
|
|
691
|
+
/** Format: double */
|
|
499
692
|
merge_volume_usd?: number | null;
|
|
500
|
-
/**
|
|
501
|
-
* Format: int64
|
|
502
|
-
* @description Number of markets where trader realised a profit
|
|
503
|
-
*/
|
|
693
|
+
/** Format: int64 */
|
|
504
694
|
markets_won?: number | null;
|
|
505
|
-
/**
|
|
506
|
-
* Format: int64
|
|
507
|
-
* @description Number of markets where trader realised a loss
|
|
508
|
-
*/
|
|
695
|
+
/** Format: int64 */
|
|
509
696
|
markets_lost?: number | null;
|
|
510
|
-
/**
|
|
697
|
+
/** Format: double */
|
|
511
698
|
market_win_rate_pct?: number | null;
|
|
512
|
-
/**
|
|
699
|
+
/** Format: double */
|
|
513
700
|
avg_pnl_per_market?: number | null;
|
|
514
|
-
/**
|
|
701
|
+
/** Format: double */
|
|
515
702
|
avg_pnl_per_trade?: number | null;
|
|
516
|
-
/**
|
|
703
|
+
/** Format: double */
|
|
517
704
|
avg_hold_time_seconds?: number | null;
|
|
518
|
-
/**
|
|
705
|
+
/** Format: double */
|
|
519
706
|
total_fees?: number | null;
|
|
520
|
-
/**
|
|
707
|
+
/** Format: double */
|
|
521
708
|
best_trade_pnl_usd?: number | null;
|
|
522
|
-
/** @description Condition ID of the best trade */
|
|
523
709
|
best_trade_condition_id?: string | null;
|
|
524
|
-
/**
|
|
525
|
-
* Format: int64
|
|
526
|
-
* @description Timestamp of the first trade (Unix seconds)
|
|
527
|
-
*/
|
|
710
|
+
/** Format: int64 */
|
|
528
711
|
first_trade_at?: number | null;
|
|
529
|
-
/**
|
|
530
|
-
* Format: int64
|
|
531
|
-
* @description Timestamp of the most recent trade (Unix seconds)
|
|
532
|
-
*/
|
|
712
|
+
/** Format: int64 */
|
|
533
713
|
last_trade_at?: number | null;
|
|
534
714
|
};
|
|
535
715
|
/** @description Response for GET /v1/webhook/events */
|
|
536
716
|
ListEventsResponse: {
|
|
537
717
|
events: components["schemas"]["WebhookEventInfo"][];
|
|
538
718
|
};
|
|
539
|
-
/** @description
|
|
719
|
+
/** @description Subscription filters for the `market_created` event. All fields are optional. */
|
|
720
|
+
MarketCreatedFilters: {
|
|
721
|
+
/** @description Restrict to markets with these tags or category names (case-insensitive match). */
|
|
722
|
+
tags?: string[] | null;
|
|
723
|
+
/** @description Restrict to markets belonging to these events. */
|
|
724
|
+
event_slugs?: string[] | null;
|
|
725
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets (event slugs containing `updown`). Default: `false`. */
|
|
726
|
+
exclude_shortterm_markets?: boolean | null;
|
|
727
|
+
};
|
|
728
|
+
/** @description Outcome entry in the market created payload — mirrors `NewMarketOutcome` */
|
|
540
729
|
MarketCreatedOutcome: {
|
|
541
|
-
/**
|
|
730
|
+
/**
|
|
731
|
+
* Format: int32
|
|
732
|
+
* @description Outcome index (0 = Yes, 1 = No)
|
|
733
|
+
*/
|
|
542
734
|
index: number;
|
|
543
735
|
/** @description Outcome name (e.g. "Yes", "No") */
|
|
544
736
|
name: string;
|
|
545
|
-
/** @description
|
|
737
|
+
/** @description ERC1155 position token ID */
|
|
546
738
|
position_id: string;
|
|
547
739
|
};
|
|
548
|
-
/** @description
|
|
740
|
+
/** @description Market created webhook payload — mirrors `NewMarketPayload` field-for-field */
|
|
549
741
|
MarketCreatedPayload: {
|
|
550
742
|
/** @description Condition ID (0x-prefixed hex, lowercase) */
|
|
551
743
|
condition_id: string;
|
|
552
744
|
/** @description Market slug */
|
|
553
745
|
market_slug: string;
|
|
554
|
-
/** @description
|
|
746
|
+
/** @description Event slug (parent event) */
|
|
555
747
|
event_slug?: string | null;
|
|
556
|
-
/** @description
|
|
748
|
+
/** @description Event ID */
|
|
557
749
|
event_id?: string | null;
|
|
558
|
-
/** @description
|
|
750
|
+
/** @description Event title */
|
|
559
751
|
event_title?: string | null;
|
|
560
|
-
/** @description Series slug
|
|
752
|
+
/** @description Series slug */
|
|
561
753
|
series_slug?: string | null;
|
|
562
|
-
/** @description
|
|
754
|
+
/** @description Outcomes with their position IDs, index, and name */
|
|
563
755
|
outcomes: components["schemas"]["MarketCreatedOutcome"][];
|
|
564
|
-
/** @description
|
|
756
|
+
/** @description Market question */
|
|
565
757
|
question: string;
|
|
566
|
-
/** @description
|
|
758
|
+
/** @description Market title (short display name) */
|
|
567
759
|
title?: string | null;
|
|
568
760
|
/** @description Market description */
|
|
569
761
|
description: string;
|
|
@@ -576,23 +768,46 @@ export interface components {
|
|
|
576
768
|
/** @description Whether this is a neg-risk market */
|
|
577
769
|
neg_risk: boolean;
|
|
578
770
|
};
|
|
579
|
-
/** @description
|
|
580
|
-
|
|
581
|
-
/** @description
|
|
582
|
-
|
|
583
|
-
/** @description
|
|
584
|
-
|
|
585
|
-
/** @description Parent event slug */
|
|
586
|
-
event_slug?: string | null;
|
|
771
|
+
/** @description Subscription filters for the `condition_metrics` event. All fields are optional. */
|
|
772
|
+
MarketMetricsFilters: {
|
|
773
|
+
/** @description Restrict to these markets. Empty = all markets. */
|
|
774
|
+
condition_ids?: string[] | null;
|
|
775
|
+
/** @description Restrict to these aggregation windows. Empty = all windows. */
|
|
776
|
+
timeframes?: components["schemas"]["MetricFilterTimeframe"][] | null;
|
|
587
777
|
/**
|
|
588
|
-
*
|
|
589
|
-
* @
|
|
778
|
+
* Format: double
|
|
779
|
+
* @description Only fire when volume ≥ this value (USD).
|
|
780
|
+
*/
|
|
781
|
+
min_volume_usd?: number | null;
|
|
782
|
+
/**
|
|
783
|
+
* Format: double
|
|
784
|
+
* @description Only fire when volume ≤ this value (USD).
|
|
785
|
+
*/
|
|
786
|
+
max_volume_usd?: number | null;
|
|
787
|
+
/**
|
|
788
|
+
* Format: int64
|
|
789
|
+
* @description Only fire when transaction count ≥ this value.
|
|
590
790
|
*/
|
|
591
|
-
|
|
791
|
+
min_txns?: number | null;
|
|
592
792
|
/**
|
|
593
793
|
* Format: int64
|
|
594
|
-
* @description
|
|
794
|
+
* @description Only fire when unique trader count ≥ this value.
|
|
795
|
+
*/
|
|
796
|
+
min_unique_traders?: number | null;
|
|
797
|
+
/**
|
|
798
|
+
* Format: double
|
|
799
|
+
* @description Only fire when total fees ≥ this value (USD).
|
|
595
800
|
*/
|
|
801
|
+
min_fees?: number | null;
|
|
802
|
+
};
|
|
803
|
+
/** @description Market PnL webhook payload. */
|
|
804
|
+
MarketPnlPayload: {
|
|
805
|
+
trader?: string | null;
|
|
806
|
+
condition_id?: string | null;
|
|
807
|
+
event_slug?: string | null;
|
|
808
|
+
/** @description Aggregation timeframe: "1d", "7d", "30d", or "lifetime" */
|
|
809
|
+
timeframe: string;
|
|
810
|
+
/** Format: int64 */
|
|
596
811
|
outcomes_traded?: number | null;
|
|
597
812
|
/** Format: int64 */
|
|
598
813
|
total_buys?: number | null;
|
|
@@ -602,59 +817,95 @@ export interface components {
|
|
|
602
817
|
total_redemptions?: number | null;
|
|
603
818
|
/** Format: int64 */
|
|
604
819
|
total_merges?: number | null;
|
|
605
|
-
/**
|
|
820
|
+
/** Format: double */
|
|
606
821
|
buy_usd?: number | null;
|
|
607
|
-
/**
|
|
822
|
+
/** Format: double */
|
|
608
823
|
sell_usd?: number | null;
|
|
609
|
-
/**
|
|
824
|
+
/** Format: double */
|
|
610
825
|
redemption_usd?: number | null;
|
|
611
|
-
/**
|
|
826
|
+
/** Format: double */
|
|
612
827
|
merge_usd?: number | null;
|
|
613
|
-
/**
|
|
828
|
+
/** Format: double */
|
|
614
829
|
realized_pnl_usd?: number | null;
|
|
615
|
-
/**
|
|
616
|
-
* Format: int64
|
|
617
|
-
* @description Number of outcomes with positive PnL
|
|
618
|
-
*/
|
|
830
|
+
/** Format: int64 */
|
|
619
831
|
winning_outcomes?: number | null;
|
|
620
|
-
/**
|
|
832
|
+
/** Format: double */
|
|
621
833
|
total_fees?: number | null;
|
|
834
|
+
/** Format: int64 */
|
|
835
|
+
first_trade_at?: number | null;
|
|
836
|
+
/** Format: int64 */
|
|
837
|
+
last_trade_at?: number | null;
|
|
838
|
+
};
|
|
839
|
+
/** @description Subscription filters for the `market_volume_milestone` event. */
|
|
840
|
+
MarketVolumeMilestoneFilters: {
|
|
841
|
+
/** @description **Required.** Aggregation windows to monitor (e.g. \["1h", "24h"\]). */
|
|
842
|
+
timeframes: components["schemas"]["MetricFilterTimeframe"][];
|
|
843
|
+
/** @description Restrict to these markets. Empty = all markets. */
|
|
844
|
+
condition_ids?: string[] | null;
|
|
845
|
+
/** @description Specific USD milestones to trigger on (e.g. \[10000, 100000, 1000000\]). Empty = all milestones. */
|
|
846
|
+
milestone_amounts?: number[] | null;
|
|
847
|
+
};
|
|
848
|
+
/** @description Subscription filters for the `market_volume_spike` event. `spike_ratio` is required. */
|
|
849
|
+
MarketVolumeSpikeFilters: {
|
|
622
850
|
/**
|
|
623
|
-
* Format:
|
|
624
|
-
* @description
|
|
851
|
+
* Format: double
|
|
852
|
+
* @description **Required.** Multiplier threshold (must be > 1.0). Fires when current volume >= snapshot × ratio. The snapshot is set automatically on first data and resets after each fire.
|
|
625
853
|
*/
|
|
626
|
-
|
|
854
|
+
spike_ratio: number;
|
|
627
855
|
/**
|
|
628
856
|
* Format: int64
|
|
629
|
-
* @description
|
|
857
|
+
* @description Force snapshot reset after this many seconds (max 600 / 10 minutes).
|
|
630
858
|
*/
|
|
631
|
-
|
|
859
|
+
window_secs?: number | null;
|
|
860
|
+
/** @description Restrict to these markets. Empty = all markets. */
|
|
861
|
+
condition_ids?: string[] | null;
|
|
862
|
+
/** @description Restrict to these aggregation windows. Empty = all windows. */
|
|
863
|
+
timeframes?: components["schemas"]["VolumeSpikeFilterTimeframe"][] | null;
|
|
632
864
|
};
|
|
633
|
-
/** @description
|
|
865
|
+
/** @description Market volume spike webhook payload */
|
|
634
866
|
MarketVolumeSpikePayload: {
|
|
635
|
-
/** @description Market condition ID */
|
|
636
867
|
condition_id: string;
|
|
868
|
+
question?: string | null;
|
|
869
|
+
market_slug?: string | null;
|
|
870
|
+
event_slug?: string | null;
|
|
871
|
+
image_url?: string | null;
|
|
872
|
+
timeframe: string;
|
|
637
873
|
/**
|
|
638
|
-
*
|
|
639
|
-
* @
|
|
874
|
+
* Format: double
|
|
875
|
+
* @description Current window volume at the time of the spike (USD)
|
|
640
876
|
*/
|
|
641
|
-
timeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "1d" | "24h" | "7d" | "30d";
|
|
642
|
-
/** @description Current volume at the time of the spike (USD) */
|
|
643
877
|
current_volume_usd: number;
|
|
644
|
-
/**
|
|
878
|
+
/**
|
|
879
|
+
* Format: double
|
|
880
|
+
* @description Volume at the snapshot baseline (USD)
|
|
881
|
+
*/
|
|
645
882
|
snapshot_volume_usd: number;
|
|
646
|
-
/**
|
|
883
|
+
/**
|
|
884
|
+
* Format: double
|
|
885
|
+
* @description New volume since the snapshot that triggered this notification (USD)
|
|
886
|
+
*/
|
|
647
887
|
delta_volume_usd: number;
|
|
648
|
-
/**
|
|
888
|
+
/**
|
|
889
|
+
* Format: double
|
|
890
|
+
* @description Volume growth as a percentage of the snapshot (e.g. 200.0 means volume tripled)
|
|
891
|
+
*/
|
|
649
892
|
spike_pct: number;
|
|
650
893
|
/**
|
|
651
894
|
* Format: int64
|
|
652
895
|
* @description Total transactions in this timeframe
|
|
653
896
|
*/
|
|
654
897
|
txns: number;
|
|
655
|
-
/**
|
|
898
|
+
/**
|
|
899
|
+
* Format: double
|
|
900
|
+
* @description Total fees in this timeframe
|
|
901
|
+
*/
|
|
656
902
|
fees: number;
|
|
657
903
|
};
|
|
904
|
+
/**
|
|
905
|
+
* @description Aggregation windows emitted by the metrics / milestone streams.
|
|
906
|
+
* @enum {string}
|
|
907
|
+
*/
|
|
908
|
+
MetricFilterTimeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d";
|
|
658
909
|
/** @description NegRisk Adapter: outcome reported for a neg-risk market question. */
|
|
659
910
|
NegRiskOutcomeReportedEvent: {
|
|
660
911
|
id: string;
|
|
@@ -689,7 +940,10 @@ export interface components {
|
|
|
689
940
|
condition_id?: string | null;
|
|
690
941
|
/** @description Outcome name (e.g. "Yes", "No") */
|
|
691
942
|
outcome?: string | null;
|
|
692
|
-
/**
|
|
943
|
+
/**
|
|
944
|
+
* Format: int32
|
|
945
|
+
* @description Outcome index: 0 = Yes/Up, 1 = No
|
|
946
|
+
*/
|
|
693
947
|
outcome_index?: number | null;
|
|
694
948
|
/** @description Market question text */
|
|
695
949
|
question?: string | null;
|
|
@@ -697,6 +951,8 @@ export interface components {
|
|
|
697
951
|
market_slug?: string | null;
|
|
698
952
|
/** @description Parent event slug */
|
|
699
953
|
event_slug?: string | null;
|
|
954
|
+
/** @description Market image URL */
|
|
955
|
+
image_url?: string | null;
|
|
700
956
|
/** @description Unique trade identifier */
|
|
701
957
|
trade_id: string;
|
|
702
958
|
/** @description Transaction hash */
|
|
@@ -711,32 +967,44 @@ export interface components {
|
|
|
711
967
|
* @description Block confirmation timestamp (Unix seconds)
|
|
712
968
|
*/
|
|
713
969
|
confirmed_at: number;
|
|
714
|
-
/**
|
|
970
|
+
/**
|
|
971
|
+
* Format: double
|
|
972
|
+
* @description USD size of the trade (6 decimal places)
|
|
973
|
+
*/
|
|
715
974
|
amount_usd: number;
|
|
716
|
-
/**
|
|
975
|
+
/**
|
|
976
|
+
* Format: double
|
|
977
|
+
* @description Outcome shares traded (6 decimal places)
|
|
978
|
+
*/
|
|
717
979
|
shares_amount: number;
|
|
718
|
-
/** @description Fee paid in USD (6 decimal places) */
|
|
719
|
-
fee: number;
|
|
720
980
|
/**
|
|
721
|
-
*
|
|
722
|
-
* @
|
|
981
|
+
* Format: double
|
|
982
|
+
* @description Fee paid in USD (6 decimal places)
|
|
723
983
|
*/
|
|
984
|
+
fee: number;
|
|
985
|
+
/** @description Trade direction */
|
|
724
986
|
side: "Buy" | "Sell";
|
|
725
|
-
/** @description Outcome token price (0.0–1.0) */
|
|
726
|
-
price: number;
|
|
727
|
-
/** @description Implied probability (0.0–1.0); null when outcome is unknown */
|
|
728
|
-
probability?: number | null;
|
|
729
987
|
/**
|
|
730
|
-
*
|
|
731
|
-
* @
|
|
988
|
+
* Format: double
|
|
989
|
+
* @description Outcome token price (0.0–1.0)
|
|
732
990
|
*/
|
|
733
|
-
|
|
991
|
+
price: number;
|
|
734
992
|
/**
|
|
735
|
-
*
|
|
736
|
-
* @
|
|
993
|
+
* Format: double
|
|
994
|
+
* @description Implied probability (0.0–1.0); null when outcome is unknown
|
|
737
995
|
*/
|
|
996
|
+
probability?: number | null;
|
|
997
|
+
/** @description Exchange contract that processed the trade */
|
|
998
|
+
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "CTFExchangeV2" | "NegRiskExchangeV2" | "Unknown";
|
|
999
|
+
/** @description Trade type (webhook events only fire on order fills) */
|
|
738
1000
|
trade_type: "OrderFilled" | "OrdersMatched";
|
|
739
1001
|
};
|
|
1002
|
+
/**
|
|
1003
|
+
* @description Trade types accepted by `trader_new_trade.trade_types`. Webhook fires on
|
|
1004
|
+
* fill-style trades only.
|
|
1005
|
+
* @enum {string}
|
|
1006
|
+
*/
|
|
1007
|
+
NewTradeFilterType: "OrderFilled" | "OrdersMatched";
|
|
740
1008
|
/** @description Payload delivered on every order-filled trade */
|
|
741
1009
|
NewTradePayload: {
|
|
742
1010
|
/** @description Limit-order maker wallet address (lowercase) */
|
|
@@ -749,7 +1017,10 @@ export interface components {
|
|
|
749
1017
|
condition_id?: string | null;
|
|
750
1018
|
/** @description Outcome name (e.g. "Yes", "No") */
|
|
751
1019
|
outcome?: string | null;
|
|
752
|
-
/**
|
|
1020
|
+
/**
|
|
1021
|
+
* Format: int32
|
|
1022
|
+
* @description Outcome index: 0 = Yes/Up, 1 = No
|
|
1023
|
+
*/
|
|
753
1024
|
outcome_index?: number | null;
|
|
754
1025
|
/** @description Market question text */
|
|
755
1026
|
question?: string | null;
|
|
@@ -757,6 +1028,8 @@ export interface components {
|
|
|
757
1028
|
market_slug?: string | null;
|
|
758
1029
|
/** @description Parent event slug */
|
|
759
1030
|
event_slug?: string | null;
|
|
1031
|
+
/** @description Market image URL */
|
|
1032
|
+
image_url?: string | null;
|
|
760
1033
|
/** @description Unique trade identifier */
|
|
761
1034
|
trade_id: string;
|
|
762
1035
|
/** @description Transaction hash */
|
|
@@ -771,32 +1044,43 @@ export interface components {
|
|
|
771
1044
|
* @description Block confirmation timestamp (Unix seconds)
|
|
772
1045
|
*/
|
|
773
1046
|
confirmed_at: number;
|
|
774
|
-
/**
|
|
1047
|
+
/**
|
|
1048
|
+
* Format: double
|
|
1049
|
+
* @description USD size of the trade (6 decimal places)
|
|
1050
|
+
*/
|
|
775
1051
|
amount_usd: number;
|
|
776
|
-
/**
|
|
1052
|
+
/**
|
|
1053
|
+
* Format: double
|
|
1054
|
+
* @description Outcome shares traded (6 decimal places)
|
|
1055
|
+
*/
|
|
777
1056
|
shares_amount: number;
|
|
778
|
-
/** @description Fee paid in USD (6 decimal places) */
|
|
779
|
-
fee: number;
|
|
780
1057
|
/**
|
|
781
|
-
*
|
|
782
|
-
* @
|
|
1058
|
+
* Format: double
|
|
1059
|
+
* @description Fee paid in USD (6 decimal places)
|
|
783
1060
|
*/
|
|
1061
|
+
fee: number;
|
|
1062
|
+
/** @description Trade direction */
|
|
784
1063
|
side: "Buy" | "Sell";
|
|
785
|
-
/** @description Outcome token price (0.0–1.0) */
|
|
786
|
-
price: number;
|
|
787
|
-
/** @description Implied probability (0.0–1.0); null when outcome is unknown */
|
|
788
|
-
probability?: number | null;
|
|
789
1064
|
/**
|
|
790
|
-
*
|
|
791
|
-
* @
|
|
1065
|
+
* Format: double
|
|
1066
|
+
* @description Outcome token price (0.0–1.0)
|
|
792
1067
|
*/
|
|
793
|
-
|
|
1068
|
+
price: number;
|
|
794
1069
|
/**
|
|
795
|
-
*
|
|
796
|
-
* @
|
|
1070
|
+
* Format: double
|
|
1071
|
+
* @description Implied probability (0.0–1.0); null when outcome is unknown
|
|
797
1072
|
*/
|
|
1073
|
+
probability?: number | null;
|
|
1074
|
+
/** @description Exchange contract that processed the trade */
|
|
1075
|
+
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "CTFExchangeV2" | "NegRiskExchangeV2" | "Unknown";
|
|
1076
|
+
/** @description Trade type (webhook events only fire on order fills) */
|
|
798
1077
|
trade_type: "OrderFilled" | "OrdersMatched";
|
|
799
1078
|
};
|
|
1079
|
+
/**
|
|
1080
|
+
* @description Oracle event variants accepted by `oracle_events.oracle_event_types`.
|
|
1081
|
+
* @enum {string}
|
|
1082
|
+
*/
|
|
1083
|
+
OracleEventFilterType: "AssertionMade" | "AssertionDisputed" | "AssertionSettled" | "RequestPrice" | "ProposePrice" | "DisputePrice" | "Settle" | "QuestionResolved" | "QuestionEmergencyResolved" | "QuestionReset" | "QuestionInitialized" | "QuestionPaused" | "QuestionUnpaused" | "QuestionFlagged" | "QuestionUnflagged" | "ConditionResolution" | "NegRiskOutcomeReported";
|
|
800
1084
|
/**
|
|
801
1085
|
* @description Tagged enum for all oracle event types — serializes with `"event_type": "..."` discriminator
|
|
802
1086
|
* and only includes fields relevant to each type.
|
|
@@ -853,6 +1137,18 @@ export interface components {
|
|
|
853
1137
|
/** @enum {string} */
|
|
854
1138
|
event_type: "NegRiskOutcomeReported";
|
|
855
1139
|
});
|
|
1140
|
+
/** @description Subscription filters for the `oracle_events` event. All fields are optional. */
|
|
1141
|
+
OracleEventsFilters: {
|
|
1142
|
+
/** @description Restrict to these event types (case-insensitive). Empty = all. */
|
|
1143
|
+
oracle_event_types?: components["schemas"]["OracleEventFilterType"][] | null;
|
|
1144
|
+
/** @description Restrict to events for these condition IDs. */
|
|
1145
|
+
condition_ids?: string[] | null;
|
|
1146
|
+
};
|
|
1147
|
+
/**
|
|
1148
|
+
* @description PnL aggregation windows accepted by `*_pnl.timeframes`.
|
|
1149
|
+
* @enum {string}
|
|
1150
|
+
*/
|
|
1151
|
+
PnlFilterTimeframe: "1d" | "7d" | "30d" | "lifetime";
|
|
856
1152
|
/**
|
|
857
1153
|
* @description PnL timeframe enum for webhook filtering
|
|
858
1154
|
* @enum {string}
|
|
@@ -862,7 +1158,7 @@ export interface components {
|
|
|
862
1158
|
* @description Polymarket webhook event types
|
|
863
1159
|
* @enum {string}
|
|
864
1160
|
*/
|
|
865
|
-
PolymarketWebhookEvent: "trader_first_trade" | "trader_new_market" | "trader_whale_trade" | "trader_new_trade" | "trader_trade_event" | "trader_global_pnl" | "trader_market_pnl" | "trader_event_pnl" | "condition_metrics" | "event_metrics" | "position_metrics" | "market_volume_milestone" | "event_volume_milestone" | "position_volume_milestone" | "probability_spike" | "market_volume_spike" | "event_volume_spike" | "position_volume_spike" | "close_to_bond" | "market_created" | "asset_price_tick" | "asset_price_window_update" | "price_spike" | "oracle_events";
|
|
1161
|
+
PolymarketWebhookEvent: "trader_first_trade" | "trader_new_market" | "trader_whale_trade" | "trader_new_trade" | "trader_trade_event" | "trader_global_pnl" | "trader_market_pnl" | "trader_event_pnl" | "condition_metrics" | "event_metrics" | "tag_metrics" | "position_metrics" | "market_volume_milestone" | "event_volume_milestone" | "position_volume_milestone" | "probability_spike" | "market_volume_spike" | "event_volume_spike" | "position_volume_spike" | "close_to_bond" | "market_created" | "asset_price_tick" | "asset_price_window_update" | "price_spike" | "oracle_events";
|
|
866
1162
|
/**
|
|
867
1163
|
* @description Polymarket-specific webhook filters
|
|
868
1164
|
*
|
|
@@ -875,11 +1171,12 @@ export interface components {
|
|
|
875
1171
|
* - event_pnl: traders, min_realized_pnl_usd, max_realized_pnl_usd, min_volume_usd, event_slugs, min_markets_traded
|
|
876
1172
|
* - condition_metrics: condition_ids, min_volume_usd, max_volume_usd, min_fees, min_txns, timeframes
|
|
877
1173
|
* - event_metrics: event_slugs, min_volume_usd, max_volume_usd, min_fees, min_txns, timeframes
|
|
1174
|
+
* - tag_metrics: tags, min_volume_usd, max_volume_usd, min_fees, min_txns, timeframes
|
|
878
1175
|
* - position_metrics: position_ids, condition_ids, outcomes, min_volume_usd, max_volume_usd, min_buy_usd, min_sell_volume_usd, min_fees, min_txns, min_price_change_pct, min_probability_change_pct, timeframes
|
|
879
1176
|
* - volume_milestone: condition_ids, timeframes, milestone_amounts
|
|
880
1177
|
* - close_to_bond: min_probability (high zone threshold), max_probability (low zone threshold), condition_ids, position_ids, outcomes, position_outcome_indices, event_slugs, exclude_shortterm_markets
|
|
881
1178
|
* - market_created: event_slugs, tags, exclude_shortterm_markets
|
|
882
|
-
* - probability_spike: condition_ids, event_slugs, outcomes, min_probability_change_pct, spike_direction, window_secs, exclude_shortterm_markets
|
|
1179
|
+
* - probability_spike: condition_ids, event_slugs, outcomes, min_probability, max_probability, min_probability_change_pct, spike_direction, window_secs, exclude_shortterm_markets
|
|
883
1180
|
* - price_spike: condition_ids, event_slugs, outcomes, min_price_change_pct, spike_direction, window_secs, exclude_shortterm_markets
|
|
884
1181
|
* - trader_new_trade: wallet_addresses, min_usd_value, min_probability, max_probability, condition_ids, event_slugs, trade_types, exclude_shortterm_markets
|
|
885
1182
|
* - trader_trade_event: wallet_addresses, min_usd_value, min_probability, max_probability, condition_ids, event_slugs, trade_types, exclude_shortterm_markets
|
|
@@ -1050,6 +1347,44 @@ export interface components {
|
|
|
1050
1347
|
*/
|
|
1051
1348
|
oracle_event_types?: string[];
|
|
1052
1349
|
};
|
|
1350
|
+
/** @description Subscription filters for the `position_metrics` event. All fields are optional. */
|
|
1351
|
+
PositionMetricsFilters: {
|
|
1352
|
+
/** @description Restrict to these outcome token IDs. */
|
|
1353
|
+
position_ids?: string[] | null;
|
|
1354
|
+
/** @description Restrict to positions within these markets. */
|
|
1355
|
+
condition_ids?: string[] | null;
|
|
1356
|
+
/** @description Restrict to positions with these outcome names (e.g. \["Yes", "No"\]). */
|
|
1357
|
+
outcomes?: string[] | null;
|
|
1358
|
+
/** @description Restrict to these aggregation windows. */
|
|
1359
|
+
timeframes?: components["schemas"]["MetricFilterTimeframe"][] | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* Format: double
|
|
1362
|
+
* @description Only fire when position volume ≥ this value (USD).
|
|
1363
|
+
*/
|
|
1364
|
+
min_volume_usd?: number | null;
|
|
1365
|
+
/** Format: double */
|
|
1366
|
+
max_volume_usd?: number | null;
|
|
1367
|
+
/** Format: double */
|
|
1368
|
+
min_buy_usd?: number | null;
|
|
1369
|
+
/** Format: double */
|
|
1370
|
+
min_sell_volume_usd?: number | null;
|
|
1371
|
+
/** Format: int64 */
|
|
1372
|
+
min_txns?: number | null;
|
|
1373
|
+
/** Format: int64 */
|
|
1374
|
+
min_unique_traders?: number | null;
|
|
1375
|
+
/**
|
|
1376
|
+
* Format: double
|
|
1377
|
+
* @description Only fire when price change % ≥ this value.
|
|
1378
|
+
*/
|
|
1379
|
+
min_price_change_pct?: number | null;
|
|
1380
|
+
/**
|
|
1381
|
+
* Format: double
|
|
1382
|
+
* @description Only fire when probability change % ≥ this value.
|
|
1383
|
+
*/
|
|
1384
|
+
min_probability_change_pct?: number | null;
|
|
1385
|
+
/** Format: double */
|
|
1386
|
+
min_fees?: number | null;
|
|
1387
|
+
};
|
|
1053
1388
|
/** @description Payload delivered when a position's volume or transaction metrics cross a configured threshold */
|
|
1054
1389
|
PositionMetricsPayload: {
|
|
1055
1390
|
/** @description ERC-1155 outcome token ID */
|
|
@@ -1057,23 +1392,82 @@ export interface components {
|
|
|
1057
1392
|
/** @description Outcome name (e.g. "Yes", "No") */
|
|
1058
1393
|
outcome?: string | null;
|
|
1059
1394
|
/**
|
|
1060
|
-
* Format:
|
|
1395
|
+
* Format: int32
|
|
1061
1396
|
* @description Outcome index
|
|
1062
1397
|
*/
|
|
1063
1398
|
outcome_index?: number | null;
|
|
1399
|
+
/** @description Aggregation window */
|
|
1400
|
+
timeframe?: null | ("1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "6h" | "1d" | "24h" | "7d" | "30d");
|
|
1064
1401
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
* @
|
|
1402
|
+
* Format: double
|
|
1403
|
+
* @description Total trading volume in USD
|
|
1067
1404
|
*/
|
|
1068
|
-
timeframe?: "1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d" | null;
|
|
1069
|
-
/** @description Total trading volume in USD */
|
|
1070
1405
|
volume_usd?: number | null;
|
|
1071
|
-
/**
|
|
1406
|
+
/**
|
|
1407
|
+
* Format: double
|
|
1408
|
+
* @description Buy volume in USD
|
|
1409
|
+
*/
|
|
1072
1410
|
buy_volume_usd?: number | null;
|
|
1073
|
-
/**
|
|
1411
|
+
/**
|
|
1412
|
+
* Format: double
|
|
1413
|
+
* @description Sell volume in USD
|
|
1414
|
+
*/
|
|
1074
1415
|
sell_volume_usd?: number | null;
|
|
1075
|
-
/**
|
|
1416
|
+
/**
|
|
1417
|
+
* Format: double
|
|
1418
|
+
* @description Total shares/contracts volume
|
|
1419
|
+
*/
|
|
1420
|
+
shares_volume?: number | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Format: double
|
|
1423
|
+
* @description Buy shares/contracts volume
|
|
1424
|
+
*/
|
|
1425
|
+
shares_buy_volume?: number | null;
|
|
1426
|
+
/**
|
|
1427
|
+
* Format: double
|
|
1428
|
+
* @description Sell shares/contracts volume
|
|
1429
|
+
*/
|
|
1430
|
+
shares_sell_volume?: number | null;
|
|
1431
|
+
/**
|
|
1432
|
+
* Format: double
|
|
1433
|
+
* @description Builder-attributed volume in USD
|
|
1434
|
+
*/
|
|
1435
|
+
builder_usd_volume?: number | null;
|
|
1436
|
+
/**
|
|
1437
|
+
* Format: double
|
|
1438
|
+
* @description Builder-attributed buy volume in USD
|
|
1439
|
+
*/
|
|
1440
|
+
builder_usd_buy_volume?: number | null;
|
|
1441
|
+
/**
|
|
1442
|
+
* Format: double
|
|
1443
|
+
* @description Builder-attributed sell volume in USD
|
|
1444
|
+
*/
|
|
1445
|
+
builder_usd_sell_volume?: number | null;
|
|
1446
|
+
/**
|
|
1447
|
+
* Format: double
|
|
1448
|
+
* @description Builder-attributed shares/contracts volume
|
|
1449
|
+
*/
|
|
1450
|
+
builder_shares_volume?: number | null;
|
|
1451
|
+
/**
|
|
1452
|
+
* Format: double
|
|
1453
|
+
* @description Builder-attributed buy shares/contracts volume
|
|
1454
|
+
*/
|
|
1455
|
+
builder_shares_buy_volume?: number | null;
|
|
1456
|
+
/**
|
|
1457
|
+
* Format: double
|
|
1458
|
+
* @description Builder-attributed sell shares/contracts volume
|
|
1459
|
+
*/
|
|
1460
|
+
builder_shares_sell_volume?: number | null;
|
|
1461
|
+
/**
|
|
1462
|
+
* Format: double
|
|
1463
|
+
* @description Total fees in USD
|
|
1464
|
+
*/
|
|
1076
1465
|
fees?: number | null;
|
|
1466
|
+
/**
|
|
1467
|
+
* Format: double
|
|
1468
|
+
* @description Builder-attributed fees in USD
|
|
1469
|
+
*/
|
|
1470
|
+
builder_fees?: number | null;
|
|
1077
1471
|
/** Format: int64 */
|
|
1078
1472
|
txns?: number | null;
|
|
1079
1473
|
/** Format: int64 */
|
|
@@ -1081,128 +1475,308 @@ export interface components {
|
|
|
1081
1475
|
/** Format: int64 */
|
|
1082
1476
|
sells?: number | null;
|
|
1083
1477
|
/** Format: int64 */
|
|
1478
|
+
builder_txns?: number | null;
|
|
1479
|
+
/** Format: int64 */
|
|
1480
|
+
builder_buys?: number | null;
|
|
1481
|
+
/** Format: int64 */
|
|
1482
|
+
builder_sells?: number | null;
|
|
1483
|
+
/** Format: int64 */
|
|
1084
1484
|
unique_traders?: number | null;
|
|
1485
|
+
/** Format: int64 */
|
|
1486
|
+
unique_builder_traders?: number | null;
|
|
1487
|
+
/** Format: double */
|
|
1085
1488
|
price_open?: number | null;
|
|
1489
|
+
/** Format: double */
|
|
1086
1490
|
price_close?: number | null;
|
|
1491
|
+
/** Format: double */
|
|
1087
1492
|
price_high?: number | null;
|
|
1493
|
+
/** Format: double */
|
|
1088
1494
|
price_low?: number | null;
|
|
1495
|
+
/** Format: double */
|
|
1089
1496
|
probability_open?: number | null;
|
|
1497
|
+
/** Format: double */
|
|
1090
1498
|
probability_close?: number | null;
|
|
1499
|
+
/** Format: double */
|
|
1091
1500
|
probability_high?: number | null;
|
|
1501
|
+
/** Format: double */
|
|
1092
1502
|
probability_low?: number | null;
|
|
1503
|
+
/** Format: double */
|
|
1504
|
+
avg_trade_shares?: number | null;
|
|
1505
|
+
/** Format: double */
|
|
1506
|
+
avg_buy_shares?: number | null;
|
|
1507
|
+
/** Format: double */
|
|
1508
|
+
avg_sell_shares?: number | null;
|
|
1509
|
+
};
|
|
1510
|
+
/** @description Subscription filters for the `position_volume_milestone` event. */
|
|
1511
|
+
PositionVolumeMilestoneFilters: {
|
|
1512
|
+
/** @description **Required.** Aggregation windows to monitor. */
|
|
1513
|
+
timeframes: components["schemas"]["MetricFilterTimeframe"][];
|
|
1514
|
+
/** @description Restrict to these outcome token IDs. */
|
|
1515
|
+
position_ids?: string[] | null;
|
|
1516
|
+
/** @description Restrict to positions within these markets. */
|
|
1517
|
+
condition_ids?: string[] | null;
|
|
1518
|
+
/** @description Restrict to these outcome names (e.g. \["Yes", "No"\]). */
|
|
1519
|
+
outcomes?: string[] | null;
|
|
1520
|
+
/** @description Specific USD milestones to trigger on. */
|
|
1521
|
+
milestone_amounts?: number[] | null;
|
|
1093
1522
|
};
|
|
1094
|
-
/** @description
|
|
1523
|
+
/** @description Position volume milestone webhook payload */
|
|
1095
1524
|
PositionVolumeMilestonePayload: {
|
|
1096
|
-
/** @description Parent market condition ID */
|
|
1097
1525
|
condition_id?: string | null;
|
|
1098
|
-
/** @description ERC-1155 outcome token ID */
|
|
1099
1526
|
position_id: string;
|
|
1100
|
-
/** @description Outcome name (e.g. "Yes", "No") */
|
|
1101
1527
|
outcome?: string | null;
|
|
1102
|
-
/**
|
|
1103
|
-
* Format: int16
|
|
1104
|
-
* @description Outcome index
|
|
1105
|
-
*/
|
|
1528
|
+
/** Format: int32 */
|
|
1106
1529
|
outcome_index?: number | null;
|
|
1530
|
+
timeframe: string;
|
|
1107
1531
|
/**
|
|
1108
|
-
*
|
|
1109
|
-
* @
|
|
1532
|
+
* Format: double
|
|
1533
|
+
* @description Milestone amount reached (USD)
|
|
1110
1534
|
*/
|
|
1111
|
-
timeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d";
|
|
1112
|
-
/** @description The USD milestone amount that was crossed */
|
|
1113
1535
|
milestone_usd: number;
|
|
1114
|
-
/**
|
|
1536
|
+
/**
|
|
1537
|
+
* Format: double
|
|
1538
|
+
* @description Current volume (USD) that triggered the milestone
|
|
1539
|
+
*/
|
|
1115
1540
|
current_volume_usd: number;
|
|
1116
|
-
/**
|
|
1541
|
+
/**
|
|
1542
|
+
* Format: double
|
|
1543
|
+
* @description Buy volume (USD)
|
|
1544
|
+
*/
|
|
1117
1545
|
buy_volume_usd: number;
|
|
1118
|
-
/**
|
|
1546
|
+
/**
|
|
1547
|
+
* Format: double
|
|
1548
|
+
* @description Sell volume (USD)
|
|
1549
|
+
*/
|
|
1119
1550
|
sell_volume_usd: number;
|
|
1120
|
-
/**
|
|
1551
|
+
/**
|
|
1552
|
+
* Format: double
|
|
1553
|
+
* @description Total fees collected in this timeframe
|
|
1554
|
+
*/
|
|
1121
1555
|
fees: number;
|
|
1122
|
-
/**
|
|
1556
|
+
/**
|
|
1557
|
+
* Format: int64
|
|
1558
|
+
* @description Total transactions in this timeframe
|
|
1559
|
+
*/
|
|
1123
1560
|
txns: number;
|
|
1124
|
-
/**
|
|
1561
|
+
/**
|
|
1562
|
+
* Format: int64
|
|
1563
|
+
* @description Buy transactions
|
|
1564
|
+
*/
|
|
1125
1565
|
buys: number;
|
|
1126
|
-
/**
|
|
1566
|
+
/**
|
|
1567
|
+
* Format: int64
|
|
1568
|
+
* @description Sell transactions
|
|
1569
|
+
*/
|
|
1127
1570
|
sells: number;
|
|
1128
1571
|
};
|
|
1129
|
-
/** @description
|
|
1572
|
+
/** @description Subscription filters for the `position_volume_spike` event. `spike_ratio` is required. */
|
|
1573
|
+
PositionVolumeSpikeFilters: {
|
|
1574
|
+
/**
|
|
1575
|
+
* Format: double
|
|
1576
|
+
* @description **Required.** Multiplier threshold (must be > 1.0). Fires when current volume >= snapshot × ratio.
|
|
1577
|
+
*/
|
|
1578
|
+
spike_ratio: number;
|
|
1579
|
+
/**
|
|
1580
|
+
* Format: int64
|
|
1581
|
+
* @description Force snapshot reset after this many seconds (max 600 / 10 minutes).
|
|
1582
|
+
*/
|
|
1583
|
+
window_secs?: number | null;
|
|
1584
|
+
/** @description Restrict to these outcome token IDs. */
|
|
1585
|
+
position_ids?: string[] | null;
|
|
1586
|
+
/** @description Restrict to positions within these markets. */
|
|
1587
|
+
condition_ids?: string[] | null;
|
|
1588
|
+
/** @description Restrict to these outcome names. */
|
|
1589
|
+
outcomes?: string[] | null;
|
|
1590
|
+
/** @description Restrict to these aggregation windows. */
|
|
1591
|
+
timeframes?: components["schemas"]["VolumeSpikeFilterTimeframe"][] | null;
|
|
1592
|
+
};
|
|
1593
|
+
/** @description Position volume spike webhook payload */
|
|
1130
1594
|
PositionVolumeSpikePayload: {
|
|
1131
|
-
/** @description ERC-1155 outcome token ID */
|
|
1132
1595
|
position_id: string;
|
|
1133
|
-
/** @description Parent market condition ID */
|
|
1134
1596
|
condition_id: string;
|
|
1135
|
-
|
|
1597
|
+
question?: string | null;
|
|
1598
|
+
market_slug?: string | null;
|
|
1599
|
+
event_slug?: string | null;
|
|
1600
|
+
image_url?: string | null;
|
|
1136
1601
|
outcome?: string | null;
|
|
1137
|
-
/** Format:
|
|
1602
|
+
/** Format: int32 */
|
|
1138
1603
|
outcome_index?: number | null;
|
|
1604
|
+
timeframe: string;
|
|
1139
1605
|
/**
|
|
1140
|
-
*
|
|
1141
|
-
* @
|
|
1606
|
+
* Format: double
|
|
1607
|
+
* @description Current position volume at the time of the spike (USD)
|
|
1142
1608
|
*/
|
|
1143
|
-
timeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "1d" | "24h" | "7d" | "30d";
|
|
1144
|
-
/** @description Current position volume at the time of the spike (USD) */
|
|
1145
1609
|
current_volume_usd: number;
|
|
1146
|
-
/**
|
|
1610
|
+
/**
|
|
1611
|
+
* Format: double
|
|
1612
|
+
* @description Volume at the snapshot baseline (USD)
|
|
1613
|
+
*/
|
|
1147
1614
|
snapshot_volume_usd: number;
|
|
1148
|
-
/**
|
|
1615
|
+
/**
|
|
1616
|
+
* Format: double
|
|
1617
|
+
* @description New volume since the snapshot that triggered this notification (USD)
|
|
1618
|
+
*/
|
|
1149
1619
|
delta_volume_usd: number;
|
|
1150
|
-
/**
|
|
1620
|
+
/**
|
|
1621
|
+
* Format: double
|
|
1622
|
+
* @description Volume growth as a percentage of the snapshot (e.g. 200.0 means volume tripled)
|
|
1623
|
+
*/
|
|
1151
1624
|
spike_pct: number;
|
|
1152
|
-
/**
|
|
1625
|
+
/**
|
|
1626
|
+
* Format: int64
|
|
1627
|
+
* @description Total transactions in this timeframe
|
|
1628
|
+
*/
|
|
1153
1629
|
txns: number;
|
|
1630
|
+
/**
|
|
1631
|
+
* Format: double
|
|
1632
|
+
* @description Total fees in this timeframe
|
|
1633
|
+
*/
|
|
1154
1634
|
fees: number;
|
|
1155
1635
|
};
|
|
1636
|
+
/** @description Subscription filters for the `price_spike` event. */
|
|
1637
|
+
PriceSpikeFilters: {
|
|
1638
|
+
/** @description Restrict to specific outcome token IDs. Empty = all positions. */
|
|
1639
|
+
position_ids?: string[] | null;
|
|
1640
|
+
/** @description Restrict to specific market condition IDs. Empty = all markets. */
|
|
1641
|
+
condition_ids?: string[] | null;
|
|
1642
|
+
/** @description Restrict to specific events. Empty = all events. */
|
|
1643
|
+
event_slugs?: string[] | null;
|
|
1644
|
+
/** @description Restrict to these outcome names (e.g. \["Yes", "No"\]). */
|
|
1645
|
+
outcomes?: string[] | null;
|
|
1646
|
+
/**
|
|
1647
|
+
* Format: double
|
|
1648
|
+
* @description Minimum price percentage move to trigger (e.g. `10` for a 10% move).
|
|
1649
|
+
*/
|
|
1650
|
+
min_price_change_pct?: number | null;
|
|
1651
|
+
/**
|
|
1652
|
+
* Format: double
|
|
1653
|
+
* @description Minimum YES probability (0-1).
|
|
1654
|
+
*/
|
|
1655
|
+
min_probability?: number | null;
|
|
1656
|
+
/**
|
|
1657
|
+
* Format: double
|
|
1658
|
+
* @description Maximum YES probability (0-1).
|
|
1659
|
+
*/
|
|
1660
|
+
max_probability?: number | null;
|
|
1661
|
+
/**
|
|
1662
|
+
* Format: int64
|
|
1663
|
+
* @description Minimum trades accumulated in the observation window before firing.
|
|
1664
|
+
*/
|
|
1665
|
+
min_txns?: number | null;
|
|
1666
|
+
/**
|
|
1667
|
+
* Format: double
|
|
1668
|
+
* @description Minimum USD volume accumulated in the observation window before firing.
|
|
1669
|
+
*/
|
|
1670
|
+
min_volume_usd?: number | null;
|
|
1671
|
+
spike_direction?: null | components["schemas"]["SpikeDirection"];
|
|
1672
|
+
/**
|
|
1673
|
+
* Format: int64
|
|
1674
|
+
* @description Observation window in seconds. The first trade in each window sets the reference price; subsequent trades are compared to it. E.g. `60` detects moves that occur within 60 seconds.
|
|
1675
|
+
*/
|
|
1676
|
+
window_secs?: number | null;
|
|
1677
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
1678
|
+
exclude_shortterm_markets?: boolean | null;
|
|
1679
|
+
};
|
|
1680
|
+
/** @description Position price spike webhook payload */
|
|
1156
1681
|
PriceSpikePayload: {
|
|
1157
|
-
/** @description Outcome token ID */
|
|
1158
1682
|
position_id: string;
|
|
1159
|
-
/** @description Market condition ID */
|
|
1160
1683
|
condition_id?: string | null;
|
|
1161
|
-
|
|
1684
|
+
question?: string | null;
|
|
1685
|
+
market_slug?: string | null;
|
|
1162
1686
|
event_slug?: string | null;
|
|
1163
|
-
|
|
1687
|
+
image_url?: string | null;
|
|
1164
1688
|
outcome?: string | null;
|
|
1689
|
+
/** Format: int32 */
|
|
1690
|
+
outcome_index?: number | null;
|
|
1165
1691
|
/**
|
|
1166
|
-
* Format:
|
|
1167
|
-
* @description
|
|
1692
|
+
* Format: double
|
|
1693
|
+
* @description Price at the start of the observation window (the baseline snapshot)
|
|
1168
1694
|
*/
|
|
1169
|
-
outcome_index?: number | null;
|
|
1170
|
-
/** @description Price at the start of the observation window (baseline snapshot, 0.0–1.0) */
|
|
1171
1695
|
previous_price: number;
|
|
1172
|
-
/**
|
|
1696
|
+
/**
|
|
1697
|
+
* Format: double
|
|
1698
|
+
* @description Current price that triggered the spike
|
|
1699
|
+
*/
|
|
1173
1700
|
current_price: number;
|
|
1701
|
+
/** @description Direction of the spike: `"up"` (price rising) or `"down"` (price falling) */
|
|
1702
|
+
spike_direction: string;
|
|
1174
1703
|
/**
|
|
1175
|
-
*
|
|
1176
|
-
* @
|
|
1704
|
+
* Format: double
|
|
1705
|
+
* @description Detected spike percentage from the snapshot baseline. Positive = rising, negative = falling.
|
|
1177
1706
|
*/
|
|
1178
|
-
spike_direction: "up" | "down";
|
|
1179
|
-
/** @description Percentage move that triggered this notification. Positive = up, negative = down. */
|
|
1180
1707
|
spike_pct: number;
|
|
1181
1708
|
};
|
|
1709
|
+
/** @description Subscription filters for the `probability_spike` event. */
|
|
1710
|
+
ProbabilitySpikeFilters: {
|
|
1711
|
+
/** @description Restrict to specific outcome token IDs. Empty = all positions. */
|
|
1712
|
+
position_ids?: string[] | null;
|
|
1713
|
+
/** @description Restrict to specific market condition IDs. Empty = all markets. */
|
|
1714
|
+
condition_ids?: string[] | null;
|
|
1715
|
+
/** @description Restrict to specific events. Empty = all events. */
|
|
1716
|
+
event_slugs?: string[] | null;
|
|
1717
|
+
/** @description Restrict to these outcome names (e.g. \["Yes", "No"\]). */
|
|
1718
|
+
outcomes?: string[] | null;
|
|
1719
|
+
/**
|
|
1720
|
+
* Format: double
|
|
1721
|
+
* @description Minimum YES probability (0-1). At least one of `min_probability`/`max_probability` is enforced at runtime if you want a probability gate.
|
|
1722
|
+
*/
|
|
1723
|
+
min_probability?: number | null;
|
|
1724
|
+
/**
|
|
1725
|
+
* Format: double
|
|
1726
|
+
* @description Maximum YES probability (0-1).
|
|
1727
|
+
*/
|
|
1728
|
+
max_probability?: number | null;
|
|
1729
|
+
/**
|
|
1730
|
+
* Format: double
|
|
1731
|
+
* @description Minimum probability percentage move to trigger (e.g. `10` for a 10% move).
|
|
1732
|
+
*/
|
|
1733
|
+
min_probability_change_pct?: number | null;
|
|
1734
|
+
/**
|
|
1735
|
+
* Format: int64
|
|
1736
|
+
* @description Minimum trades accumulated in the observation window before firing.
|
|
1737
|
+
*/
|
|
1738
|
+
min_txns?: number | null;
|
|
1739
|
+
/**
|
|
1740
|
+
* Format: double
|
|
1741
|
+
* @description Minimum USD volume accumulated in the observation window before firing.
|
|
1742
|
+
*/
|
|
1743
|
+
min_volume_usd?: number | null;
|
|
1744
|
+
spike_direction?: null | components["schemas"]["SpikeDirection"];
|
|
1745
|
+
/**
|
|
1746
|
+
* Format: int64
|
|
1747
|
+
* @description Observation window in seconds. The first trade in each window sets the reference price; subsequent trades are compared to it. E.g. `60` detects moves that occur within 60 seconds.
|
|
1748
|
+
*/
|
|
1749
|
+
window_secs?: number | null;
|
|
1750
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
1751
|
+
exclude_shortterm_markets?: boolean | null;
|
|
1752
|
+
};
|
|
1753
|
+
/** @description Position probability spike webhook payload */
|
|
1182
1754
|
ProbabilitySpikePayload: {
|
|
1183
|
-
/** @description Outcome token ID */
|
|
1184
1755
|
position_id: string;
|
|
1185
|
-
/** @description Market condition ID */
|
|
1186
1756
|
condition_id?: string | null;
|
|
1187
|
-
|
|
1757
|
+
question?: string | null;
|
|
1758
|
+
market_slug?: string | null;
|
|
1188
1759
|
event_slug?: string | null;
|
|
1189
|
-
|
|
1760
|
+
image_url?: string | null;
|
|
1190
1761
|
outcome?: string | null;
|
|
1762
|
+
/** Format: int32 */
|
|
1763
|
+
outcome_index?: number | null;
|
|
1191
1764
|
/**
|
|
1192
|
-
* Format:
|
|
1193
|
-
* @description
|
|
1765
|
+
* Format: double
|
|
1766
|
+
* @description Probability at the start of the observation window (the baseline snapshot)
|
|
1194
1767
|
*/
|
|
1195
|
-
outcome_index?: number | null;
|
|
1196
|
-
/** @description Probability at the start of the observation window (baseline snapshot, 0.0–1.0) */
|
|
1197
1768
|
previous_probability: number;
|
|
1198
|
-
/**
|
|
1769
|
+
/**
|
|
1770
|
+
* Format: double
|
|
1771
|
+
* @description Current probability that triggered the spike
|
|
1772
|
+
*/
|
|
1199
1773
|
current_probability: number;
|
|
1774
|
+
/** @description Direction of the spike: `"up"` (probability rising) or `"down"` (probability falling) */
|
|
1775
|
+
spike_direction: string;
|
|
1200
1776
|
/**
|
|
1201
|
-
*
|
|
1202
|
-
* @
|
|
1777
|
+
* Format: double
|
|
1778
|
+
* @description Detected spike percentage from the snapshot baseline. Positive = rising, negative = falling.
|
|
1203
1779
|
*/
|
|
1204
|
-
spike_direction: "up" | "down";
|
|
1205
|
-
/** @description Percentage move that triggered this notification. Positive = up, negative = down. */
|
|
1206
1780
|
spike_pct: number;
|
|
1207
1781
|
};
|
|
1208
1782
|
/** @description V2 UMA OOv2: a price was proposed (resolution proposal). */
|
|
@@ -1412,88 +1986,446 @@ export interface components {
|
|
|
1412
1986
|
slug?: string | null;
|
|
1413
1987
|
event_slug?: string | null;
|
|
1414
1988
|
};
|
|
1415
|
-
/** @description V2 UMA OOv2: a price request was made (market initialization). */
|
|
1416
|
-
RequestPriceEvent: {
|
|
1417
|
-
id: string;
|
|
1418
|
-
hash: string;
|
|
1419
|
-
/** Format: int64 */
|
|
1420
|
-
block?: number | null;
|
|
1421
|
-
/** Format: int64 */
|
|
1422
|
-
confirmed_at?: number | null;
|
|
1423
|
-
/** Format: int64 */
|
|
1424
|
-
received_at?: number | null;
|
|
1425
|
-
/** Format: int64 */
|
|
1426
|
-
log_index?: number | null;
|
|
1427
|
-
/** Format: int64 */
|
|
1428
|
-
block_index?: number | null;
|
|
1429
|
-
oracle_contract: string;
|
|
1430
|
-
requester: string;
|
|
1431
|
-
identifier: string;
|
|
1989
|
+
/** @description V2 UMA OOv2: a price request was made (market initialization). */
|
|
1990
|
+
RequestPriceEvent: {
|
|
1991
|
+
id: string;
|
|
1992
|
+
hash: string;
|
|
1993
|
+
/** Format: int64 */
|
|
1994
|
+
block?: number | null;
|
|
1995
|
+
/** Format: int64 */
|
|
1996
|
+
confirmed_at?: number | null;
|
|
1997
|
+
/** Format: int64 */
|
|
1998
|
+
received_at?: number | null;
|
|
1999
|
+
/** Format: int64 */
|
|
2000
|
+
log_index?: number | null;
|
|
2001
|
+
/** Format: int64 */
|
|
2002
|
+
block_index?: number | null;
|
|
2003
|
+
oracle_contract: string;
|
|
2004
|
+
requester: string;
|
|
2005
|
+
identifier: string;
|
|
2006
|
+
/**
|
|
2007
|
+
* @description UMA request timestamp (seconds, decimal string).
|
|
2008
|
+
* The point in time the requester is asking the oracle to resolve the
|
|
2009
|
+
* price for — part of the request identity tuple
|
|
2010
|
+
* `(requester, identifier, timestamp, ancillaryData)`. Not the block
|
|
2011
|
+
* timestamp of this event; see `confirmed_at` for that.
|
|
2012
|
+
*/
|
|
2013
|
+
timestamp: string;
|
|
2014
|
+
ancillary_data: string;
|
|
2015
|
+
currency: string;
|
|
2016
|
+
reward: string;
|
|
2017
|
+
final_fee: string;
|
|
2018
|
+
condition_id?: string | null;
|
|
2019
|
+
question?: string | null;
|
|
2020
|
+
image_url?: string | null;
|
|
2021
|
+
slug?: string | null;
|
|
2022
|
+
event_slug?: string | null;
|
|
2023
|
+
};
|
|
2024
|
+
/** @description Response for POST /v1/webhook/{id}/rotate-secret */
|
|
2025
|
+
RotateSecretResponse: {
|
|
2026
|
+
/** @description The new HMAC secret (only returned once — store it securely) */
|
|
2027
|
+
secret: string;
|
|
2028
|
+
/**
|
|
2029
|
+
* Format: int64
|
|
2030
|
+
* @description Timestamp of rotation (ms since epoch)
|
|
2031
|
+
*/
|
|
2032
|
+
rotated_at: number;
|
|
2033
|
+
};
|
|
2034
|
+
/** @description V2 UMA OOv2: a price request was settled (final resolution). */
|
|
2035
|
+
SettleEvent: {
|
|
2036
|
+
id: string;
|
|
2037
|
+
hash: string;
|
|
2038
|
+
/** Format: int64 */
|
|
2039
|
+
block?: number | null;
|
|
2040
|
+
/** Format: int64 */
|
|
2041
|
+
confirmed_at?: number | null;
|
|
2042
|
+
/** Format: int64 */
|
|
2043
|
+
received_at?: number | null;
|
|
2044
|
+
/** Format: int64 */
|
|
2045
|
+
log_index?: number | null;
|
|
2046
|
+
/** Format: int64 */
|
|
2047
|
+
block_index?: number | null;
|
|
2048
|
+
oracle_contract: string;
|
|
2049
|
+
requester: string;
|
|
2050
|
+
proposer: string;
|
|
2051
|
+
disputer: string;
|
|
2052
|
+
identifier: string;
|
|
2053
|
+
timestamp: string;
|
|
2054
|
+
ancillary_data: string;
|
|
2055
|
+
/** Format: int64 */
|
|
2056
|
+
proposed_price: number;
|
|
2057
|
+
payout: string;
|
|
2058
|
+
disputed: boolean;
|
|
2059
|
+
condition_id?: string | null;
|
|
2060
|
+
proposed_outcome?: string | null;
|
|
2061
|
+
question?: string | null;
|
|
2062
|
+
image_url?: string | null;
|
|
2063
|
+
slug?: string | null;
|
|
2064
|
+
event_slug?: string | null;
|
|
2065
|
+
};
|
|
2066
|
+
/**
|
|
2067
|
+
* @description Direction filter for spike webhooks.
|
|
2068
|
+
* @enum {string}
|
|
2069
|
+
*/
|
|
2070
|
+
SpikeDirection: "up" | "down" | "both";
|
|
2071
|
+
/** @description Subscription filters for the `tag_metrics` event. All fields are optional. */
|
|
2072
|
+
TagMetricsFilters: {
|
|
2073
|
+
/** @description Restrict to these tags. Empty = all tags. */
|
|
2074
|
+
tags?: string[] | null;
|
|
2075
|
+
/** @description Restrict to these aggregation windows. */
|
|
2076
|
+
timeframes?: components["schemas"]["MetricFilterTimeframe"][] | null;
|
|
2077
|
+
/**
|
|
2078
|
+
* Format: double
|
|
2079
|
+
* @description Only fire when aggregated tag volume >= this value (USD).
|
|
2080
|
+
*/
|
|
2081
|
+
min_volume_usd?: number | null;
|
|
2082
|
+
/** Format: double */
|
|
2083
|
+
max_volume_usd?: number | null;
|
|
2084
|
+
/** Format: int64 */
|
|
2085
|
+
min_txns?: number | null;
|
|
2086
|
+
/** Format: int64 */
|
|
2087
|
+
min_unique_traders?: number | null;
|
|
2088
|
+
/** Format: double */
|
|
2089
|
+
min_fees?: number | null;
|
|
2090
|
+
};
|
|
2091
|
+
/** @description Payload delivered when a tag's aggregated volume or transaction metrics cross a configured threshold */
|
|
2092
|
+
TagMetricsPayload: {
|
|
2093
|
+
/** @description Tag label or slug */
|
|
2094
|
+
tag?: string | null;
|
|
2095
|
+
/** @description Aggregation window */
|
|
2096
|
+
timeframe?: null | ("1m" | "5m" | "15m" | "30m" | "1h" | "4h" | "6h" | "1d" | "24h" | "7d" | "30d");
|
|
2097
|
+
/**
|
|
2098
|
+
* Format: double
|
|
2099
|
+
* @description Total aggregated volume for the tag (USD)
|
|
2100
|
+
*/
|
|
2101
|
+
volume_usd?: number | null;
|
|
2102
|
+
/**
|
|
2103
|
+
* Format: double
|
|
2104
|
+
* @description Total aggregated shares/contracts volume for the tag
|
|
2105
|
+
*/
|
|
2106
|
+
shares_volume?: number | null;
|
|
2107
|
+
/**
|
|
2108
|
+
* Format: double
|
|
2109
|
+
* @description Builder-attributed aggregated volume in USD
|
|
2110
|
+
*/
|
|
2111
|
+
builder_usd_volume?: number | null;
|
|
2112
|
+
/**
|
|
2113
|
+
* Format: double
|
|
2114
|
+
* @description Builder-attributed aggregated shares/contracts volume
|
|
2115
|
+
*/
|
|
2116
|
+
builder_shares_volume?: number | null;
|
|
2117
|
+
/**
|
|
2118
|
+
* Format: double
|
|
2119
|
+
* @description Total fees collected in USD
|
|
2120
|
+
*/
|
|
2121
|
+
fees?: number | null;
|
|
2122
|
+
/**
|
|
2123
|
+
* Format: double
|
|
2124
|
+
* @description Builder-attributed fees in USD
|
|
2125
|
+
*/
|
|
2126
|
+
builder_fees?: number | null;
|
|
2127
|
+
/**
|
|
2128
|
+
* Format: int64
|
|
2129
|
+
* @description Total number of transactions
|
|
2130
|
+
*/
|
|
2131
|
+
txns?: number | null;
|
|
2132
|
+
/**
|
|
2133
|
+
* Format: int64
|
|
2134
|
+
* @description Builder-attributed transaction count
|
|
2135
|
+
*/
|
|
2136
|
+
builder_txns?: number | null;
|
|
2137
|
+
/**
|
|
2138
|
+
* Format: int64
|
|
2139
|
+
* @description Number of unique traders
|
|
2140
|
+
*/
|
|
2141
|
+
unique_traders?: number | null;
|
|
2142
|
+
/**
|
|
2143
|
+
* Format: int64
|
|
2144
|
+
* @description Number of unique builder-attributed traders
|
|
2145
|
+
*/
|
|
2146
|
+
unique_builder_traders?: number | null;
|
|
2147
|
+
};
|
|
2148
|
+
/**
|
|
2149
|
+
* @description Trade-event types accepted by `trader_trade_event.trade_types`. Covers the
|
|
2150
|
+
* full set of typed prediction-trade variants.
|
|
2151
|
+
* @enum {string}
|
|
2152
|
+
*/
|
|
2153
|
+
TradeEventFilterType: "OrderFilled" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "OrdersMatched" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval";
|
|
2154
|
+
/** @description Subscription filters for the `trader_event_pnl` event. All fields are optional. */
|
|
2155
|
+
TraderEventPnlFilters: {
|
|
2156
|
+
/** @description Track only these trader wallet addresses. */
|
|
2157
|
+
traders?: string[] | null;
|
|
2158
|
+
/** @description Restrict to these events. */
|
|
2159
|
+
event_slugs?: string[] | null;
|
|
2160
|
+
/**
|
|
2161
|
+
* Format: double
|
|
2162
|
+
* @description Only fire when per-event realized PnL ≥ this value (USD).
|
|
2163
|
+
*/
|
|
2164
|
+
min_realized_pnl_usd?: number | null;
|
|
2165
|
+
/**
|
|
2166
|
+
* Format: double
|
|
2167
|
+
* @description Only fire when per-event realized PnL ≤ this value (USD).
|
|
2168
|
+
*/
|
|
2169
|
+
max_realized_pnl_usd?: number | null;
|
|
2170
|
+
/**
|
|
2171
|
+
* Format: double
|
|
2172
|
+
* @description Only fire when total event volume ≥ this value (USD).
|
|
2173
|
+
*/
|
|
2174
|
+
min_volume_usd?: number | null;
|
|
2175
|
+
/**
|
|
2176
|
+
* Format: double
|
|
2177
|
+
* @description Only fire when total event volume ≤ this value (USD).
|
|
2178
|
+
*/
|
|
2179
|
+
max_volume_usd?: number | null;
|
|
2180
|
+
/**
|
|
2181
|
+
* Format: double
|
|
2182
|
+
* @description Only fire when buy volume within the event ≥ this value (USD).
|
|
2183
|
+
*/
|
|
2184
|
+
min_buy_usd?: number | null;
|
|
2185
|
+
/**
|
|
2186
|
+
* Format: double
|
|
2187
|
+
* @description Only fire when sell volume within the event ≥ this value (USD).
|
|
2188
|
+
*/
|
|
2189
|
+
min_sell_volume_usd?: number | null;
|
|
2190
|
+
/**
|
|
2191
|
+
* Format: int64
|
|
2192
|
+
* @description Only fire when the trader has traded in ≥ this many markets within the event.
|
|
2193
|
+
*/
|
|
2194
|
+
min_markets_traded?: number | null;
|
|
2195
|
+
/** @description Restrict to these PnL windows. */
|
|
2196
|
+
timeframes?: components["schemas"]["PnlFilterTimeframe"][] | null;
|
|
2197
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2198
|
+
exclude_shortterm_markets?: boolean | null;
|
|
2199
|
+
};
|
|
2200
|
+
/** @description Subscription filters for the `trader_first_trade` event. All fields are optional. */
|
|
2201
|
+
TraderFirstTradeFilters: {
|
|
2202
|
+
/** @description Only fire for trades by these wallet addresses (lowercase). Empty = all traders. */
|
|
2203
|
+
wallet_addresses?: string[] | null;
|
|
2204
|
+
/** @description Restrict to trades in these markets. Empty = all markets. */
|
|
2205
|
+
condition_ids?: string[] | null;
|
|
2206
|
+
/** @description Restrict to trades in markets belonging to these events. */
|
|
2207
|
+
event_slugs?: string[] | null;
|
|
2208
|
+
/**
|
|
2209
|
+
* Format: double
|
|
2210
|
+
* @description Minimum trade size in USD. Omit to match all sizes.
|
|
2211
|
+
*/
|
|
2212
|
+
min_usd_value?: number | null;
|
|
2213
|
+
/**
|
|
2214
|
+
* Format: double
|
|
2215
|
+
* @description Only fire when the outcome probability is ≥ this value.
|
|
2216
|
+
*/
|
|
2217
|
+
min_probability?: number | null;
|
|
2218
|
+
/**
|
|
2219
|
+
* Format: double
|
|
2220
|
+
* @description Only fire when the outcome probability is ≤ this value.
|
|
2221
|
+
*/
|
|
2222
|
+
max_probability?: number | null;
|
|
2223
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets (event slugs containing `updown`). Default: `false`. */
|
|
2224
|
+
exclude_shortterm_markets?: boolean | null;
|
|
2225
|
+
};
|
|
2226
|
+
/** @description Subscription filters for the `trader_global_pnl` event. All fields are optional. */
|
|
2227
|
+
TraderGlobalPnlFilters: {
|
|
2228
|
+
/** @description Track only these trader wallet addresses. Empty = all traders. */
|
|
2229
|
+
traders?: string[] | null;
|
|
2230
|
+
/**
|
|
2231
|
+
* Format: double
|
|
2232
|
+
* @description Only fire when realized PnL ≥ this value (USD). Use negative values for loss thresholds.
|
|
2233
|
+
*/
|
|
2234
|
+
min_realized_pnl_usd?: number | null;
|
|
2235
|
+
/**
|
|
2236
|
+
* Format: double
|
|
2237
|
+
* @description Only fire when realized PnL ≤ this value (USD).
|
|
2238
|
+
*/
|
|
2239
|
+
max_realized_pnl_usd?: number | null;
|
|
2240
|
+
/**
|
|
2241
|
+
* Format: double
|
|
2242
|
+
* @description Only fire when total trading volume ≥ this value (USD).
|
|
2243
|
+
*/
|
|
2244
|
+
min_volume_usd?: number | null;
|
|
2245
|
+
/**
|
|
2246
|
+
* Format: double
|
|
2247
|
+
* @description Only fire when total trading volume ≤ this value (USD).
|
|
2248
|
+
*/
|
|
2249
|
+
max_volume_usd?: number | null;
|
|
2250
|
+
/**
|
|
2251
|
+
* Format: double
|
|
2252
|
+
* @description Only fire when buy volume ≥ this value (USD).
|
|
2253
|
+
*/
|
|
2254
|
+
min_buy_usd?: number | null;
|
|
2255
|
+
/**
|
|
2256
|
+
* Format: double
|
|
2257
|
+
* @description Only fire when sell volume ≥ this value (USD).
|
|
2258
|
+
*/
|
|
2259
|
+
min_sell_volume_usd?: number | null;
|
|
2260
|
+
/**
|
|
2261
|
+
* Format: double
|
|
2262
|
+
* @description Only fire when market win rate ≥ this percentage (0.0–100.0).
|
|
2263
|
+
*/
|
|
2264
|
+
min_win_rate?: number | null;
|
|
2265
|
+
/**
|
|
2266
|
+
* Format: int64
|
|
2267
|
+
* @description Only fire when the trader has traded in ≥ this many markets.
|
|
2268
|
+
*/
|
|
2269
|
+
min_markets_traded?: number | null;
|
|
2270
|
+
/** @description Restrict to these PnL windows. Empty = all windows. */
|
|
2271
|
+
timeframes?: components["schemas"]["PnlFilterTimeframe"][] | null;
|
|
2272
|
+
};
|
|
2273
|
+
/** @description Subscription filters for the `trader_market_pnl` event. All fields are optional. */
|
|
2274
|
+
TraderMarketPnlFilters: {
|
|
2275
|
+
/** @description Track only these trader wallet addresses. */
|
|
2276
|
+
traders?: string[] | null;
|
|
2277
|
+
/** @description Restrict to these markets. */
|
|
2278
|
+
condition_ids?: string[] | null;
|
|
2279
|
+
/** @description Restrict to markets in these events. */
|
|
2280
|
+
event_slugs?: string[] | null;
|
|
1432
2281
|
/**
|
|
1433
|
-
*
|
|
1434
|
-
*
|
|
1435
|
-
* price for — part of the request identity tuple
|
|
1436
|
-
* `(requester, identifier, timestamp, ancillaryData)`. Not the block
|
|
1437
|
-
* timestamp of this event; see `confirmed_at` for that.
|
|
2282
|
+
* Format: double
|
|
2283
|
+
* @description Only fire when per-market realized PnL ≥ this value (USD).
|
|
1438
2284
|
*/
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
2285
|
+
min_realized_pnl_usd?: number | null;
|
|
2286
|
+
/**
|
|
2287
|
+
* Format: double
|
|
2288
|
+
* @description Only fire when per-market realized PnL ≤ this value (USD).
|
|
2289
|
+
*/
|
|
2290
|
+
max_realized_pnl_usd?: number | null;
|
|
2291
|
+
/**
|
|
2292
|
+
* Format: double
|
|
2293
|
+
* @description Only fire when total volume (buy + sell + redemption + merge) ≥ this value (USD).
|
|
2294
|
+
*/
|
|
2295
|
+
min_volume_usd?: number | null;
|
|
2296
|
+
/**
|
|
2297
|
+
* Format: double
|
|
2298
|
+
* @description Only fire when total volume ≤ this value (USD).
|
|
2299
|
+
*/
|
|
2300
|
+
max_volume_usd?: number | null;
|
|
2301
|
+
/**
|
|
2302
|
+
* Format: double
|
|
2303
|
+
* @description Only fire when buy volume in the market ≥ this value (USD).
|
|
2304
|
+
*/
|
|
2305
|
+
min_buy_usd?: number | null;
|
|
2306
|
+
/**
|
|
2307
|
+
* Format: double
|
|
2308
|
+
* @description Only fire when sell volume in the market ≥ this value (USD).
|
|
2309
|
+
*/
|
|
2310
|
+
min_sell_volume_usd?: number | null;
|
|
2311
|
+
/** @description Restrict to these PnL windows. */
|
|
2312
|
+
timeframes?: components["schemas"]["PnlFilterTimeframe"][] | null;
|
|
2313
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2314
|
+
exclude_shortterm_markets?: boolean | null;
|
|
1449
2315
|
};
|
|
1450
|
-
/** @description
|
|
1451
|
-
|
|
1452
|
-
/** @description
|
|
1453
|
-
|
|
2316
|
+
/** @description Subscription filters for the `trader_new_market` event. All fields are optional. */
|
|
2317
|
+
TraderNewMarketFilters: {
|
|
2318
|
+
/** @description Only fire for these wallet addresses (lowercase). Empty = all traders. */
|
|
2319
|
+
wallet_addresses?: string[] | null;
|
|
2320
|
+
/** @description Restrict to these markets. */
|
|
2321
|
+
condition_ids?: string[] | null;
|
|
2322
|
+
/** @description Restrict to markets belonging to these events. */
|
|
2323
|
+
event_slugs?: string[] | null;
|
|
1454
2324
|
/**
|
|
1455
|
-
* Format:
|
|
1456
|
-
* @description
|
|
2325
|
+
* Format: double
|
|
2326
|
+
* @description Minimum trade size in USD. Omit to match all sizes.
|
|
1457
2327
|
*/
|
|
1458
|
-
|
|
2328
|
+
min_usd_value?: number | null;
|
|
2329
|
+
/**
|
|
2330
|
+
* Format: double
|
|
2331
|
+
* @description Only fire when the outcome probability is ≥ this value.
|
|
2332
|
+
*/
|
|
2333
|
+
min_probability?: number | null;
|
|
2334
|
+
/**
|
|
2335
|
+
* Format: double
|
|
2336
|
+
* @description Only fire when the outcome probability is ≤ this value.
|
|
2337
|
+
*/
|
|
2338
|
+
max_probability?: number | null;
|
|
2339
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2340
|
+
exclude_shortterm_markets?: boolean | null;
|
|
1459
2341
|
};
|
|
1460
|
-
/** @description
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
/**
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
question?: string | null;
|
|
1488
|
-
image_url?: string | null;
|
|
1489
|
-
slug?: string | null;
|
|
1490
|
-
event_slug?: string | null;
|
|
2342
|
+
/** @description Subscription filters for the `trader_new_trade` event. All fields are optional. */
|
|
2343
|
+
TraderNewTradeFilters: {
|
|
2344
|
+
/** @description Only fire for trades by these wallet addresses. Empty = all traders. */
|
|
2345
|
+
wallet_addresses?: string[] | null;
|
|
2346
|
+
/** @description Restrict to these markets. */
|
|
2347
|
+
condition_ids?: string[] | null;
|
|
2348
|
+
/** @description Restrict to markets belonging to these events. */
|
|
2349
|
+
event_slugs?: string[] | null;
|
|
2350
|
+
/**
|
|
2351
|
+
* Format: double
|
|
2352
|
+
* @description Minimum trade size in USD. Defaults to 0 (matches all trades).
|
|
2353
|
+
*/
|
|
2354
|
+
min_usd_value?: number | null;
|
|
2355
|
+
/**
|
|
2356
|
+
* Format: double
|
|
2357
|
+
* @description Only fire when outcome probability is ≥ this value.
|
|
2358
|
+
*/
|
|
2359
|
+
min_probability?: number | null;
|
|
2360
|
+
/**
|
|
2361
|
+
* Format: double
|
|
2362
|
+
* @description Only fire when outcome probability is ≤ this value.
|
|
2363
|
+
*/
|
|
2364
|
+
max_probability?: number | null;
|
|
2365
|
+
/** @description Only fire for these fill-style trade types. Empty = OrderFilled and OrdersMatched only (default). */
|
|
2366
|
+
trade_types?: ("OrderFilled" | "OrdersMatched")[] | null;
|
|
2367
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2368
|
+
exclude_shortterm_markets?: boolean | null;
|
|
1491
2369
|
};
|
|
1492
2370
|
/**
|
|
1493
|
-
* @description
|
|
1494
|
-
*
|
|
2371
|
+
* @description Subscription filters for the `trader_trade_event` event. All fields are optional.
|
|
2372
|
+
* `event_slugs` and `exclude_shortterm_markets` require explicit `trade_types` that
|
|
2373
|
+
* exclude `PositionsConverted`, because conversion events do not currently carry
|
|
2374
|
+
* `event_slug` in the typed webhook payload.
|
|
1495
2375
|
*/
|
|
1496
|
-
|
|
2376
|
+
TraderTradeEventFilters: {
|
|
2377
|
+
/** @description Only fire for events associated with these wallet addresses. Empty = all traders. */
|
|
2378
|
+
wallet_addresses?: string[] | null;
|
|
2379
|
+
/** @description Restrict to these markets. For `PositionsConverted`, this also matches the NegRisk `market_id`. */
|
|
2380
|
+
condition_ids?: string[] | null;
|
|
2381
|
+
/** @description Restrict to markets belonging to these events. Requires explicit `trade_types` that exclude `PositionsConverted`. */
|
|
2382
|
+
event_slugs?: string[] | null;
|
|
2383
|
+
/**
|
|
2384
|
+
* Format: double
|
|
2385
|
+
* @description Minimum USD amount for the underlying event. Defaults to 0 (matches all events).
|
|
2386
|
+
*/
|
|
2387
|
+
min_usd_value?: number | null;
|
|
2388
|
+
/**
|
|
2389
|
+
* Format: double
|
|
2390
|
+
* @description Only fire when event probability is ≥ this value. Events without probability data do not match.
|
|
2391
|
+
*/
|
|
2392
|
+
min_probability?: number | null;
|
|
2393
|
+
/**
|
|
2394
|
+
* Format: double
|
|
2395
|
+
* @description Only fire when event probability is ≤ this value. Events without probability data do not match.
|
|
2396
|
+
*/
|
|
2397
|
+
max_probability?: number | null;
|
|
2398
|
+
/** @description Only fire for these trade types. Empty = all supported trade-event variants. */
|
|
2399
|
+
trade_types?: ("OrderFilled" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "OrdersMatched" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[] | null;
|
|
2400
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Requires explicit `trade_types` that exclude `PositionsConverted`. Default: `false`. */
|
|
2401
|
+
exclude_shortterm_markets?: boolean | null;
|
|
2402
|
+
};
|
|
2403
|
+
/** @description Subscription filters for the `trader_whale_trade` event. All fields are optional. */
|
|
2404
|
+
TraderWhaleTradeFilters: {
|
|
2405
|
+
/** @description Only fire for trades by these wallet addresses. Empty = all traders. */
|
|
2406
|
+
wallet_addresses?: string[] | null;
|
|
2407
|
+
/** @description Restrict to these markets. */
|
|
2408
|
+
condition_ids?: string[] | null;
|
|
2409
|
+
/** @description Restrict to markets belonging to these events. */
|
|
2410
|
+
event_slugs?: string[] | null;
|
|
2411
|
+
/**
|
|
2412
|
+
* Format: double
|
|
2413
|
+
* @description Minimum trade size in USD. Defaults to 0 (matches all trades).
|
|
2414
|
+
*/
|
|
2415
|
+
min_usd_value?: number | null;
|
|
2416
|
+
/**
|
|
2417
|
+
* Format: double
|
|
2418
|
+
* @description Only fire when outcome probability is ≥ this value.
|
|
2419
|
+
*/
|
|
2420
|
+
min_probability?: number | null;
|
|
2421
|
+
/**
|
|
2422
|
+
* Format: double
|
|
2423
|
+
* @description Only fire when outcome probability is ≤ this value.
|
|
2424
|
+
*/
|
|
2425
|
+
max_probability?: number | null;
|
|
2426
|
+
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2427
|
+
exclude_shortterm_markets?: boolean | null;
|
|
2428
|
+
};
|
|
1497
2429
|
/** @description Request body for updating a webhook */
|
|
1498
2430
|
UpdateWebhookRequestBody: {
|
|
1499
2431
|
/** @description Destination URL for webhook deliveries (must be HTTPS) */
|
|
@@ -1506,20 +2438,24 @@ export interface components {
|
|
|
1506
2438
|
/** @description Description/name */
|
|
1507
2439
|
description?: string | null;
|
|
1508
2440
|
};
|
|
1509
|
-
/** @description
|
|
2441
|
+
/** @description Volume milestone webhook payload */
|
|
1510
2442
|
VolumeMilestonePayload: {
|
|
1511
|
-
/** @description Market condition ID */
|
|
1512
2443
|
condition_id: string;
|
|
2444
|
+
timeframe: string;
|
|
1513
2445
|
/**
|
|
1514
|
-
*
|
|
1515
|
-
* @
|
|
2446
|
+
* Format: double
|
|
2447
|
+
* @description Milestone amount reached (USD)
|
|
1516
2448
|
*/
|
|
1517
|
-
timeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d";
|
|
1518
|
-
/** @description The USD milestone amount that was crossed */
|
|
1519
2449
|
milestone_usd: number;
|
|
1520
|
-
/**
|
|
2450
|
+
/**
|
|
2451
|
+
* Format: double
|
|
2452
|
+
* @description Current volume (USD) that triggered the milestone
|
|
2453
|
+
*/
|
|
1521
2454
|
current_volume_usd: number;
|
|
1522
|
-
/**
|
|
2455
|
+
/**
|
|
2456
|
+
* Format: double
|
|
2457
|
+
* @description Total fees collected in this timeframe
|
|
2458
|
+
*/
|
|
1523
2459
|
fees: number;
|
|
1524
2460
|
/**
|
|
1525
2461
|
* Format: int64
|
|
@@ -1527,6 +2463,12 @@ export interface components {
|
|
|
1527
2463
|
*/
|
|
1528
2464
|
txns: number;
|
|
1529
2465
|
};
|
|
2466
|
+
/**
|
|
2467
|
+
* @description Aggregation windows accepted by `*_volume_spike.timeframes`. Includes `1d`
|
|
2468
|
+
* in addition to the metric set.
|
|
2469
|
+
* @enum {string}
|
|
2470
|
+
*/
|
|
2471
|
+
VolumeSpikeFilterTimeframe: "1m" | "5m" | "30m" | "1h" | "6h" | "1d" | "24h" | "7d" | "30d";
|
|
1530
2472
|
/**
|
|
1531
2473
|
* @description Crypto asset symbols accepted by `asset_price_tick` and `asset_price_window_update` filters.
|
|
1532
2474
|
* @enum {string}
|
|
@@ -1542,7 +2484,7 @@ export interface components {
|
|
|
1542
2484
|
* @description Category grouping for the event type
|
|
1543
2485
|
* @enum {string}
|
|
1544
2486
|
*/
|
|
1545
|
-
category: "trader" | "trade" | "market" | "event" | "position" | "assets";
|
|
2487
|
+
category: "trader" | "trade" | "market" | "event" | "tag" | "position" | "assets";
|
|
1546
2488
|
/**
|
|
1547
2489
|
* Format: int64
|
|
1548
2490
|
* @description Millicredits consumed per webhook delivery (1 credit = 1000 mc)
|
|
@@ -1769,7 +2711,10 @@ export interface components {
|
|
|
1769
2711
|
condition_id?: string | null;
|
|
1770
2712
|
/** @description Outcome name (e.g. "Yes", "No") */
|
|
1771
2713
|
outcome?: string | null;
|
|
1772
|
-
/**
|
|
2714
|
+
/**
|
|
2715
|
+
* Format: int32
|
|
2716
|
+
* @description Outcome index: 0 = Yes/Up, 1 = No
|
|
2717
|
+
*/
|
|
1773
2718
|
outcome_index?: number | null;
|
|
1774
2719
|
/** @description Market question text */
|
|
1775
2720
|
question?: string | null;
|
|
@@ -1777,6 +2722,8 @@ export interface components {
|
|
|
1777
2722
|
market_slug?: string | null;
|
|
1778
2723
|
/** @description Parent event slug */
|
|
1779
2724
|
event_slug?: string | null;
|
|
2725
|
+
/** @description Market image URL */
|
|
2726
|
+
image_url?: string | null;
|
|
1780
2727
|
/** @description Unique trade identifier */
|
|
1781
2728
|
trade_id: string;
|
|
1782
2729
|
/** @description Transaction hash */
|
|
@@ -1791,30 +2738,36 @@ export interface components {
|
|
|
1791
2738
|
* @description Block confirmation timestamp (Unix seconds)
|
|
1792
2739
|
*/
|
|
1793
2740
|
confirmed_at: number;
|
|
1794
|
-
/**
|
|
2741
|
+
/**
|
|
2742
|
+
* Format: double
|
|
2743
|
+
* @description USD size of the trade (6 decimal places)
|
|
2744
|
+
*/
|
|
1795
2745
|
amount_usd: number;
|
|
1796
|
-
/**
|
|
2746
|
+
/**
|
|
2747
|
+
* Format: double
|
|
2748
|
+
* @description Outcome shares traded (6 decimal places)
|
|
2749
|
+
*/
|
|
1797
2750
|
shares_amount: number;
|
|
1798
|
-
/** @description Fee paid in USD (6 decimal places) */
|
|
1799
|
-
fee: number;
|
|
1800
2751
|
/**
|
|
1801
|
-
*
|
|
1802
|
-
* @
|
|
2752
|
+
* Format: double
|
|
2753
|
+
* @description Fee paid in USD (6 decimal places)
|
|
1803
2754
|
*/
|
|
2755
|
+
fee: number;
|
|
2756
|
+
/** @description Trade direction */
|
|
1804
2757
|
side: "Buy" | "Sell";
|
|
1805
|
-
/** @description Outcome token price (0.0–1.0) */
|
|
1806
|
-
price: number;
|
|
1807
|
-
/** @description Implied probability (0.0–1.0); null when outcome is unknown */
|
|
1808
|
-
probability?: number | null;
|
|
1809
2758
|
/**
|
|
1810
|
-
*
|
|
1811
|
-
* @
|
|
2759
|
+
* Format: double
|
|
2760
|
+
* @description Outcome token price (0.0–1.0)
|
|
1812
2761
|
*/
|
|
1813
|
-
|
|
2762
|
+
price: number;
|
|
1814
2763
|
/**
|
|
1815
|
-
*
|
|
1816
|
-
* @
|
|
2764
|
+
* Format: double
|
|
2765
|
+
* @description Implied probability (0.0–1.0); null when outcome is unknown
|
|
1817
2766
|
*/
|
|
2767
|
+
probability?: number | null;
|
|
2768
|
+
/** @description Exchange contract that processed the trade */
|
|
2769
|
+
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "CTFExchangeV2" | "NegRiskExchangeV2" | "Unknown";
|
|
2770
|
+
/** @description Trade type (webhook events only fire on order fills) */
|
|
1818
2771
|
trade_type: "OrderFilled" | "OrdersMatched";
|
|
1819
2772
|
};
|
|
1820
2773
|
/** @description Outer envelope for every webhook HTTP POST delivery. The `data` field contains the event-specific payload. Delivery headers sent with every POST: `X-Webhook-ID` (subscription UUID), `X-Delivery-ID` (this attempt's UUID), `X-Event-Type` (event name string, e.g. `trader_first_trade`), `X-Attempt` (attempt number, 1-indexed). When the webhook has a secret configured, `X-Webhook-Signature: sha256=<hmac-hex>` is also included — compute HMAC-SHA256 over the raw request body using your secret to verify. */
|
|
@@ -1853,7 +2806,52 @@ export interface components {
|
|
|
1853
2806
|
log_index: number;
|
|
1854
2807
|
/** Format: int64 */
|
|
1855
2808
|
block_index: number;
|
|
1856
|
-
order_hash: string;
|
|
2809
|
+
order_hash: string;
|
|
2810
|
+
trader: {
|
|
2811
|
+
address: string;
|
|
2812
|
+
name: string | null;
|
|
2813
|
+
pseudonym: string | null;
|
|
2814
|
+
profile_image: string | null;
|
|
2815
|
+
x_username: string | null;
|
|
2816
|
+
verified_badge: boolean;
|
|
2817
|
+
};
|
|
2818
|
+
taker: string;
|
|
2819
|
+
/** @enum {string} */
|
|
2820
|
+
side: "Buy" | "Sell";
|
|
2821
|
+
condition_id: string | null;
|
|
2822
|
+
position_id: string;
|
|
2823
|
+
outcome?: string;
|
|
2824
|
+
outcome_index: number | null;
|
|
2825
|
+
question?: string;
|
|
2826
|
+
image_url?: string;
|
|
2827
|
+
slug?: string;
|
|
2828
|
+
event_slug?: string;
|
|
2829
|
+
usd_amount: number;
|
|
2830
|
+
shares_amount: number;
|
|
2831
|
+
price: number;
|
|
2832
|
+
probability?: number;
|
|
2833
|
+
fee: number;
|
|
2834
|
+
fee_shares: number;
|
|
2835
|
+
fee_pct: number;
|
|
2836
|
+
/**
|
|
2837
|
+
* @description Exchange contract that processed the event
|
|
2838
|
+
* @enum {string}
|
|
2839
|
+
*/
|
|
2840
|
+
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
|
|
2841
|
+
/** @enum {string} */
|
|
2842
|
+
trade_type: "OrderFilled" | "OrdersMatched";
|
|
2843
|
+
} | {
|
|
2844
|
+
id: string;
|
|
2845
|
+
hash: string;
|
|
2846
|
+
/** Format: int64 */
|
|
2847
|
+
block: number;
|
|
2848
|
+
/** Format: int64 */
|
|
2849
|
+
confirmed_at: number;
|
|
2850
|
+
/** Format: int64 */
|
|
2851
|
+
log_index: number;
|
|
2852
|
+
/** Format: int64 */
|
|
2853
|
+
block_index: number;
|
|
2854
|
+
order_hash?: string;
|
|
1857
2855
|
trader: {
|
|
1858
2856
|
address: string;
|
|
1859
2857
|
name: string | null;
|
|
@@ -1862,31 +2860,31 @@ export interface components {
|
|
|
1862
2860
|
x_username: string | null;
|
|
1863
2861
|
verified_badge: boolean;
|
|
1864
2862
|
};
|
|
1865
|
-
taker
|
|
2863
|
+
taker?: string;
|
|
1866
2864
|
/** @enum {string} */
|
|
1867
|
-
side
|
|
1868
|
-
condition_id
|
|
1869
|
-
position_id
|
|
2865
|
+
side?: "Buy" | "Sell";
|
|
2866
|
+
condition_id?: string | null;
|
|
2867
|
+
position_id?: string;
|
|
1870
2868
|
outcome?: string;
|
|
1871
|
-
outcome_index
|
|
2869
|
+
outcome_index?: number | null;
|
|
1872
2870
|
question?: string;
|
|
1873
2871
|
image_url?: string;
|
|
1874
2872
|
slug?: string;
|
|
1875
2873
|
event_slug?: string;
|
|
1876
2874
|
usd_amount: number;
|
|
1877
|
-
shares_amount
|
|
1878
|
-
price
|
|
2875
|
+
shares_amount?: number;
|
|
2876
|
+
price?: number;
|
|
1879
2877
|
probability?: number;
|
|
1880
|
-
fee
|
|
1881
|
-
fee_shares
|
|
1882
|
-
fee_pct
|
|
2878
|
+
fee?: number;
|
|
2879
|
+
fee_shares?: number;
|
|
2880
|
+
fee_pct?: number;
|
|
1883
2881
|
/**
|
|
1884
2882
|
* @description Exchange contract that processed the event
|
|
1885
2883
|
* @enum {string}
|
|
1886
2884
|
*/
|
|
1887
2885
|
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
|
|
1888
2886
|
/** @enum {string} */
|
|
1889
|
-
trade_type: "
|
|
2887
|
+
trade_type: "MakerRebate" | "Reward" | "Yield";
|
|
1890
2888
|
} | {
|
|
1891
2889
|
id: string;
|
|
1892
2890
|
hash: string;
|
|
@@ -2187,535 +3185,109 @@ export interface components {
|
|
|
2187
3185
|
/** Format: int64 */
|
|
2188
3186
|
confirmed_at: number;
|
|
2189
3187
|
/** Format: int64 */
|
|
2190
|
-
log_index: number;
|
|
2191
|
-
/** Format: int64 */
|
|
2192
|
-
block_index: number;
|
|
2193
|
-
oracle_contract: string;
|
|
2194
|
-
condition_id: string;
|
|
2195
|
-
oracle: string;
|
|
2196
|
-
proposed_outcome?: string;
|
|
2197
|
-
question?: string;
|
|
2198
|
-
image_url?: string;
|
|
2199
|
-
slug?: string;
|
|
2200
|
-
event_slug?: string;
|
|
2201
|
-
/** @enum {string} */
|
|
2202
|
-
trade_type: "ConditionResolution";
|
|
2203
|
-
} | {
|
|
2204
|
-
id: string;
|
|
2205
|
-
hash: string;
|
|
2206
|
-
/** Format: int64 */
|
|
2207
|
-
block: number;
|
|
2208
|
-
/** Format: int64 */
|
|
2209
|
-
confirmed_at: number;
|
|
2210
|
-
/** Format: int64 */
|
|
2211
|
-
log_index: number;
|
|
2212
|
-
/** Format: int64 */
|
|
2213
|
-
block_index: number;
|
|
2214
|
-
oracle_contract: string;
|
|
2215
|
-
condition_id: string;
|
|
2216
|
-
question?: string;
|
|
2217
|
-
image_url?: string;
|
|
2218
|
-
slug?: string;
|
|
2219
|
-
event_slug?: string;
|
|
2220
|
-
/** @enum {string} */
|
|
2221
|
-
trade_type: "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause";
|
|
2222
|
-
} | {
|
|
2223
|
-
id: string;
|
|
2224
|
-
hash: string;
|
|
2225
|
-
/** Format: int64 */
|
|
2226
|
-
block: number;
|
|
2227
|
-
/** Format: int64 */
|
|
2228
|
-
confirmed_at: number;
|
|
2229
|
-
/** Format: int64 */
|
|
2230
|
-
log_index: number;
|
|
2231
|
-
/** Format: int64 */
|
|
2232
|
-
block_index: number;
|
|
2233
|
-
oracle_contract: string;
|
|
2234
|
-
condition_id: string;
|
|
2235
|
-
proposed_outcome?: string;
|
|
2236
|
-
question?: string;
|
|
2237
|
-
image_url?: string;
|
|
2238
|
-
slug?: string;
|
|
2239
|
-
event_slug?: string;
|
|
2240
|
-
/** @enum {string} */
|
|
2241
|
-
trade_type: "ManualResolution";
|
|
2242
|
-
} | {
|
|
2243
|
-
id: string;
|
|
2244
|
-
hash: string;
|
|
2245
|
-
/** Format: int64 */
|
|
2246
|
-
block: number;
|
|
2247
|
-
/** Format: int64 */
|
|
2248
|
-
confirmed_at: number;
|
|
2249
|
-
/** Format: int64 */
|
|
2250
|
-
log_index: number;
|
|
2251
|
-
/** Format: int64 */
|
|
2252
|
-
block_index: number;
|
|
2253
|
-
oracle_contract: string;
|
|
2254
|
-
condition_id: string;
|
|
2255
|
-
proposed_outcome?: string;
|
|
2256
|
-
question?: string;
|
|
2257
|
-
image_url?: string;
|
|
2258
|
-
slug?: string;
|
|
2259
|
-
event_slug?: string;
|
|
2260
|
-
/** @enum {string} */
|
|
2261
|
-
trade_type: "NegRiskOutcomeReported";
|
|
2262
|
-
} | {
|
|
2263
|
-
id: string;
|
|
2264
|
-
hash: string;
|
|
2265
|
-
/** Format: int64 */
|
|
2266
|
-
block: number;
|
|
2267
|
-
/** Format: int64 */
|
|
2268
|
-
confirmed_at: number;
|
|
2269
|
-
/** Format: int64 */
|
|
2270
|
-
log_index: number;
|
|
2271
|
-
/** Format: int64 */
|
|
2272
|
-
block_index: number;
|
|
2273
|
-
condition_id: string;
|
|
2274
|
-
token0: string;
|
|
2275
|
-
token1: string;
|
|
2276
|
-
question?: string;
|
|
2277
|
-
image_url?: string;
|
|
2278
|
-
slug?: string;
|
|
2279
|
-
event_slug?: string;
|
|
2280
|
-
/**
|
|
2281
|
-
* @description Exchange contract that processed the event
|
|
2282
|
-
* @enum {string}
|
|
2283
|
-
*/
|
|
2284
|
-
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
|
|
2285
|
-
/** @enum {string} */
|
|
2286
|
-
trade_type: "RegisterToken";
|
|
2287
|
-
} | {
|
|
2288
|
-
id: string;
|
|
2289
|
-
hash: string;
|
|
2290
|
-
/** Format: int64 */
|
|
2291
|
-
block: number;
|
|
2292
|
-
/** Format: int64 */
|
|
2293
|
-
confirmed_at: number;
|
|
2294
|
-
/** Format: int64 */
|
|
2295
|
-
log_index: number;
|
|
2296
|
-
/** Format: int64 */
|
|
2297
|
-
block_index: number;
|
|
2298
|
-
trader: {
|
|
2299
|
-
address: string;
|
|
2300
|
-
name: string | null;
|
|
2301
|
-
pseudonym: string | null;
|
|
2302
|
-
profile_image: string | null;
|
|
2303
|
-
x_username: string | null;
|
|
2304
|
-
verified_badge: boolean;
|
|
2305
|
-
};
|
|
2306
|
-
operator: string;
|
|
2307
|
-
approved: boolean;
|
|
2308
|
-
question?: string;
|
|
2309
|
-
image_url?: string;
|
|
2310
|
-
slug?: string;
|
|
2311
|
-
event_slug?: string;
|
|
2312
|
-
/**
|
|
2313
|
-
* @description Exchange contract that processed the event
|
|
2314
|
-
* @enum {string}
|
|
2315
|
-
*/
|
|
2316
|
-
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
|
|
2317
|
-
/** @enum {string} */
|
|
2318
|
-
trade_type: "Approval";
|
|
2319
|
-
};
|
|
2320
|
-
/** @description Subscription filters for the `trader_first_trade` event. All fields are optional. */
|
|
2321
|
-
TraderFirstTradeFilters: {
|
|
2322
|
-
/** @description Only fire for trades by these wallet addresses (lowercase). Empty = all traders. */
|
|
2323
|
-
wallet_addresses?: string[];
|
|
2324
|
-
/** @description Restrict to trades in these markets. Empty = all markets. */
|
|
2325
|
-
condition_ids?: string[];
|
|
2326
|
-
/** @description Restrict to trades in markets belonging to these events. */
|
|
2327
|
-
event_slugs?: string[];
|
|
2328
|
-
/** @description Minimum trade size in USD. Omit to match all sizes. */
|
|
2329
|
-
min_usd_value?: number;
|
|
2330
|
-
/** @description Only fire when the outcome probability is ≥ this value. */
|
|
2331
|
-
min_probability?: number;
|
|
2332
|
-
/** @description Only fire when the outcome probability is ≤ this value. */
|
|
2333
|
-
max_probability?: number;
|
|
2334
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets (event slugs containing `updown`). Default: `false`. */
|
|
2335
|
-
exclude_shortterm_markets?: boolean;
|
|
2336
|
-
};
|
|
2337
|
-
/** @description Subscription filters for the `trader_new_market` event. All fields are optional. */
|
|
2338
|
-
TraderNewMarketFilters: {
|
|
2339
|
-
/** @description Only fire for these wallet addresses (lowercase). Empty = all traders. */
|
|
2340
|
-
wallet_addresses?: string[];
|
|
2341
|
-
/** @description Restrict to these markets. */
|
|
2342
|
-
condition_ids?: string[];
|
|
2343
|
-
/** @description Restrict to markets belonging to these events. */
|
|
2344
|
-
event_slugs?: string[];
|
|
2345
|
-
/** @description Minimum trade size in USD. Omit to match all sizes. */
|
|
2346
|
-
min_usd_value?: number;
|
|
2347
|
-
/** @description Only fire when the outcome probability is ≥ this value. */
|
|
2348
|
-
min_probability?: number;
|
|
2349
|
-
/** @description Only fire when the outcome probability is ≤ this value. */
|
|
2350
|
-
max_probability?: number;
|
|
2351
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2352
|
-
exclude_shortterm_markets?: boolean;
|
|
2353
|
-
};
|
|
2354
|
-
/** @description Subscription filters for the `trader_whale_trade` event. All fields are optional. */
|
|
2355
|
-
TraderWhaleTradeFilters: {
|
|
2356
|
-
/** @description Only fire for trades by these wallet addresses. Empty = all traders. */
|
|
2357
|
-
wallet_addresses?: string[];
|
|
2358
|
-
/** @description Restrict to these markets. */
|
|
2359
|
-
condition_ids?: string[];
|
|
2360
|
-
/** @description Restrict to markets belonging to these events. */
|
|
2361
|
-
event_slugs?: string[];
|
|
2362
|
-
/** @description Minimum trade size in USD. Defaults to 0 (matches all trades). */
|
|
2363
|
-
min_usd_value?: number;
|
|
2364
|
-
/** @description Only fire when outcome probability is ≥ this value. */
|
|
2365
|
-
min_probability?: number;
|
|
2366
|
-
/** @description Only fire when outcome probability is ≤ this value. */
|
|
2367
|
-
max_probability?: number;
|
|
2368
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2369
|
-
exclude_shortterm_markets?: boolean;
|
|
2370
|
-
};
|
|
2371
|
-
/** @description Subscription filters for the `trader_new_trade` event. All fields are optional. */
|
|
2372
|
-
TraderNewTradeFilters: {
|
|
2373
|
-
/** @description Only fire for trades by these wallet addresses. Empty = all traders. */
|
|
2374
|
-
wallet_addresses?: string[];
|
|
2375
|
-
/** @description Restrict to these markets. */
|
|
2376
|
-
condition_ids?: string[];
|
|
2377
|
-
/** @description Restrict to markets belonging to these events. */
|
|
2378
|
-
event_slugs?: string[];
|
|
2379
|
-
/** @description Minimum trade size in USD. Defaults to 0 (matches all trades). */
|
|
2380
|
-
min_usd_value?: number;
|
|
2381
|
-
/** @description Only fire when outcome probability is ≥ this value. */
|
|
2382
|
-
min_probability?: number;
|
|
2383
|
-
/** @description Only fire when outcome probability is ≤ this value. */
|
|
2384
|
-
max_probability?: number;
|
|
2385
|
-
/** @description Only fire for these fill-style trade types. Empty = OrderFilled and OrdersMatched only (default). */
|
|
2386
|
-
trade_types?: ("OrderFilled" | "OrdersMatched")[];
|
|
2387
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2388
|
-
exclude_shortterm_markets?: boolean;
|
|
2389
|
-
};
|
|
2390
|
-
/** @description Subscription filters for the `trader_trade_event` event. All fields are optional. `event_slugs` and `exclude_shortterm_markets` require explicit `trade_types` that exclude `PositionsConverted`, because conversion events do not currently carry `event_slug` in the typed webhook payload. */
|
|
2391
|
-
TraderTradeEventFilters: {
|
|
2392
|
-
/** @description Only fire for events associated with these wallet addresses. Empty = all traders. */
|
|
2393
|
-
wallet_addresses?: string[];
|
|
2394
|
-
/** @description Restrict to these markets. For `PositionsConverted`, this also matches the NegRisk `market_id`. */
|
|
2395
|
-
condition_ids?: string[];
|
|
2396
|
-
/** @description Restrict to markets belonging to these events. Requires explicit `trade_types` that exclude `PositionsConverted`. */
|
|
2397
|
-
event_slugs?: string[];
|
|
2398
|
-
/** @description Minimum USD amount for the underlying event. Defaults to 0 (matches all events). */
|
|
2399
|
-
min_usd_value?: number;
|
|
2400
|
-
/** @description Only fire when event probability is ≥ this value. Events without probability data do not match. */
|
|
2401
|
-
min_probability?: number;
|
|
2402
|
-
/** @description Only fire when event probability is ≤ this value. Events without probability data do not match. */
|
|
2403
|
-
max_probability?: number;
|
|
2404
|
-
/** @description Only fire for these trade types. Empty = all supported trade-event variants. */
|
|
2405
|
-
trade_types?: ("OrderFilled" | "Redemption" | "Merge" | "Split" | "Cancelled" | "PositionsConverted" | "OrdersMatched" | "Initialization" | "Proposal" | "Dispute" | "Settled" | "Resolution" | "ConditionResolution" | "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause" | "ManualResolution" | "NegRiskOutcomeReported" | "RegisterToken" | "Approval")[];
|
|
2406
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Requires explicit `trade_types` that exclude `PositionsConverted`. Default: `false`. */
|
|
2407
|
-
exclude_shortterm_markets?: boolean;
|
|
2408
|
-
};
|
|
2409
|
-
/** @description Subscription filters for the `trader_global_pnl` event. All fields are optional. */
|
|
2410
|
-
TraderGlobalPnlFilters: {
|
|
2411
|
-
/** @description Track only these trader wallet addresses. Empty = all traders. */
|
|
2412
|
-
traders?: string[];
|
|
2413
|
-
/** @description Only fire when realized PnL ≥ this value (USD). Use negative values for loss thresholds. */
|
|
2414
|
-
min_realized_pnl_usd?: number;
|
|
2415
|
-
/** @description Only fire when realized PnL ≤ this value (USD). */
|
|
2416
|
-
max_realized_pnl_usd?: number;
|
|
2417
|
-
/** @description Only fire when total trading volume ≥ this value (USD). */
|
|
2418
|
-
min_volume_usd?: number;
|
|
2419
|
-
/** @description Only fire when total trading volume ≤ this value (USD). */
|
|
2420
|
-
max_volume_usd?: number;
|
|
2421
|
-
/** @description Only fire when buy volume ≥ this value (USD). */
|
|
2422
|
-
min_buy_usd?: number;
|
|
2423
|
-
/** @description Only fire when sell volume ≥ this value (USD). */
|
|
2424
|
-
min_sell_volume_usd?: number;
|
|
2425
|
-
/** @description Only fire when market win rate ≥ this percentage (0.0–100.0). */
|
|
2426
|
-
min_win_rate?: number;
|
|
2427
|
-
/**
|
|
2428
|
-
* Format: int64
|
|
2429
|
-
* @description Only fire when the trader has traded in ≥ this many markets.
|
|
2430
|
-
*/
|
|
2431
|
-
min_markets_traded?: number;
|
|
2432
|
-
/** @description Restrict to these PnL windows. Empty = all windows. */
|
|
2433
|
-
timeframes?: ("1d" | "7d" | "30d" | "lifetime")[];
|
|
2434
|
-
};
|
|
2435
|
-
/** @description Subscription filters for the `trader_market_pnl` event. All fields are optional. */
|
|
2436
|
-
TraderMarketPnlFilters: {
|
|
2437
|
-
/** @description Track only these trader wallet addresses. */
|
|
2438
|
-
traders?: string[];
|
|
2439
|
-
/** @description Restrict to these markets. */
|
|
2440
|
-
condition_ids?: string[];
|
|
2441
|
-
/** @description Restrict to markets in these events. */
|
|
2442
|
-
event_slugs?: string[];
|
|
2443
|
-
/** @description Only fire when per-market realized PnL ≥ this value (USD). */
|
|
2444
|
-
min_realized_pnl_usd?: number;
|
|
2445
|
-
/** @description Only fire when per-market realized PnL ≤ this value (USD). */
|
|
2446
|
-
max_realized_pnl_usd?: number;
|
|
2447
|
-
/** @description Only fire when total volume (buy + sell + redemption + merge) ≥ this value (USD). */
|
|
2448
|
-
min_volume_usd?: number;
|
|
2449
|
-
/** @description Only fire when total volume ≤ this value (USD). */
|
|
2450
|
-
max_volume_usd?: number;
|
|
2451
|
-
/** @description Only fire when buy volume in the market ≥ this value (USD). */
|
|
2452
|
-
min_buy_usd?: number;
|
|
2453
|
-
/** @description Only fire when sell volume in the market ≥ this value (USD). */
|
|
2454
|
-
min_sell_volume_usd?: number;
|
|
2455
|
-
/** @description Restrict to these PnL windows. */
|
|
2456
|
-
timeframes?: ("1d" | "7d" | "30d" | "lifetime")[];
|
|
2457
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2458
|
-
exclude_shortterm_markets?: boolean;
|
|
2459
|
-
};
|
|
2460
|
-
/** @description Subscription filters for the `trader_event_pnl` event. All fields are optional. */
|
|
2461
|
-
TraderEventPnlFilters: {
|
|
2462
|
-
/** @description Track only these trader wallet addresses. */
|
|
2463
|
-
traders?: string[];
|
|
2464
|
-
/** @description Restrict to these events. */
|
|
2465
|
-
event_slugs?: string[];
|
|
2466
|
-
/** @description Only fire when per-event realized PnL ≥ this value (USD). */
|
|
2467
|
-
min_realized_pnl_usd?: number;
|
|
2468
|
-
/** @description Only fire when per-event realized PnL ≤ this value (USD). */
|
|
2469
|
-
max_realized_pnl_usd?: number;
|
|
2470
|
-
/** @description Only fire when total event volume ≥ this value (USD). */
|
|
2471
|
-
min_volume_usd?: number;
|
|
2472
|
-
/** @description Only fire when total event volume ≤ this value (USD). */
|
|
2473
|
-
max_volume_usd?: number;
|
|
2474
|
-
/** @description Only fire when buy volume within the event ≥ this value (USD). */
|
|
2475
|
-
min_buy_usd?: number;
|
|
2476
|
-
/** @description Only fire when sell volume within the event ≥ this value (USD). */
|
|
2477
|
-
min_sell_volume_usd?: number;
|
|
2478
|
-
/**
|
|
2479
|
-
* Format: int64
|
|
2480
|
-
* @description Only fire when the trader has traded in ≥ this many markets within the event.
|
|
2481
|
-
*/
|
|
2482
|
-
min_markets_traded?: number;
|
|
2483
|
-
/** @description Restrict to these PnL windows. */
|
|
2484
|
-
timeframes?: ("1d" | "7d" | "30d" | "lifetime")[];
|
|
2485
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2486
|
-
exclude_shortterm_markets?: boolean;
|
|
2487
|
-
};
|
|
2488
|
-
/** @description Subscription filters for the `condition_metrics` event. All fields are optional. */
|
|
2489
|
-
MarketMetricsFilters: {
|
|
2490
|
-
/** @description Restrict to these markets. Empty = all markets. */
|
|
2491
|
-
condition_ids?: string[];
|
|
2492
|
-
/** @description Restrict to these aggregation windows. Empty = all windows. */
|
|
2493
|
-
timeframes?: ("1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d")[];
|
|
2494
|
-
/** @description Only fire when volume ≥ this value (USD). */
|
|
2495
|
-
min_volume_usd?: number;
|
|
2496
|
-
/** @description Only fire when volume ≤ this value (USD). */
|
|
2497
|
-
max_volume_usd?: number;
|
|
2498
|
-
/**
|
|
2499
|
-
* Format: int64
|
|
2500
|
-
* @description Only fire when transaction count ≥ this value.
|
|
2501
|
-
*/
|
|
2502
|
-
min_txns?: number;
|
|
2503
|
-
/**
|
|
2504
|
-
* Format: int64
|
|
2505
|
-
* @description Only fire when unique trader count ≥ this value.
|
|
2506
|
-
*/
|
|
2507
|
-
min_unique_traders?: number;
|
|
2508
|
-
/** @description Only fire when total fees ≥ this value (USD). */
|
|
2509
|
-
min_fees?: number;
|
|
2510
|
-
};
|
|
2511
|
-
/** @description Subscription filters for the `event_metrics` event. All fields are optional. */
|
|
2512
|
-
EventMetricsFilters: {
|
|
2513
|
-
/** @description Restrict to these events. Empty = all events. */
|
|
2514
|
-
event_slugs?: string[];
|
|
2515
|
-
/** @description Restrict to these aggregation windows. */
|
|
2516
|
-
timeframes?: ("1m" | "5m" | "30m" | "1h" | "6h" | "24h" | "7d" | "30d")[];
|
|
2517
|
-
/** @description Only fire when aggregated event volume ≥ this value (USD). */
|
|
2518
|
-
min_volume_usd?: number;
|
|
2519
|
-
max_volume_usd?: number;
|
|
3188
|
+
log_index: number;
|
|
2520
3189
|
/** Format: int64 */
|
|
2521
|
-
|
|
3190
|
+
block_index: number;
|
|
3191
|
+
oracle_contract: string;
|
|
3192
|
+
condition_id: string;
|
|
3193
|
+
oracle: string;
|
|
3194
|
+
proposed_outcome?: string;
|
|
3195
|
+
question?: string;
|
|
3196
|
+
image_url?: string;
|
|
3197
|
+
slug?: string;
|
|
3198
|
+
event_slug?: string;
|
|
3199
|
+
/** @enum {string} */
|
|
3200
|
+
trade_type: "ConditionResolution";
|
|
3201
|
+
} | {
|
|
3202
|
+
id: string;
|
|
3203
|
+
hash: string;
|
|
2522
3204
|
/** Format: int64 */
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
/** @
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
/** Format: int64 */
|
|
2544
|
-
|
|
2545
|
-
/** Format: int64 */
|
|
2546
|
-
|
|
2547
|
-
/**
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
/**
|
|
2597
|
-
* @description `"up"` = probability rising only (default when omitted), `"down"` = falling only, `"both"` = either direction.
|
|
2598
|
-
* @enum {string}
|
|
2599
|
-
*/
|
|
2600
|
-
spike_direction?: "up" | "down" | "both";
|
|
2601
|
-
/** @description Observation window in seconds. The first trade in each window sets the reference price; subsequent trades are compared to it. E.g. `60` detects moves that occur within 60 seconds. */
|
|
2602
|
-
window_secs?: number;
|
|
2603
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2604
|
-
exclude_shortterm_markets?: boolean;
|
|
2605
|
-
};
|
|
2606
|
-
/** @description Subscription filters for the `price_spike` event. */
|
|
2607
|
-
PriceSpikeFilters: {
|
|
2608
|
-
/** @description Restrict to specific outcome token IDs. Empty = all positions. */
|
|
2609
|
-
position_ids?: string[];
|
|
2610
|
-
/** @description Restrict to specific market condition IDs. Empty = all markets. */
|
|
2611
|
-
condition_ids?: string[];
|
|
2612
|
-
/** @description Restrict to specific events. Empty = all events. */
|
|
2613
|
-
event_slugs?: string[];
|
|
2614
|
-
/** @description Restrict to these outcome names (e.g. ["Yes", "No"]). */
|
|
2615
|
-
outcomes?: string[];
|
|
2616
|
-
/** @description Minimum price percentage move to trigger (e.g. `10` for a 10% move). */
|
|
2617
|
-
min_price_change_pct?: number;
|
|
3205
|
+
block: number;
|
|
3206
|
+
/** Format: int64 */
|
|
3207
|
+
confirmed_at: number;
|
|
3208
|
+
/** Format: int64 */
|
|
3209
|
+
log_index: number;
|
|
3210
|
+
/** Format: int64 */
|
|
3211
|
+
block_index: number;
|
|
3212
|
+
oracle_contract: string;
|
|
3213
|
+
condition_id: string;
|
|
3214
|
+
question?: string;
|
|
3215
|
+
image_url?: string;
|
|
3216
|
+
slug?: string;
|
|
3217
|
+
event_slug?: string;
|
|
3218
|
+
/** @enum {string} */
|
|
3219
|
+
trade_type: "Reset" | "Flag" | "Unflag" | "Pause" | "Unpause";
|
|
3220
|
+
} | {
|
|
3221
|
+
id: string;
|
|
3222
|
+
hash: string;
|
|
3223
|
+
/** Format: int64 */
|
|
3224
|
+
block: number;
|
|
3225
|
+
/** Format: int64 */
|
|
3226
|
+
confirmed_at: number;
|
|
3227
|
+
/** Format: int64 */
|
|
3228
|
+
log_index: number;
|
|
3229
|
+
/** Format: int64 */
|
|
3230
|
+
block_index: number;
|
|
3231
|
+
oracle_contract: string;
|
|
3232
|
+
condition_id: string;
|
|
3233
|
+
proposed_outcome?: string;
|
|
3234
|
+
question?: string;
|
|
3235
|
+
image_url?: string;
|
|
3236
|
+
slug?: string;
|
|
3237
|
+
event_slug?: string;
|
|
3238
|
+
/** @enum {string} */
|
|
3239
|
+
trade_type: "ManualResolution";
|
|
3240
|
+
} | {
|
|
3241
|
+
id: string;
|
|
3242
|
+
hash: string;
|
|
3243
|
+
/** Format: int64 */
|
|
3244
|
+
block: number;
|
|
3245
|
+
/** Format: int64 */
|
|
3246
|
+
confirmed_at: number;
|
|
3247
|
+
/** Format: int64 */
|
|
3248
|
+
log_index: number;
|
|
3249
|
+
/** Format: int64 */
|
|
3250
|
+
block_index: number;
|
|
3251
|
+
oracle_contract: string;
|
|
3252
|
+
condition_id: string;
|
|
3253
|
+
proposed_outcome?: string;
|
|
3254
|
+
question?: string;
|
|
3255
|
+
image_url?: string;
|
|
3256
|
+
slug?: string;
|
|
3257
|
+
event_slug?: string;
|
|
3258
|
+
/** @enum {string} */
|
|
3259
|
+
trade_type: "NegRiskOutcomeReported";
|
|
3260
|
+
} | {
|
|
3261
|
+
id: string;
|
|
3262
|
+
hash: string;
|
|
3263
|
+
/** Format: int64 */
|
|
3264
|
+
block: number;
|
|
3265
|
+
/** Format: int64 */
|
|
3266
|
+
confirmed_at: number;
|
|
3267
|
+
/** Format: int64 */
|
|
3268
|
+
log_index: number;
|
|
3269
|
+
/** Format: int64 */
|
|
3270
|
+
block_index: number;
|
|
3271
|
+
condition_id: string;
|
|
3272
|
+
token0: string;
|
|
3273
|
+
token1: string;
|
|
3274
|
+
question?: string;
|
|
3275
|
+
image_url?: string;
|
|
3276
|
+
slug?: string;
|
|
3277
|
+
event_slug?: string;
|
|
2618
3278
|
/**
|
|
2619
|
-
* @description
|
|
3279
|
+
* @description Exchange contract that processed the event
|
|
2620
3280
|
* @enum {string}
|
|
2621
3281
|
*/
|
|
2622
|
-
|
|
2623
|
-
/** @
|
|
2624
|
-
|
|
2625
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2626
|
-
exclude_shortterm_markets?: boolean;
|
|
2627
|
-
};
|
|
2628
|
-
/** @description Subscription filters for the `market_volume_spike` event. `spike_ratio` is required. */
|
|
2629
|
-
MarketVolumeSpikeFilters: {
|
|
2630
|
-
/** @description **Required.** Multiplier threshold (must be > 1.0). Fires when current volume >= snapshot × ratio. The snapshot is set automatically on first data and resets after each fire. */
|
|
2631
|
-
spike_ratio: number;
|
|
2632
|
-
/** @description Force snapshot reset after this many seconds (max 600 / 10 minutes). */
|
|
2633
|
-
window_secs?: number;
|
|
2634
|
-
/** @description Restrict to these markets. Empty = all markets. */
|
|
2635
|
-
condition_ids?: string[];
|
|
2636
|
-
/** @description Restrict to these aggregation windows. Empty = all windows. */
|
|
2637
|
-
timeframes?: ("1m" | "5m" | "30m" | "1h" | "6h" | "1d" | "24h" | "7d" | "30d")[];
|
|
2638
|
-
};
|
|
2639
|
-
/** @description Subscription filters for the `event_volume_spike` event. `spike_ratio` is required. */
|
|
2640
|
-
EventVolumeSpikeFilters: {
|
|
2641
|
-
/** @description **Required.** Multiplier threshold (must be > 1.0). Fires when current volume >= snapshot × ratio. */
|
|
2642
|
-
spike_ratio: number;
|
|
2643
|
-
/** @description Force snapshot reset after this many seconds (max 600 / 10 minutes). */
|
|
2644
|
-
window_secs?: number;
|
|
2645
|
-
/** @description Restrict to these events. */
|
|
2646
|
-
event_slugs?: string[];
|
|
2647
|
-
/** @description Restrict to these aggregation windows. */
|
|
2648
|
-
timeframes?: ("1m" | "5m" | "30m" | "1h" | "6h" | "1d" | "24h" | "7d" | "30d")[];
|
|
2649
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2650
|
-
exclude_shortterm_markets?: boolean;
|
|
2651
|
-
};
|
|
2652
|
-
/** @description Subscription filters for the `position_volume_spike` event. `spike_ratio` is required. */
|
|
2653
|
-
PositionVolumeSpikeFilters: {
|
|
2654
|
-
/** @description **Required.** Multiplier threshold (must be > 1.0). Fires when current volume >= snapshot × ratio. */
|
|
2655
|
-
spike_ratio: number;
|
|
2656
|
-
/** @description Force snapshot reset after this many seconds (max 600 / 10 minutes). */
|
|
2657
|
-
window_secs?: number;
|
|
2658
|
-
/** @description Restrict to these outcome token IDs. */
|
|
2659
|
-
position_ids?: string[];
|
|
2660
|
-
/** @description Restrict to positions within these markets. */
|
|
2661
|
-
condition_ids?: string[];
|
|
2662
|
-
/** @description Restrict to these outcome names. */
|
|
2663
|
-
outcomes?: string[];
|
|
2664
|
-
/** @description Restrict to these aggregation windows. */
|
|
2665
|
-
timeframes?: ("1m" | "5m" | "30m" | "1h" | "6h" | "1d" | "24h" | "7d" | "30d")[];
|
|
2666
|
-
};
|
|
2667
|
-
/** @description Subscription filters for the `close_to_bond` event. At least one of `min_probability` or `max_probability` is required. */
|
|
2668
|
-
CloseToBondFilters: {
|
|
2669
|
-
/** @description Trigger when the YES outcome price is ≥ this value (e.g. 0.95 for 95% certainty). At least one of `min_probability` or `max_probability` must be set. */
|
|
2670
|
-
min_probability?: number;
|
|
2671
|
-
/** @description Trigger when the YES outcome price is ≤ this value (e.g. 0.05 for near-certain NO). */
|
|
2672
|
-
max_probability?: number;
|
|
2673
|
-
/** @description Restrict to these markets. */
|
|
2674
|
-
condition_ids?: string[];
|
|
2675
|
-
/** @description Restrict to these outcome token IDs. */
|
|
2676
|
-
position_ids?: string[];
|
|
2677
|
-
/** @description Restrict to markets in these events. */
|
|
2678
|
-
event_slugs?: string[];
|
|
2679
|
-
/** @description Restrict to these outcome names (e.g. ["Yes", "No"]). */
|
|
2680
|
-
outcomes?: string[];
|
|
2681
|
-
/** @description Restrict by outcome index. 0 = Yes/Up, 1 = No. Position 0 usually represents the Up/Yes side in binary markets. */
|
|
2682
|
-
position_outcome_indices?: number[];
|
|
2683
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets. Default: `false`. */
|
|
2684
|
-
exclude_shortterm_markets?: boolean;
|
|
2685
|
-
} | unknown | unknown;
|
|
2686
|
-
/** @description Subscription filters for the `market_created` event. All fields are optional. */
|
|
2687
|
-
MarketCreatedFilters: {
|
|
2688
|
-
/** @description Restrict to markets with these tags or category names (case-insensitive match). */
|
|
2689
|
-
tags?: string[];
|
|
2690
|
-
/** @description Restrict to markets belonging to these events. */
|
|
2691
|
-
event_slugs?: string[];
|
|
2692
|
-
/** @description When `true`, suppress webhooks for short-term "updown" markets (event slugs containing `updown`). Default: `false`. */
|
|
2693
|
-
exclude_shortterm_markets?: boolean;
|
|
2694
|
-
};
|
|
2695
|
-
/** @description Subscription filters for the `oracle_events` event. All fields are optional. */
|
|
2696
|
-
OracleEventsFilters: {
|
|
2697
|
-
/** @description Restrict to these event types (case-insensitive). Empty = all. */
|
|
2698
|
-
oracle_event_types?: ("AssertionMade" | "AssertionDisputed" | "AssertionSettled" | "RequestPrice" | "ProposePrice" | "DisputePrice" | "Settle" | "QuestionResolved" | "QuestionEmergencyResolved" | "QuestionReset" | "QuestionInitialized" | "QuestionPaused" | "QuestionUnpaused" | "QuestionFlagged" | "QuestionUnflagged" | "ConditionResolution" | "NegRiskOutcomeReported")[];
|
|
2699
|
-
/** @description Restrict to events for these condition IDs. */
|
|
2700
|
-
condition_ids?: string[];
|
|
2701
|
-
};
|
|
2702
|
-
/** @description Subscription filters for the `asset_price_tick` event. All fields are optional. */
|
|
2703
|
-
AssetPriceTickFilters: {
|
|
2704
|
-
/** @description Restrict to these crypto assets. Empty = all assets. */
|
|
2705
|
-
asset_symbols?: ("BTC" | "ETH" | "SOL" | "XRP" | "DOGE" | "BNB" | "HYPE")[];
|
|
2706
|
-
};
|
|
2707
|
-
/** @description Subscription filters for the `asset_price_window_update` event. All fields are optional. */
|
|
2708
|
-
AssetPriceWindowUpdateFilters: {
|
|
2709
|
-
/** @description Restrict to these crypto assets. Empty = all assets. */
|
|
2710
|
-
asset_symbols?: ("BTC" | "ETH" | "SOL" | "XRP" | "DOGE" | "BNB" | "HYPE")[];
|
|
2711
|
-
/** @description Restrict to these candle sizes. Empty = all sizes. */
|
|
2712
|
-
timeframes?: ("5m" | "15m" | "1h" | "4h" | "1d" | "24h")[];
|
|
3282
|
+
exchange: "CTFExchange" | "NegRiskExchange" | "ConditionalTokens" | "NegRiskAdapter" | "Unknown";
|
|
3283
|
+
/** @enum {string} */
|
|
3284
|
+
trade_type: "RegisterToken";
|
|
2713
3285
|
};
|
|
2714
3286
|
/**
|
|
2715
3287
|
* @description All alert event types supported by both HTTP webhooks and the alerts WebSocket.
|
|
2716
3288
|
* @enum {string}
|
|
2717
3289
|
*/
|
|
2718
|
-
WsAlertEventType: "trader_first_trade" | "trader_new_market" | "trader_whale_trade" | "trader_new_trade" | "trader_trade_event" | "trader_global_pnl" | "trader_market_pnl" | "trader_event_pnl" | "condition_metrics" | "event_metrics" | "position_metrics" | "market_volume_milestone" | "event_volume_milestone" | "position_volume_milestone" | "probability_spike" | "price_spike" | "market_volume_spike" | "event_volume_spike" | "position_volume_spike" | "close_to_bond" | "market_created" | "oracle_events" | "asset_price_tick" | "asset_price_window_update";
|
|
3290
|
+
WsAlertEventType: "trader_first_trade" | "trader_new_market" | "trader_whale_trade" | "trader_new_trade" | "trader_trade_event" | "trader_global_pnl" | "trader_market_pnl" | "trader_event_pnl" | "condition_metrics" | "event_metrics" | "tag_metrics" | "position_metrics" | "market_volume_milestone" | "event_volume_milestone" | "position_volume_milestone" | "probability_spike" | "price_spike" | "market_volume_spike" | "event_volume_spike" | "position_volume_spike" | "close_to_bond" | "market_created" | "oracle_events" | "asset_price_tick" | "asset_price_window_update";
|
|
2719
3291
|
/** @description Server acknowledgement for a successful alert subscription. */
|
|
2720
3292
|
WsAlertSubscribedResponse: {
|
|
2721
3293
|
/** @enum {string} */
|
|
@@ -2773,6 +3345,7 @@ export interface components {
|
|
|
2773
3345
|
* "question": "Will this test webhook fire correctly?",
|
|
2774
3346
|
* "market_slug": "test-market-0000000000",
|
|
2775
3347
|
* "event_slug": "test-event-0000000000",
|
|
3348
|
+
* "image_url": "https://example.com/market.png",
|
|
2776
3349
|
* "trade_id": "00000000-0000-0000-0000-000000000000",
|
|
2777
3350
|
* "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
2778
3351
|
* "block": 0,
|
|
@@ -2782,7 +3355,7 @@ export interface components {
|
|
|
2782
3355
|
* "fee": 0.125,
|
|
2783
3356
|
* "side": "Buy",
|
|
2784
3357
|
* "price": 0.5,
|
|
2785
|
-
* "exchange": "
|
|
3358
|
+
* "exchange": "CTFExchange",
|
|
2786
3359
|
* "trade_type": "OrderFilled"
|
|
2787
3360
|
* }
|
|
2788
3361
|
* }
|
|
@@ -2839,6 +3412,7 @@ export interface components {
|
|
|
2839
3412
|
* "question": "Will this test webhook fire correctly?",
|
|
2840
3413
|
* "market_slug": "test-market-0000000000",
|
|
2841
3414
|
* "event_slug": "test-event-0000000000",
|
|
3415
|
+
* "image_url": "https://example.com/market.png",
|
|
2842
3416
|
* "trade_id": "00000000-0000-0000-0000-000000000000",
|
|
2843
3417
|
* "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
2844
3418
|
* "block": 0,
|
|
@@ -2849,7 +3423,7 @@ export interface components {
|
|
|
2849
3423
|
* "side": "Buy",
|
|
2850
3424
|
* "price": 0.5,
|
|
2851
3425
|
* "probability": 0.5,
|
|
2852
|
-
* "exchange": "
|
|
3426
|
+
* "exchange": "CTFExchange",
|
|
2853
3427
|
* "trade_type": "OrderFilled"
|
|
2854
3428
|
* }
|
|
2855
3429
|
* }
|
|
@@ -2906,6 +3480,7 @@ export interface components {
|
|
|
2906
3480
|
* "question": "Will this test webhook fire correctly?",
|
|
2907
3481
|
* "market_slug": "test-market-0000000000",
|
|
2908
3482
|
* "event_slug": "test-event-0000000000",
|
|
3483
|
+
* "image_url": "https://example.com/market.png",
|
|
2909
3484
|
* "trade_id": "00000000-0000-0000-0000-000000000000",
|
|
2910
3485
|
* "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
2911
3486
|
* "block": 0,
|
|
@@ -2916,7 +3491,7 @@ export interface components {
|
|
|
2916
3491
|
* "side": "Buy",
|
|
2917
3492
|
* "price": 0.5,
|
|
2918
3493
|
* "probability": 0.5,
|
|
2919
|
-
* "exchange": "
|
|
3494
|
+
* "exchange": "CTFExchange",
|
|
2920
3495
|
* "trade_type": "OrderFilled"
|
|
2921
3496
|
* }
|
|
2922
3497
|
* }
|
|
@@ -2973,6 +3548,7 @@ export interface components {
|
|
|
2973
3548
|
* "question": "Will this test webhook fire correctly?",
|
|
2974
3549
|
* "market_slug": "test-market-0000000000",
|
|
2975
3550
|
* "event_slug": "test-event-0000000000",
|
|
3551
|
+
* "image_url": "https://example.com/market.png",
|
|
2976
3552
|
* "trade_id": "00000000-0000-0000-0000-000000000000",
|
|
2977
3553
|
* "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
2978
3554
|
* "block": 0,
|
|
@@ -2983,7 +3559,7 @@ export interface components {
|
|
|
2983
3559
|
* "side": "Buy",
|
|
2984
3560
|
* "price": 0.5,
|
|
2985
3561
|
* "probability": 0.5,
|
|
2986
|
-
* "exchange": "
|
|
3562
|
+
* "exchange": "CTFExchange",
|
|
2987
3563
|
* "trade_type": "OrderFilled"
|
|
2988
3564
|
* }
|
|
2989
3565
|
* }
|
|
@@ -3309,9 +3885,15 @@ export interface components {
|
|
|
3309
3885
|
* "condition_id": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
3310
3886
|
* "timeframe": "1h",
|
|
3311
3887
|
* "volume_usd": 50000,
|
|
3888
|
+
* "shares_volume": 62000,
|
|
3889
|
+
* "builder_usd_volume": 12500,
|
|
3890
|
+
* "builder_shares_volume": 15500,
|
|
3312
3891
|
* "fees": 250,
|
|
3892
|
+
* "builder_fees": 62.5,
|
|
3313
3893
|
* "txns": 320,
|
|
3314
|
-
* "
|
|
3894
|
+
* "builder_txns": 80,
|
|
3895
|
+
* "unique_traders": 85,
|
|
3896
|
+
* "unique_builder_traders": 24
|
|
3315
3897
|
* }
|
|
3316
3898
|
* }
|
|
3317
3899
|
*/
|
|
@@ -3361,9 +3943,15 @@ export interface components {
|
|
|
3361
3943
|
* "event_slug": "test-event-0000000000",
|
|
3362
3944
|
* "timeframe": "1h",
|
|
3363
3945
|
* "volume_usd": 120000,
|
|
3946
|
+
* "shares_volume": 148000,
|
|
3947
|
+
* "builder_usd_volume": 30000,
|
|
3948
|
+
* "builder_shares_volume": 37000,
|
|
3364
3949
|
* "fees": 600,
|
|
3950
|
+
* "builder_fees": 150,
|
|
3365
3951
|
* "txns": 740,
|
|
3366
|
-
* "
|
|
3952
|
+
* "builder_txns": 185,
|
|
3953
|
+
* "unique_traders": 210,
|
|
3954
|
+
* "unique_builder_traders": 54
|
|
3367
3955
|
* }
|
|
3368
3956
|
* }
|
|
3369
3957
|
*/
|
|
@@ -3380,6 +3968,64 @@ export interface components {
|
|
|
3380
3968
|
timestamp: number;
|
|
3381
3969
|
data: components["schemas"]["EventMetricsPayload"];
|
|
3382
3970
|
};
|
|
3971
|
+
WsAlertTagMetricsSubscribeMessage: {
|
|
3972
|
+
/** @enum {string} */
|
|
3973
|
+
op: "subscribe";
|
|
3974
|
+
/** @enum {string} */
|
|
3975
|
+
event: "tag_metrics";
|
|
3976
|
+
} & components["schemas"]["TagMetricsFilters"] & {
|
|
3977
|
+
/**
|
|
3978
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3979
|
+
* @enum {string}
|
|
3980
|
+
*/
|
|
3981
|
+
event: "tag_metrics";
|
|
3982
|
+
};
|
|
3983
|
+
WsAlertTagMetricsUnsubscribeMessage: {
|
|
3984
|
+
/** @enum {string} */
|
|
3985
|
+
op: "unsubscribe";
|
|
3986
|
+
/** @enum {string} */
|
|
3987
|
+
event: "tag_metrics";
|
|
3988
|
+
} & components["schemas"]["TagMetricsFilters"] & {
|
|
3989
|
+
/**
|
|
3990
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3991
|
+
* @enum {string}
|
|
3992
|
+
*/
|
|
3993
|
+
event: "tag_metrics";
|
|
3994
|
+
};
|
|
3995
|
+
/**
|
|
3996
|
+
* @description Pushed `tag_metrics` alert. The `data` payload matches the corresponding HTTP webhook payload schema.
|
|
3997
|
+
* @example {
|
|
3998
|
+
* "event": "tag_metrics",
|
|
3999
|
+
* "timestamp": 1743500000000,
|
|
4000
|
+
* "data": {
|
|
4001
|
+
* "tag": "politics",
|
|
4002
|
+
* "timeframe": "1h",
|
|
4003
|
+
* "volume_usd": 120000,
|
|
4004
|
+
* "shares_volume": 148000,
|
|
4005
|
+
* "builder_usd_volume": 30000,
|
|
4006
|
+
* "builder_shares_volume": 37000,
|
|
4007
|
+
* "fees": 600,
|
|
4008
|
+
* "builder_fees": 150,
|
|
4009
|
+
* "txns": 740,
|
|
4010
|
+
* "builder_txns": 185,
|
|
4011
|
+
* "unique_traders": 210,
|
|
4012
|
+
* "unique_builder_traders": 54
|
|
4013
|
+
* }
|
|
4014
|
+
* }
|
|
4015
|
+
*/
|
|
4016
|
+
WsAlertTagMetricsEvent: {
|
|
4017
|
+
/**
|
|
4018
|
+
* @description discriminator enum property added by openapi-typescript
|
|
4019
|
+
* @enum {string}
|
|
4020
|
+
*/
|
|
4021
|
+
event: "tag_metrics";
|
|
4022
|
+
/**
|
|
4023
|
+
* Format: int64
|
|
4024
|
+
* @description Unix timestamp in milliseconds
|
|
4025
|
+
*/
|
|
4026
|
+
timestamp: number;
|
|
4027
|
+
data: components["schemas"]["TagMetricsPayload"];
|
|
4028
|
+
};
|
|
3383
4029
|
WsAlertPositionMetricsSubscribeMessage: {
|
|
3384
4030
|
/** @enum {string} */
|
|
3385
4031
|
op: "subscribe";
|
|
@@ -3417,11 +4063,25 @@ export interface components {
|
|
|
3417
4063
|
* "volume_usd": 25000,
|
|
3418
4064
|
* "buy_volume_usd": 15000,
|
|
3419
4065
|
* "sell_volume_usd": 10000,
|
|
4066
|
+
* "shares_volume": 31000,
|
|
4067
|
+
* "shares_buy_volume": 18600,
|
|
4068
|
+
* "shares_sell_volume": 12400,
|
|
4069
|
+
* "builder_usd_volume": 6250,
|
|
4070
|
+
* "builder_usd_buy_volume": 3750,
|
|
4071
|
+
* "builder_usd_sell_volume": 2500,
|
|
4072
|
+
* "builder_shares_volume": 7750,
|
|
4073
|
+
* "builder_shares_buy_volume": 4650,
|
|
4074
|
+
* "builder_shares_sell_volume": 3100,
|
|
3420
4075
|
* "fees": 125,
|
|
4076
|
+
* "builder_fees": 31.25,
|
|
3421
4077
|
* "txns": 160,
|
|
3422
4078
|
* "buys": 95,
|
|
3423
4079
|
* "sells": 65,
|
|
4080
|
+
* "builder_txns": 40,
|
|
4081
|
+
* "builder_buys": 24,
|
|
4082
|
+
* "builder_sells": 16,
|
|
3424
4083
|
* "unique_traders": 48,
|
|
4084
|
+
* "unique_builder_traders": 12,
|
|
3425
4085
|
* "price_open": 0.48,
|
|
3426
4086
|
* "price_close": 0.52,
|
|
3427
4087
|
* "price_high": 0.55,
|
|
@@ -3429,7 +4089,10 @@ export interface components {
|
|
|
3429
4089
|
* "probability_open": 0.48,
|
|
3430
4090
|
* "probability_close": 0.52,
|
|
3431
4091
|
* "probability_high": 0.55,
|
|
3432
|
-
* "probability_low": 0.46
|
|
4092
|
+
* "probability_low": 0.46,
|
|
4093
|
+
* "avg_trade_shares": 193.75,
|
|
4094
|
+
* "avg_buy_shares": 195.78947368421052,
|
|
4095
|
+
* "avg_sell_shares": 190.76923076923077
|
|
3433
4096
|
* }
|
|
3434
4097
|
* }
|
|
3435
4098
|
*/
|
|
@@ -4201,11 +4864,11 @@ export interface components {
|
|
|
4201
4864
|
data: components["schemas"]["AssetPriceWindowUpdatePayload"];
|
|
4202
4865
|
};
|
|
4203
4866
|
/** @description Typed subscribe request for the alerts WebSocket. The request shape depends on `event`; filters follow the schema associated with that event type. */
|
|
4204
|
-
WsAlertSubscribeMessage: components["schemas"]["WsAlertTraderFirstTradeSubscribeMessage"] | components["schemas"]["WsAlertTraderNewMarketSubscribeMessage"] | components["schemas"]["WsAlertTraderWhaleTradeSubscribeMessage"] | components["schemas"]["WsAlertTraderNewTradeSubscribeMessage"] | components["schemas"]["WsAlertTraderTradeEventSubscribeMessage"] | components["schemas"]["WsAlertTraderGlobalPnlSubscribeMessage"] | components["schemas"]["WsAlertTraderMarketPnlSubscribeMessage"] | components["schemas"]["WsAlertTraderEventPnlSubscribeMessage"] | components["schemas"]["WsAlertConditionMetricsSubscribeMessage"] | components["schemas"]["WsAlertEventMetricsSubscribeMessage"] | components["schemas"]["WsAlertPositionMetricsSubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeMilestoneSubscribeMessage"] | components["schemas"]["WsAlertEventVolumeMilestoneSubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeMilestoneSubscribeMessage"] | components["schemas"]["WsAlertProbabilitySpikeSubscribeMessage"] | components["schemas"]["WsAlertPriceSpikeSubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeSpikeSubscribeMessage"] | components["schemas"]["WsAlertEventVolumeSpikeSubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeSpikeSubscribeMessage"] | components["schemas"]["WsAlertCloseToBondSubscribeMessage"] | components["schemas"]["WsAlertMarketCreatedSubscribeMessage"] | components["schemas"]["WsAlertOracleEventsSubscribeMessage"] | components["schemas"]["WsAlertAssetPriceTickSubscribeMessage"] | components["schemas"]["WsAlertAssetPriceWindowUpdateSubscribeMessage"];
|
|
4867
|
+
WsAlertSubscribeMessage: components["schemas"]["WsAlertTraderFirstTradeSubscribeMessage"] | components["schemas"]["WsAlertTraderNewMarketSubscribeMessage"] | components["schemas"]["WsAlertTraderWhaleTradeSubscribeMessage"] | components["schemas"]["WsAlertTraderNewTradeSubscribeMessage"] | components["schemas"]["WsAlertTraderTradeEventSubscribeMessage"] | components["schemas"]["WsAlertTraderGlobalPnlSubscribeMessage"] | components["schemas"]["WsAlertTraderMarketPnlSubscribeMessage"] | components["schemas"]["WsAlertTraderEventPnlSubscribeMessage"] | components["schemas"]["WsAlertConditionMetricsSubscribeMessage"] | components["schemas"]["WsAlertEventMetricsSubscribeMessage"] | components["schemas"]["WsAlertTagMetricsSubscribeMessage"] | components["schemas"]["WsAlertPositionMetricsSubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeMilestoneSubscribeMessage"] | components["schemas"]["WsAlertEventVolumeMilestoneSubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeMilestoneSubscribeMessage"] | components["schemas"]["WsAlertProbabilitySpikeSubscribeMessage"] | components["schemas"]["WsAlertPriceSpikeSubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeSpikeSubscribeMessage"] | components["schemas"]["WsAlertEventVolumeSpikeSubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeSpikeSubscribeMessage"] | components["schemas"]["WsAlertCloseToBondSubscribeMessage"] | components["schemas"]["WsAlertMarketCreatedSubscribeMessage"] | components["schemas"]["WsAlertOracleEventsSubscribeMessage"] | components["schemas"]["WsAlertAssetPriceTickSubscribeMessage"] | components["schemas"]["WsAlertAssetPriceWindowUpdateSubscribeMessage"];
|
|
4205
4868
|
/** @description Typed unsubscribe request for the alerts WebSocket. The request shape depends on `event` and must match the original subscription filters. */
|
|
4206
|
-
WsAlertUnsubscribeMessage: components["schemas"]["WsAlertTraderFirstTradeUnsubscribeMessage"] | components["schemas"]["WsAlertTraderNewMarketUnsubscribeMessage"] | components["schemas"]["WsAlertTraderWhaleTradeUnsubscribeMessage"] | components["schemas"]["WsAlertTraderNewTradeUnsubscribeMessage"] | components["schemas"]["WsAlertTraderTradeEventUnsubscribeMessage"] | components["schemas"]["WsAlertTraderGlobalPnlUnsubscribeMessage"] | components["schemas"]["WsAlertTraderMarketPnlUnsubscribeMessage"] | components["schemas"]["WsAlertTraderEventPnlUnsubscribeMessage"] | components["schemas"]["WsAlertConditionMetricsUnsubscribeMessage"] | components["schemas"]["WsAlertEventMetricsUnsubscribeMessage"] | components["schemas"]["WsAlertPositionMetricsUnsubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeMilestoneUnsubscribeMessage"] | components["schemas"]["WsAlertEventVolumeMilestoneUnsubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeMilestoneUnsubscribeMessage"] | components["schemas"]["WsAlertProbabilitySpikeUnsubscribeMessage"] | components["schemas"]["WsAlertPriceSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertEventVolumeSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertCloseToBondUnsubscribeMessage"] | components["schemas"]["WsAlertMarketCreatedUnsubscribeMessage"] | components["schemas"]["WsAlertOracleEventsUnsubscribeMessage"] | components["schemas"]["WsAlertAssetPriceTickUnsubscribeMessage"] | components["schemas"]["WsAlertAssetPriceWindowUpdateUnsubscribeMessage"];
|
|
4869
|
+
WsAlertUnsubscribeMessage: components["schemas"]["WsAlertTraderFirstTradeUnsubscribeMessage"] | components["schemas"]["WsAlertTraderNewMarketUnsubscribeMessage"] | components["schemas"]["WsAlertTraderWhaleTradeUnsubscribeMessage"] | components["schemas"]["WsAlertTraderNewTradeUnsubscribeMessage"] | components["schemas"]["WsAlertTraderTradeEventUnsubscribeMessage"] | components["schemas"]["WsAlertTraderGlobalPnlUnsubscribeMessage"] | components["schemas"]["WsAlertTraderMarketPnlUnsubscribeMessage"] | components["schemas"]["WsAlertTraderEventPnlUnsubscribeMessage"] | components["schemas"]["WsAlertConditionMetricsUnsubscribeMessage"] | components["schemas"]["WsAlertEventMetricsUnsubscribeMessage"] | components["schemas"]["WsAlertTagMetricsUnsubscribeMessage"] | components["schemas"]["WsAlertPositionMetricsUnsubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeMilestoneUnsubscribeMessage"] | components["schemas"]["WsAlertEventVolumeMilestoneUnsubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeMilestoneUnsubscribeMessage"] | components["schemas"]["WsAlertProbabilitySpikeUnsubscribeMessage"] | components["schemas"]["WsAlertPriceSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertMarketVolumeSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertEventVolumeSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertPositionVolumeSpikeUnsubscribeMessage"] | components["schemas"]["WsAlertCloseToBondUnsubscribeMessage"] | components["schemas"]["WsAlertMarketCreatedUnsubscribeMessage"] | components["schemas"]["WsAlertOracleEventsUnsubscribeMessage"] | components["schemas"]["WsAlertAssetPriceTickUnsubscribeMessage"] | components["schemas"]["WsAlertAssetPriceWindowUpdateUnsubscribeMessage"];
|
|
4207
4870
|
/** @description Typed pushed-event envelope for the alerts WebSocket. The `data` payload depends on `event` and matches the corresponding HTTP webhook payload schema. */
|
|
4208
|
-
WsAlertEventPayload: components["schemas"]["WsAlertTraderFirstTradeEvent"] | components["schemas"]["WsAlertTraderNewMarketEvent"] | components["schemas"]["WsAlertTraderWhaleTradeEvent"] | components["schemas"]["WsAlertTraderNewTradeEvent"] | components["schemas"]["WsAlertTraderTradeEventEvent"] | components["schemas"]["WsAlertTraderGlobalPnlEvent"] | components["schemas"]["WsAlertTraderMarketPnlEvent"] | components["schemas"]["WsAlertTraderEventPnlEvent"] | components["schemas"]["WsAlertConditionMetricsEvent"] | components["schemas"]["WsAlertEventMetricsEvent"] | components["schemas"]["WsAlertPositionMetricsEvent"] | components["schemas"]["WsAlertMarketVolumeMilestoneEvent"] | components["schemas"]["WsAlertEventVolumeMilestoneEvent"] | components["schemas"]["WsAlertPositionVolumeMilestoneEvent"] | components["schemas"]["WsAlertProbabilitySpikeEvent"] | components["schemas"]["WsAlertPriceSpikeEvent"] | components["schemas"]["WsAlertMarketVolumeSpikeEvent"] | components["schemas"]["WsAlertEventVolumeSpikeEvent"] | components["schemas"]["WsAlertPositionVolumeSpikeEvent"] | components["schemas"]["WsAlertCloseToBondEvent"] | components["schemas"]["WsAlertMarketCreatedEvent"] | components["schemas"]["WsAlertOracleEventsEvent"] | components["schemas"]["WsAlertAssetPriceTickEvent"] | components["schemas"]["WsAlertAssetPriceWindowUpdateEvent"];
|
|
4871
|
+
WsAlertEventPayload: components["schemas"]["WsAlertTraderFirstTradeEvent"] | components["schemas"]["WsAlertTraderNewMarketEvent"] | components["schemas"]["WsAlertTraderWhaleTradeEvent"] | components["schemas"]["WsAlertTraderNewTradeEvent"] | components["schemas"]["WsAlertTraderTradeEventEvent"] | components["schemas"]["WsAlertTraderGlobalPnlEvent"] | components["schemas"]["WsAlertTraderMarketPnlEvent"] | components["schemas"]["WsAlertTraderEventPnlEvent"] | components["schemas"]["WsAlertConditionMetricsEvent"] | components["schemas"]["WsAlertEventMetricsEvent"] | components["schemas"]["WsAlertTagMetricsEvent"] | components["schemas"]["WsAlertPositionMetricsEvent"] | components["schemas"]["WsAlertMarketVolumeMilestoneEvent"] | components["schemas"]["WsAlertEventVolumeMilestoneEvent"] | components["schemas"]["WsAlertPositionVolumeMilestoneEvent"] | components["schemas"]["WsAlertProbabilitySpikeEvent"] | components["schemas"]["WsAlertPriceSpikeEvent"] | components["schemas"]["WsAlertMarketVolumeSpikeEvent"] | components["schemas"]["WsAlertEventVolumeSpikeEvent"] | components["schemas"]["WsAlertPositionVolumeSpikeEvent"] | components["schemas"]["WsAlertCloseToBondEvent"] | components["schemas"]["WsAlertMarketCreatedEvent"] | components["schemas"]["WsAlertOracleEventsEvent"] | components["schemas"]["WsAlertAssetPriceTickEvent"] | components["schemas"]["WsAlertAssetPriceWindowUpdateEvent"];
|
|
4209
4872
|
};
|
|
4210
4873
|
responses: never;
|
|
4211
4874
|
parameters: never;
|
|
@@ -4226,6 +4889,7 @@ export interface WsAlertSubscribeMap {
|
|
|
4226
4889
|
trader_event_pnl: components["schemas"]["WsAlertTraderEventPnlSubscribeMessage"];
|
|
4227
4890
|
condition_metrics: components["schemas"]["WsAlertConditionMetricsSubscribeMessage"];
|
|
4228
4891
|
event_metrics: components["schemas"]["WsAlertEventMetricsSubscribeMessage"];
|
|
4892
|
+
tag_metrics: components["schemas"]["WsAlertTagMetricsSubscribeMessage"];
|
|
4229
4893
|
position_metrics: components["schemas"]["WsAlertPositionMetricsSubscribeMessage"];
|
|
4230
4894
|
market_volume_milestone: components["schemas"]["WsAlertMarketVolumeMilestoneSubscribeMessage"];
|
|
4231
4895
|
event_volume_milestone: components["schemas"]["WsAlertEventVolumeMilestoneSubscribeMessage"];
|
|
@@ -4252,6 +4916,7 @@ export interface WsAlertEventDataMap {
|
|
|
4252
4916
|
trader_event_pnl: components["schemas"]["EventPnlPayload"];
|
|
4253
4917
|
condition_metrics: components["schemas"]["ConditionMetricsPayload"];
|
|
4254
4918
|
event_metrics: components["schemas"]["EventMetricsPayload"];
|
|
4919
|
+
tag_metrics: components["schemas"]["TagMetricsPayload"];
|
|
4255
4920
|
position_metrics: components["schemas"]["PositionMetricsPayload"];
|
|
4256
4921
|
market_volume_milestone: components["schemas"]["VolumeMilestonePayload"];
|
|
4257
4922
|
event_volume_milestone: components["schemas"]["EventVolumeMilestonePayload"];
|