@0xmonaco/types 1.0.99 → 1.1.1
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.js +2 -2
- package/dist/margin-accounts/index.d.ts +24 -22
- package/dist/portfolio/index.d.ts +2 -1
- package/dist/trading/orders.d.ts +5 -6
- package/dist/validation/margin-accounts.js +2 -2
- package/dist/websocket/events/balance-events.d.ts +16 -20
- package/dist/wire/schema.d.ts +41 -33
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ export const GetBuildercodesConfigResponseSchema = z.object({
|
|
|
19
19
|
builderFeeEnabled: z.boolean(),
|
|
20
20
|
builderFeeBps: z.number().int().min(0).max(100),
|
|
21
21
|
builderFeeCapBps: z.number().int().min(0).max(100),
|
|
22
|
-
changesRemaining: z.number().int().min(0).max(
|
|
22
|
+
changesRemaining: z.number().int().min(0).max(100),
|
|
23
23
|
nextChangeAllowedAt: z.string().nullable().optional(),
|
|
24
24
|
/**
|
|
25
25
|
* The stored maker add-on in basis points: the additional fee this frontend
|
|
@@ -44,7 +44,7 @@ export const SetBuilderFeeParamsSchema = z.object({
|
|
|
44
44
|
export const SetBuilderFeeResponseSchema = z.object({
|
|
45
45
|
builderFeeBps: z.number().int().min(0).max(100),
|
|
46
46
|
previousBuilderFeeBps: z.number().int().min(0).max(100),
|
|
47
|
-
changesRemaining: z.number().int().min(0).max(
|
|
47
|
+
changesRemaining: z.number().int().min(0).max(100),
|
|
48
48
|
nextChangeAllowedAt: z.string().nullable().optional(),
|
|
49
49
|
/** The maker add-on now stored. Absent from servers older than this field. */
|
|
50
50
|
builderMakerFeeBps: z.number().int().min(0).max(100).optional(),
|
|
@@ -6,6 +6,12 @@ export interface MarginAccountSummary {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
riskBucketId?: string;
|
|
8
8
|
marginMode?: MarginMode;
|
|
9
|
+
/**
|
|
10
|
+
* On a cross risk-bucket row: the markets where the bucket has an open
|
|
11
|
+
* position, sorted by trading pair id. A market joins once a fill's position
|
|
12
|
+
* is persisted and leaves once its last position's close is persisted, so a
|
|
13
|
+
* position still being liquidated counts; resting orders alone do not.
|
|
14
|
+
*/
|
|
9
15
|
selectedTradingPairIds?: string[];
|
|
10
16
|
tradingPairId?: string;
|
|
11
17
|
strategyKey?: string;
|
|
@@ -87,9 +93,12 @@ export interface MarginAccountSummary {
|
|
|
87
93
|
* reducing, reduce-only, or opposite-side order sheltered by a larger
|
|
88
94
|
* resting ladder needs less or none of it (and can be admitted even when
|
|
89
95
|
* this field is zero), while an order crossing a losing position can need
|
|
90
|
-
* more than its own margin-plus-fee.
|
|
91
|
-
*
|
|
92
|
-
*
|
|
96
|
+
* more than its own margin-plus-fee. A bucket below its initial margin pays
|
|
97
|
+
* that gap out of the parent headroom first: its next order that opens,
|
|
98
|
+
* adds to or flips a position draws the gap with its own requirement, so
|
|
99
|
+
* the figure there is the headroom less the gap. Divide by a market's
|
|
100
|
+
* initial margin rate for indicative notional capacity; the authoritative
|
|
101
|
+
* per-order answer remains `simulateRiskBucketOrderRisk`.
|
|
93
102
|
*
|
|
94
103
|
* Present only on risk-bucket rows served from a live risk engine snapshot;
|
|
95
104
|
* absent (the key is omitted, never null) on parent rows and on
|
|
@@ -277,13 +286,10 @@ export interface TransferCollateralToIsolatedRiskBucketRequest extends TransferC
|
|
|
277
286
|
/**
|
|
278
287
|
* Fund the account's cross risk bucket from the parent's unallocated
|
|
279
288
|
* collateral (the bucket is created if needed). A cross transfer names no
|
|
280
|
-
* pairs: cross scope is
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
* response; the parent summary row carries no scope. Pairs declared before
|
|
285
|
-
* scope became derived stay recorded until they trade and their positions
|
|
286
|
-
* close.
|
|
289
|
+
* pairs: cross scope is the markets where the bucket has an open position, so
|
|
290
|
+
* funding has nothing to declare. Read the current scope from the cross
|
|
291
|
+
* bucket's row in `listMarginAccounts()` (`selectedTradingPairIds`) or from
|
|
292
|
+
* this call's response; the parent summary row carries no scope.
|
|
287
293
|
*/
|
|
288
294
|
export interface TransferCollateralToCrossRiskBucketRequest extends TransferCollateralToParentMarginAccountRequest {
|
|
289
295
|
marginMode: "CROSS";
|
|
@@ -320,6 +326,7 @@ export interface TransferCollateralResponse {
|
|
|
320
326
|
strategyKey?: string;
|
|
321
327
|
riskBucketId?: string;
|
|
322
328
|
marginMode?: MarginMode;
|
|
329
|
+
/** On a cross risk-bucket transfer: the markets where the bucket has an open position, sorted by trading pair id. */
|
|
323
330
|
selectedTradingPairIds?: string[];
|
|
324
331
|
asset: string;
|
|
325
332
|
amount: string;
|
|
@@ -423,11 +430,9 @@ export type SimulateIsolatedRiskBucketOrderRiskRequest = SimulateOrderRiskReques
|
|
|
423
430
|
/**
|
|
424
431
|
* Preview an order against the account's cross risk bucket, or the
|
|
425
432
|
* deterministic bucket a first cross order would create. A cross preview names
|
|
426
|
-
* no pairs: cross scope is
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
* so the previewed pair is in scope by construction. Read the derived scope
|
|
430
|
-
* the preview ran against from the response's `selectedTradingPairIds`.
|
|
433
|
+
* no pairs: cross scope is the markets where the bucket has an open position,
|
|
434
|
+
* and the previewed pair is in scope by construction. Read the scope the
|
|
435
|
+
* preview ran against from the response's `selectedTradingPairIds`.
|
|
431
436
|
*/
|
|
432
437
|
export type SimulateCrossRiskBucketOrderRiskRequest = SimulateOrderRiskRequest & {
|
|
433
438
|
marginMode: "CROSS";
|
|
@@ -463,13 +468,10 @@ export interface SimulateOrderRiskResponse {
|
|
|
463
468
|
marginMode?: MarginMode;
|
|
464
469
|
/**
|
|
465
470
|
* The cross scope the preview ran against; absent for isolated previews and
|
|
466
|
-
* never a caller's list
|
|
467
|
-
*
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
* that bucket, and the previewed pair — the previewed pair alone before the
|
|
471
|
-
* first cross order. `simulateOrderRisk` and `simulateParentMarginOrderRisk`
|
|
472
|
-
* report the recorded pairs plus the previewed pair.
|
|
471
|
+
* never a caller's list: the markets where the active cross bucket has an
|
|
472
|
+
* open position, sorted by trading pair id, then the previewed pair when it
|
|
473
|
+
* is not already among them — the previewed pair alone when no cross bucket
|
|
474
|
+
* is active yet.
|
|
473
475
|
*/
|
|
474
476
|
selectedTradingPairIds?: string[];
|
|
475
477
|
equityAfter: string;
|
|
@@ -273,7 +273,8 @@ export interface PortfolioRiskBucket {
|
|
|
273
273
|
/**
|
|
274
274
|
* The trading pair this bucket is scoped to. Present for `ISOLATED`
|
|
275
275
|
* buckets; absent (the key is omitted, never null) for `CROSS`, which spans
|
|
276
|
-
* the
|
|
276
|
+
* the markets where it has an open position and is scoped to none of them
|
|
277
|
+
* individually.
|
|
277
278
|
*
|
|
278
279
|
* For a cross bucket's membership read
|
|
279
280
|
* `MarginAccountSummary.selectedTradingPairIds` — it is not carried here
|
package/dist/trading/orders.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface Order {
|
|
|
46
46
|
/** Trading mode (SPOT or MARGIN) */
|
|
47
47
|
tradingMode: TradingMode;
|
|
48
48
|
/**
|
|
49
|
-
* Time in force - GTC, IOC, or FOK
|
|
49
|
+
* Time in force - GTC, IOC, or FOK.
|
|
50
50
|
* Absent on a MARKET order, which has none.
|
|
51
51
|
*/
|
|
52
52
|
timeInForce?: TimeInForce;
|
|
@@ -269,12 +269,11 @@ export type TradingMode = "SPOT" | "MARGIN";
|
|
|
269
269
|
* - GTC: Good Till Cancel - remains active until filled or canceled
|
|
270
270
|
* - IOC: Immediate or Cancel - execute immediately and cancel unfilled portion
|
|
271
271
|
* - FOK: Fill or Kill - execute completely or cancel entirely
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
* `GTC` together with `expirationDate`.
|
|
272
|
+
*
|
|
273
|
+
* For an order that expires at a set time, use `GTC` together with
|
|
274
|
+
* `expirationDate`.
|
|
276
275
|
*/
|
|
277
|
-
export type TimeInForce = "GTC" | "IOC" | "FOK"
|
|
276
|
+
export type TimeInForce = "GTC" | "IOC" | "FOK";
|
|
278
277
|
/**
|
|
279
278
|
* Per-order self-trade-prevention override: how the engine resolves the order
|
|
280
279
|
* matching against one of your own resting orders (whole wallet family,
|
|
@@ -117,7 +117,7 @@ const CrossTransferNamesNoPairsSchema = z
|
|
|
117
117
|
code: "custom",
|
|
118
118
|
path: ["selectedTradingPairIds"],
|
|
119
119
|
message: request.marginMode === "CROSS"
|
|
120
|
-
? "selectedTradingPairIds is not accepted on a CROSS transfer: cross scope is
|
|
120
|
+
? "selectedTradingPairIds is not accepted on a CROSS transfer: cross scope is the markets where the bucket has an open position, so a funding call has nothing to declare"
|
|
121
121
|
: "selectedTradingPairIds is not supported for ISOLATED risk buckets",
|
|
122
122
|
});
|
|
123
123
|
});
|
|
@@ -207,7 +207,7 @@ const CrossSimulateNamesNoPairsSchema = z
|
|
|
207
207
|
code: "custom",
|
|
208
208
|
path: ["selectedTradingPairIds"],
|
|
209
209
|
message: request.marginMode === "CROSS"
|
|
210
|
-
? "selectedTradingPairIds is not accepted on a CROSS preview: cross scope is
|
|
210
|
+
? "selectedTradingPairIds is not accepted on a CROSS preview: cross scope is the markets where the bucket has an open position, so a preview has nothing to declare"
|
|
211
211
|
: "selectedTradingPairIds is not supported for ISOLATED risk buckets",
|
|
212
212
|
});
|
|
213
213
|
});
|
|
@@ -8,24 +8,20 @@ import type { Address } from "viem";
|
|
|
8
8
|
/**
|
|
9
9
|
* Reason for the balance update.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
11
|
+
* Every `balance_update` carries one spot `user_balances` row. Its
|
|
12
|
+
* producer-owned `version`, when present, is scoped to the authenticated
|
|
13
|
+
* user/application and token: higher is newer, equal is idempotent. `fee` and `rebate` accompany a
|
|
14
|
+
* spot fill: `fee` when a taker/application fee is charged, `rebate` when a
|
|
15
|
+
* maker rebate is credited. A collateral transfer that moves the spot wallet
|
|
16
|
+
* row (`margin_transfer_in` / `margin_transfer_out`) sends a versioned spot
|
|
17
|
+
* frame for that leg.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* they are not spot rows, and a deposit notification can carry a delta rather
|
|
26
|
-
* than whole-row state.
|
|
27
|
-
* They cannot be reconciled against a spot snapshot or summed as separate
|
|
28
|
-
* credits; refresh authoritative margin-account state instead.
|
|
19
|
+
* Margin collateral is not a spot row and is not sent on this channel: a
|
|
20
|
+
* margin-routed deposit, a perp fill, a funding settlement, a liquidation and
|
|
21
|
+
* an auto-deleveraging close send no `balance_update`. Read margin collateral
|
|
22
|
+
* from the `account` channel. `margin_deposit`, `funding`, `liquidation` and
|
|
23
|
+
* `adl` stay in this union so existing code that names them still compiles;
|
|
24
|
+
* the server does not send them.
|
|
29
25
|
*/
|
|
30
26
|
export type BalanceUpdateReason = "lock" | "unlock" | "deposit" | "margin_deposit" | "withdrawal" | "trade" | "fee" | "rebate" | "funding" | "liquidation" | "adl" | "margin_transfer_in" | "margin_transfer_out";
|
|
31
27
|
/**
|
|
@@ -36,7 +32,7 @@ export interface UserBalanceEventData {
|
|
|
36
32
|
tokenAddress: Address;
|
|
37
33
|
/** Token symbol */
|
|
38
34
|
tokenSymbol: string | null;
|
|
39
|
-
/** Available balance
|
|
35
|
+
/** Available spot balance (normalized) */
|
|
40
36
|
available: string;
|
|
41
37
|
/** Available balance in raw format (wei) */
|
|
42
38
|
availableRaw: string;
|
|
@@ -49,8 +45,8 @@ export interface UserBalanceEventData {
|
|
|
49
45
|
/** Total balance in raw format (wei) */
|
|
50
46
|
totalRaw: string;
|
|
51
47
|
/**
|
|
52
|
-
* Opaque durable spot-row version.
|
|
53
|
-
*
|
|
48
|
+
* Opaque durable spot-row version. Absent on frames from a producer that
|
|
49
|
+
* does not stamp versions yet.
|
|
54
50
|
*
|
|
55
51
|
* Only a POSITIVE version is rankable. `0` is the legacy sentinel and means
|
|
56
52
|
* exactly what an absent field means — unranked — so normalize the two
|
package/dist/wire/schema.d.ts
CHANGED
|
@@ -733,8 +733,10 @@ export interface paths {
|
|
|
733
733
|
* maker add-on unchanged. Each must be between 0 and the current builder-fee
|
|
734
734
|
* cap (`builderFeeCapBps` on `GetBuildercodesConfig`) inclusive; the cap and
|
|
735
735
|
* the switches are shared by both sides. The application must be enrolled in
|
|
736
|
-
* BuilderCodes with a payout address.
|
|
737
|
-
* rolling 24 hours
|
|
736
|
+
* BuilderCodes with a payout address. The number of changes allowed in any
|
|
737
|
+
* rolling 24 hours is a limit Monaco sets (10 by default, never below 1);
|
|
738
|
+
* `changesRemaining` on `GetBuildercodesConfig` reports what is left. One
|
|
739
|
+
* call that sets both sides is one change; changes
|
|
738
740
|
* Monaco makes on the application's behalf do not count. Setting the values
|
|
739
741
|
* it already has is a no-op that succeeds and does not use up a change.
|
|
740
742
|
*
|
|
@@ -5892,7 +5894,7 @@ export interface components {
|
|
|
5892
5894
|
builderFeeCapBps?: number | null;
|
|
5893
5895
|
/**
|
|
5894
5896
|
* Format: uint32
|
|
5895
|
-
* @description Builder-fee changes this application can still make in the current rolling 24 hours (at most
|
|
5897
|
+
* @description Builder-fee changes this application can still make in the current rolling 24 hours, under the limit Monaco sets (10 by default, at most 100).
|
|
5896
5898
|
* @example 2
|
|
5897
5899
|
*/
|
|
5898
5900
|
changesRemaining?: number | null;
|
|
@@ -6144,6 +6146,10 @@ export interface components {
|
|
|
6144
6146
|
strategyKey?: string | null;
|
|
6145
6147
|
riskBucketId?: string | null;
|
|
6146
6148
|
marginMode?: string | null;
|
|
6149
|
+
/**
|
|
6150
|
+
* @description Present for cross risk-bucket summary rows: the markets where the cross
|
|
6151
|
+
* bucket has an open position, sorted by trading pair id.
|
|
6152
|
+
*/
|
|
6147
6153
|
selectedTradingPairIds?: string[] | null;
|
|
6148
6154
|
/**
|
|
6149
6155
|
* @description See `MarginAccountSummary.available_order_collateral`: the collateral
|
|
@@ -8610,7 +8616,13 @@ export interface components {
|
|
|
8610
8616
|
riskBucketId?: string | null;
|
|
8611
8617
|
/** @description Present only for risk-bucket summary rows. Values: ISOLATED, CROSS. */
|
|
8612
8618
|
marginMode?: string | null;
|
|
8613
|
-
/**
|
|
8619
|
+
/**
|
|
8620
|
+
* @description Present for cross risk-bucket summary rows: the markets where the cross
|
|
8621
|
+
* bucket has an open position, sorted by trading pair id. A market joins
|
|
8622
|
+
* once a fill's position is persisted and leaves once its last position's
|
|
8623
|
+
* close is persisted, so a position still being liquidated counts; resting
|
|
8624
|
+
* orders alone do not.
|
|
8625
|
+
*/
|
|
8614
8626
|
selectedTradingPairIds?: string[] | null;
|
|
8615
8627
|
/**
|
|
8616
8628
|
* @description The collateral still available to open NEW orders in this risk bucket:
|
|
@@ -8639,9 +8651,12 @@ export interface components {
|
|
|
8639
8651
|
* reducing, reduce-only, or opposite-side order sheltered by a larger
|
|
8640
8652
|
* resting ladder needs less or none of it (and can be admitted even when
|
|
8641
8653
|
* this field is zero), while an order crossing a losing position can need
|
|
8642
|
-
* more than its own margin-plus-fee.
|
|
8643
|
-
*
|
|
8644
|
-
*
|
|
8654
|
+
* more than its own margin-plus-fee. A bucket below its initial margin pays
|
|
8655
|
+
* that gap out of the parent headroom first: its next order that opens,
|
|
8656
|
+
* adds to or flips a position draws the gap with its own requirement, so
|
|
8657
|
+
* the figure there is the headroom less the gap. Divide by a market's
|
|
8658
|
+
* initial margin rate for indicative notional capacity; the authoritative
|
|
8659
|
+
* per-order answer remains `simulate_risk_bucket_order_risk`.
|
|
8645
8660
|
*
|
|
8646
8661
|
* Present only on risk-bucket summary rows served from a live risk engine
|
|
8647
8662
|
* snapshot; absent on parent rows and on persisted-fallback reads, where
|
|
@@ -9139,12 +9154,12 @@ export interface components {
|
|
|
9139
9154
|
/**
|
|
9140
9155
|
* Format: uuid
|
|
9141
9156
|
* @description Trading pair UUID this bucket is scoped to. Present for ISOLATED buckets;
|
|
9142
|
-
* absent for CROSS, which spans the
|
|
9143
|
-
* none of them individually — the same invariant the
|
|
9144
|
-
* enforces by rejecting a `trading_pair_id` in CROSS
|
|
9145
|
-
* bucket's membership from
|
|
9146
|
-
* it is not carried here
|
|
9147
|
-
* this endpoint an extra query per request.
|
|
9157
|
+
* absent for CROSS, which spans the markets where it has an open position and
|
|
9158
|
+
* is scoped to none of them individually — the same invariant the
|
|
9159
|
+
* transfer-in endpoint enforces by rejecting a `trading_pair_id` in CROSS
|
|
9160
|
+
* mode. Read the cross bucket's membership from
|
|
9161
|
+
* `MarginAccountSummary.selected_trading_pair_ids`; it is not carried here
|
|
9162
|
+
* because deriving it would cost this endpoint an extra query per request.
|
|
9148
9163
|
*
|
|
9149
9164
|
* These labels do NOT make this response row-for-row joinable with the
|
|
9150
9165
|
* margin-accounts surface on (mode, pair). That surface emits rows this one
|
|
@@ -10319,7 +10334,7 @@ export interface components {
|
|
|
10319
10334
|
previousBuilderFeeBps?: number | null;
|
|
10320
10335
|
/**
|
|
10321
10336
|
* Format: uint32
|
|
10322
|
-
* @description Builder-fee changes this application can still make in the current rolling 24 hours (at most
|
|
10337
|
+
* @description Builder-fee changes this application can still make in the current rolling 24 hours, under the limit Monaco sets (10 by default, at most 100).
|
|
10323
10338
|
* @example 1
|
|
10324
10339
|
*/
|
|
10325
10340
|
changesRemaining?: number | null;
|
|
@@ -10520,14 +10535,10 @@ export interface components {
|
|
|
10520
10535
|
marginMode?: string | null;
|
|
10521
10536
|
/**
|
|
10522
10537
|
* @description The cross scope the preview ran against; absent for isolated previews and
|
|
10523
|
-
* never a request's deprecated list
|
|
10524
|
-
*
|
|
10525
|
-
*
|
|
10526
|
-
*
|
|
10527
|
-
* position in that bucket, and the previewed pair — the previewed pair alone
|
|
10528
|
-
* before the first cross order. `SimulateOrderRisk` and
|
|
10529
|
-
* `SimulateParentMarginOrderRisk` report the recorded pairs plus the
|
|
10530
|
-
* previewed pair.
|
|
10538
|
+
* never a request's deprecated list: the markets where the active cross
|
|
10539
|
+
* bucket has an open position, sorted by trading pair id, then the previewed
|
|
10540
|
+
* pair when it is not already among them — the previewed pair alone when no
|
|
10541
|
+
* cross bucket is active yet.
|
|
10531
10542
|
*/
|
|
10532
10543
|
selectedTradingPairIds?: string[] | null;
|
|
10533
10544
|
/**
|
|
@@ -10631,7 +10642,7 @@ export interface components {
|
|
|
10631
10642
|
marginMode?: string | null;
|
|
10632
10643
|
/**
|
|
10633
10644
|
* @deprecated
|
|
10634
|
-
* @description Deprecated: accepted and ignored. Cross scope is
|
|
10645
|
+
* @description Deprecated: accepted and ignored. Cross scope is the markets where the cross bucket has an open position, so a cross preview has nothing to declare: it runs against the account's active cross bucket — or the deterministic bucket a first cross order would create — and the previewed pair is in scope by construction. Rejected for ISOLATED, as before. The response's selectedTradingPairIds reports that scope plus the previewed pair, never this list.
|
|
10635
10646
|
*/
|
|
10636
10647
|
selectedTradingPairIds?: string[] | null;
|
|
10637
10648
|
/**
|
|
@@ -11262,11 +11273,9 @@ export interface components {
|
|
|
11262
11273
|
/** @description Present when collateral was allocated to a risk bucket. Values: ISOLATED, CROSS. */
|
|
11263
11274
|
marginMode?: string | null;
|
|
11264
11275
|
/**
|
|
11265
|
-
* @description The cross bucket's
|
|
11266
|
-
*
|
|
11267
|
-
*
|
|
11268
|
-
* its positions close. Only on cross risk-bucket transfers, and omitted
|
|
11269
|
-
* while empty — i.e. until a cross order on the bucket has filled.
|
|
11276
|
+
* @description The cross bucket's scope: the markets where it has an open position,
|
|
11277
|
+
* sorted by trading pair id. Only on cross risk-bucket transfers, and
|
|
11278
|
+
* omitted while empty — i.e. while the bucket has no open position.
|
|
11270
11279
|
*/
|
|
11271
11280
|
selectedTradingPairIds?: string[] | null;
|
|
11272
11281
|
/**
|
|
@@ -11298,14 +11307,13 @@ export interface components {
|
|
|
11298
11307
|
strategyKey?: string | null;
|
|
11299
11308
|
/**
|
|
11300
11309
|
* @description Risk bucket mode. Defaults to ISOLATED. Values: ISOLATED, CROSS. A CROSS
|
|
11301
|
-
* transfer names no pairs: the cross bucket's scope is
|
|
11302
|
-
*
|
|
11303
|
-
* close — so funding the bucket has nothing to declare.
|
|
11310
|
+
* transfer names no pairs: the cross bucket's scope is the markets where it
|
|
11311
|
+
* has an open position, so funding the bucket has nothing to declare.
|
|
11304
11312
|
*/
|
|
11305
11313
|
marginMode?: string | null;
|
|
11306
11314
|
/**
|
|
11307
11315
|
* @deprecated
|
|
11308
|
-
* @description Deprecated: accepted and ignored. Cross scope is
|
|
11316
|
+
* @description Deprecated: accepted and ignored. Cross scope is the markets where the cross bucket has an open position, so a cross transfer-in has nothing to declare and can no longer replace the scope. Rejected for ISOLATED, as before. Read the current scope from the cross bucket's row in the margin-accounts list or from this response's selectedTradingPairIds; the parent row carries no scope.
|
|
11309
11317
|
*/
|
|
11310
11318
|
selectedTradingPairIds?: string[] | null;
|
|
11311
11319
|
/**
|
|
@@ -13926,7 +13934,7 @@ export interface operations {
|
|
|
13926
13934
|
};
|
|
13927
13935
|
content?: never;
|
|
13928
13936
|
};
|
|
13929
|
-
/** @description The application is not enrolled in BuilderCodes with a payout address, or it has already
|
|
13937
|
+
/** @description The application is not enrolled in BuilderCodes with a payout address, or it has already used every change the limit allows in the last 24 hours; the latter carries `details.nextChangeAllowedAt` (gRPC: FAILED_PRECONDITION) */
|
|
13930
13938
|
409: {
|
|
13931
13939
|
headers: {
|
|
13932
13940
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://docs.0xmonaco.com/sdk/typescript",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"lint": "biome lint ."
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@0xmonaco/contracts": "1.
|
|
19
|
+
"@0xmonaco/contracts": "1.1.1",
|
|
20
20
|
"zod": "^4.6.7"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|