@polymarket/bindings 0.1.0-beta.9 → 0.2.0
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/chunk-H6NL6UCA.js +2 -0
- package/dist/{chunk-GYP7YNXL.js.map → chunk-H6NL6UCA.js.map} +1 -1
- package/dist/chunk-N4P2EGRL.js +2 -0
- package/dist/chunk-N4P2EGRL.js.map +1 -0
- package/dist/chunk-QTXFNR2Y.js +2 -0
- package/dist/chunk-QTXFNR2Y.js.map +1 -0
- package/dist/clob/index.d.ts +153 -54
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/{rfq.d.ts → combos/index.d.ts} +182 -43
- package/dist/combos/index.js +2 -0
- package/dist/combos/index.js.map +1 -0
- package/dist/data/index.d.ts +1049 -915
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +48 -1
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +28 -9
- package/dist/index.js +1 -1
- package/dist/{orders-B7JX0nMz.d.ts → orders-ClcuI-yo.d.ts} +448 -4
- package/dist/perps/index.d.ts +406 -12
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/relayer/index.js.map +1 -1
- package/dist/subscriptions/index.d.ts +382 -86
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +9 -9
- package/dist/chunk-GYP7YNXL.js +0 -2
- package/dist/chunk-KYFSCD3H.js +0 -2
- package/dist/chunk-KYFSCD3H.js.map +0 -1
- package/dist/chunk-VBHCYSM7.js +0 -2
- package/dist/chunk-VBHCYSM7.js.map +0 -1
- package/dist/rfq.js +0 -2
- package/dist/rfq.js.map +0 -1
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
|
|
1
|
+
import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, TradeStatus, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { P as PerpsInstrumentId,
|
|
3
|
+
import { P as PerpsInstrumentId, Q as PerpsKlineInterval, b as PerpsDepositStatus, i as PerpsTradeId, T as PerpsOrderId, j as PerpsSide, a2 as PerpsTimeInForce, W as PerpsOrderStatus, a4 as PerpsTpSlKind, a8 as PerpsTpSlScope, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus } from '../orders-ClcuI-yo.js';
|
|
4
4
|
import * as _polymarket_types from '@polymarket/types';
|
|
5
5
|
import { R as ReactionType } from '../comment-C-jBbhp7.js';
|
|
6
6
|
|
|
7
|
-
declare enum TradeStatus {
|
|
8
|
-
Matched = "TRADE_STATUS_MATCHED",
|
|
9
|
-
MatchedNotBroadcasted = "TRADE_STATUS_MATCHED_NOT_BROADCASTED",
|
|
10
|
-
Mined = "TRADE_STATUS_MINED",
|
|
11
|
-
Confirmed = "TRADE_STATUS_CONFIRMED",
|
|
12
|
-
Retrying = "TRADE_STATUS_RETRYING",
|
|
13
|
-
Failed = "TRADE_STATUS_FAILED"
|
|
14
|
-
}
|
|
15
7
|
declare enum UserOrderStatus {
|
|
16
8
|
Live = "LIVE",
|
|
17
9
|
Matched = "MATCHED",
|
|
@@ -38,10 +30,10 @@ declare const MarketBookEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
38
30
|
}, z.core.$strip>>;
|
|
39
31
|
hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
32
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
41
|
-
min_order_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
42
|
-
tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
33
|
+
min_order_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
34
|
+
tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
43
35
|
neg_risk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
|
-
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
36
|
+
last_trade_price: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
45
37
|
}, z.core.$strip>, z.ZodTransform<{
|
|
46
38
|
topic: "market";
|
|
47
39
|
type: "book";
|
|
@@ -89,8 +81,8 @@ declare const PriceChangeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
89
81
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
90
82
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
91
83
|
hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
-
best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
93
|
-
best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
84
|
+
best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
85
|
+
best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
94
86
|
}, z.core.$strip>, z.ZodTransform<{
|
|
95
87
|
tokenId: TokenId;
|
|
96
88
|
bestBid: DecimalString | null | undefined;
|
|
@@ -118,8 +110,8 @@ declare const MarketPriceChangeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
118
110
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
119
111
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
120
112
|
hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
122
|
-
best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
113
|
+
best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
114
|
+
best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
123
115
|
}, z.core.$strip>, z.ZodTransform<{
|
|
124
116
|
tokenId: TokenId;
|
|
125
117
|
bestBid: DecimalString | null | undefined;
|
|
@@ -174,8 +166,8 @@ declare const MarketLastTradePriceEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
174
166
|
market: z.ZodString;
|
|
175
167
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
176
168
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
177
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
178
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
169
|
+
size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
170
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
179
171
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
180
172
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
181
173
|
transaction_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -208,7 +200,7 @@ declare const MarketTickSizeChangeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
208
200
|
event_type: z.ZodLiteral<"tick_size_change">;
|
|
209
201
|
market: z.ZodString;
|
|
210
202
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
211
|
-
old_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
203
|
+
old_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
212
204
|
new_tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
213
205
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
214
206
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -234,9 +226,9 @@ declare const MarketBestBidAskEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
234
226
|
event_type: z.ZodLiteral<"best_bid_ask">;
|
|
235
227
|
market: z.ZodString;
|
|
236
228
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
237
|
-
best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
238
|
-
best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
239
|
-
spread: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
229
|
+
best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
230
|
+
best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
231
|
+
spread: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
240
232
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
241
233
|
}, z.core.$strip>, z.ZodTransform<{
|
|
242
234
|
topic: "market";
|
|
@@ -289,11 +281,11 @@ declare const NewMarketEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
289
281
|
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
290
282
|
clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
291
283
|
sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
-
line: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
284
|
+
line: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
293
285
|
game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
|
|
294
|
-
order_price_min_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
286
|
+
order_price_min_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
295
287
|
group_item_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
-
taker_base_fee: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
288
|
+
taker_base_fee: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
297
289
|
fees_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
298
290
|
fee_schedule: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
299
291
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -488,7 +480,7 @@ declare const TradeMakerOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
488
480
|
maker_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
481
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
490
482
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
491
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
483
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
492
484
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
493
485
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
494
486
|
outcome_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -526,7 +518,7 @@ declare const UserTradeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
526
518
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
527
519
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
528
520
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
529
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
521
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
530
522
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
531
523
|
status: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<typeof TradeStatus>>;
|
|
532
524
|
match_time: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>>>;
|
|
@@ -544,7 +536,7 @@ declare const UserTradeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
544
536
|
maker_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
537
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
546
538
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
547
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
539
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
548
540
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
549
541
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
542
|
outcome_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -661,10 +653,10 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
|
|
|
661
653
|
}, z.core.$strip>>;
|
|
662
654
|
hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
663
655
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
664
|
-
min_order_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
665
|
-
tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
656
|
+
min_order_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
657
|
+
tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
666
658
|
neg_risk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
667
|
-
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
659
|
+
last_trade_price: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
668
660
|
}, z.core.$strip>, z.ZodTransform<{
|
|
669
661
|
topic: "market";
|
|
670
662
|
type: "book";
|
|
@@ -713,8 +705,8 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
|
|
|
713
705
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
714
706
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
715
707
|
hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
716
|
-
best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
717
|
-
best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
708
|
+
best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
709
|
+
best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
718
710
|
}, z.core.$strip>, z.ZodTransform<{
|
|
719
711
|
tokenId: TokenId;
|
|
720
712
|
bestBid: DecimalString | null | undefined;
|
|
@@ -767,8 +759,8 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
|
|
|
767
759
|
market: z.ZodString;
|
|
768
760
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
769
761
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
770
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
771
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
762
|
+
size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
763
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
772
764
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
773
765
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
774
766
|
transaction_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -799,7 +791,7 @@ declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.Zo
|
|
|
799
791
|
event_type: z.ZodLiteral<"tick_size_change">;
|
|
800
792
|
market: z.ZodString;
|
|
801
793
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
802
|
-
old_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
794
|
+
old_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
803
795
|
new_tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
804
796
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
805
797
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -825,9 +817,9 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
|
|
|
825
817
|
event_type: z.ZodLiteral<"best_bid_ask">;
|
|
826
818
|
market: z.ZodString;
|
|
827
819
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
828
|
-
best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
829
|
-
best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
830
|
-
spread: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
820
|
+
best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
821
|
+
best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
822
|
+
spread: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
831
823
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
832
824
|
}, z.core.$strip>, z.ZodTransform<{
|
|
833
825
|
topic: "market";
|
|
@@ -870,11 +862,11 @@ declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodO
|
|
|
870
862
|
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
871
863
|
clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
872
864
|
sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
873
|
-
line: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
865
|
+
line: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
874
866
|
game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
|
|
875
|
-
order_price_min_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
867
|
+
order_price_min_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
876
868
|
group_item_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
877
|
-
taker_base_fee: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
869
|
+
taker_base_fee: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
878
870
|
fees_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
879
871
|
fee_schedule: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
880
872
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -1005,10 +997,10 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1005
997
|
}, z.core.$strip>>;
|
|
1006
998
|
hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1007
999
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1008
|
-
min_order_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1009
|
-
tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1000
|
+
min_order_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1001
|
+
tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1010
1002
|
neg_risk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1011
|
-
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1003
|
+
last_trade_price: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1012
1004
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1013
1005
|
topic: "market";
|
|
1014
1006
|
type: "book";
|
|
@@ -1057,8 +1049,8 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1057
1049
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1058
1050
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
1059
1051
|
hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1060
|
-
best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1061
|
-
best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1052
|
+
best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1053
|
+
best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1062
1054
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1063
1055
|
tokenId: TokenId;
|
|
1064
1056
|
bestBid: DecimalString | null | undefined;
|
|
@@ -1111,8 +1103,8 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1111
1103
|
market: z.ZodString;
|
|
1112
1104
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1113
1105
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1114
|
-
size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1115
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1106
|
+
size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1107
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1116
1108
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
1117
1109
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1118
1110
|
transaction_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1143,7 +1135,7 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1143
1135
|
event_type: z.ZodLiteral<"tick_size_change">;
|
|
1144
1136
|
market: z.ZodString;
|
|
1145
1137
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1146
|
-
old_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1138
|
+
old_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1147
1139
|
new_tick_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1148
1140
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1149
1141
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -1167,9 +1159,9 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1167
1159
|
event_type: z.ZodLiteral<"best_bid_ask">;
|
|
1168
1160
|
market: z.ZodString;
|
|
1169
1161
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1170
|
-
best_bid: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1171
|
-
best_ask: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1172
|
-
spread: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1162
|
+
best_bid: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1163
|
+
best_ask: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1164
|
+
spread: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1173
1165
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
|
|
1174
1166
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1175
1167
|
topic: "market";
|
|
@@ -1212,11 +1204,11 @@ declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<
|
|
|
1212
1204
|
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1213
1205
|
clob_token_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1214
1206
|
sports_market_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1215
|
-
line: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1207
|
+
line: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1216
1208
|
game_start_time: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>>>;
|
|
1217
|
-
order_price_min_tick_size: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1209
|
+
order_price_min_tick_size: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1218
1210
|
group_item_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1219
|
-
taker_base_fee: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1211
|
+
taker_base_fee: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1220
1212
|
fees_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1221
1213
|
fee_schedule: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
1222
1214
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -1405,7 +1397,7 @@ declare const UserEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
|
1405
1397
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1406
1398
|
side: z.ZodType<OrderSide, unknown, z.core.$ZodTypeInternals<OrderSide, unknown>>;
|
|
1407
1399
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1408
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1400
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1409
1401
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1410
1402
|
status: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<typeof TradeStatus>>;
|
|
1411
1403
|
match_time: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>>>;
|
|
@@ -1423,7 +1415,7 @@ declare const UserEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
|
1423
1415
|
maker_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1424
1416
|
matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1425
1417
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1426
|
-
fee_rate_bps: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string
|
|
1418
|
+
fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
|
|
1427
1419
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1428
1420
|
outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1429
1421
|
outcome_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1527,11 +1519,14 @@ declare const UserEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
|
1527
1519
|
}>>], "event_type">;
|
|
1528
1520
|
type UserEvent = z.infer<typeof UserEventSchema>;
|
|
1529
1521
|
|
|
1522
|
+
/**
|
|
1523
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1524
|
+
*/
|
|
1530
1525
|
declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
1531
1526
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1532
1527
|
sq: z.ZodNumber;
|
|
1533
1528
|
ch: z.ZodString;
|
|
1534
|
-
data: z.ZodPipe<z.ZodObject<{
|
|
1529
|
+
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1535
1530
|
tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
1536
1531
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
1537
1532
|
side: z.ZodEnum<typeof PerpsSide>;
|
|
@@ -1555,7 +1550,7 @@ declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1555
1550
|
qty: DecimalString;
|
|
1556
1551
|
ts: EpochMilliseconds;
|
|
1557
1552
|
hash?: _polymarket_types.TxHash | undefined;
|
|
1558
|
-
}
|
|
1553
|
+
}>>>;
|
|
1559
1554
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1560
1555
|
topic: "perps.trades";
|
|
1561
1556
|
type: "trade";
|
|
@@ -1570,7 +1565,7 @@ declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1570
1565
|
quantity: DecimalString;
|
|
1571
1566
|
timestamp: EpochMilliseconds;
|
|
1572
1567
|
hash: _polymarket_types.TxHash | undefined;
|
|
1573
|
-
};
|
|
1568
|
+
}[];
|
|
1574
1569
|
}, {
|
|
1575
1570
|
ts: EpochMilliseconds;
|
|
1576
1571
|
sq: number;
|
|
@@ -1583,9 +1578,15 @@ declare const PerpsTradeEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1583
1578
|
quantity: DecimalString;
|
|
1584
1579
|
timestamp: EpochMilliseconds;
|
|
1585
1580
|
hash: _polymarket_types.TxHash | undefined;
|
|
1586
|
-
};
|
|
1581
|
+
}[];
|
|
1587
1582
|
}>>;
|
|
1583
|
+
/**
|
|
1584
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1585
|
+
*/
|
|
1588
1586
|
type PerpsTradeEvent = z.infer<typeof PerpsTradeEventSchema>;
|
|
1587
|
+
/**
|
|
1588
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1589
|
+
*/
|
|
1589
1590
|
declare const PerpsBboEventSchema: z.ZodPipe<z.ZodObject<{
|
|
1590
1591
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1591
1592
|
sq: z.ZodNumber;
|
|
@@ -1634,7 +1635,13 @@ declare const PerpsBboEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1634
1635
|
askQuantity: DecimalString;
|
|
1635
1636
|
};
|
|
1636
1637
|
}>>;
|
|
1638
|
+
/**
|
|
1639
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1640
|
+
*/
|
|
1637
1641
|
type PerpsBboEvent = z.infer<typeof PerpsBboEventSchema>;
|
|
1642
|
+
/**
|
|
1643
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1644
|
+
*/
|
|
1638
1645
|
declare const PerpsBookEventSchema: z.ZodPipe<z.ZodObject<{
|
|
1639
1646
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1640
1647
|
sq: z.ZodNumber;
|
|
@@ -1699,7 +1706,13 @@ declare const PerpsBookEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1699
1706
|
}[];
|
|
1700
1707
|
};
|
|
1701
1708
|
}>>;
|
|
1709
|
+
/**
|
|
1710
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1711
|
+
*/
|
|
1702
1712
|
type PerpsBookEvent = z.infer<typeof PerpsBookEventSchema>;
|
|
1713
|
+
/**
|
|
1714
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1715
|
+
*/
|
|
1703
1716
|
declare const PerpsTickerEventSchema: z.ZodPipe<z.ZodObject<{
|
|
1704
1717
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1705
1718
|
sq: z.ZodNumber;
|
|
@@ -1763,7 +1776,13 @@ declare const PerpsTickerEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1763
1776
|
nextFunding: EpochMilliseconds;
|
|
1764
1777
|
};
|
|
1765
1778
|
}>>;
|
|
1779
|
+
/**
|
|
1780
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1781
|
+
*/
|
|
1766
1782
|
type PerpsTickerEvent = z.infer<typeof PerpsTickerEventSchema>;
|
|
1783
|
+
/**
|
|
1784
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1785
|
+
*/
|
|
1767
1786
|
declare const PerpsStatisticEventSchema: z.ZodPipe<z.ZodObject<{
|
|
1768
1787
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1769
1788
|
sq: z.ZodNumber;
|
|
@@ -1847,7 +1866,13 @@ declare const PerpsStatisticEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1847
1866
|
}[];
|
|
1848
1867
|
};
|
|
1849
1868
|
}>>;
|
|
1869
|
+
/**
|
|
1870
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1871
|
+
*/
|
|
1850
1872
|
type PerpsStatisticEvent = z.infer<typeof PerpsStatisticEventSchema>;
|
|
1873
|
+
/**
|
|
1874
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1875
|
+
*/
|
|
1851
1876
|
declare const PerpsCandleEventSchema: z.ZodPipe<z.ZodObject<{
|
|
1852
1877
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1853
1878
|
sq: z.ZodNumber;
|
|
@@ -1894,12 +1919,18 @@ declare const PerpsCandleEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1894
1919
|
trades: number;
|
|
1895
1920
|
}[];
|
|
1896
1921
|
}>>;
|
|
1922
|
+
/**
|
|
1923
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1924
|
+
*/
|
|
1897
1925
|
type PerpsCandleEvent = z.infer<typeof PerpsCandleEventSchema>;
|
|
1926
|
+
/**
|
|
1927
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
1928
|
+
*/
|
|
1898
1929
|
declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
1899
1930
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1900
1931
|
sq: z.ZodNumber;
|
|
1901
1932
|
ch: z.ZodString;
|
|
1902
|
-
data: z.ZodPipe<z.ZodObject<{
|
|
1933
|
+
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1903
1934
|
tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
1904
1935
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
1905
1936
|
side: z.ZodEnum<typeof PerpsSide>;
|
|
@@ -1923,7 +1954,7 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
|
|
|
1923
1954
|
qty: DecimalString;
|
|
1924
1955
|
ts: EpochMilliseconds;
|
|
1925
1956
|
hash?: _polymarket_types.TxHash | undefined;
|
|
1926
|
-
}
|
|
1957
|
+
}>>>;
|
|
1927
1958
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1928
1959
|
topic: "perps.trades";
|
|
1929
1960
|
type: "trade";
|
|
@@ -1938,7 +1969,7 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
|
|
|
1938
1969
|
quantity: DecimalString;
|
|
1939
1970
|
timestamp: EpochMilliseconds;
|
|
1940
1971
|
hash: _polymarket_types.TxHash | undefined;
|
|
1941
|
-
};
|
|
1972
|
+
}[];
|
|
1942
1973
|
}, {
|
|
1943
1974
|
ts: EpochMilliseconds;
|
|
1944
1975
|
sq: number;
|
|
@@ -1951,7 +1982,7 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
|
|
|
1951
1982
|
quantity: DecimalString;
|
|
1952
1983
|
timestamp: EpochMilliseconds;
|
|
1953
1984
|
hash: _polymarket_types.TxHash | undefined;
|
|
1954
|
-
};
|
|
1985
|
+
}[];
|
|
1955
1986
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
1956
1987
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
1957
1988
|
sq: z.ZodNumber;
|
|
@@ -2252,7 +2283,13 @@ declare const PerpsMarketDataEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodOb
|
|
|
2252
2283
|
trades: number;
|
|
2253
2284
|
}[];
|
|
2254
2285
|
}>>]>;
|
|
2286
|
+
/**
|
|
2287
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2288
|
+
*/
|
|
2255
2289
|
type PerpsMarketDataEvent = z.infer<typeof PerpsMarketDataEventSchema>;
|
|
2290
|
+
/**
|
|
2291
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2292
|
+
*/
|
|
2256
2293
|
declare const PerpsBalanceUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2257
2294
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2258
2295
|
sq: z.ZodNumber;
|
|
@@ -2282,7 +2319,13 @@ declare const PerpsBalanceUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2282
2319
|
value: DecimalString;
|
|
2283
2320
|
};
|
|
2284
2321
|
}>>;
|
|
2322
|
+
/**
|
|
2323
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2324
|
+
*/
|
|
2285
2325
|
type PerpsBalanceUpdateEvent = z.infer<typeof PerpsBalanceUpdateEventSchema>;
|
|
2326
|
+
/**
|
|
2327
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2328
|
+
*/
|
|
2286
2329
|
declare const PerpsPortfolioUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2287
2330
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2288
2331
|
sq: z.ZodNumber;
|
|
@@ -2463,7 +2506,13 @@ declare const PerpsPortfolioUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2463
2506
|
timestamp: EpochMilliseconds;
|
|
2464
2507
|
};
|
|
2465
2508
|
}>>;
|
|
2509
|
+
/**
|
|
2510
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2511
|
+
*/
|
|
2466
2512
|
type PerpsPortfolioUpdateEvent = z.infer<typeof PerpsPortfolioUpdateEventSchema>;
|
|
2513
|
+
/**
|
|
2514
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2515
|
+
*/
|
|
2467
2516
|
declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2468
2517
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2469
2518
|
sq: z.ZodNumber;
|
|
@@ -2476,12 +2525,35 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2476
2525
|
qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2477
2526
|
tif: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
2478
2527
|
po: z.ZodBoolean;
|
|
2528
|
+
ro: z.ZodBoolean;
|
|
2479
2529
|
status: z.ZodEnum<typeof PerpsOrderStatus>;
|
|
2480
2530
|
rest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2481
2531
|
fill: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2482
2532
|
cts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2483
2533
|
uts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2484
2534
|
coid: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
2536
|
+
kind: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
2537
|
+
scope: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
2538
|
+
trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2539
|
+
parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
2540
|
+
armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
2541
|
+
slip_bps: z.ZodOptional<z.ZodNumber>;
|
|
2542
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2543
|
+
kind: PerpsTpSlKind;
|
|
2544
|
+
scope: PerpsTpSlScope;
|
|
2545
|
+
triggerPrice: DecimalString;
|
|
2546
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
2547
|
+
armedQuantity: DecimalString | undefined;
|
|
2548
|
+
slippageBps: number | undefined;
|
|
2549
|
+
}, {
|
|
2550
|
+
kind: PerpsTpSlKind;
|
|
2551
|
+
scope: PerpsTpSlScope;
|
|
2552
|
+
trp: DecimalString;
|
|
2553
|
+
parent_oid?: PerpsOrderId | undefined;
|
|
2554
|
+
armed_qty?: DecimalString | undefined;
|
|
2555
|
+
slip_bps?: number | undefined;
|
|
2556
|
+
}>>>>;
|
|
2485
2557
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2486
2558
|
id: PerpsOrderId;
|
|
2487
2559
|
instrumentId: PerpsInstrumentId;
|
|
@@ -2490,12 +2562,21 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2490
2562
|
quantity: DecimalString;
|
|
2491
2563
|
timeInForce: PerpsTimeInForce;
|
|
2492
2564
|
postOnly: boolean;
|
|
2565
|
+
reduceOnly: boolean;
|
|
2493
2566
|
status: PerpsOrderStatus;
|
|
2494
2567
|
restingQuantity: DecimalString;
|
|
2495
2568
|
filledQuantity: DecimalString;
|
|
2496
2569
|
createdTimestamp: EpochMilliseconds;
|
|
2497
2570
|
updatedTimestamp: EpochMilliseconds;
|
|
2498
2571
|
clientOrderId: string | undefined;
|
|
2572
|
+
tpSl: {
|
|
2573
|
+
kind: PerpsTpSlKind;
|
|
2574
|
+
scope: PerpsTpSlScope;
|
|
2575
|
+
triggerPrice: DecimalString;
|
|
2576
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
2577
|
+
armedQuantity: DecimalString | undefined;
|
|
2578
|
+
slippageBps: number | undefined;
|
|
2579
|
+
} | undefined;
|
|
2499
2580
|
}, {
|
|
2500
2581
|
oid: PerpsOrderId;
|
|
2501
2582
|
iid: PerpsInstrumentId;
|
|
@@ -2504,12 +2585,21 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2504
2585
|
qty: DecimalString;
|
|
2505
2586
|
tif: PerpsTimeInForce;
|
|
2506
2587
|
po: boolean;
|
|
2588
|
+
ro: boolean;
|
|
2507
2589
|
status: PerpsOrderStatus;
|
|
2508
2590
|
rest: DecimalString;
|
|
2509
2591
|
fill: DecimalString;
|
|
2510
2592
|
cts: EpochMilliseconds;
|
|
2511
2593
|
uts: EpochMilliseconds;
|
|
2512
2594
|
coid?: string | undefined;
|
|
2595
|
+
tpsl?: {
|
|
2596
|
+
kind: PerpsTpSlKind;
|
|
2597
|
+
scope: PerpsTpSlScope;
|
|
2598
|
+
triggerPrice: DecimalString;
|
|
2599
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
2600
|
+
armedQuantity: DecimalString | undefined;
|
|
2601
|
+
slippageBps: number | undefined;
|
|
2602
|
+
} | null | undefined;
|
|
2513
2603
|
}>>;
|
|
2514
2604
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2515
2605
|
type: "order";
|
|
@@ -2524,12 +2614,21 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2524
2614
|
quantity: DecimalString;
|
|
2525
2615
|
timeInForce: PerpsTimeInForce;
|
|
2526
2616
|
postOnly: boolean;
|
|
2617
|
+
reduceOnly: boolean;
|
|
2527
2618
|
status: PerpsOrderStatus;
|
|
2528
2619
|
restingQuantity: DecimalString;
|
|
2529
2620
|
filledQuantity: DecimalString;
|
|
2530
2621
|
createdTimestamp: EpochMilliseconds;
|
|
2531
2622
|
updatedTimestamp: EpochMilliseconds;
|
|
2532
2623
|
clientOrderId: string | undefined;
|
|
2624
|
+
tpSl: {
|
|
2625
|
+
kind: PerpsTpSlKind;
|
|
2626
|
+
scope: PerpsTpSlScope;
|
|
2627
|
+
triggerPrice: DecimalString;
|
|
2628
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
2629
|
+
armedQuantity: DecimalString | undefined;
|
|
2630
|
+
slippageBps: number | undefined;
|
|
2631
|
+
} | undefined;
|
|
2533
2632
|
};
|
|
2534
2633
|
}, {
|
|
2535
2634
|
ts: EpochMilliseconds;
|
|
@@ -2543,20 +2642,35 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2543
2642
|
quantity: DecimalString;
|
|
2544
2643
|
timeInForce: PerpsTimeInForce;
|
|
2545
2644
|
postOnly: boolean;
|
|
2645
|
+
reduceOnly: boolean;
|
|
2546
2646
|
status: PerpsOrderStatus;
|
|
2547
2647
|
restingQuantity: DecimalString;
|
|
2548
2648
|
filledQuantity: DecimalString;
|
|
2549
2649
|
createdTimestamp: EpochMilliseconds;
|
|
2550
2650
|
updatedTimestamp: EpochMilliseconds;
|
|
2551
2651
|
clientOrderId: string | undefined;
|
|
2652
|
+
tpSl: {
|
|
2653
|
+
kind: PerpsTpSlKind;
|
|
2654
|
+
scope: PerpsTpSlScope;
|
|
2655
|
+
triggerPrice: DecimalString;
|
|
2656
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
2657
|
+
armedQuantity: DecimalString | undefined;
|
|
2658
|
+
slippageBps: number | undefined;
|
|
2659
|
+
} | undefined;
|
|
2552
2660
|
};
|
|
2553
2661
|
}>>;
|
|
2662
|
+
/**
|
|
2663
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2664
|
+
*/
|
|
2554
2665
|
type PerpsOrderUpdateEvent = z.infer<typeof PerpsOrderUpdateEventSchema>;
|
|
2666
|
+
/**
|
|
2667
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2668
|
+
*/
|
|
2555
2669
|
declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2556
2670
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2557
2671
|
sq: z.ZodNumber;
|
|
2558
2672
|
ch: z.ZodLiteral<"fills">;
|
|
2559
|
-
data: z.ZodPipe<z.ZodObject<{
|
|
2673
|
+
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
2560
2674
|
tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
2561
2675
|
oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
2562
2676
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -2604,7 +2718,7 @@ declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2604
2718
|
liq: boolean;
|
|
2605
2719
|
ts: EpochMilliseconds;
|
|
2606
2720
|
coid?: string | undefined;
|
|
2607
|
-
}
|
|
2721
|
+
}>>>;
|
|
2608
2722
|
}, z.core.$strip>, z.ZodTransform<{
|
|
2609
2723
|
type: "fill";
|
|
2610
2724
|
channel: "fills";
|
|
@@ -2626,7 +2740,7 @@ declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2626
2740
|
liquidation: boolean;
|
|
2627
2741
|
timestamp: EpochMilliseconds;
|
|
2628
2742
|
clientOrderId: string | undefined;
|
|
2629
|
-
};
|
|
2743
|
+
}[];
|
|
2630
2744
|
}, {
|
|
2631
2745
|
ts: EpochMilliseconds;
|
|
2632
2746
|
sq: number;
|
|
@@ -2647,9 +2761,15 @@ declare const PerpsFillUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2647
2761
|
liquidation: boolean;
|
|
2648
2762
|
timestamp: EpochMilliseconds;
|
|
2649
2763
|
clientOrderId: string | undefined;
|
|
2650
|
-
};
|
|
2764
|
+
}[];
|
|
2651
2765
|
}>>;
|
|
2766
|
+
/**
|
|
2767
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2768
|
+
*/
|
|
2652
2769
|
type PerpsFillUpdateEvent = z.infer<typeof PerpsFillUpdateEventSchema>;
|
|
2770
|
+
/**
|
|
2771
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2772
|
+
*/
|
|
2653
2773
|
declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2654
2774
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2655
2775
|
sq: z.ZodNumber;
|
|
@@ -2702,7 +2822,13 @@ declare const PerpsFundingUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2702
2822
|
timestamp: EpochMilliseconds;
|
|
2703
2823
|
};
|
|
2704
2824
|
}>>;
|
|
2825
|
+
/**
|
|
2826
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2827
|
+
*/
|
|
2705
2828
|
type PerpsFundingUpdateEvent = z.infer<typeof PerpsFundingUpdateEventSchema>;
|
|
2829
|
+
/**
|
|
2830
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2831
|
+
*/
|
|
2706
2832
|
declare const PerpsDepositUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2707
2833
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2708
2834
|
sq: z.ZodNumber;
|
|
@@ -2745,7 +2871,13 @@ declare const PerpsDepositUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2745
2871
|
status: PerpsDepositStatus;
|
|
2746
2872
|
};
|
|
2747
2873
|
}>>;
|
|
2874
|
+
/**
|
|
2875
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2876
|
+
*/
|
|
2748
2877
|
type PerpsDepositUpdateEvent = z.infer<typeof PerpsDepositUpdateEventSchema>;
|
|
2878
|
+
/**
|
|
2879
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2880
|
+
*/
|
|
2749
2881
|
declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2750
2882
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2751
2883
|
sq: z.ZodNumber;
|
|
@@ -2755,7 +2887,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2755
2887
|
asset: z.ZodString;
|
|
2756
2888
|
amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
|
|
2757
2889
|
fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
2758
|
-
status: z.
|
|
2890
|
+
status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
|
|
2759
2891
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
2760
2892
|
hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
|
|
2761
2893
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -2763,7 +2895,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2763
2895
|
asset: string;
|
|
2764
2896
|
amount: BaseUnits;
|
|
2765
2897
|
fee: DecimalString;
|
|
2766
|
-
status:
|
|
2898
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
2767
2899
|
to: _polymarket_types.EvmAddress;
|
|
2768
2900
|
hash: _polymarket_types.TxHash | undefined;
|
|
2769
2901
|
}, {
|
|
@@ -2771,7 +2903,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2771
2903
|
asset: string;
|
|
2772
2904
|
amount: BaseUnits;
|
|
2773
2905
|
fee: DecimalString;
|
|
2774
|
-
status:
|
|
2906
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
2775
2907
|
to: _polymarket_types.EvmAddress;
|
|
2776
2908
|
hash?: _polymarket_types.TxHash | undefined;
|
|
2777
2909
|
}>>;
|
|
@@ -2785,7 +2917,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2785
2917
|
asset: string;
|
|
2786
2918
|
amount: BaseUnits;
|
|
2787
2919
|
fee: DecimalString;
|
|
2788
|
-
status:
|
|
2920
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
2789
2921
|
to: _polymarket_types.EvmAddress;
|
|
2790
2922
|
hash: _polymarket_types.TxHash | undefined;
|
|
2791
2923
|
};
|
|
@@ -2798,12 +2930,67 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
|
2798
2930
|
asset: string;
|
|
2799
2931
|
amount: BaseUnits;
|
|
2800
2932
|
fee: DecimalString;
|
|
2801
|
-
status:
|
|
2933
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
2802
2934
|
to: _polymarket_types.EvmAddress;
|
|
2803
2935
|
hash: _polymarket_types.TxHash | undefined;
|
|
2804
2936
|
};
|
|
2805
2937
|
}>>;
|
|
2938
|
+
/**
|
|
2939
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2940
|
+
*/
|
|
2806
2941
|
type PerpsWithdrawalUpdateEvent = z.infer<typeof PerpsWithdrawalUpdateEventSchema>;
|
|
2942
|
+
/**
|
|
2943
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2944
|
+
*/
|
|
2945
|
+
declare const PerpsTpSlUpdateEventSchema: z.ZodPipe<z.ZodObject<{
|
|
2946
|
+
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2947
|
+
sq: z.ZodNumber;
|
|
2948
|
+
ch: z.ZodString;
|
|
2949
|
+
data: z.ZodPipe<z.ZodObject<{
|
|
2950
|
+
oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
2951
|
+
st: z.ZodEnum<{
|
|
2952
|
+
cancelled: "cancelled";
|
|
2953
|
+
untriggered: "untriggered";
|
|
2954
|
+
armed: "armed";
|
|
2955
|
+
expired: "expired";
|
|
2956
|
+
}>;
|
|
2957
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2958
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2959
|
+
orderId: PerpsOrderId;
|
|
2960
|
+
status: "cancelled" | "untriggered" | "armed" | "expired";
|
|
2961
|
+
reason: string | undefined;
|
|
2962
|
+
}, {
|
|
2963
|
+
oid: PerpsOrderId;
|
|
2964
|
+
st: "cancelled" | "untriggered" | "armed" | "expired";
|
|
2965
|
+
reason?: string | undefined;
|
|
2966
|
+
}>>;
|
|
2967
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2968
|
+
type: "tpsl";
|
|
2969
|
+
channel: string;
|
|
2970
|
+
timestamp: EpochMilliseconds;
|
|
2971
|
+
sequence: number;
|
|
2972
|
+
payload: {
|
|
2973
|
+
orderId: PerpsOrderId;
|
|
2974
|
+
status: "cancelled" | "untriggered" | "armed" | "expired";
|
|
2975
|
+
reason: string | undefined;
|
|
2976
|
+
};
|
|
2977
|
+
}, {
|
|
2978
|
+
ts: EpochMilliseconds;
|
|
2979
|
+
sq: number;
|
|
2980
|
+
ch: string;
|
|
2981
|
+
data: {
|
|
2982
|
+
orderId: PerpsOrderId;
|
|
2983
|
+
status: "cancelled" | "untriggered" | "armed" | "expired";
|
|
2984
|
+
reason: string | undefined;
|
|
2985
|
+
};
|
|
2986
|
+
}>>;
|
|
2987
|
+
/**
|
|
2988
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2989
|
+
*/
|
|
2990
|
+
type PerpsTpSlUpdateEvent = z.infer<typeof PerpsTpSlUpdateEventSchema>;
|
|
2991
|
+
/**
|
|
2992
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
2993
|
+
*/
|
|
2807
2994
|
declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
2808
2995
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
2809
2996
|
sq: z.ZodNumber;
|
|
@@ -3023,12 +3210,35 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3023
3210
|
qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3024
3211
|
tif: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
3025
3212
|
po: z.ZodBoolean;
|
|
3213
|
+
ro: z.ZodBoolean;
|
|
3026
3214
|
status: z.ZodEnum<typeof PerpsOrderStatus>;
|
|
3027
3215
|
rest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3028
3216
|
fill: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3029
3217
|
cts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3030
3218
|
uts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3031
3219
|
coid: z.ZodOptional<z.ZodString>;
|
|
3220
|
+
tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
3221
|
+
kind: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
3222
|
+
scope: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
3223
|
+
trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3224
|
+
parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
3225
|
+
armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
3226
|
+
slip_bps: z.ZodOptional<z.ZodNumber>;
|
|
3227
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3228
|
+
kind: PerpsTpSlKind;
|
|
3229
|
+
scope: PerpsTpSlScope;
|
|
3230
|
+
triggerPrice: DecimalString;
|
|
3231
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
3232
|
+
armedQuantity: DecimalString | undefined;
|
|
3233
|
+
slippageBps: number | undefined;
|
|
3234
|
+
}, {
|
|
3235
|
+
kind: PerpsTpSlKind;
|
|
3236
|
+
scope: PerpsTpSlScope;
|
|
3237
|
+
trp: DecimalString;
|
|
3238
|
+
parent_oid?: PerpsOrderId | undefined;
|
|
3239
|
+
armed_qty?: DecimalString | undefined;
|
|
3240
|
+
slip_bps?: number | undefined;
|
|
3241
|
+
}>>>>;
|
|
3032
3242
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3033
3243
|
id: PerpsOrderId;
|
|
3034
3244
|
instrumentId: PerpsInstrumentId;
|
|
@@ -3037,12 +3247,21 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3037
3247
|
quantity: DecimalString;
|
|
3038
3248
|
timeInForce: PerpsTimeInForce;
|
|
3039
3249
|
postOnly: boolean;
|
|
3250
|
+
reduceOnly: boolean;
|
|
3040
3251
|
status: PerpsOrderStatus;
|
|
3041
3252
|
restingQuantity: DecimalString;
|
|
3042
3253
|
filledQuantity: DecimalString;
|
|
3043
3254
|
createdTimestamp: EpochMilliseconds;
|
|
3044
3255
|
updatedTimestamp: EpochMilliseconds;
|
|
3045
3256
|
clientOrderId: string | undefined;
|
|
3257
|
+
tpSl: {
|
|
3258
|
+
kind: PerpsTpSlKind;
|
|
3259
|
+
scope: PerpsTpSlScope;
|
|
3260
|
+
triggerPrice: DecimalString;
|
|
3261
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
3262
|
+
armedQuantity: DecimalString | undefined;
|
|
3263
|
+
slippageBps: number | undefined;
|
|
3264
|
+
} | undefined;
|
|
3046
3265
|
}, {
|
|
3047
3266
|
oid: PerpsOrderId;
|
|
3048
3267
|
iid: PerpsInstrumentId;
|
|
@@ -3051,12 +3270,21 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3051
3270
|
qty: DecimalString;
|
|
3052
3271
|
tif: PerpsTimeInForce;
|
|
3053
3272
|
po: boolean;
|
|
3273
|
+
ro: boolean;
|
|
3054
3274
|
status: PerpsOrderStatus;
|
|
3055
3275
|
rest: DecimalString;
|
|
3056
3276
|
fill: DecimalString;
|
|
3057
3277
|
cts: EpochMilliseconds;
|
|
3058
3278
|
uts: EpochMilliseconds;
|
|
3059
3279
|
coid?: string | undefined;
|
|
3280
|
+
tpsl?: {
|
|
3281
|
+
kind: PerpsTpSlKind;
|
|
3282
|
+
scope: PerpsTpSlScope;
|
|
3283
|
+
triggerPrice: DecimalString;
|
|
3284
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
3285
|
+
armedQuantity: DecimalString | undefined;
|
|
3286
|
+
slippageBps: number | undefined;
|
|
3287
|
+
} | null | undefined;
|
|
3060
3288
|
}>>;
|
|
3061
3289
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3062
3290
|
type: "order";
|
|
@@ -3071,12 +3299,21 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3071
3299
|
quantity: DecimalString;
|
|
3072
3300
|
timeInForce: PerpsTimeInForce;
|
|
3073
3301
|
postOnly: boolean;
|
|
3302
|
+
reduceOnly: boolean;
|
|
3074
3303
|
status: PerpsOrderStatus;
|
|
3075
3304
|
restingQuantity: DecimalString;
|
|
3076
3305
|
filledQuantity: DecimalString;
|
|
3077
3306
|
createdTimestamp: EpochMilliseconds;
|
|
3078
3307
|
updatedTimestamp: EpochMilliseconds;
|
|
3079
3308
|
clientOrderId: string | undefined;
|
|
3309
|
+
tpSl: {
|
|
3310
|
+
kind: PerpsTpSlKind;
|
|
3311
|
+
scope: PerpsTpSlScope;
|
|
3312
|
+
triggerPrice: DecimalString;
|
|
3313
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
3314
|
+
armedQuantity: DecimalString | undefined;
|
|
3315
|
+
slippageBps: number | undefined;
|
|
3316
|
+
} | undefined;
|
|
3080
3317
|
};
|
|
3081
3318
|
}, {
|
|
3082
3319
|
ts: EpochMilliseconds;
|
|
@@ -3090,18 +3327,27 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3090
3327
|
quantity: DecimalString;
|
|
3091
3328
|
timeInForce: PerpsTimeInForce;
|
|
3092
3329
|
postOnly: boolean;
|
|
3330
|
+
reduceOnly: boolean;
|
|
3093
3331
|
status: PerpsOrderStatus;
|
|
3094
3332
|
restingQuantity: DecimalString;
|
|
3095
3333
|
filledQuantity: DecimalString;
|
|
3096
3334
|
createdTimestamp: EpochMilliseconds;
|
|
3097
3335
|
updatedTimestamp: EpochMilliseconds;
|
|
3098
3336
|
clientOrderId: string | undefined;
|
|
3337
|
+
tpSl: {
|
|
3338
|
+
kind: PerpsTpSlKind;
|
|
3339
|
+
scope: PerpsTpSlScope;
|
|
3340
|
+
triggerPrice: DecimalString;
|
|
3341
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
3342
|
+
armedQuantity: DecimalString | undefined;
|
|
3343
|
+
slippageBps: number | undefined;
|
|
3344
|
+
} | undefined;
|
|
3099
3345
|
};
|
|
3100
3346
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
3101
3347
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3102
3348
|
sq: z.ZodNumber;
|
|
3103
3349
|
ch: z.ZodLiteral<"fills">;
|
|
3104
|
-
data: z.ZodPipe<z.ZodObject<{
|
|
3350
|
+
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3105
3351
|
tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
3106
3352
|
oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
3107
3353
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -3149,7 +3395,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3149
3395
|
liq: boolean;
|
|
3150
3396
|
ts: EpochMilliseconds;
|
|
3151
3397
|
coid?: string | undefined;
|
|
3152
|
-
}
|
|
3398
|
+
}>>>;
|
|
3153
3399
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3154
3400
|
type: "fill";
|
|
3155
3401
|
channel: "fills";
|
|
@@ -3171,7 +3417,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3171
3417
|
liquidation: boolean;
|
|
3172
3418
|
timestamp: EpochMilliseconds;
|
|
3173
3419
|
clientOrderId: string | undefined;
|
|
3174
|
-
};
|
|
3420
|
+
}[];
|
|
3175
3421
|
}, {
|
|
3176
3422
|
ts: EpochMilliseconds;
|
|
3177
3423
|
sq: number;
|
|
@@ -3192,7 +3438,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3192
3438
|
liquidation: boolean;
|
|
3193
3439
|
timestamp: EpochMilliseconds;
|
|
3194
3440
|
clientOrderId: string | undefined;
|
|
3195
|
-
};
|
|
3441
|
+
}[];
|
|
3196
3442
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
3197
3443
|
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3198
3444
|
sq: z.ZodNumber;
|
|
@@ -3294,7 +3540,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3294
3540
|
asset: z.ZodString;
|
|
3295
3541
|
amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
|
|
3296
3542
|
fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
3297
|
-
status: z.
|
|
3543
|
+
status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
|
|
3298
3544
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
3299
3545
|
hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
|
|
3300
3546
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -3302,7 +3548,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3302
3548
|
asset: string;
|
|
3303
3549
|
amount: BaseUnits;
|
|
3304
3550
|
fee: DecimalString;
|
|
3305
|
-
status:
|
|
3551
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
3306
3552
|
to: _polymarket_types.EvmAddress;
|
|
3307
3553
|
hash: _polymarket_types.TxHash | undefined;
|
|
3308
3554
|
}, {
|
|
@@ -3310,7 +3556,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3310
3556
|
asset: string;
|
|
3311
3557
|
amount: BaseUnits;
|
|
3312
3558
|
fee: DecimalString;
|
|
3313
|
-
status:
|
|
3559
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
3314
3560
|
to: _polymarket_types.EvmAddress;
|
|
3315
3561
|
hash?: _polymarket_types.TxHash | undefined;
|
|
3316
3562
|
}>>;
|
|
@@ -3324,7 +3570,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3324
3570
|
asset: string;
|
|
3325
3571
|
amount: BaseUnits;
|
|
3326
3572
|
fee: DecimalString;
|
|
3327
|
-
status:
|
|
3573
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
3328
3574
|
to: _polymarket_types.EvmAddress;
|
|
3329
3575
|
hash: _polymarket_types.TxHash | undefined;
|
|
3330
3576
|
};
|
|
@@ -3337,12 +3583,59 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
|
|
|
3337
3583
|
asset: string;
|
|
3338
3584
|
amount: BaseUnits;
|
|
3339
3585
|
fee: DecimalString;
|
|
3340
|
-
status:
|
|
3586
|
+
status: PerpsKnownWithdrawalStatus | (string & {});
|
|
3341
3587
|
to: _polymarket_types.EvmAddress;
|
|
3342
3588
|
hash: _polymarket_types.TxHash | undefined;
|
|
3343
3589
|
};
|
|
3590
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
3591
|
+
ts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
3592
|
+
sq: z.ZodNumber;
|
|
3593
|
+
ch: z.ZodString;
|
|
3594
|
+
data: z.ZodPipe<z.ZodObject<{
|
|
3595
|
+
oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
3596
|
+
st: z.ZodEnum<{
|
|
3597
|
+
cancelled: "cancelled";
|
|
3598
|
+
untriggered: "untriggered";
|
|
3599
|
+
armed: "armed";
|
|
3600
|
+
expired: "expired";
|
|
3601
|
+
}>;
|
|
3602
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3603
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3604
|
+
orderId: PerpsOrderId;
|
|
3605
|
+
status: "cancelled" | "untriggered" | "armed" | "expired";
|
|
3606
|
+
reason: string | undefined;
|
|
3607
|
+
}, {
|
|
3608
|
+
oid: PerpsOrderId;
|
|
3609
|
+
st: "cancelled" | "untriggered" | "armed" | "expired";
|
|
3610
|
+
reason?: string | undefined;
|
|
3611
|
+
}>>;
|
|
3612
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3613
|
+
type: "tpsl";
|
|
3614
|
+
channel: string;
|
|
3615
|
+
timestamp: EpochMilliseconds;
|
|
3616
|
+
sequence: number;
|
|
3617
|
+
payload: {
|
|
3618
|
+
orderId: PerpsOrderId;
|
|
3619
|
+
status: "cancelled" | "untriggered" | "armed" | "expired";
|
|
3620
|
+
reason: string | undefined;
|
|
3621
|
+
};
|
|
3622
|
+
}, {
|
|
3623
|
+
ts: EpochMilliseconds;
|
|
3624
|
+
sq: number;
|
|
3625
|
+
ch: string;
|
|
3626
|
+
data: {
|
|
3627
|
+
orderId: PerpsOrderId;
|
|
3628
|
+
status: "cancelled" | "untriggered" | "armed" | "expired";
|
|
3629
|
+
reason: string | undefined;
|
|
3630
|
+
};
|
|
3344
3631
|
}>>]>;
|
|
3632
|
+
/**
|
|
3633
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3634
|
+
*/
|
|
3345
3635
|
type PerpsSessionUpdateEvent = z.infer<typeof PerpsSessionUpdateEventSchema>;
|
|
3636
|
+
/**
|
|
3637
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3638
|
+
*/
|
|
3346
3639
|
type PerpsResyncEvent = {
|
|
3347
3640
|
type: 'resync';
|
|
3348
3641
|
reason: 'reconnect' | 'sequence_gap';
|
|
@@ -3350,6 +3643,9 @@ type PerpsResyncEvent = {
|
|
|
3350
3643
|
previousSequence?: number;
|
|
3351
3644
|
sequence?: number;
|
|
3352
3645
|
};
|
|
3646
|
+
/**
|
|
3647
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
3648
|
+
*/
|
|
3353
3649
|
type PerpsSessionEvent = PerpsSessionUpdateEvent | PerpsResyncEvent;
|
|
3354
3650
|
|
|
3355
3651
|
declare const CommentRemovedPayloadSchema: z.ZodObject<{
|
|
@@ -5572,4 +5868,4 @@ declare const SportsResultEventSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
|
5572
5868
|
}>>;
|
|
5573
5869
|
type SportsEvent = z.infer<typeof SportsResultEventSchema>;
|
|
5574
5870
|
|
|
5575
|
-
export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, type CryptoPricesEvent, CryptoPricesEventSchema, type CryptoPricesTopic, type CustomMarketEvent, CustomMarketEventSchema, type EquityPriceSnapshotPoint, type EquityPriceSubscribePayload, type EquityPriceUpdatePayload, type EquityPricesEvent, EquityPricesEventSchema, type EquityPricesSubscribeEvent, EquityPricesSubscribeEventSchema, type EquityPricesTopic, type EquityPricesUpdateEvent, EquityPricesUpdateEventSchema, type MarketBestBidAskEvent, MarketBestBidAskEventSchema, type MarketBookEvent, MarketBookEventSchema, type MarketEvent, type MarketEventMessage, MarketEventSchema, type MarketLastTradePriceEvent, MarketLastTradePriceEventSchema, type MarketPriceChangeEvent, MarketPriceChangeEventSchema, type MarketResolvedEvent, MarketResolvedEventSchema, type MarketTickSizeChangeEvent, MarketTickSizeChangeEventSchema, type NewMarketEvent, NewMarketEventSchema, type OrderBookLevel, type PerpsBalanceUpdateEvent, PerpsBalanceUpdateEventSchema, type PerpsBboEvent, PerpsBboEventSchema, type PerpsBookEvent, PerpsBookEventSchema, type PerpsCandleEvent, PerpsCandleEventSchema, type PerpsDepositUpdateEvent, PerpsDepositUpdateEventSchema, type PerpsFillUpdateEvent, PerpsFillUpdateEventSchema, type PerpsFundingUpdateEvent, PerpsFundingUpdateEventSchema, type PerpsMarketDataEvent, PerpsMarketDataEventSchema, type PerpsOrderUpdateEvent, PerpsOrderUpdateEventSchema, type PerpsPortfolioUpdateEvent, PerpsPortfolioUpdateEventSchema, type PerpsResyncEvent, type PerpsSessionEvent, type PerpsSessionUpdateEvent, PerpsSessionUpdateEventSchema, type PerpsStatisticEvent, PerpsStatisticEventSchema, type PerpsTickerEvent, PerpsTickerEventSchema, type PerpsTradeEvent, PerpsTradeEventSchema, type PerpsWithdrawalUpdateEvent, PerpsWithdrawalUpdateEventSchema, type PriceChange, type PriceUpdatePayload, type ReactionCreatedEvent, ReactionCreatedEventSchema, type ReactionRemovedEvent, ReactionRemovedEventSchema, type RealtimeEvent, RealtimeEventSchema, type SportsEvent, SportsResultEventSchema, type StandardMarketEvent, StandardMarketEventSchema, type TradeMakerOrder, TradeStatus, type UserEvent, UserEventSchema, type UserOrderEvent, UserOrderEventSchema, UserOrderEventType, UserOrderStatus, type UserTradeEvent, UserTradeEventSchema };
|
|
5871
|
+
export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, type CryptoPricesEvent, CryptoPricesEventSchema, type CryptoPricesTopic, type CustomMarketEvent, CustomMarketEventSchema, type EquityPriceSnapshotPoint, type EquityPriceSubscribePayload, type EquityPriceUpdatePayload, type EquityPricesEvent, EquityPricesEventSchema, type EquityPricesSubscribeEvent, EquityPricesSubscribeEventSchema, type EquityPricesTopic, type EquityPricesUpdateEvent, EquityPricesUpdateEventSchema, type MarketBestBidAskEvent, MarketBestBidAskEventSchema, type MarketBookEvent, MarketBookEventSchema, type MarketEvent, type MarketEventMessage, MarketEventSchema, type MarketLastTradePriceEvent, MarketLastTradePriceEventSchema, type MarketPriceChangeEvent, MarketPriceChangeEventSchema, type MarketResolvedEvent, MarketResolvedEventSchema, type MarketTickSizeChangeEvent, MarketTickSizeChangeEventSchema, type NewMarketEvent, NewMarketEventSchema, type OrderBookLevel, type PerpsBalanceUpdateEvent, PerpsBalanceUpdateEventSchema, type PerpsBboEvent, PerpsBboEventSchema, type PerpsBookEvent, PerpsBookEventSchema, type PerpsCandleEvent, PerpsCandleEventSchema, type PerpsDepositUpdateEvent, PerpsDepositUpdateEventSchema, type PerpsFillUpdateEvent, PerpsFillUpdateEventSchema, type PerpsFundingUpdateEvent, PerpsFundingUpdateEventSchema, type PerpsMarketDataEvent, PerpsMarketDataEventSchema, type PerpsOrderUpdateEvent, PerpsOrderUpdateEventSchema, type PerpsPortfolioUpdateEvent, PerpsPortfolioUpdateEventSchema, type PerpsResyncEvent, type PerpsSessionEvent, type PerpsSessionUpdateEvent, PerpsSessionUpdateEventSchema, type PerpsStatisticEvent, PerpsStatisticEventSchema, type PerpsTickerEvent, PerpsTickerEventSchema, type PerpsTpSlUpdateEvent, PerpsTpSlUpdateEventSchema, type PerpsTradeEvent, PerpsTradeEventSchema, type PerpsWithdrawalUpdateEvent, PerpsWithdrawalUpdateEventSchema, type PriceChange, type PriceUpdatePayload, type ReactionCreatedEvent, ReactionCreatedEventSchema, type ReactionRemovedEvent, ReactionRemovedEventSchema, type RealtimeEvent, RealtimeEventSchema, type SportsEvent, SportsResultEventSchema, type StandardMarketEvent, StandardMarketEventSchema, type TradeMakerOrder, TradeStatus, type UserEvent, UserEventSchema, type UserOrderEvent, UserOrderEventSchema, UserOrderEventType, UserOrderStatus, type UserTradeEvent, UserTradeEventSchema };
|