@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
package/dist/clob/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
2
|
import { TxHash } from '@polymarket/types';
|
|
3
|
-
import { BaseUnits, TokenId, DecimalString, IsoDateTimeString, NotificationId, EpochMilliseconds,
|
|
3
|
+
import { BaseUnits, CtfConditionId, TokenId, DecimalString, IsoDateTimeString, TradeStatus, NotificationId, EpochMilliseconds, ApiKey, OrderSide, OrderId } from '../index.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
export { S as SignatureType, a as SignatureTypeSchema } from '../signature-type-CrLAA9AN.js';
|
|
6
6
|
|
|
@@ -12,6 +12,24 @@ declare const ClosedOnlyModeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
12
12
|
closed_only: boolean;
|
|
13
13
|
}>>;
|
|
14
14
|
type ClosedOnlyMode = z.infer<typeof ClosedOnlyModeSchema>;
|
|
15
|
+
type OpenOrder = {
|
|
16
|
+
id: string;
|
|
17
|
+
/** CTF condition id for the market associated with this order. */
|
|
18
|
+
conditionId: CtfConditionId;
|
|
19
|
+
tokenId: TokenId;
|
|
20
|
+
owner: string;
|
|
21
|
+
makerAddress: string;
|
|
22
|
+
side: string;
|
|
23
|
+
price: DecimalString;
|
|
24
|
+
originalSize: DecimalString;
|
|
25
|
+
sizeMatched: DecimalString;
|
|
26
|
+
outcome: string;
|
|
27
|
+
orderType: string;
|
|
28
|
+
status: string;
|
|
29
|
+
associateTrades: string[];
|
|
30
|
+
createdAt: IsoDateTimeString;
|
|
31
|
+
expiresAt?: IsoDateTimeString;
|
|
32
|
+
};
|
|
15
33
|
declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
16
34
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
17
35
|
associate_trades: z.ZodArray<z.ZodString>;
|
|
@@ -19,7 +37,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
19
37
|
expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
20
38
|
id: z.ZodString;
|
|
21
39
|
maker_address: z.ZodString;
|
|
22
|
-
market: z.ZodString
|
|
40
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
23
41
|
order_type: z.ZodString;
|
|
24
42
|
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
25
43
|
outcome: z.ZodString;
|
|
@@ -29,6 +47,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
29
47
|
size_matched: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
30
48
|
status: z.ZodString;
|
|
31
49
|
}, z.core.$strip>, z.ZodTransform<{
|
|
50
|
+
conditionId: CtfConditionId;
|
|
32
51
|
tokenId: TokenId;
|
|
33
52
|
associateTrades: string[];
|
|
34
53
|
createdAt: IsoDateTimeString;
|
|
@@ -37,7 +56,6 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
37
56
|
originalSize: DecimalString;
|
|
38
57
|
sizeMatched: DecimalString;
|
|
39
58
|
id: string;
|
|
40
|
-
market: string;
|
|
41
59
|
outcome: string;
|
|
42
60
|
owner: string;
|
|
43
61
|
price: DecimalString;
|
|
@@ -45,6 +63,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
45
63
|
status: string;
|
|
46
64
|
} | {
|
|
47
65
|
expiresAt: IsoDateTimeString;
|
|
66
|
+
conditionId: CtfConditionId;
|
|
48
67
|
tokenId: TokenId;
|
|
49
68
|
associateTrades: string[];
|
|
50
69
|
createdAt: IsoDateTimeString;
|
|
@@ -53,7 +72,6 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
53
72
|
originalSize: DecimalString;
|
|
54
73
|
sizeMatched: DecimalString;
|
|
55
74
|
id: string;
|
|
56
|
-
market: string;
|
|
57
75
|
outcome: string;
|
|
58
76
|
owner: string;
|
|
59
77
|
price: DecimalString;
|
|
@@ -66,7 +84,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
66
84
|
expiration: IsoDateTimeString | undefined;
|
|
67
85
|
id: string;
|
|
68
86
|
maker_address: string;
|
|
69
|
-
market:
|
|
87
|
+
market: CtfConditionId;
|
|
70
88
|
order_type: string;
|
|
71
89
|
original_size: DecimalString;
|
|
72
90
|
outcome: string;
|
|
@@ -76,7 +94,6 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
76
94
|
size_matched: DecimalString;
|
|
77
95
|
status: string;
|
|
78
96
|
}>>;
|
|
79
|
-
type OpenOrder = z.infer<typeof OpenOrderSchema>;
|
|
80
97
|
declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
81
98
|
count: z.ZodNumber;
|
|
82
99
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -86,7 +103,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
86
103
|
expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
|
|
87
104
|
id: z.ZodString;
|
|
88
105
|
maker_address: z.ZodString;
|
|
89
|
-
market: z.ZodString
|
|
106
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
90
107
|
order_type: z.ZodString;
|
|
91
108
|
original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
92
109
|
outcome: z.ZodString;
|
|
@@ -96,6 +113,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
96
113
|
size_matched: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
97
114
|
status: z.ZodString;
|
|
98
115
|
}, z.core.$strip>, z.ZodTransform<{
|
|
116
|
+
conditionId: CtfConditionId;
|
|
99
117
|
tokenId: TokenId;
|
|
100
118
|
associateTrades: string[];
|
|
101
119
|
createdAt: IsoDateTimeString;
|
|
@@ -104,7 +122,6 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
104
122
|
originalSize: DecimalString;
|
|
105
123
|
sizeMatched: DecimalString;
|
|
106
124
|
id: string;
|
|
107
|
-
market: string;
|
|
108
125
|
outcome: string;
|
|
109
126
|
owner: string;
|
|
110
127
|
price: DecimalString;
|
|
@@ -112,6 +129,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
112
129
|
status: string;
|
|
113
130
|
} | {
|
|
114
131
|
expiresAt: IsoDateTimeString;
|
|
132
|
+
conditionId: CtfConditionId;
|
|
115
133
|
tokenId: TokenId;
|
|
116
134
|
associateTrades: string[];
|
|
117
135
|
createdAt: IsoDateTimeString;
|
|
@@ -120,7 +138,6 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
120
138
|
originalSize: DecimalString;
|
|
121
139
|
sizeMatched: DecimalString;
|
|
122
140
|
id: string;
|
|
123
|
-
market: string;
|
|
124
141
|
outcome: string;
|
|
125
142
|
owner: string;
|
|
126
143
|
price: DecimalString;
|
|
@@ -133,7 +150,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
133
150
|
expiration: IsoDateTimeString | undefined;
|
|
134
151
|
id: string;
|
|
135
152
|
maker_address: string;
|
|
136
|
-
market:
|
|
153
|
+
market: CtfConditionId;
|
|
137
154
|
order_type: string;
|
|
138
155
|
original_size: DecimalString;
|
|
139
156
|
outcome: string;
|
|
@@ -149,6 +166,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
149
166
|
nextCursor: string;
|
|
150
167
|
count: number;
|
|
151
168
|
data: ({
|
|
169
|
+
conditionId: CtfConditionId;
|
|
152
170
|
tokenId: TokenId;
|
|
153
171
|
associateTrades: string[];
|
|
154
172
|
createdAt: IsoDateTimeString;
|
|
@@ -157,7 +175,6 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
157
175
|
originalSize: DecimalString;
|
|
158
176
|
sizeMatched: DecimalString;
|
|
159
177
|
id: string;
|
|
160
|
-
market: string;
|
|
161
178
|
outcome: string;
|
|
162
179
|
owner: string;
|
|
163
180
|
price: DecimalString;
|
|
@@ -165,6 +182,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
165
182
|
status: string;
|
|
166
183
|
} | {
|
|
167
184
|
expiresAt: IsoDateTimeString;
|
|
185
|
+
conditionId: CtfConditionId;
|
|
168
186
|
tokenId: TokenId;
|
|
169
187
|
associateTrades: string[];
|
|
170
188
|
createdAt: IsoDateTimeString;
|
|
@@ -173,7 +191,6 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
173
191
|
originalSize: DecimalString;
|
|
174
192
|
sizeMatched: DecimalString;
|
|
175
193
|
id: string;
|
|
176
|
-
market: string;
|
|
177
194
|
outcome: string;
|
|
178
195
|
owner: string;
|
|
179
196
|
price: DecimalString;
|
|
@@ -184,6 +201,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
184
201
|
}, {
|
|
185
202
|
count: number;
|
|
186
203
|
data: ({
|
|
204
|
+
conditionId: CtfConditionId;
|
|
187
205
|
tokenId: TokenId;
|
|
188
206
|
associateTrades: string[];
|
|
189
207
|
createdAt: IsoDateTimeString;
|
|
@@ -192,7 +210,6 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
192
210
|
originalSize: DecimalString;
|
|
193
211
|
sizeMatched: DecimalString;
|
|
194
212
|
id: string;
|
|
195
|
-
market: string;
|
|
196
213
|
outcome: string;
|
|
197
214
|
owner: string;
|
|
198
215
|
price: DecimalString;
|
|
@@ -200,6 +217,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
200
217
|
status: string;
|
|
201
218
|
} | {
|
|
202
219
|
expiresAt: IsoDateTimeString;
|
|
220
|
+
conditionId: CtfConditionId;
|
|
203
221
|
tokenId: TokenId;
|
|
204
222
|
associateTrades: string[];
|
|
205
223
|
createdAt: IsoDateTimeString;
|
|
@@ -208,7 +226,6 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
208
226
|
originalSize: DecimalString;
|
|
209
227
|
sizeMatched: DecimalString;
|
|
210
228
|
id: string;
|
|
211
|
-
market: string;
|
|
212
229
|
outcome: string;
|
|
213
230
|
owner: string;
|
|
214
231
|
price: DecimalString;
|
|
@@ -250,6 +267,28 @@ declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
250
267
|
price: DecimalString;
|
|
251
268
|
side: string;
|
|
252
269
|
}>>;
|
|
270
|
+
type MakerOrder = z.output<typeof MakerOrderSchema>;
|
|
271
|
+
type ClobTrade = {
|
|
272
|
+
id: string;
|
|
273
|
+
/** CTF condition id for the market associated with this trade. */
|
|
274
|
+
conditionId: CtfConditionId;
|
|
275
|
+
tokenId: TokenId;
|
|
276
|
+
owner: string;
|
|
277
|
+
makerAddress: string;
|
|
278
|
+
takerOrderId: string;
|
|
279
|
+
side: string;
|
|
280
|
+
traderSide: 'TAKER' | 'MAKER';
|
|
281
|
+
price: DecimalString;
|
|
282
|
+
size: DecimalString;
|
|
283
|
+
outcome: string;
|
|
284
|
+
status: string;
|
|
285
|
+
feeRateBps: DecimalString;
|
|
286
|
+
bucketIndex: number;
|
|
287
|
+
transactionHash: string;
|
|
288
|
+
makerOrders: MakerOrder[];
|
|
289
|
+
matchedAt: IsoDateTimeString;
|
|
290
|
+
updatedAt: IsoDateTimeString;
|
|
291
|
+
};
|
|
253
292
|
declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
254
293
|
asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
255
294
|
bucket_index: z.ZodNumber;
|
|
@@ -288,14 +327,14 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
288
327
|
price: DecimalString;
|
|
289
328
|
side: string;
|
|
290
329
|
}>>>;
|
|
291
|
-
market: z.ZodString
|
|
330
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
292
331
|
match_time: 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>>]>;
|
|
293
332
|
outcome: z.ZodString;
|
|
294
333
|
owner: z.ZodString;
|
|
295
334
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
296
335
|
side: z.ZodString;
|
|
297
336
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
298
|
-
status: z.
|
|
337
|
+
status: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<typeof TradeStatus>>;
|
|
299
338
|
taker_order_id: z.ZodString;
|
|
300
339
|
trader_side: z.ZodEnum<{
|
|
301
340
|
TAKER: "TAKER";
|
|
@@ -303,6 +342,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
303
342
|
}>;
|
|
304
343
|
transaction_hash: z.ZodString;
|
|
305
344
|
}, z.core.$strip>, z.ZodTransform<{
|
|
345
|
+
conditionId: CtfConditionId;
|
|
306
346
|
tokenId: TokenId;
|
|
307
347
|
bucketIndex: number;
|
|
308
348
|
feeRateBps: DecimalString;
|
|
@@ -324,13 +364,12 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
324
364
|
traderSide: "TAKER" | "MAKER";
|
|
325
365
|
transactionHash: string;
|
|
326
366
|
id: string;
|
|
327
|
-
market: string;
|
|
328
367
|
outcome: string;
|
|
329
368
|
owner: string;
|
|
330
369
|
price: DecimalString;
|
|
331
370
|
side: string;
|
|
332
371
|
size: DecimalString;
|
|
333
|
-
status:
|
|
372
|
+
status: TradeStatus;
|
|
334
373
|
}, {
|
|
335
374
|
asset_id: TokenId;
|
|
336
375
|
bucket_index: number;
|
|
@@ -349,19 +388,18 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
349
388
|
price: DecimalString;
|
|
350
389
|
side: string;
|
|
351
390
|
}[];
|
|
352
|
-
market:
|
|
391
|
+
market: CtfConditionId;
|
|
353
392
|
match_time: IsoDateTimeString;
|
|
354
393
|
outcome: string;
|
|
355
394
|
owner: string;
|
|
356
395
|
price: DecimalString;
|
|
357
396
|
side: string;
|
|
358
397
|
size: DecimalString;
|
|
359
|
-
status:
|
|
398
|
+
status: TradeStatus;
|
|
360
399
|
taker_order_id: string;
|
|
361
400
|
trader_side: "TAKER" | "MAKER";
|
|
362
401
|
transaction_hash: string;
|
|
363
402
|
}>>;
|
|
364
|
-
type ClobTrade = z.infer<typeof ClobTradeSchema>;
|
|
365
403
|
declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
366
404
|
count: z.ZodNumber;
|
|
367
405
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -402,14 +440,14 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
402
440
|
price: DecimalString;
|
|
403
441
|
side: string;
|
|
404
442
|
}>>>;
|
|
405
|
-
market: z.ZodString
|
|
443
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
406
444
|
match_time: 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>>]>;
|
|
407
445
|
outcome: z.ZodString;
|
|
408
446
|
owner: z.ZodString;
|
|
409
447
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
410
448
|
side: z.ZodString;
|
|
411
449
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
412
|
-
status: z.
|
|
450
|
+
status: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodEnum<typeof TradeStatus>>;
|
|
413
451
|
taker_order_id: z.ZodString;
|
|
414
452
|
trader_side: z.ZodEnum<{
|
|
415
453
|
TAKER: "TAKER";
|
|
@@ -417,6 +455,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
417
455
|
}>;
|
|
418
456
|
transaction_hash: z.ZodString;
|
|
419
457
|
}, z.core.$strip>, z.ZodTransform<{
|
|
458
|
+
conditionId: CtfConditionId;
|
|
420
459
|
tokenId: TokenId;
|
|
421
460
|
bucketIndex: number;
|
|
422
461
|
feeRateBps: DecimalString;
|
|
@@ -438,13 +477,12 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
438
477
|
traderSide: "TAKER" | "MAKER";
|
|
439
478
|
transactionHash: string;
|
|
440
479
|
id: string;
|
|
441
|
-
market: string;
|
|
442
480
|
outcome: string;
|
|
443
481
|
owner: string;
|
|
444
482
|
price: DecimalString;
|
|
445
483
|
side: string;
|
|
446
484
|
size: DecimalString;
|
|
447
|
-
status:
|
|
485
|
+
status: TradeStatus;
|
|
448
486
|
}, {
|
|
449
487
|
asset_id: TokenId;
|
|
450
488
|
bucket_index: number;
|
|
@@ -463,14 +501,14 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
463
501
|
price: DecimalString;
|
|
464
502
|
side: string;
|
|
465
503
|
}[];
|
|
466
|
-
market:
|
|
504
|
+
market: CtfConditionId;
|
|
467
505
|
match_time: IsoDateTimeString;
|
|
468
506
|
outcome: string;
|
|
469
507
|
owner: string;
|
|
470
508
|
price: DecimalString;
|
|
471
509
|
side: string;
|
|
472
510
|
size: DecimalString;
|
|
473
|
-
status:
|
|
511
|
+
status: TradeStatus;
|
|
474
512
|
taker_order_id: string;
|
|
475
513
|
trader_side: "TAKER" | "MAKER";
|
|
476
514
|
transaction_hash: string;
|
|
@@ -481,6 +519,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
481
519
|
nextCursor: string;
|
|
482
520
|
count: number;
|
|
483
521
|
data: {
|
|
522
|
+
conditionId: CtfConditionId;
|
|
484
523
|
tokenId: TokenId;
|
|
485
524
|
bucketIndex: number;
|
|
486
525
|
feeRateBps: DecimalString;
|
|
@@ -502,18 +541,18 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
502
541
|
traderSide: "TAKER" | "MAKER";
|
|
503
542
|
transactionHash: string;
|
|
504
543
|
id: string;
|
|
505
|
-
market: string;
|
|
506
544
|
outcome: string;
|
|
507
545
|
owner: string;
|
|
508
546
|
price: DecimalString;
|
|
509
547
|
side: string;
|
|
510
548
|
size: DecimalString;
|
|
511
|
-
status:
|
|
549
|
+
status: TradeStatus;
|
|
512
550
|
}[];
|
|
513
551
|
limit: number;
|
|
514
552
|
}, {
|
|
515
553
|
count: number;
|
|
516
554
|
data: {
|
|
555
|
+
conditionId: CtfConditionId;
|
|
517
556
|
tokenId: TokenId;
|
|
518
557
|
bucketIndex: number;
|
|
519
558
|
feeRateBps: DecimalString;
|
|
@@ -535,13 +574,12 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
535
574
|
traderSide: "TAKER" | "MAKER";
|
|
536
575
|
transactionHash: string;
|
|
537
576
|
id: string;
|
|
538
|
-
market: string;
|
|
539
577
|
outcome: string;
|
|
540
578
|
owner: string;
|
|
541
579
|
price: DecimalString;
|
|
542
580
|
side: string;
|
|
543
581
|
size: DecimalString;
|
|
544
|
-
status:
|
|
582
|
+
status: TradeStatus;
|
|
545
583
|
}[];
|
|
546
584
|
limit: number;
|
|
547
585
|
next_cursor: string;
|
|
@@ -1090,12 +1128,38 @@ declare const BuilderApiKeysResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnion<read
|
|
|
1090
1128
|
})[]>>;
|
|
1091
1129
|
type BuilderApiKeysResponse = z.infer<typeof BuilderApiKeysResponseSchema>;
|
|
1092
1130
|
|
|
1131
|
+
type BuilderTrade = {
|
|
1132
|
+
id: string;
|
|
1133
|
+
tradeType: string;
|
|
1134
|
+
takerOrderHash: string;
|
|
1135
|
+
builder: string;
|
|
1136
|
+
/** CTF condition id for the market associated with this trade. */
|
|
1137
|
+
conditionId: CtfConditionId;
|
|
1138
|
+
tokenId: TokenId;
|
|
1139
|
+
side: OrderSide;
|
|
1140
|
+
size: DecimalString;
|
|
1141
|
+
sizeUsdc: DecimalString;
|
|
1142
|
+
price: DecimalString;
|
|
1143
|
+
status: string;
|
|
1144
|
+
outcome: string;
|
|
1145
|
+
outcomeIndex: number;
|
|
1146
|
+
owner: string;
|
|
1147
|
+
maker: string;
|
|
1148
|
+
transactionHash: string;
|
|
1149
|
+
matchedAt: IsoDateTimeString;
|
|
1150
|
+
bucketIndex: number;
|
|
1151
|
+
fee: DecimalString;
|
|
1152
|
+
feeUsdc: DecimalString;
|
|
1153
|
+
errMsg: string | null | undefined;
|
|
1154
|
+
createdAt?: IsoDateTimeString;
|
|
1155
|
+
updatedAt?: IsoDateTimeString;
|
|
1156
|
+
};
|
|
1093
1157
|
declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
1094
1158
|
id: z.ZodString;
|
|
1095
1159
|
tradeType: z.ZodString;
|
|
1096
1160
|
takerOrderHash: z.ZodString;
|
|
1097
1161
|
builder: z.ZodString;
|
|
1098
|
-
market: z.ZodString
|
|
1162
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1099
1163
|
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1100
1164
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1101
1165
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1115,6 +1179,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1115
1179
|
createdAt: z.ZodOptional<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>>]>>;
|
|
1116
1180
|
updatedAt: z.ZodOptional<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>>]>>;
|
|
1117
1181
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1182
|
+
conditionId: CtfConditionId;
|
|
1118
1183
|
tokenId: TokenId;
|
|
1119
1184
|
errMsg: string | null | undefined;
|
|
1120
1185
|
matchedAt: IsoDateTimeString;
|
|
@@ -1122,7 +1187,6 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1122
1187
|
tradeType: string;
|
|
1123
1188
|
takerOrderHash: string;
|
|
1124
1189
|
builder: string;
|
|
1125
|
-
market: string;
|
|
1126
1190
|
side: OrderSide;
|
|
1127
1191
|
size: DecimalString;
|
|
1128
1192
|
sizeUsdc: DecimalString;
|
|
@@ -1143,7 +1207,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1143
1207
|
tradeType: string;
|
|
1144
1208
|
takerOrderHash: string;
|
|
1145
1209
|
builder: string;
|
|
1146
|
-
market:
|
|
1210
|
+
market: CtfConditionId;
|
|
1147
1211
|
assetId: TokenId;
|
|
1148
1212
|
side: OrderSide;
|
|
1149
1213
|
size: DecimalString;
|
|
@@ -1163,7 +1227,6 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1163
1227
|
createdAt?: IsoDateTimeString | undefined;
|
|
1164
1228
|
updatedAt?: IsoDateTimeString | undefined;
|
|
1165
1229
|
}>>;
|
|
1166
|
-
type BuilderTrade = z.infer<typeof BuilderTradeSchema>;
|
|
1167
1230
|
declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
1168
1231
|
limit: z.ZodNumber;
|
|
1169
1232
|
count: z.ZodNumber;
|
|
@@ -1173,7 +1236,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1173
1236
|
tradeType: z.ZodString;
|
|
1174
1237
|
takerOrderHash: z.ZodString;
|
|
1175
1238
|
builder: z.ZodString;
|
|
1176
|
-
market: z.ZodString
|
|
1239
|
+
market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
|
|
1177
1240
|
assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
|
|
1178
1241
|
side: z.ZodEnum<typeof OrderSide>;
|
|
1179
1242
|
size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1193,6 +1256,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1193
1256
|
createdAt: z.ZodOptional<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>>]>>;
|
|
1194
1257
|
updatedAt: z.ZodOptional<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>>]>>;
|
|
1195
1258
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1259
|
+
conditionId: CtfConditionId;
|
|
1196
1260
|
tokenId: TokenId;
|
|
1197
1261
|
errMsg: string | null | undefined;
|
|
1198
1262
|
matchedAt: IsoDateTimeString;
|
|
@@ -1200,7 +1264,6 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1200
1264
|
tradeType: string;
|
|
1201
1265
|
takerOrderHash: string;
|
|
1202
1266
|
builder: string;
|
|
1203
|
-
market: string;
|
|
1204
1267
|
side: OrderSide;
|
|
1205
1268
|
size: DecimalString;
|
|
1206
1269
|
sizeUsdc: DecimalString;
|
|
@@ -1221,7 +1284,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1221
1284
|
tradeType: string;
|
|
1222
1285
|
takerOrderHash: string;
|
|
1223
1286
|
builder: string;
|
|
1224
|
-
market:
|
|
1287
|
+
market: CtfConditionId;
|
|
1225
1288
|
assetId: TokenId;
|
|
1226
1289
|
side: OrderSide;
|
|
1227
1290
|
size: DecimalString;
|
|
@@ -1246,6 +1309,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1246
1309
|
limit: number;
|
|
1247
1310
|
count: number;
|
|
1248
1311
|
data: {
|
|
1312
|
+
conditionId: CtfConditionId;
|
|
1249
1313
|
tokenId: TokenId;
|
|
1250
1314
|
errMsg: string | null | undefined;
|
|
1251
1315
|
matchedAt: IsoDateTimeString;
|
|
@@ -1253,7 +1317,6 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1253
1317
|
tradeType: string;
|
|
1254
1318
|
takerOrderHash: string;
|
|
1255
1319
|
builder: string;
|
|
1256
|
-
market: string;
|
|
1257
1320
|
side: OrderSide;
|
|
1258
1321
|
size: DecimalString;
|
|
1259
1322
|
sizeUsdc: DecimalString;
|
|
@@ -1275,6 +1338,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1275
1338
|
count: number;
|
|
1276
1339
|
next_cursor: string;
|
|
1277
1340
|
data: {
|
|
1341
|
+
conditionId: CtfConditionId;
|
|
1278
1342
|
tokenId: TokenId;
|
|
1279
1343
|
errMsg: string | null | undefined;
|
|
1280
1344
|
matchedAt: IsoDateTimeString;
|
|
@@ -1282,7 +1346,6 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1282
1346
|
tradeType: string;
|
|
1283
1347
|
takerOrderHash: string;
|
|
1284
1348
|
builder: string;
|
|
1285
|
-
market: string;
|
|
1286
1349
|
side: OrderSide;
|
|
1287
1350
|
size: DecimalString;
|
|
1288
1351
|
sizeUsdc: DecimalString;
|
|
@@ -1325,14 +1388,14 @@ type BuilderFeeRates = z.infer<typeof BuilderFeeRatesSchema>;
|
|
|
1325
1388
|
type FetchBuilderFeeRatesResponse = z.infer<typeof FetchBuilderFeeRatesResponseSchema>;
|
|
1326
1389
|
|
|
1327
1390
|
declare const CancelOrdersResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
1328
|
-
canceled: z.ZodArray<z.ZodString
|
|
1329
|
-
not_canceled: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1391
|
+
canceled: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>>;
|
|
1392
|
+
not_canceled: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>, z.ZodString>;
|
|
1330
1393
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1331
|
-
canceled:
|
|
1332
|
-
notCanceled: Record<
|
|
1394
|
+
canceled: OrderId[];
|
|
1395
|
+
notCanceled: Record<OrderId, string>;
|
|
1333
1396
|
}, {
|
|
1334
|
-
canceled:
|
|
1335
|
-
not_canceled: Record<
|
|
1397
|
+
canceled: OrderId[];
|
|
1398
|
+
not_canceled: Record<OrderId, string>;
|
|
1336
1399
|
}>>;
|
|
1337
1400
|
type CancelOrdersResponse = z.infer<typeof CancelOrdersResponseSchema>;
|
|
1338
1401
|
|
|
@@ -1348,21 +1411,21 @@ declare const MidpointSchema: z.ZodObject<{
|
|
|
1348
1411
|
mid: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1349
1412
|
}, z.core.$strip>;
|
|
1350
1413
|
type Midpoint = z.infer<typeof MidpointSchema>;
|
|
1351
|
-
declare const MidpointsSchema: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1414
|
+
declare const MidpointsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1352
1415
|
type Midpoints = z.infer<typeof MidpointsSchema>;
|
|
1353
1416
|
declare const PriceSchema: z.ZodObject<{
|
|
1354
1417
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1355
1418
|
}, z.core.$strip>;
|
|
1356
1419
|
type Price = z.infer<typeof PriceSchema>;
|
|
1357
|
-
declare const PricesBySideSchema: z.ZodRecord<z.ZodEnum<typeof OrderSide
|
|
1420
|
+
declare const PricesBySideSchema: z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1358
1421
|
type PricesBySide = z.infer<typeof PricesBySideSchema>;
|
|
1359
|
-
declare const PricesSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<typeof OrderSide
|
|
1422
|
+
declare const PricesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1360
1423
|
type Prices = z.infer<typeof PricesSchema>;
|
|
1361
1424
|
declare const SpreadSchema: z.ZodObject<{
|
|
1362
1425
|
spread: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
1363
1426
|
}, z.core.$strip>;
|
|
1364
1427
|
type Spread = z.infer<typeof SpreadSchema>;
|
|
1365
|
-
declare const SpreadsSchema: z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1428
|
+
declare const SpreadsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
1366
1429
|
type Spreads = z.infer<typeof SpreadsSchema>;
|
|
1367
1430
|
declare const LastTradePriceSchema: z.ZodObject<{
|
|
1368
1431
|
price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
@@ -1558,7 +1621,8 @@ type OrderBookHash = string & {
|
|
|
1558
1621
|
readonly __tag: 'OrderBookHash';
|
|
1559
1622
|
};
|
|
1560
1623
|
type OrderBook = {
|
|
1561
|
-
market
|
|
1624
|
+
/** CTF condition id for the market this book belongs to. */
|
|
1625
|
+
conditionId: CtfConditionId;
|
|
1562
1626
|
tokenId: TokenId;
|
|
1563
1627
|
timestamp?: EpochMilliseconds | null;
|
|
1564
1628
|
/** Bid levels in ascending price order, lowest bid first. */
|
|
@@ -1594,12 +1658,12 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1594
1658
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1595
1659
|
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1596
1660
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1661
|
+
conditionId: CtfConditionId;
|
|
1597
1662
|
tokenId: TokenId;
|
|
1598
1663
|
minOrderSize: DecimalString;
|
|
1599
1664
|
tickSize: DecimalString;
|
|
1600
1665
|
negRisk: boolean;
|
|
1601
1666
|
lastTradePrice: DecimalString | null | undefined;
|
|
1602
|
-
market: CtfConditionId;
|
|
1603
1667
|
bids: {
|
|
1604
1668
|
price: DecimalString;
|
|
1605
1669
|
size: DecimalString;
|
|
@@ -1646,12 +1710,12 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1646
1710
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1647
1711
|
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1648
1712
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1713
|
+
conditionId: CtfConditionId;
|
|
1649
1714
|
tokenId: TokenId;
|
|
1650
1715
|
minOrderSize: DecimalString;
|
|
1651
1716
|
tickSize: DecimalString;
|
|
1652
1717
|
negRisk: boolean;
|
|
1653
1718
|
lastTradePrice: DecimalString | null | undefined;
|
|
1654
|
-
market: CtfConditionId;
|
|
1655
1719
|
bids: {
|
|
1656
1720
|
price: DecimalString;
|
|
1657
1721
|
size: DecimalString;
|
|
@@ -1698,12 +1762,12 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1698
1762
|
last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
|
|
1699
1763
|
hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
|
|
1700
1764
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1765
|
+
conditionId: CtfConditionId;
|
|
1701
1766
|
tokenId: TokenId;
|
|
1702
1767
|
minOrderSize: DecimalString;
|
|
1703
1768
|
tickSize: DecimalString;
|
|
1704
1769
|
negRisk: boolean;
|
|
1705
1770
|
lastTradePrice: DecimalString | null | undefined;
|
|
1706
|
-
market: CtfConditionId;
|
|
1707
1771
|
bids: {
|
|
1708
1772
|
price: DecimalString;
|
|
1709
1773
|
size: DecimalString;
|
|
@@ -1735,9 +1799,15 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
1735
1799
|
type OrderBooks = OrderBook[];
|
|
1736
1800
|
type FetchOrderBookResponse = OrderBook;
|
|
1737
1801
|
|
|
1802
|
+
/**
|
|
1803
|
+
* Placement outcome of an accepted order.
|
|
1804
|
+
*/
|
|
1738
1805
|
declare enum OrderPostStatus {
|
|
1806
|
+
/** The order rests on the book without matching. */
|
|
1739
1807
|
LIVE = "live",
|
|
1808
|
+
/** The order matched, fully or partially, at placement. */
|
|
1740
1809
|
MATCHED = "matched",
|
|
1810
|
+
/** The market imposes a matching delay; the order is queued. */
|
|
1741
1811
|
DELAYED = "delayed"
|
|
1742
1812
|
}
|
|
1743
1813
|
declare const OrderPostStatusSchema: z.ZodEnum<typeof OrderPostStatus>;
|
|
@@ -1753,21 +1823,50 @@ declare enum OrderResponseErrorCode {
|
|
|
1753
1823
|
UNKNOWN = "unknown"
|
|
1754
1824
|
}
|
|
1755
1825
|
declare const OrderResponseErrorCodeSchema: z.ZodEnum<typeof OrderResponseErrorCode>;
|
|
1826
|
+
/**
|
|
1827
|
+
* A successfully placed order.
|
|
1828
|
+
*/
|
|
1756
1829
|
type AcceptedOrderResponse = {
|
|
1757
1830
|
ok: true;
|
|
1831
|
+
/** Unique identifier of the placed order. */
|
|
1758
1832
|
orderId: string;
|
|
1833
|
+
/** Placement outcome. Fills only exist when the status is `matched`. */
|
|
1759
1834
|
status: OrderPostStatus;
|
|
1835
|
+
/** Amount of the maker asset committed by fills at placement. `'0'` when the order did not match. */
|
|
1760
1836
|
makingAmount: DecimalString;
|
|
1837
|
+
/** Amount of the taker asset received by fills at placement. `'0'` when the order did not match. */
|
|
1761
1838
|
takingAmount: DecimalString;
|
|
1839
|
+
/**
|
|
1840
|
+
* Settlement transaction hashes for fills that occurred at placement.
|
|
1841
|
+
* Populated on a best-effort basis: settlement happens asynchronously, so
|
|
1842
|
+
* this can be empty even when the order matched. Follow the order's trades
|
|
1843
|
+
* to obtain hashes reliably.
|
|
1844
|
+
*/
|
|
1762
1845
|
transactionsHashes: TxHash[];
|
|
1846
|
+
/**
|
|
1847
|
+
* Identifiers of the trades created by fills at placement. Empty when the
|
|
1848
|
+
* order did not match. Later fills of a resting order create new trades
|
|
1849
|
+
* that are not listed here.
|
|
1850
|
+
*/
|
|
1763
1851
|
tradeIds: string[];
|
|
1764
1852
|
};
|
|
1853
|
+
/**
|
|
1854
|
+
* An order the venue refused to place.
|
|
1855
|
+
*/
|
|
1765
1856
|
type RejectedOrderResponse = {
|
|
1766
1857
|
ok: false;
|
|
1858
|
+
/** Machine-readable rejection reason. */
|
|
1767
1859
|
code: OrderResponseErrorCode;
|
|
1860
|
+
/** Human-readable rejection message. */
|
|
1768
1861
|
message: string;
|
|
1769
1862
|
};
|
|
1863
|
+
/**
|
|
1864
|
+
* Result of posting an order, discriminated on `ok`.
|
|
1865
|
+
*/
|
|
1770
1866
|
type OrderResponse = AcceptedOrderResponse | RejectedOrderResponse;
|
|
1867
|
+
/**
|
|
1868
|
+
* Results of posting a batch of orders, in request order.
|
|
1869
|
+
*/
|
|
1771
1870
|
type OrderResponses = OrderResponse[];
|
|
1772
1871
|
declare const AcceptedOrderResponseSchema: z.ZodObject<{
|
|
1773
1872
|
ok: z.ZodLiteral<true>;
|