@0xmonaco/types 0.7.7 → 0.7.9

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.
Files changed (81) hide show
  1. package/dist/api/index.d.ts +18 -0
  2. package/dist/api/index.js +6 -0
  3. package/dist/applications/index.d.ts +23 -0
  4. package/dist/applications/index.js +5 -0
  5. package/dist/applications/responses.d.ts +22 -0
  6. package/dist/applications/responses.js +5 -0
  7. package/dist/auth/index.d.ts +81 -0
  8. package/dist/auth/index.js +6 -0
  9. package/dist/auth/responses.d.ts +67 -0
  10. package/dist/auth/responses.js +5 -0
  11. package/dist/contracts/balances.d.ts +43 -0
  12. package/dist/contracts/balances.js +5 -0
  13. package/dist/contracts/index.d.ts +27 -0
  14. package/dist/contracts/index.js +5 -0
  15. package/dist/fees/index.d.ts +39 -0
  16. package/dist/fees/index.js +6 -0
  17. package/dist/fees/responses.d.ts +54 -0
  18. package/dist/fees/responses.js +86 -0
  19. package/dist/index.d.ts +20 -0
  20. package/dist/index.js +21 -0
  21. package/dist/margin-accounts/index.d.ts +110 -0
  22. package/dist/margin-accounts/index.js +0 -0
  23. package/dist/market/index.d.ts +312 -0
  24. package/dist/market/index.js +5 -0
  25. package/dist/positions/index.d.ts +128 -0
  26. package/dist/positions/index.js +0 -0
  27. package/dist/profile/index.d.ts +405 -0
  28. package/dist/profile/index.js +5 -0
  29. package/dist/sdk/index.d.ts +131 -0
  30. package/dist/sdk/index.js +0 -0
  31. package/dist/sdk/network.d.ts +25 -0
  32. package/dist/sdk/network.js +5 -0
  33. package/dist/trading/index.d.ts +136 -0
  34. package/dist/trading/index.js +6 -0
  35. package/dist/trading/orders.d.ts +137 -0
  36. package/dist/trading/orders.js +9 -0
  37. package/dist/trading/responses.d.ts +374 -0
  38. package/dist/trading/responses.js +5 -0
  39. package/dist/validation/common.d.ts +179 -0
  40. package/dist/validation/common.js +199 -0
  41. package/dist/validation/index.d.ts +22 -0
  42. package/dist/validation/index.js +24 -0
  43. package/dist/validation/margin-accounts.d.ts +55 -0
  44. package/dist/validation/margin-accounts.js +59 -0
  45. package/dist/validation/market.d.ts +214 -0
  46. package/dist/validation/market.js +225 -0
  47. package/dist/validation/positions.d.ts +89 -0
  48. package/dist/validation/positions.js +93 -0
  49. package/dist/validation/profile.d.ts +69 -0
  50. package/dist/validation/profile.js +44 -0
  51. package/dist/validation/trading.d.ts +422 -0
  52. package/dist/validation/trading.js +367 -0
  53. package/dist/validation/vault.d.ts +66 -0
  54. package/dist/validation/vault.js +79 -0
  55. package/dist/vault/index.d.ts +84 -0
  56. package/dist/vault/index.js +5 -0
  57. package/dist/vault/responses.d.ts +51 -0
  58. package/dist/vault/responses.js +5 -0
  59. package/dist/websocket/base.d.ts +31 -0
  60. package/dist/websocket/base.js +5 -0
  61. package/dist/websocket/clients/orderbook-client.d.ts +14 -0
  62. package/dist/websocket/clients/orderbook-client.js +3 -0
  63. package/dist/websocket/events/balance-events.d.ts +48 -0
  64. package/dist/websocket/events/balance-events.js +6 -0
  65. package/dist/websocket/events/conditional-order-events.d.ts +36 -0
  66. package/dist/websocket/events/conditional-order-events.js +0 -0
  67. package/dist/websocket/events/index.d.ts +7 -0
  68. package/dist/websocket/events/index.js +7 -0
  69. package/dist/websocket/events/movement-events.d.ts +64 -0
  70. package/dist/websocket/events/movement-events.js +6 -0
  71. package/dist/websocket/events/ohlcv-events.d.ts +31 -0
  72. package/dist/websocket/events/ohlcv-events.js +5 -0
  73. package/dist/websocket/events/orderbook-events.d.ts +72 -0
  74. package/dist/websocket/events/orderbook-events.js +5 -0
  75. package/dist/websocket/events/orders-events.d.ts +284 -0
  76. package/dist/websocket/events/orders-events.js +0 -0
  77. package/dist/websocket/events/trade-events.d.ts +34 -0
  78. package/dist/websocket/events/trade-events.js +5 -0
  79. package/dist/websocket/index.d.ts +8 -0
  80. package/dist/websocket/index.js +8 -0
  81. package/package.json +2 -2
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Profile API Validation Schemas
3
+ *
4
+ * Zod schemas for validating profile API inputs before making requests.
5
+ * Provides clear, actionable error messages for invalid parameters.
6
+ */
7
+ import { z } from "zod";
8
+ import { UUIDSchema } from "./trading.js";
9
+ /**
10
+ * Ledger entry type validation
11
+ */
12
+ export const LedgerEntryTypeSchema = z.enum(["CREDIT", "DEBIT", "LOCK", "UNLOCK", "FEE"], {
13
+ message: 'Entry type must be "CREDIT", "DEBIT", "LOCK", "UNLOCK", or "FEE"',
14
+ });
15
+ /**
16
+ * Transaction type validation
17
+ */
18
+ export const TransactionTypeSchema = z.enum(["DEPOSIT", "WITHDRAWAL", "TRADE", "FEE", "FUNDING", "LIQUIDATION", "INTEREST", "REWARD"], {
19
+ message: 'Transaction type must be "DEPOSIT", "WITHDRAWAL", "TRADE", "FEE", "FUNDING", "LIQUIDATION", "INTEREST", or "REWARD"',
20
+ });
21
+ /**
22
+ * Get User Movements validation schema
23
+ *
24
+ * Validates parameters for fetching paginated user movements.
25
+ * All fields are optional — an empty object or undefined is valid.
26
+ */
27
+ export const GetUserMovementsSchema = z.object({
28
+ page: z.number().int("Page must be an integer").min(1, "Page must be at least 1").optional(),
29
+ page_size: z.number().int("Page size must be an integer").min(1, "Page size must be at least 1").max(100, "Page size cannot exceed 100").optional(),
30
+ entry_type: LedgerEntryTypeSchema.optional(),
31
+ transaction_type: TransactionTypeSchema.optional(),
32
+ asset_id: UUIDSchema.optional(),
33
+ });
34
+ /**
35
+ * Get User Trades validation schema
36
+ *
37
+ * Validates parameters for fetching paginated user trades.
38
+ * All fields are optional — an empty object or undefined is valid.
39
+ */
40
+ export const GetUserTradesSchema = z.object({
41
+ page: z.number().int("Page must be an integer").min(1, "Page must be at least 1").optional(),
42
+ page_size: z.number().int("Page size must be an integer").min(1, "Page size must be at least 1").max(100, "Page size cannot exceed 100").optional(),
43
+ trading_pair_id: UUIDSchema.optional(),
44
+ });
@@ -0,0 +1,422 @@
1
+ /**
2
+ * Trading API Validation Schemas
3
+ *
4
+ * Zod schemas for validating trading API inputs before making requests.
5
+ * Provides clear, actionable error messages for invalid parameters.
6
+ */
7
+ import { z } from "zod";
8
+ /**
9
+ * Order side validation
10
+ */
11
+ export declare const OrderSideSchema: z.ZodEnum<{
12
+ BUY: "BUY";
13
+ SELL: "SELL";
14
+ }>;
15
+ /**
16
+ * Trading mode validation
17
+ */
18
+ export declare const TradingModeSchema: z.ZodEnum<{
19
+ SPOT: "SPOT";
20
+ MARGIN: "MARGIN";
21
+ }>;
22
+ /**
23
+ * Position side validation
24
+ */
25
+ export declare const PositionSideSchema: z.ZodEnum<{
26
+ LONG: "LONG";
27
+ SHORT: "SHORT";
28
+ NONE: "NONE";
29
+ }>;
30
+ /**
31
+ * Time in force validation
32
+ */
33
+ export declare const TimeInForceSchema: z.ZodEnum<{
34
+ GTC: "GTC";
35
+ IOC: "IOC";
36
+ FOK: "FOK";
37
+ }>;
38
+ export declare const ConditionalTimeInForceSchema: z.ZodEnum<{
39
+ GTC: "GTC";
40
+ IOC: "IOC";
41
+ }>;
42
+ /**
43
+ * Order type validation
44
+ */
45
+ export declare const OrderTypeSchema: z.ZodEnum<{
46
+ LIMIT: "LIMIT";
47
+ MARKET: "MARKET";
48
+ }>;
49
+ /**
50
+ * Positive decimal string validation (for quantities and prices)
51
+ */
52
+ export declare const PositiveDecimalStringSchema: z.ZodString;
53
+ /**
54
+ * UUID validation
55
+ */
56
+ export declare const UUIDSchema: z.ZodUUID;
57
+ /**
58
+ * ISO 8601 date string validation
59
+ */
60
+ export declare const ISO8601DateSchema: z.ZodISODateTime;
61
+ /**
62
+ * Slippage tolerance validation (0 to 1, where 0.01 = 1%)
63
+ */
64
+ export declare const SlippageToleranceSchema: z.ZodOptional<z.ZodNumber>;
65
+ export declare const SlippageToleranceBpsSchema: z.ZodNumber;
66
+ export declare const ParentTpSlLegSchema: z.ZodObject<{
67
+ triggerPrice: z.ZodString;
68
+ orderType: z.ZodEnum<{
69
+ LIMIT: "LIMIT";
70
+ MARKET: "MARKET";
71
+ }>;
72
+ limitPrice: z.ZodOptional<z.ZodString>;
73
+ timeInForce: z.ZodOptional<z.ZodEnum<{
74
+ GTC: "GTC";
75
+ IOC: "IOC";
76
+ }>>;
77
+ slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
78
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
79
+ }, z.core.$strip>;
80
+ /**
81
+ * Place Limit Order validation schema
82
+ */
83
+ export declare const PlaceLimitOrderSchema: z.ZodObject<{
84
+ tradingPairId: z.ZodUUID;
85
+ side: z.ZodEnum<{
86
+ BUY: "BUY";
87
+ SELL: "SELL";
88
+ }>;
89
+ quantity: z.ZodString;
90
+ price: z.ZodString;
91
+ options: z.ZodOptional<z.ZodObject<{
92
+ tradingMode: z.ZodOptional<z.ZodEnum<{
93
+ SPOT: "SPOT";
94
+ MARGIN: "MARGIN";
95
+ }>>;
96
+ useMasterBalance: z.ZodOptional<z.ZodBoolean>;
97
+ expirationDate: z.ZodOptional<z.ZodISODateTime>;
98
+ timeInForce: z.ZodOptional<z.ZodEnum<{
99
+ GTC: "GTC";
100
+ IOC: "IOC";
101
+ FOK: "FOK";
102
+ }>>;
103
+ marginAccountId: z.ZodOptional<z.ZodUUID>;
104
+ positionSide: z.ZodOptional<z.ZodEnum<{
105
+ LONG: "LONG";
106
+ SHORT: "SHORT";
107
+ NONE: "NONE";
108
+ }>>;
109
+ leverage: z.ZodOptional<z.ZodString>;
110
+ reduceOnly: z.ZodOptional<z.ZodBoolean>;
111
+ takeProfit: z.ZodOptional<z.ZodObject<{
112
+ triggerPrice: z.ZodString;
113
+ orderType: z.ZodEnum<{
114
+ LIMIT: "LIMIT";
115
+ MARKET: "MARKET";
116
+ }>;
117
+ limitPrice: z.ZodOptional<z.ZodString>;
118
+ timeInForce: z.ZodOptional<z.ZodEnum<{
119
+ GTC: "GTC";
120
+ IOC: "IOC";
121
+ }>>;
122
+ slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
123
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
124
+ }, z.core.$strip>>;
125
+ stopLoss: z.ZodOptional<z.ZodObject<{
126
+ triggerPrice: z.ZodString;
127
+ orderType: z.ZodEnum<{
128
+ LIMIT: "LIMIT";
129
+ MARKET: "MARKET";
130
+ }>;
131
+ limitPrice: z.ZodOptional<z.ZodString>;
132
+ timeInForce: z.ZodOptional<z.ZodEnum<{
133
+ GTC: "GTC";
134
+ IOC: "IOC";
135
+ }>>;
136
+ slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
137
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
138
+ }, z.core.$strip>>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>;
141
+ /**
142
+ * Place Market Order validation schema
143
+ */
144
+ export declare const PlaceMarketOrderSchema: z.ZodObject<{
145
+ tradingPairId: z.ZodUUID;
146
+ side: z.ZodEnum<{
147
+ BUY: "BUY";
148
+ SELL: "SELL";
149
+ }>;
150
+ quantity: z.ZodString;
151
+ options: z.ZodOptional<z.ZodObject<{
152
+ tradingMode: z.ZodOptional<z.ZodEnum<{
153
+ SPOT: "SPOT";
154
+ MARGIN: "MARGIN";
155
+ }>>;
156
+ slippageTolerance: z.ZodOptional<z.ZodNumber>;
157
+ marginAccountId: z.ZodOptional<z.ZodUUID>;
158
+ positionSide: z.ZodOptional<z.ZodEnum<{
159
+ LONG: "LONG";
160
+ SHORT: "SHORT";
161
+ NONE: "NONE";
162
+ }>>;
163
+ leverage: z.ZodOptional<z.ZodString>;
164
+ reduceOnly: z.ZodOptional<z.ZodBoolean>;
165
+ takeProfit: z.ZodOptional<z.ZodObject<{
166
+ triggerPrice: z.ZodString;
167
+ orderType: z.ZodEnum<{
168
+ LIMIT: "LIMIT";
169
+ MARKET: "MARKET";
170
+ }>;
171
+ limitPrice: z.ZodOptional<z.ZodString>;
172
+ timeInForce: z.ZodOptional<z.ZodEnum<{
173
+ GTC: "GTC";
174
+ IOC: "IOC";
175
+ }>>;
176
+ slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
177
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
178
+ }, z.core.$strip>>;
179
+ stopLoss: z.ZodOptional<z.ZodObject<{
180
+ triggerPrice: z.ZodString;
181
+ orderType: z.ZodEnum<{
182
+ LIMIT: "LIMIT";
183
+ MARKET: "MARKET";
184
+ }>;
185
+ limitPrice: z.ZodOptional<z.ZodString>;
186
+ timeInForce: z.ZodOptional<z.ZodEnum<{
187
+ GTC: "GTC";
188
+ IOC: "IOC";
189
+ }>>;
190
+ slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
191
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
192
+ }, z.core.$strip>>;
193
+ }, z.core.$strip>>;
194
+ }, z.core.$strip>;
195
+ /**
196
+ * Cancel Order validation schema
197
+ */
198
+ export declare const CancelOrderSchema: z.ZodObject<{
199
+ orderId: z.ZodUUID;
200
+ }, z.core.$strip>;
201
+ /**
202
+ * Replace Order validation schema
203
+ *
204
+ * Validates parameters for replacing an existing order.
205
+ * Matches the replaceOrder method signature which accepts:
206
+ * - orderId: string (UUID)
207
+ * - newOrder: { price?: string, quantity?: string, useMasterBalance?: boolean }
208
+ */
209
+ export declare const ReplaceOrderSchema: z.ZodObject<{
210
+ orderId: z.ZodUUID;
211
+ newOrder: z.ZodObject<{
212
+ price: z.ZodOptional<z.ZodString>;
213
+ quantity: z.ZodOptional<z.ZodString>;
214
+ useMasterBalance: z.ZodOptional<z.ZodBoolean>;
215
+ }, z.core.$strip>;
216
+ }, z.core.$strip>;
217
+ /**
218
+ * Get Paginated Orders validation schema
219
+ *
220
+ * Validates parameters for fetching paginated orders.
221
+ * Matches the getPaginatedOrders method signature which accepts:
222
+ * - status: OrderStatus (optional filter)
223
+ * - trading_pair_id: trading pair UUID (optional filter)
224
+ * - page: number (default: 1)
225
+ * - page_size: number (default: 10, max: 100)
226
+ */
227
+ export declare const GetPaginatedOrdersSchema: z.ZodObject<{
228
+ status: z.ZodOptional<z.ZodEnum<{
229
+ SUBMITTED: "SUBMITTED";
230
+ PARTIALLY_FILLED: "PARTIALLY_FILLED";
231
+ FILLED: "FILLED";
232
+ SETTLED_ON_CHAIN: "SETTLED_ON_CHAIN";
233
+ SETTLED: "SETTLED";
234
+ CANCELLED: "CANCELLED";
235
+ REJECTED: "REJECTED";
236
+ EXPIRED: "EXPIRED";
237
+ }>>;
238
+ trading_pair_id: z.ZodOptional<z.ZodUUID>;
239
+ trading_mode: z.ZodOptional<z.ZodEnum<{
240
+ SPOT: "SPOT";
241
+ MARGIN: "MARGIN";
242
+ }>>;
243
+ margin_account_id: z.ZodOptional<z.ZodUUID>;
244
+ page: z.ZodOptional<z.ZodNumber>;
245
+ page_size: z.ZodOptional<z.ZodNumber>;
246
+ }, z.core.$strip>;
247
+ export declare const ConditionalOrderConditionTypeSchema: z.ZodEnum<{
248
+ STOP_LOSS: "STOP_LOSS";
249
+ TAKE_PROFIT: "TAKE_PROFIT";
250
+ }>;
251
+ export declare const ConditionalOrderTriggerSourceSchema: z.ZodEnum<{
252
+ MARK_PRICE: "MARK_PRICE";
253
+ }>;
254
+ export declare const ConditionalOrderStateSchema: z.ZodEnum<{
255
+ CANCELLED: "CANCELLED";
256
+ EXPIRED: "EXPIRED";
257
+ PENDING_PARENT: "PENDING_PARENT";
258
+ ACTIVE: "ACTIVE";
259
+ TRIGGERING: "TRIGGERING";
260
+ TRIGGERED: "TRIGGERED";
261
+ FAILED: "FAILED";
262
+ }>;
263
+ export declare const ClosePositionSideSchema: z.ZodEnum<{
264
+ LONG: "LONG";
265
+ SHORT: "SHORT";
266
+ }>;
267
+ export declare const CreateConditionalOrderSchema: z.ZodObject<{
268
+ tradingPairId: z.ZodUUID;
269
+ marginAccountId: z.ZodUUID;
270
+ conditionType: z.ZodEnum<{
271
+ STOP_LOSS: "STOP_LOSS";
272
+ TAKE_PROFIT: "TAKE_PROFIT";
273
+ }>;
274
+ triggerPrice: z.ZodString;
275
+ triggerSource: z.ZodOptional<z.ZodEnum<{
276
+ MARK_PRICE: "MARK_PRICE";
277
+ }>>;
278
+ side: z.ZodEnum<{
279
+ BUY: "BUY";
280
+ SELL: "SELL";
281
+ }>;
282
+ positionSide: z.ZodEnum<{
283
+ LONG: "LONG";
284
+ SHORT: "SHORT";
285
+ }>;
286
+ orderType: z.ZodEnum<{
287
+ LIMIT: "LIMIT";
288
+ MARKET: "MARKET";
289
+ }>;
290
+ limitPrice: z.ZodOptional<z.ZodString>;
291
+ quantity: z.ZodOptional<z.ZodString>;
292
+ reduceOnly: z.ZodOptional<z.ZodBoolean>;
293
+ timeInForce: z.ZodOptional<z.ZodEnum<{
294
+ GTC: "GTC";
295
+ IOC: "IOC";
296
+ }>>;
297
+ slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
298
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
299
+ }, z.core.$strip>;
300
+ export declare const CancelConditionalOrderSchema: z.ZodObject<{
301
+ conditionalOrderId: z.ZodUUID;
302
+ }, z.core.$strip>;
303
+ export declare const ListConditionalOrdersSchema: z.ZodObject<{
304
+ margin_account_id: z.ZodOptional<z.ZodUUID>;
305
+ trading_pair_id: z.ZodOptional<z.ZodUUID>;
306
+ state: z.ZodOptional<z.ZodEnum<{
307
+ CANCELLED: "CANCELLED";
308
+ EXPIRED: "EXPIRED";
309
+ PENDING_PARENT: "PENDING_PARENT";
310
+ ACTIVE: "ACTIVE";
311
+ TRIGGERING: "TRIGGERING";
312
+ TRIGGERED: "TRIGGERED";
313
+ FAILED: "FAILED";
314
+ }>>;
315
+ page: z.ZodOptional<z.ZodNumber>;
316
+ page_size: z.ZodOptional<z.ZodNumber>;
317
+ }, z.core.$strip>;
318
+ /**
319
+ * Single batch create order item validation schema
320
+ *
321
+ * Validates each order in a batch create request.
322
+ * - LIMIT orders require a price
323
+ * - MARKET orders must not have a price
324
+ */
325
+ export declare const BatchCreateOrderItemSchema: z.ZodObject<{
326
+ tradingPairId: z.ZodUUID;
327
+ orderType: z.ZodEnum<{
328
+ LIMIT: "LIMIT";
329
+ MARKET: "MARKET";
330
+ }>;
331
+ side: z.ZodEnum<{
332
+ BUY: "BUY";
333
+ SELL: "SELL";
334
+ }>;
335
+ price: z.ZodOptional<z.ZodString>;
336
+ quantity: z.ZodString;
337
+ tradingMode: z.ZodOptional<z.ZodEnum<{
338
+ SPOT: "SPOT";
339
+ MARGIN: "MARGIN";
340
+ }>>;
341
+ slippageTolerance: z.ZodOptional<z.ZodNumber>;
342
+ useMasterBalance: z.ZodOptional<z.ZodBoolean>;
343
+ expirationDate: z.ZodOptional<z.ZodISODateTime>;
344
+ timeInForce: z.ZodOptional<z.ZodEnum<{
345
+ GTC: "GTC";
346
+ IOC: "IOC";
347
+ FOK: "FOK";
348
+ }>>;
349
+ marginAccountId: z.ZodOptional<z.ZodUUID>;
350
+ positionSide: z.ZodOptional<z.ZodEnum<{
351
+ LONG: "LONG";
352
+ SHORT: "SHORT";
353
+ NONE: "NONE";
354
+ }>>;
355
+ leverage: z.ZodOptional<z.ZodString>;
356
+ reduceOnly: z.ZodOptional<z.ZodBoolean>;
357
+ }, z.core.$strip>;
358
+ /**
359
+ * Batch Create Orders validation schema
360
+ *
361
+ * Validates the full array of orders for a batch create request.
362
+ */
363
+ export declare const BatchCreateOrdersSchema: z.ZodObject<{
364
+ orders: z.ZodArray<z.ZodObject<{
365
+ tradingPairId: z.ZodUUID;
366
+ orderType: z.ZodEnum<{
367
+ LIMIT: "LIMIT";
368
+ MARKET: "MARKET";
369
+ }>;
370
+ side: z.ZodEnum<{
371
+ BUY: "BUY";
372
+ SELL: "SELL";
373
+ }>;
374
+ price: z.ZodOptional<z.ZodString>;
375
+ quantity: z.ZodString;
376
+ tradingMode: z.ZodOptional<z.ZodEnum<{
377
+ SPOT: "SPOT";
378
+ MARGIN: "MARGIN";
379
+ }>>;
380
+ slippageTolerance: z.ZodOptional<z.ZodNumber>;
381
+ useMasterBalance: z.ZodOptional<z.ZodBoolean>;
382
+ expirationDate: z.ZodOptional<z.ZodISODateTime>;
383
+ timeInForce: z.ZodOptional<z.ZodEnum<{
384
+ GTC: "GTC";
385
+ IOC: "IOC";
386
+ FOK: "FOK";
387
+ }>>;
388
+ marginAccountId: z.ZodOptional<z.ZodUUID>;
389
+ positionSide: z.ZodOptional<z.ZodEnum<{
390
+ LONG: "LONG";
391
+ SHORT: "SHORT";
392
+ NONE: "NONE";
393
+ }>>;
394
+ leverage: z.ZodOptional<z.ZodString>;
395
+ reduceOnly: z.ZodOptional<z.ZodBoolean>;
396
+ }, z.core.$strip>>;
397
+ }, z.core.$strip>;
398
+ /**
399
+ * Single batch replace order item validation schema
400
+ *
401
+ * Validates each order in a batch replace request.
402
+ * At least one of price or quantity must be provided.
403
+ */
404
+ export declare const BatchReplaceOrderItemSchema: z.ZodObject<{
405
+ orderId: z.ZodUUID;
406
+ price: z.ZodOptional<z.ZodString>;
407
+ quantity: z.ZodOptional<z.ZodString>;
408
+ useMasterBalance: z.ZodOptional<z.ZodBoolean>;
409
+ }, z.core.$strip>;
410
+ /**
411
+ * Batch Replace Orders validation schema
412
+ *
413
+ * Validates the full array of orders for a batch replace request.
414
+ */
415
+ export declare const BatchReplaceOrdersSchema: z.ZodObject<{
416
+ orders: z.ZodArray<z.ZodObject<{
417
+ orderId: z.ZodUUID;
418
+ price: z.ZodOptional<z.ZodString>;
419
+ quantity: z.ZodOptional<z.ZodString>;
420
+ useMasterBalance: z.ZodOptional<z.ZodBoolean>;
421
+ }, z.core.$strip>>;
422
+ }, z.core.$strip>;