@0xmonaco/types 1.0.92 → 1.0.94
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/buildercodes/responses.d.ts +9 -9
- package/dist/compliance/index.d.ts +1 -1
- package/dist/copy-trading/responses.d.ts +30 -30
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/sdk/index.d.ts +2 -4
- package/dist/tradercodes/responses.d.ts +8 -8
- package/dist/validation/copy-trading.d.ts +10 -10
- package/dist/validation/margin-accounts.d.ts +16 -16
- package/dist/validation/market.d.ts +22 -22
- package/dist/validation/positions.d.ts +6 -6
- package/dist/validation/profile.d.ts +11 -11
- package/dist/validation/trading.d.ts +50 -50
- package/dist/validation/vault.d.ts +2 -2
- package/dist/websocket/base.d.ts +10 -0
- package/dist/websocket/client.d.ts +11 -6
- package/dist/websocket/client.js +6 -4
- package/dist/websocket/events/movement-events.d.ts +13 -3
- package/dist/websocket/snapshots.d.ts +7 -4
- package/dist/websocket/snapshots.js +7 -4
- package/dist/wire/operations.d.ts +1 -1
- package/dist/wire/operations.js +0 -1
- package/dist/wire/schema.d.ts +15 -118
- package/dist/wire/schema.js +2 -1
- package/package.json +2 -2
- package/dist/whitelist/index.d.ts +0 -33
- package/dist/whitelist/index.js +0 -4
|
@@ -9,10 +9,10 @@ export declare const ListPositionsSchema: z.ZodObject<{
|
|
|
9
9
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
10
10
|
tradingPairId: z.ZodOptional<z.ZodUUID>;
|
|
11
11
|
status: z.ZodOptional<z.ZodEnum<{
|
|
12
|
-
OPEN: "OPEN";
|
|
13
12
|
CLOSED: "CLOSED";
|
|
14
|
-
LIQUIDATING: "LIQUIDATING";
|
|
15
13
|
LIQUIDATED: "LIQUIDATED";
|
|
14
|
+
LIQUIDATING: "LIQUIDATING";
|
|
15
|
+
OPEN: "OPEN";
|
|
16
16
|
}>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export declare const GetPositionSchema: z.ZodObject<{
|
|
@@ -22,9 +22,9 @@ export declare const ClosePositionSchema: z.ZodObject<{
|
|
|
22
22
|
positionId: z.ZodUUID;
|
|
23
23
|
request: z.ZodObject<{
|
|
24
24
|
closeType: z.ZodEnum<{
|
|
25
|
+
IOC: "IOC";
|
|
25
26
|
LIMIT: "LIMIT";
|
|
26
27
|
MARKET: "MARKET";
|
|
27
|
-
IOC: "IOC";
|
|
28
28
|
}>;
|
|
29
29
|
limitPrice: z.ZodOptional<z.ZodString>;
|
|
30
30
|
slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
|
|
@@ -102,12 +102,12 @@ export declare const GetPositionPnlHistorySchema: z.ZodObject<{
|
|
|
102
102
|
positionId: z.ZodUUID;
|
|
103
103
|
params: z.ZodObject<{
|
|
104
104
|
interval: z.ZodEnum<{
|
|
105
|
-
"1m": "1m";
|
|
106
|
-
"5m": "5m";
|
|
107
105
|
"15m": "15m";
|
|
106
|
+
"1d": "1d";
|
|
108
107
|
"1h": "1h";
|
|
108
|
+
"1m": "1m";
|
|
109
109
|
"4h": "4h";
|
|
110
|
-
"
|
|
110
|
+
"5m": "5m";
|
|
111
111
|
}>;
|
|
112
112
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
113
113
|
endTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -11,22 +11,22 @@ import { z } from "zod";
|
|
|
11
11
|
export declare const LedgerEntryTypeSchema: z.ZodEnum<{
|
|
12
12
|
CREDIT: "CREDIT";
|
|
13
13
|
DEBIT: "DEBIT";
|
|
14
|
+
FEE: "FEE";
|
|
14
15
|
LOCK: "LOCK";
|
|
15
16
|
UNLOCK: "UNLOCK";
|
|
16
|
-
FEE: "FEE";
|
|
17
17
|
}>;
|
|
18
18
|
/**
|
|
19
19
|
* Transaction type validation
|
|
20
20
|
*/
|
|
21
21
|
export declare const TransactionTypeSchema: z.ZodEnum<{
|
|
22
|
-
LIQUIDATION: "LIQUIDATION";
|
|
23
|
-
FEE: "FEE";
|
|
24
22
|
DEPOSIT: "DEPOSIT";
|
|
25
|
-
|
|
26
|
-
TRADE: "TRADE";
|
|
23
|
+
FEE: "FEE";
|
|
27
24
|
FUNDING: "FUNDING";
|
|
28
25
|
INTEREST: "INTEREST";
|
|
26
|
+
LIQUIDATION: "LIQUIDATION";
|
|
29
27
|
REWARD: "REWARD";
|
|
28
|
+
TRADE: "TRADE";
|
|
29
|
+
WITHDRAWAL: "WITHDRAWAL";
|
|
30
30
|
}>;
|
|
31
31
|
/**
|
|
32
32
|
* Set Self-Trade-Prevention Default validation schema
|
|
@@ -35,9 +35,9 @@ export declare const TransactionTypeSchema: z.ZodEnum<{
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const SetSelfTradePreventionDefaultSchema: z.ZodObject<{
|
|
37
37
|
mode: z.ZodEnum<{
|
|
38
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
38
39
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
39
40
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
40
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
41
41
|
SKIP: "SKIP";
|
|
42
42
|
}>;
|
|
43
43
|
}, z.core.$strip>;
|
|
@@ -58,19 +58,19 @@ export declare const GetUserMovementsSchema: z.ZodObject<{
|
|
|
58
58
|
entryType: z.ZodOptional<z.ZodEnum<{
|
|
59
59
|
CREDIT: "CREDIT";
|
|
60
60
|
DEBIT: "DEBIT";
|
|
61
|
+
FEE: "FEE";
|
|
61
62
|
LOCK: "LOCK";
|
|
62
63
|
UNLOCK: "UNLOCK";
|
|
63
|
-
FEE: "FEE";
|
|
64
64
|
}>>;
|
|
65
65
|
transactionType: z.ZodOptional<z.ZodEnum<{
|
|
66
|
-
LIQUIDATION: "LIQUIDATION";
|
|
67
|
-
FEE: "FEE";
|
|
68
66
|
DEPOSIT: "DEPOSIT";
|
|
69
|
-
|
|
70
|
-
TRADE: "TRADE";
|
|
67
|
+
FEE: "FEE";
|
|
71
68
|
FUNDING: "FUNDING";
|
|
72
69
|
INTEREST: "INTEREST";
|
|
70
|
+
LIQUIDATION: "LIQUIDATION";
|
|
73
71
|
REWARD: "REWARD";
|
|
72
|
+
TRADE: "TRADE";
|
|
73
|
+
WITHDRAWAL: "WITHDRAWAL";
|
|
74
74
|
}>>;
|
|
75
75
|
assetId: z.ZodOptional<z.ZodUUID>;
|
|
76
76
|
}, z.core.$strip>;
|
|
@@ -16,28 +16,28 @@ export declare const OrderSideSchema: z.ZodEnum<{
|
|
|
16
16
|
* Trading mode validation
|
|
17
17
|
*/
|
|
18
18
|
export declare const TradingModeSchema: z.ZodEnum<{
|
|
19
|
-
SPOT: "SPOT";
|
|
20
19
|
MARGIN: "MARGIN";
|
|
20
|
+
SPOT: "SPOT";
|
|
21
21
|
}>;
|
|
22
22
|
export declare const MarginModeSchema: z.ZodEnum<{
|
|
23
|
-
ISOLATED: "ISOLATED";
|
|
24
23
|
CROSS: "CROSS";
|
|
24
|
+
ISOLATED: "ISOLATED";
|
|
25
25
|
}>;
|
|
26
26
|
/**
|
|
27
27
|
* Position side validation
|
|
28
28
|
*/
|
|
29
29
|
export declare const PositionSideSchema: z.ZodEnum<{
|
|
30
30
|
LONG: "LONG";
|
|
31
|
-
SHORT: "SHORT";
|
|
32
31
|
NONE: "NONE";
|
|
32
|
+
SHORT: "SHORT";
|
|
33
33
|
}>;
|
|
34
34
|
/**
|
|
35
35
|
* Time in force validation
|
|
36
36
|
*/
|
|
37
37
|
export declare const TimeInForceSchema: z.ZodEnum<{
|
|
38
|
+
FOK: "FOK";
|
|
38
39
|
GTC: "GTC";
|
|
39
40
|
IOC: "IOC";
|
|
40
|
-
FOK: "FOK";
|
|
41
41
|
}>;
|
|
42
42
|
export declare const ConditionalTimeInForceSchema: z.ZodEnum<{
|
|
43
43
|
GTC: "GTC";
|
|
@@ -47,9 +47,9 @@ export declare const ConditionalTimeInForceSchema: z.ZodEnum<{
|
|
|
47
47
|
* Per-order self-trade-prevention override validation
|
|
48
48
|
*/
|
|
49
49
|
export declare const SelfTradePreventionModeSchema: z.ZodEnum<{
|
|
50
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
50
51
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
51
52
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
52
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
53
53
|
SKIP: "SKIP";
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
@@ -141,36 +141,36 @@ export declare const PlaceLimitOrderSchema: z.ZodObject<{
|
|
|
141
141
|
options: z.ZodOptional<z.ZodObject<{
|
|
142
142
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
143
143
|
tradingMode: z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
SPOT: "SPOT";
|
|
145
144
|
MARGIN: "MARGIN";
|
|
145
|
+
SPOT: "SPOT";
|
|
146
146
|
}>>;
|
|
147
147
|
useMasterBalance: z.ZodOptional<z.ZodBoolean>;
|
|
148
148
|
expirationDate: z.ZodOptional<z.ZodISODateTime>;
|
|
149
149
|
timeInForce: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
FOK: "FOK";
|
|
150
151
|
GTC: "GTC";
|
|
151
152
|
IOC: "IOC";
|
|
152
|
-
FOK: "FOK";
|
|
153
153
|
}>>;
|
|
154
154
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
155
155
|
marginMode: z.ZodOptional<z.ZodEnum<{
|
|
156
|
-
ISOLATED: "ISOLATED";
|
|
157
156
|
CROSS: "CROSS";
|
|
157
|
+
ISOLATED: "ISOLATED";
|
|
158
158
|
}>>;
|
|
159
159
|
riskBucketId: z.ZodOptional<z.ZodUUID>;
|
|
160
160
|
riskBucketCollateral: z.ZodOptional<z.ZodString>;
|
|
161
161
|
strategyKey: z.ZodOptional<z.ZodString>;
|
|
162
162
|
positionSide: z.ZodOptional<z.ZodEnum<{
|
|
163
163
|
LONG: "LONG";
|
|
164
|
-
SHORT: "SHORT";
|
|
165
164
|
NONE: "NONE";
|
|
165
|
+
SHORT: "SHORT";
|
|
166
166
|
}>>;
|
|
167
167
|
leverage: z.ZodOptional<z.ZodString>;
|
|
168
168
|
reduceOnly: z.ZodOptional<z.ZodBoolean>;
|
|
169
169
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
170
170
|
selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
|
|
171
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
171
172
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
172
173
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
173
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
174
174
|
SKIP: "SKIP";
|
|
175
175
|
}>>;
|
|
176
176
|
takeProfit: z.ZodOptional<z.ZodObject<{
|
|
@@ -228,29 +228,29 @@ export declare const PlaceMarketOrderSchema: z.ZodObject<{
|
|
|
228
228
|
options: z.ZodOptional<z.ZodObject<{
|
|
229
229
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
230
230
|
tradingMode: z.ZodOptional<z.ZodEnum<{
|
|
231
|
-
SPOT: "SPOT";
|
|
232
231
|
MARGIN: "MARGIN";
|
|
232
|
+
SPOT: "SPOT";
|
|
233
233
|
}>>;
|
|
234
234
|
slippageTolerance: z.ZodOptional<z.ZodNumber>;
|
|
235
235
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
236
236
|
marginMode: z.ZodOptional<z.ZodEnum<{
|
|
237
|
-
ISOLATED: "ISOLATED";
|
|
238
237
|
CROSS: "CROSS";
|
|
238
|
+
ISOLATED: "ISOLATED";
|
|
239
239
|
}>>;
|
|
240
240
|
riskBucketId: z.ZodOptional<z.ZodUUID>;
|
|
241
241
|
riskBucketCollateral: z.ZodOptional<z.ZodString>;
|
|
242
242
|
strategyKey: z.ZodOptional<z.ZodString>;
|
|
243
243
|
positionSide: z.ZodOptional<z.ZodEnum<{
|
|
244
244
|
LONG: "LONG";
|
|
245
|
-
SHORT: "SHORT";
|
|
246
245
|
NONE: "NONE";
|
|
246
|
+
SHORT: "SHORT";
|
|
247
247
|
}>>;
|
|
248
248
|
leverage: z.ZodOptional<z.ZodString>;
|
|
249
249
|
reduceOnly: z.ZodOptional<z.ZodBoolean>;
|
|
250
250
|
selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
|
|
251
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
251
252
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
252
253
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
253
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
254
254
|
SKIP: "SKIP";
|
|
255
255
|
}>>;
|
|
256
256
|
takeProfit: z.ZodOptional<z.ZodObject<{
|
|
@@ -318,9 +318,9 @@ export declare const ReplaceOrderSchema: z.ZodObject<{
|
|
|
318
318
|
useMasterBalance: z.ZodOptional<z.ZodBoolean>;
|
|
319
319
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
320
320
|
selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
321
322
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
322
323
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
323
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
324
324
|
SKIP: "SKIP";
|
|
325
325
|
}>>;
|
|
326
326
|
}, z.core.$strip>;
|
|
@@ -337,28 +337,28 @@ export declare const ReplaceOrderSchema: z.ZodObject<{
|
|
|
337
337
|
export declare const GetPaginatedOrdersSchema: z.ZodObject<{
|
|
338
338
|
page: z.ZodOptional<z.ZodNever>;
|
|
339
339
|
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
340
|
-
SUBMITTED: "SUBMITTED";
|
|
341
|
-
PARTIALLY_FILLED: "PARTIALLY_FILLED";
|
|
342
|
-
FILLED: "FILLED";
|
|
343
|
-
SETTLED_ON_CHAIN: "SETTLED_ON_CHAIN";
|
|
344
|
-
SETTLED: "SETTLED";
|
|
345
340
|
CANCELLED: "CANCELLED";
|
|
346
|
-
REJECTED: "REJECTED";
|
|
347
341
|
EXPIRED: "EXPIRED";
|
|
348
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
349
|
-
SUBMITTED: "SUBMITTED";
|
|
350
|
-
PARTIALLY_FILLED: "PARTIALLY_FILLED";
|
|
351
342
|
FILLED: "FILLED";
|
|
352
|
-
|
|
343
|
+
PARTIALLY_FILLED: "PARTIALLY_FILLED";
|
|
344
|
+
REJECTED: "REJECTED";
|
|
353
345
|
SETTLED: "SETTLED";
|
|
346
|
+
SETTLED_ON_CHAIN: "SETTLED_ON_CHAIN";
|
|
347
|
+
SUBMITTED: "SUBMITTED";
|
|
348
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
354
349
|
CANCELLED: "CANCELLED";
|
|
355
|
-
REJECTED: "REJECTED";
|
|
356
350
|
EXPIRED: "EXPIRED";
|
|
351
|
+
FILLED: "FILLED";
|
|
352
|
+
PARTIALLY_FILLED: "PARTIALLY_FILLED";
|
|
353
|
+
REJECTED: "REJECTED";
|
|
354
|
+
SETTLED: "SETTLED";
|
|
355
|
+
SETTLED_ON_CHAIN: "SETTLED_ON_CHAIN";
|
|
356
|
+
SUBMITTED: "SUBMITTED";
|
|
357
357
|
}>>]>>;
|
|
358
358
|
tradingPairId: z.ZodOptional<z.ZodUUID>;
|
|
359
359
|
tradingMode: z.ZodOptional<z.ZodEnum<{
|
|
360
|
-
SPOT: "SPOT";
|
|
361
360
|
MARGIN: "MARGIN";
|
|
361
|
+
SPOT: "SPOT";
|
|
362
362
|
}>>;
|
|
363
363
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
364
364
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -373,13 +373,13 @@ export declare const ConditionalOrderTriggerSourceSchema: z.ZodEnum<{
|
|
|
373
373
|
MARK_PRICE: "MARK_PRICE";
|
|
374
374
|
}>;
|
|
375
375
|
export declare const ConditionalOrderStateSchema: z.ZodEnum<{
|
|
376
|
+
ACTIVE: "ACTIVE";
|
|
376
377
|
CANCELLED: "CANCELLED";
|
|
377
378
|
EXPIRED: "EXPIRED";
|
|
378
379
|
FAILED: "FAILED";
|
|
379
380
|
PENDING_PARENT: "PENDING_PARENT";
|
|
380
|
-
ACTIVE: "ACTIVE";
|
|
381
|
-
TRIGGERING: "TRIGGERING";
|
|
382
381
|
TRIGGERED: "TRIGGERED";
|
|
382
|
+
TRIGGERING: "TRIGGERING";
|
|
383
383
|
}>;
|
|
384
384
|
export declare const ClosePositionSideSchema: z.ZodEnum<{
|
|
385
385
|
LONG: "LONG";
|
|
@@ -393,22 +393,22 @@ export declare const ListConditionalOrdersSchema: z.ZodObject<{
|
|
|
393
393
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
394
394
|
tradingPairId: z.ZodOptional<z.ZodUUID>;
|
|
395
395
|
state: z.ZodOptional<z.ZodEnum<{
|
|
396
|
+
ACTIVE: "ACTIVE";
|
|
396
397
|
CANCELLED: "CANCELLED";
|
|
397
398
|
EXPIRED: "EXPIRED";
|
|
398
399
|
FAILED: "FAILED";
|
|
399
400
|
PENDING_PARENT: "PENDING_PARENT";
|
|
400
|
-
ACTIVE: "ACTIVE";
|
|
401
|
-
TRIGGERING: "TRIGGERING";
|
|
402
401
|
TRIGGERED: "TRIGGERED";
|
|
402
|
+
TRIGGERING: "TRIGGERING";
|
|
403
403
|
}>>;
|
|
404
404
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
405
405
|
pageToken: z.ZodOptional<z.ZodString>;
|
|
406
406
|
}, z.core.$strip>;
|
|
407
407
|
export declare const TwapOrderStateSchema: z.ZodEnum<{
|
|
408
|
-
CANCELLED: "CANCELLED";
|
|
409
408
|
ACTIVE: "ACTIVE";
|
|
410
|
-
|
|
409
|
+
CANCELLED: "CANCELLED";
|
|
411
410
|
COMPLETED: "COMPLETED";
|
|
411
|
+
PENDING: "PENDING";
|
|
412
412
|
}>;
|
|
413
413
|
export declare const CreateTwapOrderSchema: z.ZodObject<{
|
|
414
414
|
tradingPairId: z.ZodUUID;
|
|
@@ -425,19 +425,19 @@ export declare const CreateTwapOrderSchema: z.ZodObject<{
|
|
|
425
425
|
slippageToleranceBps: z.ZodOptional<z.ZodNumber>;
|
|
426
426
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
427
427
|
executionStyle: z.ZodOptional<z.ZodEnum<{
|
|
428
|
-
TAKER: "TAKER";
|
|
429
428
|
PASSIVE: "PASSIVE";
|
|
429
|
+
TAKER: "TAKER";
|
|
430
430
|
}>>;
|
|
431
431
|
reduceOnly: z.ZodOptional<z.ZodBoolean>;
|
|
432
432
|
tradingMode: z.ZodOptional<z.ZodEnum<{
|
|
433
|
-
SPOT: "SPOT";
|
|
434
433
|
MARGIN: "MARGIN";
|
|
434
|
+
SPOT: "SPOT";
|
|
435
435
|
}>>;
|
|
436
436
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
437
437
|
riskBucketId: z.ZodOptional<z.ZodUUID>;
|
|
438
438
|
marginMode: z.ZodOptional<z.ZodEnum<{
|
|
439
|
-
ISOLATED: "ISOLATED";
|
|
440
439
|
CROSS: "CROSS";
|
|
440
|
+
ISOLATED: "ISOLATED";
|
|
441
441
|
}>>;
|
|
442
442
|
leverage: z.ZodOptional<z.ZodString>;
|
|
443
443
|
strategyKey: z.ZodOptional<z.ZodString>;
|
|
@@ -457,10 +457,10 @@ export declare const CancelTwapOrderSchema: z.ZodObject<{
|
|
|
457
457
|
export declare const ListTwapOrdersSchema: z.ZodObject<{
|
|
458
458
|
page: z.ZodOptional<z.ZodNever>;
|
|
459
459
|
state: z.ZodOptional<z.ZodEnum<{
|
|
460
|
-
CANCELLED: "CANCELLED";
|
|
461
460
|
ACTIVE: "ACTIVE";
|
|
462
|
-
|
|
461
|
+
CANCELLED: "CANCELLED";
|
|
463
462
|
COMPLETED: "COMPLETED";
|
|
463
|
+
PENDING: "PENDING";
|
|
464
464
|
}>>;
|
|
465
465
|
tradingPairId: z.ZodOptional<z.ZodUUID>;
|
|
466
466
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -497,37 +497,37 @@ export declare const BatchCreateOrderItemSchema: z.ZodObject<{
|
|
|
497
497
|
quantity: z.ZodString;
|
|
498
498
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
499
499
|
tradingMode: z.ZodOptional<z.ZodEnum<{
|
|
500
|
-
SPOT: "SPOT";
|
|
501
500
|
MARGIN: "MARGIN";
|
|
501
|
+
SPOT: "SPOT";
|
|
502
502
|
}>>;
|
|
503
503
|
slippageTolerance: z.ZodOptional<z.ZodNumber>;
|
|
504
504
|
useMasterBalance: z.ZodOptional<z.ZodBoolean>;
|
|
505
505
|
expirationDate: z.ZodOptional<z.ZodISODateTime>;
|
|
506
506
|
timeInForce: z.ZodOptional<z.ZodEnum<{
|
|
507
|
+
FOK: "FOK";
|
|
507
508
|
GTC: "GTC";
|
|
508
509
|
IOC: "IOC";
|
|
509
|
-
FOK: "FOK";
|
|
510
510
|
}>>;
|
|
511
511
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
512
512
|
marginMode: z.ZodOptional<z.ZodEnum<{
|
|
513
|
-
ISOLATED: "ISOLATED";
|
|
514
513
|
CROSS: "CROSS";
|
|
514
|
+
ISOLATED: "ISOLATED";
|
|
515
515
|
}>>;
|
|
516
516
|
riskBucketId: z.ZodOptional<z.ZodUUID>;
|
|
517
517
|
riskBucketCollateral: z.ZodOptional<z.ZodString>;
|
|
518
518
|
strategyKey: z.ZodOptional<z.ZodString>;
|
|
519
519
|
positionSide: z.ZodOptional<z.ZodEnum<{
|
|
520
520
|
LONG: "LONG";
|
|
521
|
-
SHORT: "SHORT";
|
|
522
521
|
NONE: "NONE";
|
|
522
|
+
SHORT: "SHORT";
|
|
523
523
|
}>>;
|
|
524
524
|
leverage: z.ZodOptional<z.ZodString>;
|
|
525
525
|
reduceOnly: z.ZodOptional<z.ZodBoolean>;
|
|
526
526
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
527
527
|
selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
|
|
528
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
528
529
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
529
530
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
530
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
531
531
|
SKIP: "SKIP";
|
|
532
532
|
}>>;
|
|
533
533
|
}, z.core.$strip>;
|
|
@@ -557,37 +557,37 @@ export declare const BatchCreateOrdersSchema: z.ZodObject<{
|
|
|
557
557
|
quantity: z.ZodString;
|
|
558
558
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
559
559
|
tradingMode: z.ZodOptional<z.ZodEnum<{
|
|
560
|
-
SPOT: "SPOT";
|
|
561
560
|
MARGIN: "MARGIN";
|
|
561
|
+
SPOT: "SPOT";
|
|
562
562
|
}>>;
|
|
563
563
|
slippageTolerance: z.ZodOptional<z.ZodNumber>;
|
|
564
564
|
useMasterBalance: z.ZodOptional<z.ZodBoolean>;
|
|
565
565
|
expirationDate: z.ZodOptional<z.ZodISODateTime>;
|
|
566
566
|
timeInForce: z.ZodOptional<z.ZodEnum<{
|
|
567
|
+
FOK: "FOK";
|
|
567
568
|
GTC: "GTC";
|
|
568
569
|
IOC: "IOC";
|
|
569
|
-
FOK: "FOK";
|
|
570
570
|
}>>;
|
|
571
571
|
marginAccountId: z.ZodOptional<z.ZodUUID>;
|
|
572
572
|
marginMode: z.ZodOptional<z.ZodEnum<{
|
|
573
|
-
ISOLATED: "ISOLATED";
|
|
574
573
|
CROSS: "CROSS";
|
|
574
|
+
ISOLATED: "ISOLATED";
|
|
575
575
|
}>>;
|
|
576
576
|
riskBucketId: z.ZodOptional<z.ZodUUID>;
|
|
577
577
|
riskBucketCollateral: z.ZodOptional<z.ZodString>;
|
|
578
578
|
strategyKey: z.ZodOptional<z.ZodString>;
|
|
579
579
|
positionSide: z.ZodOptional<z.ZodEnum<{
|
|
580
580
|
LONG: "LONG";
|
|
581
|
-
SHORT: "SHORT";
|
|
582
581
|
NONE: "NONE";
|
|
582
|
+
SHORT: "SHORT";
|
|
583
583
|
}>>;
|
|
584
584
|
leverage: z.ZodOptional<z.ZodString>;
|
|
585
585
|
reduceOnly: z.ZodOptional<z.ZodBoolean>;
|
|
586
586
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
587
587
|
selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
|
|
588
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
588
589
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
589
590
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
590
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
591
591
|
SKIP: "SKIP";
|
|
592
592
|
}>>;
|
|
593
593
|
}, z.core.$strip>>;
|
|
@@ -605,9 +605,9 @@ export declare const BatchReplaceOrderItemSchema: z.ZodObject<{
|
|
|
605
605
|
useMasterBalance: z.ZodOptional<z.ZodBoolean>;
|
|
606
606
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
607
607
|
selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
|
|
608
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
608
609
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
609
610
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
610
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
611
611
|
SKIP: "SKIP";
|
|
612
612
|
}>>;
|
|
613
613
|
}, z.core.$strip>;
|
|
@@ -624,9 +624,9 @@ export declare const BatchReplaceOrdersSchema: z.ZodObject<{
|
|
|
624
624
|
useMasterBalance: z.ZodOptional<z.ZodBoolean>;
|
|
625
625
|
postOnly: z.ZodOptional<z.ZodBoolean>;
|
|
626
626
|
selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
|
|
627
|
+
CANCEL_BOTH: "CANCEL_BOTH";
|
|
627
628
|
CANCEL_MAKER: "CANCEL_MAKER";
|
|
628
629
|
CANCEL_TAKER: "CANCEL_TAKER";
|
|
629
|
-
CANCEL_BOTH: "CANCEL_BOTH";
|
|
630
630
|
SKIP: "SKIP";
|
|
631
631
|
}>>;
|
|
632
632
|
}, z.core.$strip>>;
|
|
@@ -45,8 +45,8 @@ export declare const DepositSchema: z.ZodObject<{
|
|
|
45
45
|
amount: z.ZodUnion<readonly [z.ZodString, z.ZodBigInt]>;
|
|
46
46
|
autoWait: z.ZodOptional<z.ZodBoolean>;
|
|
47
47
|
target: z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
spot: "spot";
|
|
49
48
|
margin: "margin";
|
|
49
|
+
spot: "spot";
|
|
50
50
|
}>>;
|
|
51
51
|
options: z.ZodOptional<z.ZodObject<{
|
|
52
52
|
asErc20: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -65,8 +65,8 @@ export declare const WithdrawSchema: z.ZodObject<{
|
|
|
65
65
|
destination: z.ZodString;
|
|
66
66
|
autoWait: z.ZodOptional<z.ZodBoolean>;
|
|
67
67
|
source: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
spot: "spot";
|
|
69
68
|
margin: "margin";
|
|
69
|
+
spot: "spot";
|
|
70
70
|
}>>;
|
|
71
71
|
}, z.core.$strip>;
|
|
72
72
|
/**
|
package/dist/websocket/base.d.ts
CHANGED
|
@@ -209,6 +209,16 @@ export interface MonacoWebSocketConfig {
|
|
|
209
209
|
* retried, in milliseconds (default: 10000)
|
|
210
210
|
*/
|
|
211
211
|
connectionTimeoutMs?: number;
|
|
212
|
+
/**
|
|
213
|
+
* How long an open connection may deliver nothing at all — no event, no
|
|
214
|
+
* `Pong` to the client's `Ping` — before the client treats it as dead,
|
|
215
|
+
* closes it, and reconnects, in milliseconds (default: 30000). The client
|
|
216
|
+
* pings every third of the window (at most every 15 s), so one lost `Pong`
|
|
217
|
+
* does not drop a live connection.
|
|
218
|
+
* The reopen fires `onResync`, since nothing was delivered while the
|
|
219
|
+
* connection was silent.
|
|
220
|
+
*/
|
|
221
|
+
idleTimeoutMs?: number;
|
|
212
222
|
/**
|
|
213
223
|
* Called on every connection status change, with the attempt context in
|
|
214
224
|
* {@link WebSocketStatusInfo}:
|
|
@@ -42,10 +42,12 @@
|
|
|
42
42
|
* baseline over REST for the extra consumer.
|
|
43
43
|
*
|
|
44
44
|
* Where the server has no snapshot arm for a channel yet, the callback is
|
|
45
|
-
* simply never invoked — a silent no-op, not an error. `
|
|
46
|
-
* `
|
|
47
|
-
* state, and the channel-coverage lock pins that classification against
|
|
48
|
-
* server's own snapshot dispatch. `
|
|
45
|
+
* simply never invoked — a silent no-op, not an error. `movements` and
|
|
46
|
+
* `marketLiquidations` take no `onSnapshot` at all: they stream events rather
|
|
47
|
+
* than state, and the channel-coverage lock pins that classification against
|
|
48
|
+
* the server's own snapshot dispatch. `orderbook` sends one row, the current
|
|
49
|
+
* book in the live event's shape, so `onSnapshot` and the event handler can
|
|
50
|
+
* share one setter. `trades` and `ohlcv` are event streams,
|
|
49
51
|
* but their `onSnapshot` delivers recent history as a baseline. `trades` sends
|
|
50
52
|
* the pair's newest trades, which can overlap the first live trades or miss
|
|
51
53
|
* one executed just before the subscribe, so a consumer dedupes on `tradeId`.
|
|
@@ -89,8 +91,11 @@ export interface MonacoWebSocket {
|
|
|
89
91
|
onSubscriptionChange: (listener: SubscriptionChangeHandler) => () => void;
|
|
90
92
|
/** Subscribe to order events (requires authentication); `onSnapshot` receives every resting order on the pair */
|
|
91
93
|
orders: (tradingPairId: string, tradingMode: TradingMode, handler: MessageHandler<OrderEvent>, onSnapshot?: SnapshotHandler<OrderSnapshotItem>) => () => void;
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Subscribe to orderbook events (public); `onSnapshot` receives one event, the current book read from the matching
|
|
96
|
+
* engine, in the same shape as a live event. Its `sequence` is 0. A pair or mode with no book gets `[]`.
|
|
97
|
+
*/
|
|
98
|
+
orderbook: (tradingPairId: string, tradingMode: TradingMode, magnitude: number, quotationMode: OrderbookQuotationMode, handler: MessageHandler<OrderbookEvent>, onSnapshot?: SnapshotHandler<OrderbookEvent>) => () => void;
|
|
94
99
|
/**
|
|
95
100
|
* Subscribe to OHLCV candlestick events (public); `onSnapshot` receives the series' newest 350 candles, oldest first.
|
|
96
101
|
* The newest snapshot candle can be partial or missing, so upsert live candles by `T`. A `*` price type gets no snapshot.
|
package/dist/websocket/client.js
CHANGED
|
@@ -42,10 +42,12 @@
|
|
|
42
42
|
* baseline over REST for the extra consumer.
|
|
43
43
|
*
|
|
44
44
|
* Where the server has no snapshot arm for a channel yet, the callback is
|
|
45
|
-
* simply never invoked — a silent no-op, not an error. `
|
|
46
|
-
* `
|
|
47
|
-
* state, and the channel-coverage lock pins that classification against
|
|
48
|
-
* server's own snapshot dispatch. `
|
|
45
|
+
* simply never invoked — a silent no-op, not an error. `movements` and
|
|
46
|
+
* `marketLiquidations` take no `onSnapshot` at all: they stream events rather
|
|
47
|
+
* than state, and the channel-coverage lock pins that classification against
|
|
48
|
+
* the server's own snapshot dispatch. `orderbook` sends one row, the current
|
|
49
|
+
* book in the live event's shape, so `onSnapshot` and the event handler can
|
|
50
|
+
* share one setter. `trades` and `ohlcv` are event streams,
|
|
49
51
|
* but their `onSnapshot` delivers recent history as a baseline. `trades` sends
|
|
50
52
|
* the pair's newest trades, which can overlap the first live trades or miss
|
|
51
53
|
* one executed just before the subscribe, so a consumer dedupes on `tradeId`.
|
|
@@ -9,12 +9,22 @@ import type { Address } from "viem";
|
|
|
9
9
|
* User movement event data containing ledger entry details
|
|
10
10
|
*/
|
|
11
11
|
export interface UserMovementEventData {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Unique movement identifier (UUID). A funding movement and a spot order's
|
|
14
|
+
* released lock carry the id of their movement-history row.
|
|
15
|
+
*/
|
|
13
16
|
id: string;
|
|
14
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Entry type (e.g., "credit", "debit"). A spot order's released lock is
|
|
19
|
+
* "UNLOCK", upper-case like its movement-history row, so compare
|
|
20
|
+
* case-insensitively.
|
|
21
|
+
*/
|
|
15
22
|
entryType: string;
|
|
16
23
|
/**
|
|
17
24
|
* Transaction type (e.g., "deposit", "withdrawal", "trade", "funding").
|
|
25
|
+
* A spot order's released lock is "TRADE", and its reason
|
|
26
|
+
* (`OrderCancelled`, `OrderPartiallyCancelled`, `OrderExpired`) starts
|
|
27
|
+
* `description`.
|
|
18
28
|
* A `funding` movement records a funding payment already settled against
|
|
19
29
|
* margin collateral; it reconciles with the matching `balance_update` event
|
|
20
30
|
* whose `reason` is `funding`.
|
|
@@ -58,7 +68,7 @@ export interface UserMovementEventData {
|
|
|
58
68
|
lockedAfterRaw?: string;
|
|
59
69
|
/** Reference ID for related entity (UUID) */
|
|
60
70
|
referenceId?: string;
|
|
61
|
-
/** Reference type (e.g., "order
|
|
71
|
+
/** Reference type (e.g., "Order" on a spot order's released lock, "deposit") */
|
|
62
72
|
referenceType?: string;
|
|
63
73
|
/** Human-readable description */
|
|
64
74
|
description?: string;
|
|
@@ -20,10 +20,13 @@
|
|
|
20
20
|
* own callback instead of the event handler: reducing both would apply the
|
|
21
21
|
* same state twice, in two different shapes.
|
|
22
22
|
* - **The row type is the channel's own `…EventData`**, so the baseline and the
|
|
23
|
-
* diffs that follow it describe state identically. `orders` is
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* diffs that follow it describe state identically. `orders` is one exception
|
|
24
|
+
* and has its own {@link OrderSnapshotItem}: a resting order carries fields no
|
|
25
|
+
* single order event does (`status` alongside the fill totals) and carries
|
|
26
|
+
* none of the change-only fill metadata. `orderbook` is the other: its one row
|
|
27
|
+
* is a whole `OrderbookEvent`, because every live orderbook event already
|
|
28
|
+
* restates the full book, so the snapshot row and a live event are the same
|
|
29
|
+
* state in the same shape.
|
|
27
30
|
*
|
|
28
31
|
* A channel whose server arm is not implemented yet simply never sends the
|
|
29
32
|
* frame, so its callback is never invoked. That is a silent no-op, never an
|
|
@@ -20,10 +20,13 @@
|
|
|
20
20
|
* own callback instead of the event handler: reducing both would apply the
|
|
21
21
|
* same state twice, in two different shapes.
|
|
22
22
|
* - **The row type is the channel's own `…EventData`**, so the baseline and the
|
|
23
|
-
* diffs that follow it describe state identically. `orders` is
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* diffs that follow it describe state identically. `orders` is one exception
|
|
24
|
+
* and has its own {@link OrderSnapshotItem}: a resting order carries fields no
|
|
25
|
+
* single order event does (`status` alongside the fill totals) and carries
|
|
26
|
+
* none of the change-only fill metadata. `orderbook` is the other: its one row
|
|
27
|
+
* is a whole `OrderbookEvent`, because every live orderbook event already
|
|
28
|
+
* restates the full book, so the snapshot row and a live event are the same
|
|
29
|
+
* state in the same shape.
|
|
27
30
|
*
|
|
28
31
|
* A channel whose server arm is not implemented yet simply never sends the
|
|
29
32
|
* frame, so its callback is never invoked. That is a silent no-op, never an
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* hand-written SDK surface. CI regenerates it and fails on a diff, identical to
|
|
11
11
|
* the `schema.ts` wire-types tripwire (MON-1476), so it can never go stale.
|
|
12
12
|
*/
|
|
13
|
-
export declare const OPERATION_IDS: readonly ["add_follow_position_margin", "attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "cancel_twap_order", "check_trader_code_availability", "claim_buildercode_rewards", "claim_managed_market_lease", "clear_trader_code", "close_all_copy_positions", "close_follow_positions", "close_position", "close_sub_account", "create_challenge", "create_delegated_session", "create_order", "create_sub_account", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_buildercode_payout_summary", "get_buildercode_rewards_balance", "get_buildercodes_config", "get_candles", "get_conditional_order", "get_faucet_info", "get_follow", "get_funding_state", "get_index_price", "get_lead_trader", "get_liquidation_metrics", "get_margin_account_movements", "get_margin_account_pnl", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_lead_trader", "get_my_referral_downline", "get_my_referral_position", "get_my_referral_tree", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_region_status", "get_rewards_balance", "get_screener", "get_self_trade_prevention_default", "get_sub_account_limits", "get_sweeper_chains", "get_sweeper_deposit_status", "get_trade_by_id", "get_trade_flow", "get_trader_code_info", "get_trader_metrics", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_builder_fee_changes", "list_buildercode_payouts", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_follow_leader_positions", "list_funding_history", "list_funding_payments", "list_invite_codes", "list_lead_trader_closed_trades", "list_lead_trader_open_positions", "list_lead_traders", "list_liquidation_events", "list_managed_market_assignments", "list_margin_accounts", "list_my_followers", "list_my_follows", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_sweeper_deposits", "list_trading_pairs", "list_twap_order_slices", "list_twap_orders", "mint_tokens", "preview_follow", "refresh_managed_market_quotes", "refresh_session", "register_deposit_address", "replace_order", "request_invite_codes", "revoke_delegated_agent", "revoke_session", "set_builder_fee", "set_self_trade_prevention_default", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "stop_follow", "
|
|
13
|
+
export declare const OPERATION_IDS: readonly ["add_follow_position_margin", "attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "cancel_twap_order", "check_trader_code_availability", "claim_buildercode_rewards", "claim_managed_market_lease", "clear_trader_code", "close_all_copy_positions", "close_follow_positions", "close_position", "close_sub_account", "create_challenge", "create_delegated_session", "create_order", "create_sub_account", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_buildercode_payout_summary", "get_buildercode_rewards_balance", "get_buildercodes_config", "get_candles", "get_conditional_order", "get_faucet_info", "get_follow", "get_funding_state", "get_index_price", "get_lead_trader", "get_liquidation_metrics", "get_margin_account_movements", "get_margin_account_pnl", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_lead_trader", "get_my_referral_downline", "get_my_referral_position", "get_my_referral_tree", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_region_status", "get_rewards_balance", "get_screener", "get_self_trade_prevention_default", "get_sub_account_limits", "get_sweeper_chains", "get_sweeper_deposit_status", "get_trade_by_id", "get_trade_flow", "get_trader_code_info", "get_trader_metrics", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_builder_fee_changes", "list_buildercode_payouts", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_follow_leader_positions", "list_funding_history", "list_funding_payments", "list_invite_codes", "list_lead_trader_closed_trades", "list_lead_trader_open_positions", "list_lead_traders", "list_liquidation_events", "list_managed_market_assignments", "list_margin_accounts", "list_my_followers", "list_my_follows", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_sweeper_deposits", "list_trading_pairs", "list_twap_order_slices", "list_twap_orders", "mint_tokens", "preview_follow", "refresh_managed_market_quotes", "refresh_session", "register_deposit_address", "replace_order", "request_invite_codes", "revoke_delegated_agent", "revoke_session", "set_builder_fee", "set_self_trade_prevention_default", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "stop_follow", "transfer_collateral", "transfer_collateral_from_margin_account", "transfer_collateral_from_parent_margin_account", "transfer_collateral_from_sub_account", "transfer_collateral_to_margin_account", "transfer_collateral_to_parent_margin_account", "transfer_collateral_to_risk_bucket", "transfer_collateral_to_sub_account", "transfer_rewards", "update_sub_account_limit", "upsert_delegated_agent", "upsert_follow", "upsert_lead_trader", "verify_signature"];
|
|
14
14
|
/** Union of every OpenAPI operationId in the spec. */
|
|
15
15
|
export type OperationId = (typeof OPERATION_IDS)[number];
|
package/dist/wire/operations.js
CHANGED
|
@@ -152,7 +152,6 @@ export const OPERATION_IDS = [
|
|
|
152
152
|
"simulate_parent_margin_order_risk",
|
|
153
153
|
"simulate_risk_bucket_order_risk",
|
|
154
154
|
"stop_follow",
|
|
155
|
-
"submit_whitelist",
|
|
156
155
|
"transfer_collateral",
|
|
157
156
|
"transfer_collateral_from_margin_account",
|
|
158
157
|
"transfer_collateral_from_parent_margin_account",
|