@polymarket/bindings 0.1.0-beta.9 → 0.1.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-2VUWIHOR.js +2 -0
- package/dist/chunk-2VUWIHOR.js.map +1 -0
- package/dist/chunk-667TIILD.js +2 -0
- package/dist/{chunk-GYP7YNXL.js.map → chunk-667TIILD.js.map} +1 -1
- package/dist/chunk-D6QJEBYH.js +2 -0
- package/dist/chunk-D6QJEBYH.js.map +1 -0
- package/dist/clob/index.d.ts +110 -46
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- 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 +13 -9
- package/dist/index.js +1 -1
- package/dist/{orders-B7JX0nMz.d.ts → orders-mGd3XVG1.d.ts} +429 -1
- package/dist/perps/index.d.ts +288 -3
- package/dist/perps/index.js +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/rfq.d.ts +15 -40
- package/dist/rfq.js +1 -1
- package/dist/rfq.js.map +1 -1
- package/dist/subscriptions/index.d.ts +371 -67
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +2 -2
- 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
|
@@ -6,54 +6,148 @@ import { z } from 'zod';
|
|
|
6
6
|
type Tagged<T, Tag extends string> = T & {
|
|
7
7
|
readonly __tag: Tag;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
11
|
+
*/
|
|
9
12
|
type PerpsInstrumentId = Tagged<number, 'PerpsInstrumentId'>;
|
|
13
|
+
/**
|
|
14
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
15
|
+
*/
|
|
10
16
|
type PerpsOrderId = Tagged<number, 'PerpsOrderId'>;
|
|
17
|
+
/**
|
|
18
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
19
|
+
*/
|
|
11
20
|
type PerpsClientOrderId = Tagged<string, 'PerpsClientOrderId'>;
|
|
21
|
+
/**
|
|
22
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
23
|
+
*/
|
|
12
24
|
type PerpsTradeId = Tagged<number, 'PerpsTradeId'>;
|
|
25
|
+
/**
|
|
26
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
27
|
+
*/
|
|
13
28
|
type PerpsWithdrawalId = Tagged<number, 'PerpsWithdrawalId'>;
|
|
29
|
+
/**
|
|
30
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
31
|
+
*/
|
|
14
32
|
type PerpsInternalTransferId = Tagged<number, 'PerpsInternalTransferId'>;
|
|
33
|
+
/**
|
|
34
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
35
|
+
*/
|
|
36
|
+
type PerpsEntityId = Tagged<number, 'PerpsEntityId'>;
|
|
37
|
+
/**
|
|
38
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
39
|
+
*/
|
|
15
40
|
type PerpsFundingInterval = `${number}h`;
|
|
41
|
+
/**
|
|
42
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
43
|
+
*/
|
|
16
44
|
declare const PerpsInstrumentIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
45
|
+
/**
|
|
46
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
47
|
+
*/
|
|
17
48
|
declare const PerpsOrderIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
49
|
+
/**
|
|
50
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
51
|
+
*/
|
|
18
52
|
declare const PerpsClientOrderIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsClientOrderId, string>>;
|
|
53
|
+
/**
|
|
54
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
55
|
+
*/
|
|
19
56
|
declare const PerpsTradeIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
57
|
+
/**
|
|
58
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
59
|
+
*/
|
|
20
60
|
declare const PerpsWithdrawalIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
|
|
61
|
+
/**
|
|
62
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
63
|
+
*/
|
|
21
64
|
declare const PerpsInternalTransferIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
|
|
65
|
+
/**
|
|
66
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
67
|
+
*/
|
|
68
|
+
declare const PerpsEntityIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsEntityId, number>>;
|
|
69
|
+
/**
|
|
70
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
71
|
+
*/
|
|
22
72
|
declare const PerpsFundingIntervalSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`${number}h`, string>>;
|
|
73
|
+
/**
|
|
74
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
75
|
+
*/
|
|
23
76
|
declare const PerpsDecimalInputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
|
|
77
|
+
/**
|
|
78
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
79
|
+
*/
|
|
24
80
|
type PerpsDecimalInput = z.input<typeof PerpsDecimalInputSchema>;
|
|
81
|
+
/**
|
|
82
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
83
|
+
*/
|
|
25
84
|
declare enum PerpsInstrumentType {
|
|
26
85
|
Perpetual = "perpetual"
|
|
27
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
89
|
+
*/
|
|
28
90
|
declare enum PerpsInstrumentCategory {
|
|
29
91
|
Equity = "equity",
|
|
30
92
|
Commodity = "commodity",
|
|
31
93
|
Index = "index",
|
|
32
94
|
Crypto = "crypto"
|
|
33
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
98
|
+
*/
|
|
34
99
|
declare enum PerpsSide {
|
|
35
100
|
Long = "long",
|
|
36
101
|
Short = "short"
|
|
37
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
105
|
+
*/
|
|
38
106
|
declare enum PerpsTimeInForce {
|
|
39
107
|
GTC = "gtc",
|
|
40
108
|
IOC = "ioc",
|
|
41
109
|
FOK = "fok"
|
|
42
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
113
|
+
*/
|
|
114
|
+
declare enum PerpsTpSlKind {
|
|
115
|
+
TakeProfit = "tp",
|
|
116
|
+
StopLoss = "sl"
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
120
|
+
*/
|
|
121
|
+
declare enum PerpsTpSlScope {
|
|
122
|
+
Order = "order",
|
|
123
|
+
Position = "position"
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
127
|
+
*/
|
|
43
128
|
declare enum PerpsDepositStatus {
|
|
44
129
|
Pending = "pending",
|
|
45
130
|
Confirmed = "confirmed",
|
|
46
131
|
Removed = "removed"
|
|
47
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
135
|
+
*/
|
|
48
136
|
declare enum PerpsWithdrawalStatus {
|
|
49
137
|
Pending = "pending",
|
|
50
138
|
Confirmed = "confirmed",
|
|
51
139
|
Removed = "removed"
|
|
52
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
143
|
+
*/
|
|
53
144
|
declare enum PerpsInternalTransferDirection {
|
|
54
145
|
In = "in",
|
|
55
146
|
Out = "out"
|
|
56
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
150
|
+
*/
|
|
57
151
|
declare enum PerpsKlineInterval {
|
|
58
152
|
OneSecond = "1s",
|
|
59
153
|
OneMinute = "1m",
|
|
@@ -64,41 +158,115 @@ declare enum PerpsKlineInterval {
|
|
|
64
158
|
OneDay = "1d",
|
|
65
159
|
OneWeek = "1w"
|
|
66
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
163
|
+
*/
|
|
67
164
|
declare enum PerpsPnlInterval {
|
|
68
165
|
OneHour = "1h",
|
|
69
166
|
FourHours = "4h",
|
|
70
167
|
OneDay = "1d",
|
|
71
168
|
OneWeek = "1w"
|
|
72
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
172
|
+
*/
|
|
73
173
|
declare const PerpsInstrumentTypeSchema: z.ZodEnum<typeof PerpsInstrumentType>;
|
|
174
|
+
/**
|
|
175
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
176
|
+
*/
|
|
74
177
|
declare const PerpsInstrumentCategorySchema: z.ZodEnum<typeof PerpsInstrumentCategory>;
|
|
178
|
+
/**
|
|
179
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
180
|
+
*/
|
|
75
181
|
declare const PerpsSideSchema: z.ZodEnum<typeof PerpsSide>;
|
|
182
|
+
/**
|
|
183
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
184
|
+
*/
|
|
76
185
|
declare const PerpsTimeInForceSchema: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
186
|
+
/**
|
|
187
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
188
|
+
*/
|
|
189
|
+
declare const PerpsTpSlKindSchema: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
190
|
+
/**
|
|
191
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
192
|
+
*/
|
|
193
|
+
declare const PerpsTpSlScopeSchema: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
194
|
+
/**
|
|
195
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
196
|
+
*/
|
|
77
197
|
declare const PerpsDepositStatusSchema: z.ZodEnum<typeof PerpsDepositStatus>;
|
|
198
|
+
/**
|
|
199
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
200
|
+
*/
|
|
78
201
|
declare const PerpsWithdrawalStatusSchema: z.ZodEnum<typeof PerpsWithdrawalStatus>;
|
|
202
|
+
/**
|
|
203
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
204
|
+
*/
|
|
79
205
|
declare const PerpsInternalTransferDirectionSchema: z.ZodEnum<typeof PerpsInternalTransferDirection>;
|
|
206
|
+
/**
|
|
207
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
208
|
+
*/
|
|
80
209
|
declare const PerpsKlineIntervalSchema: z.ZodEnum<typeof PerpsKlineInterval>;
|
|
210
|
+
/**
|
|
211
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
212
|
+
*/
|
|
81
213
|
declare const PerpsPnlIntervalSchema: z.ZodEnum<typeof PerpsPnlInterval>;
|
|
214
|
+
/**
|
|
215
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
216
|
+
*/
|
|
82
217
|
declare const PerpsAssetSchema: z.ZodString;
|
|
218
|
+
/**
|
|
219
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
220
|
+
*/
|
|
83
221
|
declare const PerpsTxHashSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
|
|
222
|
+
/**
|
|
223
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
224
|
+
*/
|
|
84
225
|
declare const PerpsDataResponseSchema: <T extends z.ZodType>(itemSchema: T) => z.ZodObject<{
|
|
85
226
|
data: z.ZodArray<T>;
|
|
86
227
|
more: z.ZodBoolean;
|
|
87
228
|
}, z.core.$strip>;
|
|
229
|
+
/**
|
|
230
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
231
|
+
*/
|
|
88
232
|
type PerpsCredentials = {
|
|
89
233
|
proxy: EvmAddress;
|
|
90
234
|
privateKey: PrivateKey;
|
|
91
235
|
secret: string;
|
|
92
236
|
expiresAt: number;
|
|
93
237
|
};
|
|
238
|
+
/**
|
|
239
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
240
|
+
*/
|
|
94
241
|
type PerpsDepositAmount = BaseUnits;
|
|
242
|
+
/**
|
|
243
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
244
|
+
*/
|
|
95
245
|
type PerpsWithdrawalAmount = BaseUnits;
|
|
246
|
+
/**
|
|
247
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
248
|
+
*/
|
|
96
249
|
type PerpsTxHash = TxHash;
|
|
250
|
+
/**
|
|
251
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
252
|
+
*/
|
|
97
253
|
type PerpsDecimal = DecimalString;
|
|
254
|
+
/**
|
|
255
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
256
|
+
*/
|
|
98
257
|
declare function perpsDecimal(value: string | number): DecimalString;
|
|
258
|
+
/**
|
|
259
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
260
|
+
*/
|
|
99
261
|
declare function perpsBaseUnits(value: string): BaseUnits;
|
|
262
|
+
/**
|
|
263
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
264
|
+
*/
|
|
100
265
|
declare function decimalString(value: string): DecimalString;
|
|
101
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
269
|
+
*/
|
|
102
270
|
declare enum PerpsOrderStatus {
|
|
103
271
|
Accepted = "accepted",
|
|
104
272
|
Open = "open",
|
|
@@ -126,18 +294,62 @@ declare enum PerpsOrderStatus {
|
|
|
126
294
|
ReduceOnlyInvalidAtTrigger = "reduce_only_invalid_at_trigger",
|
|
127
295
|
Expired = "expired"
|
|
128
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
299
|
+
*/
|
|
300
|
+
declare const PerpsTpSlOrderFieldsSchema: z.ZodPipe<z.ZodObject<{
|
|
301
|
+
kind: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
302
|
+
scope: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
303
|
+
trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
304
|
+
parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
305
|
+
armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
306
|
+
slip_bps: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
308
|
+
kind: PerpsTpSlKind;
|
|
309
|
+
scope: PerpsTpSlScope;
|
|
310
|
+
triggerPrice: DecimalString;
|
|
311
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
312
|
+
armedQuantity: DecimalString | undefined;
|
|
313
|
+
slippageBps: number | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
kind: PerpsTpSlKind;
|
|
316
|
+
scope: PerpsTpSlScope;
|
|
317
|
+
trp: DecimalString;
|
|
318
|
+
parent_oid?: PerpsOrderId | undefined;
|
|
319
|
+
armed_qty?: DecimalString | undefined;
|
|
320
|
+
slip_bps?: number | undefined;
|
|
321
|
+
}>>;
|
|
322
|
+
/**
|
|
323
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
324
|
+
*/
|
|
325
|
+
type PerpsTpSlOrderFields = z.infer<typeof PerpsTpSlOrderFieldsSchema>;
|
|
326
|
+
/**
|
|
327
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
328
|
+
*/
|
|
129
329
|
declare const PerpsOrderStatusSchema: z.ZodEnum<typeof PerpsOrderStatus>;
|
|
330
|
+
/**
|
|
331
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
332
|
+
*/
|
|
130
333
|
declare const PerpsCommandStatusSchema: z.ZodEnum<{
|
|
131
334
|
ok: "ok";
|
|
132
335
|
err: "err";
|
|
133
336
|
}>;
|
|
337
|
+
/**
|
|
338
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
339
|
+
*/
|
|
134
340
|
declare const PerpsCommandAckSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
135
341
|
status: z.ZodLiteral<"ok">;
|
|
136
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
137
343
|
status: z.ZodLiteral<"err">;
|
|
138
344
|
error: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string | undefined>>;
|
|
139
345
|
}, z.core.$strip>], "status">;
|
|
346
|
+
/**
|
|
347
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
348
|
+
*/
|
|
140
349
|
type PerpsCommandAck = z.infer<typeof PerpsCommandAckSchema>;
|
|
350
|
+
/**
|
|
351
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
352
|
+
*/
|
|
141
353
|
declare const PerpsPostOrderAckSchema: z.ZodPipe<z.ZodObject<{
|
|
142
354
|
status: z.ZodEnum<{
|
|
143
355
|
ok: "ok";
|
|
@@ -162,7 +374,13 @@ declare const PerpsPostOrderAckSchema: z.ZodPipe<z.ZodObject<{
|
|
|
162
374
|
coid?: PerpsClientOrderId | undefined;
|
|
163
375
|
error?: string | undefined;
|
|
164
376
|
}>>;
|
|
377
|
+
/**
|
|
378
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
379
|
+
*/
|
|
165
380
|
type PerpsPostOrderAck = z.infer<typeof PerpsPostOrderAckSchema>;
|
|
381
|
+
/**
|
|
382
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
383
|
+
*/
|
|
166
384
|
declare const PerpsCancelOrderResultSchema: z.ZodPipe<z.ZodObject<{
|
|
167
385
|
status: z.ZodEnum<{
|
|
168
386
|
ok: "ok";
|
|
@@ -187,7 +405,23 @@ declare const PerpsCancelOrderResultSchema: z.ZodPipe<z.ZodObject<{
|
|
|
187
405
|
coid?: PerpsClientOrderId | undefined;
|
|
188
406
|
error?: string | undefined;
|
|
189
407
|
}>>;
|
|
408
|
+
/**
|
|
409
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
410
|
+
*/
|
|
190
411
|
type PerpsCancelOrderResult = z.infer<typeof PerpsCancelOrderResultSchema>;
|
|
412
|
+
/**
|
|
413
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
414
|
+
*/
|
|
415
|
+
declare const PerpsCancelAllOrdersResponseSchema: z.ZodObject<{
|
|
416
|
+
status: z.ZodLiteral<"ok">;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
/**
|
|
419
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
420
|
+
*/
|
|
421
|
+
type PerpsCancelAllOrdersResponse = z.infer<typeof PerpsCancelAllOrdersResponseSchema>;
|
|
422
|
+
/**
|
|
423
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
424
|
+
*/
|
|
191
425
|
declare const PerpsUpdateLeverageResultSchema: z.ZodPipe<z.ZodObject<{
|
|
192
426
|
status: z.ZodLiteral<"ok">;
|
|
193
427
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -204,7 +438,13 @@ declare const PerpsUpdateLeverageResultSchema: z.ZodPipe<z.ZodObject<{
|
|
|
204
438
|
leverage: number;
|
|
205
439
|
cross: boolean;
|
|
206
440
|
}>>;
|
|
441
|
+
/**
|
|
442
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
443
|
+
*/
|
|
207
444
|
type PerpsUpdateLeverageResult = z.infer<typeof PerpsUpdateLeverageResultSchema>;
|
|
445
|
+
/**
|
|
446
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
447
|
+
*/
|
|
208
448
|
declare const PerpsOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
209
449
|
order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
210
450
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -213,12 +453,35 @@ declare const PerpsOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
213
453
|
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
214
454
|
tif: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
215
455
|
post_only: z.ZodBoolean;
|
|
456
|
+
ro: z.ZodBoolean;
|
|
216
457
|
status: z.ZodEnum<typeof PerpsOrderStatus>;
|
|
217
458
|
resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
218
459
|
filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
219
460
|
created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
220
461
|
updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
221
462
|
client_order_id: z.ZodOptional<z.ZodString>;
|
|
463
|
+
tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
464
|
+
kind: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
465
|
+
scope: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
466
|
+
trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
467
|
+
parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
468
|
+
armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
469
|
+
slip_bps: z.ZodOptional<z.ZodNumber>;
|
|
470
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
471
|
+
kind: PerpsTpSlKind;
|
|
472
|
+
scope: PerpsTpSlScope;
|
|
473
|
+
triggerPrice: DecimalString;
|
|
474
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
475
|
+
armedQuantity: DecimalString | undefined;
|
|
476
|
+
slippageBps: number | undefined;
|
|
477
|
+
}, {
|
|
478
|
+
kind: PerpsTpSlKind;
|
|
479
|
+
scope: PerpsTpSlScope;
|
|
480
|
+
trp: DecimalString;
|
|
481
|
+
parent_oid?: PerpsOrderId | undefined;
|
|
482
|
+
armed_qty?: DecimalString | undefined;
|
|
483
|
+
slip_bps?: number | undefined;
|
|
484
|
+
}>>>>;
|
|
222
485
|
}, z.core.$strip>, z.ZodTransform<{
|
|
223
486
|
id: PerpsOrderId;
|
|
224
487
|
instrumentId: PerpsInstrumentId;
|
|
@@ -227,12 +490,21 @@ declare const PerpsOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
227
490
|
quantity: DecimalString;
|
|
228
491
|
timeInForce: PerpsTimeInForce;
|
|
229
492
|
postOnly: boolean;
|
|
493
|
+
reduceOnly: boolean;
|
|
230
494
|
status: PerpsOrderStatus;
|
|
231
495
|
restingQuantity: DecimalString;
|
|
232
496
|
filledQuantity: DecimalString;
|
|
233
497
|
createdTimestamp: EpochMilliseconds;
|
|
234
498
|
updatedTimestamp: EpochMilliseconds;
|
|
235
499
|
clientOrderId: string | undefined;
|
|
500
|
+
tpSl: {
|
|
501
|
+
kind: PerpsTpSlKind;
|
|
502
|
+
scope: PerpsTpSlScope;
|
|
503
|
+
triggerPrice: DecimalString;
|
|
504
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
505
|
+
armedQuantity: DecimalString | undefined;
|
|
506
|
+
slippageBps: number | undefined;
|
|
507
|
+
} | undefined;
|
|
236
508
|
}, {
|
|
237
509
|
order_id: PerpsOrderId;
|
|
238
510
|
instrument_id: PerpsInstrumentId;
|
|
@@ -241,14 +513,29 @@ declare const PerpsOrderSchema: z.ZodPipe<z.ZodObject<{
|
|
|
241
513
|
quantity: DecimalString;
|
|
242
514
|
tif: PerpsTimeInForce;
|
|
243
515
|
post_only: boolean;
|
|
516
|
+
ro: boolean;
|
|
244
517
|
status: PerpsOrderStatus;
|
|
245
518
|
resting_quantity: DecimalString;
|
|
246
519
|
filled_quantity: DecimalString;
|
|
247
520
|
created_timestamp: EpochMilliseconds;
|
|
248
521
|
updated_timestamp: EpochMilliseconds;
|
|
249
522
|
client_order_id?: string | undefined;
|
|
523
|
+
tpsl?: {
|
|
524
|
+
kind: PerpsTpSlKind;
|
|
525
|
+
scope: PerpsTpSlScope;
|
|
526
|
+
triggerPrice: DecimalString;
|
|
527
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
528
|
+
armedQuantity: DecimalString | undefined;
|
|
529
|
+
slippageBps: number | undefined;
|
|
530
|
+
} | null | undefined;
|
|
250
531
|
}>>;
|
|
532
|
+
/**
|
|
533
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
534
|
+
*/
|
|
251
535
|
type PerpsOrder = z.infer<typeof PerpsOrderSchema>;
|
|
536
|
+
/**
|
|
537
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
538
|
+
*/
|
|
252
539
|
declare const FetchPerpsOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
253
540
|
order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
254
541
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -257,12 +544,35 @@ declare const FetchPerpsOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
257
544
|
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
258
545
|
tif: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
259
546
|
post_only: z.ZodBoolean;
|
|
547
|
+
ro: z.ZodBoolean;
|
|
260
548
|
status: z.ZodEnum<typeof PerpsOrderStatus>;
|
|
261
549
|
resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
262
550
|
filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
263
551
|
created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
264
552
|
updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
265
553
|
client_order_id: z.ZodOptional<z.ZodString>;
|
|
554
|
+
tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
555
|
+
kind: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
556
|
+
scope: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
557
|
+
trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
558
|
+
parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
559
|
+
armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
560
|
+
slip_bps: z.ZodOptional<z.ZodNumber>;
|
|
561
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
562
|
+
kind: PerpsTpSlKind;
|
|
563
|
+
scope: PerpsTpSlScope;
|
|
564
|
+
triggerPrice: DecimalString;
|
|
565
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
566
|
+
armedQuantity: DecimalString | undefined;
|
|
567
|
+
slippageBps: number | undefined;
|
|
568
|
+
}, {
|
|
569
|
+
kind: PerpsTpSlKind;
|
|
570
|
+
scope: PerpsTpSlScope;
|
|
571
|
+
trp: DecimalString;
|
|
572
|
+
parent_oid?: PerpsOrderId | undefined;
|
|
573
|
+
armed_qty?: DecimalString | undefined;
|
|
574
|
+
slip_bps?: number | undefined;
|
|
575
|
+
}>>>>;
|
|
266
576
|
}, z.core.$strip>, z.ZodTransform<{
|
|
267
577
|
id: PerpsOrderId;
|
|
268
578
|
instrumentId: PerpsInstrumentId;
|
|
@@ -271,12 +581,21 @@ declare const FetchPerpsOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
271
581
|
quantity: DecimalString;
|
|
272
582
|
timeInForce: PerpsTimeInForce;
|
|
273
583
|
postOnly: boolean;
|
|
584
|
+
reduceOnly: boolean;
|
|
274
585
|
status: PerpsOrderStatus;
|
|
275
586
|
restingQuantity: DecimalString;
|
|
276
587
|
filledQuantity: DecimalString;
|
|
277
588
|
createdTimestamp: EpochMilliseconds;
|
|
278
589
|
updatedTimestamp: EpochMilliseconds;
|
|
279
590
|
clientOrderId: string | undefined;
|
|
591
|
+
tpSl: {
|
|
592
|
+
kind: PerpsTpSlKind;
|
|
593
|
+
scope: PerpsTpSlScope;
|
|
594
|
+
triggerPrice: DecimalString;
|
|
595
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
596
|
+
armedQuantity: DecimalString | undefined;
|
|
597
|
+
slippageBps: number | undefined;
|
|
598
|
+
} | undefined;
|
|
280
599
|
}, {
|
|
281
600
|
order_id: PerpsOrderId;
|
|
282
601
|
instrument_id: PerpsInstrumentId;
|
|
@@ -285,13 +604,25 @@ declare const FetchPerpsOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
|
285
604
|
quantity: DecimalString;
|
|
286
605
|
tif: PerpsTimeInForce;
|
|
287
606
|
post_only: boolean;
|
|
607
|
+
ro: boolean;
|
|
288
608
|
status: PerpsOrderStatus;
|
|
289
609
|
resting_quantity: DecimalString;
|
|
290
610
|
filled_quantity: DecimalString;
|
|
291
611
|
created_timestamp: EpochMilliseconds;
|
|
292
612
|
updated_timestamp: EpochMilliseconds;
|
|
293
613
|
client_order_id?: string | undefined;
|
|
614
|
+
tpsl?: {
|
|
615
|
+
kind: PerpsTpSlKind;
|
|
616
|
+
scope: PerpsTpSlScope;
|
|
617
|
+
triggerPrice: DecimalString;
|
|
618
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
619
|
+
armedQuantity: DecimalString | undefined;
|
|
620
|
+
slippageBps: number | undefined;
|
|
621
|
+
} | null | undefined;
|
|
294
622
|
}>>>;
|
|
623
|
+
/**
|
|
624
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
625
|
+
*/
|
|
295
626
|
declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
296
627
|
order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
297
628
|
instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -300,12 +631,35 @@ declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObje
|
|
|
300
631
|
quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
301
632
|
tif: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
302
633
|
post_only: z.ZodBoolean;
|
|
634
|
+
ro: z.ZodBoolean;
|
|
303
635
|
status: z.ZodEnum<typeof PerpsOrderStatus>;
|
|
304
636
|
resting_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
305
637
|
filled_quantity: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
306
638
|
created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
307
639
|
updated_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
308
640
|
client_order_id: z.ZodOptional<z.ZodString>;
|
|
641
|
+
tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
642
|
+
kind: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
643
|
+
scope: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
644
|
+
trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
645
|
+
parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
646
|
+
armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
647
|
+
slip_bps: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
649
|
+
kind: PerpsTpSlKind;
|
|
650
|
+
scope: PerpsTpSlScope;
|
|
651
|
+
triggerPrice: DecimalString;
|
|
652
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
653
|
+
armedQuantity: DecimalString | undefined;
|
|
654
|
+
slippageBps: number | undefined;
|
|
655
|
+
}, {
|
|
656
|
+
kind: PerpsTpSlKind;
|
|
657
|
+
scope: PerpsTpSlScope;
|
|
658
|
+
trp: DecimalString;
|
|
659
|
+
parent_oid?: PerpsOrderId | undefined;
|
|
660
|
+
armed_qty?: DecimalString | undefined;
|
|
661
|
+
slip_bps?: number | undefined;
|
|
662
|
+
}>>>>;
|
|
309
663
|
}, z.core.$strip>, z.ZodTransform<{
|
|
310
664
|
id: PerpsOrderId;
|
|
311
665
|
instrumentId: PerpsInstrumentId;
|
|
@@ -314,12 +668,21 @@ declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObje
|
|
|
314
668
|
quantity: DecimalString;
|
|
315
669
|
timeInForce: PerpsTimeInForce;
|
|
316
670
|
postOnly: boolean;
|
|
671
|
+
reduceOnly: boolean;
|
|
317
672
|
status: PerpsOrderStatus;
|
|
318
673
|
restingQuantity: DecimalString;
|
|
319
674
|
filledQuantity: DecimalString;
|
|
320
675
|
createdTimestamp: EpochMilliseconds;
|
|
321
676
|
updatedTimestamp: EpochMilliseconds;
|
|
322
677
|
clientOrderId: string | undefined;
|
|
678
|
+
tpSl: {
|
|
679
|
+
kind: PerpsTpSlKind;
|
|
680
|
+
scope: PerpsTpSlScope;
|
|
681
|
+
triggerPrice: DecimalString;
|
|
682
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
683
|
+
armedQuantity: DecimalString | undefined;
|
|
684
|
+
slippageBps: number | undefined;
|
|
685
|
+
} | undefined;
|
|
323
686
|
}, {
|
|
324
687
|
order_id: PerpsOrderId;
|
|
325
688
|
instrument_id: PerpsInstrumentId;
|
|
@@ -328,13 +691,25 @@ declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObje
|
|
|
328
691
|
quantity: DecimalString;
|
|
329
692
|
tif: PerpsTimeInForce;
|
|
330
693
|
post_only: boolean;
|
|
694
|
+
ro: boolean;
|
|
331
695
|
status: PerpsOrderStatus;
|
|
332
696
|
resting_quantity: DecimalString;
|
|
333
697
|
filled_quantity: DecimalString;
|
|
334
698
|
created_timestamp: EpochMilliseconds;
|
|
335
699
|
updated_timestamp: EpochMilliseconds;
|
|
336
700
|
client_order_id?: string | undefined;
|
|
701
|
+
tpsl?: {
|
|
702
|
+
kind: PerpsTpSlKind;
|
|
703
|
+
scope: PerpsTpSlScope;
|
|
704
|
+
triggerPrice: DecimalString;
|
|
705
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
706
|
+
armedQuantity: DecimalString | undefined;
|
|
707
|
+
slippageBps: number | undefined;
|
|
708
|
+
} | null | undefined;
|
|
337
709
|
}>>>;
|
|
710
|
+
/**
|
|
711
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
712
|
+
*/
|
|
338
713
|
declare const PerpsOrderUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
339
714
|
oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
340
715
|
iid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
|
|
@@ -343,12 +718,35 @@ declare const PerpsOrderUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
343
718
|
qty: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
344
719
|
tif: z.ZodEnum<typeof PerpsTimeInForce>;
|
|
345
720
|
po: z.ZodBoolean;
|
|
721
|
+
ro: z.ZodBoolean;
|
|
346
722
|
status: z.ZodEnum<typeof PerpsOrderStatus>;
|
|
347
723
|
rest: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
348
724
|
fill: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
349
725
|
cts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
350
726
|
uts: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
351
727
|
coid: z.ZodOptional<z.ZodString>;
|
|
728
|
+
tpsl: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
729
|
+
kind: z.ZodEnum<typeof PerpsTpSlKind>;
|
|
730
|
+
scope: z.ZodEnum<typeof PerpsTpSlScope>;
|
|
731
|
+
trp: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
732
|
+
parent_oid: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>>;
|
|
733
|
+
armed_qty: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
|
|
734
|
+
slip_bps: z.ZodOptional<z.ZodNumber>;
|
|
735
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
736
|
+
kind: PerpsTpSlKind;
|
|
737
|
+
scope: PerpsTpSlScope;
|
|
738
|
+
triggerPrice: DecimalString;
|
|
739
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
740
|
+
armedQuantity: DecimalString | undefined;
|
|
741
|
+
slippageBps: number | undefined;
|
|
742
|
+
}, {
|
|
743
|
+
kind: PerpsTpSlKind;
|
|
744
|
+
scope: PerpsTpSlScope;
|
|
745
|
+
trp: DecimalString;
|
|
746
|
+
parent_oid?: PerpsOrderId | undefined;
|
|
747
|
+
armed_qty?: DecimalString | undefined;
|
|
748
|
+
slip_bps?: number | undefined;
|
|
749
|
+
}>>>>;
|
|
352
750
|
}, z.core.$strip>, z.ZodTransform<{
|
|
353
751
|
id: PerpsOrderId;
|
|
354
752
|
instrumentId: PerpsInstrumentId;
|
|
@@ -357,12 +755,21 @@ declare const PerpsOrderUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
357
755
|
quantity: DecimalString;
|
|
358
756
|
timeInForce: PerpsTimeInForce;
|
|
359
757
|
postOnly: boolean;
|
|
758
|
+
reduceOnly: boolean;
|
|
360
759
|
status: PerpsOrderStatus;
|
|
361
760
|
restingQuantity: DecimalString;
|
|
362
761
|
filledQuantity: DecimalString;
|
|
363
762
|
createdTimestamp: EpochMilliseconds;
|
|
364
763
|
updatedTimestamp: EpochMilliseconds;
|
|
365
764
|
clientOrderId: string | undefined;
|
|
765
|
+
tpSl: {
|
|
766
|
+
kind: PerpsTpSlKind;
|
|
767
|
+
scope: PerpsTpSlScope;
|
|
768
|
+
triggerPrice: DecimalString;
|
|
769
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
770
|
+
armedQuantity: DecimalString | undefined;
|
|
771
|
+
slippageBps: number | undefined;
|
|
772
|
+
} | undefined;
|
|
366
773
|
}, {
|
|
367
774
|
oid: PerpsOrderId;
|
|
368
775
|
iid: PerpsInstrumentId;
|
|
@@ -371,13 +778,25 @@ declare const PerpsOrderUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
371
778
|
qty: DecimalString;
|
|
372
779
|
tif: PerpsTimeInForce;
|
|
373
780
|
po: boolean;
|
|
781
|
+
ro: boolean;
|
|
374
782
|
status: PerpsOrderStatus;
|
|
375
783
|
rest: DecimalString;
|
|
376
784
|
fill: DecimalString;
|
|
377
785
|
cts: EpochMilliseconds;
|
|
378
786
|
uts: EpochMilliseconds;
|
|
379
787
|
coid?: string | undefined;
|
|
788
|
+
tpsl?: {
|
|
789
|
+
kind: PerpsTpSlKind;
|
|
790
|
+
scope: PerpsTpSlScope;
|
|
791
|
+
triggerPrice: DecimalString;
|
|
792
|
+
parentOrderId: PerpsOrderId | undefined;
|
|
793
|
+
armedQuantity: DecimalString | undefined;
|
|
794
|
+
slippageBps: number | undefined;
|
|
795
|
+
} | null | undefined;
|
|
380
796
|
}>>;
|
|
797
|
+
/**
|
|
798
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
799
|
+
*/
|
|
381
800
|
declare const PerpsAccountFillSchema: z.ZodPipe<z.ZodObject<{
|
|
382
801
|
trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
383
802
|
order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
@@ -427,7 +846,13 @@ declare const PerpsAccountFillSchema: z.ZodPipe<z.ZodObject<{
|
|
|
427
846
|
timestamp: EpochMilliseconds;
|
|
428
847
|
hash?: _polymarket_types.TxHash | undefined;
|
|
429
848
|
}>>;
|
|
849
|
+
/**
|
|
850
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
851
|
+
*/
|
|
430
852
|
type PerpsAccountFill = z.infer<typeof PerpsAccountFillSchema>;
|
|
853
|
+
/**
|
|
854
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
855
|
+
*/
|
|
431
856
|
declare const ListPerpsFillsResponseSchema: z.ZodObject<{
|
|
432
857
|
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
433
858
|
trade_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
@@ -480,6 +905,9 @@ declare const ListPerpsFillsResponseSchema: z.ZodObject<{
|
|
|
480
905
|
}>>>;
|
|
481
906
|
more: z.ZodBoolean;
|
|
482
907
|
}, z.core.$strip>;
|
|
908
|
+
/**
|
|
909
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
910
|
+
*/
|
|
483
911
|
declare const PerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
484
912
|
tid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
|
|
485
913
|
oid: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
|
|
@@ -530,4 +958,4 @@ declare const PerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
530
958
|
coid?: string | undefined;
|
|
531
959
|
}>>;
|
|
532
960
|
|
|
533
|
-
export {
|
|
961
|
+
export { type PerpsPostOrderAck as $, type PerpsDecimal as A, type PerpsDecimalInput as B, PerpsDecimalInputSchema as C, type PerpsDepositAmount as D, PerpsDepositStatusSchema as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsEntityIdSchema as G, type PerpsFundingInterval as H, PerpsFundingIntervalSchema as I, PerpsInstrumentCategorySchema as J, PerpsInstrumentIdSchema as K, ListPerpsFillsResponseSchema as L, PerpsInstrumentTypeSchema as M, PerpsInternalTransferDirectionSchema as N, PerpsInternalTransferIdSchema as O, type PerpsInstrumentId as P, PerpsKlineInterval as Q, PerpsKlineIntervalSchema as R, type PerpsOrder as S, type PerpsOrderId as T, PerpsOrderIdSchema as U, PerpsOrderSchema as V, PerpsOrderStatus as W, PerpsOrderStatusSchema as X, PerpsOrderUpdateSchema as Y, PerpsPnlInterval as Z, PerpsPnlIntervalSchema as _, type PerpsEntityId as a, PerpsPostOrderAckSchema as a0, PerpsSideSchema as a1, PerpsTimeInForce as a2, PerpsTimeInForceSchema as a3, PerpsTpSlKind as a4, PerpsTpSlKindSchema as a5, type PerpsTpSlOrderFields as a6, PerpsTpSlOrderFieldsSchema as a7, PerpsTpSlScope as a8, PerpsTpSlScopeSchema as a9, PerpsTradeIdSchema as aa, type PerpsTxHash as ab, PerpsTxHashSchema as ac, type PerpsUpdateLeverageResult as ad, PerpsUpdateLeverageResultSchema as ae, type PerpsWithdrawalAmount as af, PerpsWithdrawalIdSchema as ag, PerpsWithdrawalStatusSchema as ah, decimalString as ai, perpsBaseUnits as aj, perpsDecimal as ak, PerpsDepositStatus as b, type PerpsWithdrawalId as c, PerpsWithdrawalStatus as d, type PerpsInternalTransferId as e, PerpsInternalTransferDirection as f, PerpsInstrumentType as g, PerpsInstrumentCategory as h, type PerpsTradeId as i, PerpsSide as j, FetchPerpsOrdersResponseSchema as k, type PerpsAccountFill as l, PerpsAccountFillSchema as m, PerpsAccountFillUpdateSchema as n, PerpsAssetSchema as o, type PerpsCancelAllOrdersResponse as p, PerpsCancelAllOrdersResponseSchema as q, type PerpsCancelOrderResult as r, PerpsCancelOrderResultSchema as s, type PerpsClientOrderId as t, PerpsClientOrderIdSchema as u, type PerpsCommandAck as v, PerpsCommandAckSchema as w, PerpsCommandStatusSchema as x, type PerpsCredentials as y, PerpsDataResponseSchema as z };
|