@0xmonaco/types 1.0.51 → 1.0.54
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/margin-accounts/index.d.ts +40 -1
- package/dist/portfolio/index.d.ts +39 -0
- package/dist/positions/index.d.ts +10 -4
- package/dist/trading/index.d.ts +4 -0
- package/dist/trading/responses.d.ts +2 -0
- package/dist/validation/margin-accounts.d.ts +9 -3
- package/dist/validation/margin-accounts.js +31 -3
- package/dist/validation/trading.d.ts +5 -0
- package/dist/validation/trading.js +8 -0
- package/dist/websocket/base.d.ts +8 -7
- package/dist/websocket/client.d.ts +67 -18
- package/dist/websocket/client.js +39 -0
- package/dist/websocket/events/account-events.d.ts +3 -3
- package/dist/websocket/events/account-events.js +2 -2
- package/dist/websocket/events/instrument-events.d.ts +2 -3
- package/dist/websocket/events/instrument-events.js +2 -3
- package/dist/websocket/events/market-stats-events.d.ts +2 -3
- package/dist/websocket/events/market-stats-events.js +2 -3
- package/dist/websocket/events/orders-events.d.ts +29 -30
- package/dist/websocket/events/position-events.d.ts +2 -2
- package/dist/websocket/events/position-events.js +2 -2
- package/dist/websocket/index.d.ts +1 -0
- package/dist/websocket/index.js +1 -0
- package/dist/websocket/snapshots.d.ts +140 -0
- package/dist/websocket/snapshots.js +26 -0
- package/dist/wire/schema.d.ts +228 -15
- package/package.json +2 -2
package/dist/wire/schema.d.ts
CHANGED
|
@@ -2710,7 +2710,7 @@ export interface components {
|
|
|
2710
2710
|
};
|
|
2711
2711
|
BatchCreateError: {
|
|
2712
2712
|
/**
|
|
2713
|
-
* @description Machine-readable error code
|
|
2713
|
+
* @description Machine-readable error code. ORDER_SUBMISSION_CAPACITY_EXCEEDED refuses a new keyed submission when response-cache capacity is protected by pending durability or persistence. ORDER_SUBMISSION_UNAVAILABLE means the original response is temporarily unavailable or keyed admission is busy; it never authorizes duplicate execution. Retry the same key and payload; the 24-hour limit applies only to previously accepted keys.
|
|
2714
2714
|
* @example INSUFFICIENT_BALANCE
|
|
2715
2715
|
*/
|
|
2716
2716
|
code?: string | null;
|
|
@@ -2828,6 +2828,8 @@ export interface components {
|
|
|
2828
2828
|
* @example quote-btc-1130-a
|
|
2829
2829
|
*/
|
|
2830
2830
|
clientOrderId?: string | null;
|
|
2831
|
+
/** @description Optional submission identity, distinct from clientOrderId. Use 1-64 characters from [A-Za-z0-9._:-], without whitespace. Scoped to your authenticated user/subaccount and application, shared by create and batch-create items. Retrying the same key and normalized order payload within 24 hours of the original acceptance returns the original committed submission result, even after a fill or cancellation, without executing again. A full response cache does not prevent new keyed submissions: durable responses may be evicted while exact key history remains retained. If response capacity is protected by pending durability or persistence, a new key is refused with ORDER_SUBMISSION_CAPACITY_EXCEEDED. A retry whose original response cannot currently be retrieved returns ORDER_SUBMISSION_UNAVAILABLE and never executes again. Both are HTTP 503 / gRPC UNAVAILABLE, or per-item errors in batches. Retry the same key and payload; for previously accepted keys, stay within 24 hours of the original acceptance. A capacity refusal does not accept or reserve a new key. Different payload returns IDEMPOTENCY_KEY_CONFLICT (HTTP 409 / gRPC ALREADY_EXISTS; per-item error in batches). Validation failures before acceptance do not reserve the key. The window does not extend on retries; after it expires the key may execute a new order, so never retry an unresolved submission after 24 hours. Generate a fresh key for each intended new order and retain it across transport retries. Without a key, a timeout or 5xx leaves the outcome unknown and must not be blindly retried. */
|
|
2832
|
+
idempotencyKey?: string | null;
|
|
2831
2833
|
};
|
|
2832
2834
|
BatchCreateOrdersRequest: {
|
|
2833
2835
|
orders: components["schemas"]["BatchCreateOrderItem"][];
|
|
@@ -3340,6 +3342,8 @@ export interface components {
|
|
|
3340
3342
|
* @example quote-btc-1130-a
|
|
3341
3343
|
*/
|
|
3342
3344
|
clientOrderId?: string | null;
|
|
3345
|
+
/** @description Optional submission identity, distinct from clientOrderId. Use 1-64 characters from [A-Za-z0-9._:-], without whitespace. Scoped to your authenticated user/subaccount and application, shared by create and batch-create items. Retrying the same key and normalized order payload within 24 hours of the original acceptance returns the original committed submission result, even after a fill or cancellation, without executing again. A full response cache does not prevent new keyed submissions: durable responses may be evicted while exact key history remains retained. If response capacity is protected by pending durability or persistence, a new key is refused with ORDER_SUBMISSION_CAPACITY_EXCEEDED. A retry whose original response cannot currently be retrieved returns ORDER_SUBMISSION_UNAVAILABLE and never executes again. Both are HTTP 503 / gRPC UNAVAILABLE, or per-item errors in batches. Retry the same key and payload; for previously accepted keys, stay within 24 hours of the original acceptance. A capacity refusal does not accept or reserve a new key. Different payload returns IDEMPOTENCY_KEY_CONFLICT (HTTP 409 / gRPC ALREADY_EXISTS; per-item error in batches). Validation failures before acceptance do not reserve the key. The window does not extend on retries; after it expires the key may execute a new order, so never retry an unresolved submission after 24 hours. Generate a fresh key for each intended new order and retain it across transport retries. Without a key, a timeout or 5xx leaves the outcome unknown and must not be blindly retried. */
|
|
3346
|
+
idempotencyKey?: string | null;
|
|
3343
3347
|
};
|
|
3344
3348
|
CreateOrderResponse: {
|
|
3345
3349
|
/**
|
|
@@ -4202,10 +4206,11 @@ export interface components {
|
|
|
4202
4206
|
*/
|
|
4203
4207
|
totalQuoteVolumeLtd?: string | null;
|
|
4204
4208
|
/**
|
|
4209
|
+
* Format: int64
|
|
4205
4210
|
* @description Life-to-date cumulative number of trades (since market inception); 0 for a pair with no trades yet
|
|
4206
4211
|
* @example 482931
|
|
4207
4212
|
*/
|
|
4208
|
-
totalTradeCountLtd?:
|
|
4213
|
+
totalTradeCountLtd?: number | null;
|
|
4209
4214
|
/**
|
|
4210
4215
|
* @description Quote-token (notional) volume summed over the available candles in the rolling 24h window; null when quote volume is unavailable for the window
|
|
4211
4216
|
* @example 117845632.18
|
|
@@ -4220,10 +4225,11 @@ export interface components {
|
|
|
4220
4225
|
*/
|
|
4221
4226
|
totalQuoteVolumeLtd?: string | null;
|
|
4222
4227
|
/**
|
|
4228
|
+
* Format: int64
|
|
4223
4229
|
* @description Life-to-date cumulative number of trades summed across all trading pairs
|
|
4224
4230
|
* @example 19284736
|
|
4225
4231
|
*/
|
|
4226
|
-
totalTradeCountLtd?:
|
|
4232
|
+
totalTradeCountLtd?: number | null;
|
|
4227
4233
|
};
|
|
4228
4234
|
GetMovementsResponse: {
|
|
4229
4235
|
movements?: components["schemas"]["LedgerMovement"][] | null;
|
|
@@ -4816,10 +4822,22 @@ export interface components {
|
|
|
4816
4822
|
unrealizedPnl?: string | null;
|
|
4817
4823
|
realizedPnl?: string | null;
|
|
4818
4824
|
/**
|
|
4819
|
-
* @description Open rows:
|
|
4820
|
-
*
|
|
4821
|
-
*
|
|
4822
|
-
*
|
|
4825
|
+
* @description Open ISOLATED rows: the position's current backing — its risk bucket's
|
|
4826
|
+
* allocated collateral adjusted by settled realized PnL and funding paid,
|
|
4827
|
+
* net of collateral reserved for the bucket's open orders, clamped at zero
|
|
4828
|
+
* (0XM-2558). Partial closes and partial liquidations shrink the posted
|
|
4829
|
+
* margin pro-rata while the realized loss stays in the bucket, so this,
|
|
4830
|
+
* not the posted margin, is the unrealized-return denominator. Not a hard
|
|
4831
|
+
* -100% bound: the liquidation trigger and liquidation_price measure the
|
|
4832
|
+
* bucket's whole equity, order reserves included, so with a resting order
|
|
4833
|
+
* the return can pass -100% by that order's earmark before liquidation
|
|
4834
|
+
* lands; a mark can gap past the backing before the asynchronous
|
|
4835
|
+
* liquidation; a fully drained bucket serves "0". Served from the live risk
|
|
4836
|
+
* engine; when only persisted state is reachable the value is gross of
|
|
4837
|
+
* order reserves. Open CROSS rows fall back to the position's posted
|
|
4838
|
+
* margin. Terminal rows: total initial margin allocated across the
|
|
4839
|
+
* position's reducing executions when available — the margin basis for
|
|
4840
|
+
* lifetime realized return.
|
|
4823
4841
|
*/
|
|
4824
4842
|
isolatedMargin?: string | null;
|
|
4825
4843
|
leverage?: string | null;
|
|
@@ -6176,6 +6194,33 @@ export interface components {
|
|
|
6176
6194
|
* reconstructable.
|
|
6177
6195
|
*/
|
|
6178
6196
|
availableOrderCollateral?: string | null;
|
|
6197
|
+
/**
|
|
6198
|
+
* @description The mode this risk bucket is margined under. Always present: every row here is a risk bucket and its mode is a non-null column, unlike MarginAccountSummary.marginMode which is optional because that shape also models a parent row belonging to no bucket. Labels each row so bucket margin can be attributed to cross or isolated from this response alone, instead of resolving the opaque riskBucketId against the margin-accounts surface. It does NOT reconcile with the positions.cross / positions.isolated counts beside it: those are counted by a separate query over every margin account for the caller's user/application pair (these rows come from the single oldest, parent account), and they attribute a legacy position carrying no risk-bucket reference to CROSS whether or not a cross bucket row exists. Treat the counts as account-wide totals, not as a checksum over these rows.
|
|
6199
|
+
* @example CROSS
|
|
6200
|
+
* @enum {string}
|
|
6201
|
+
*/
|
|
6202
|
+
marginMode: "ISOLATED" | "CROSS";
|
|
6203
|
+
/**
|
|
6204
|
+
* Format: uuid
|
|
6205
|
+
* @description Trading pair UUID this bucket is scoped to. Present for ISOLATED buckets;
|
|
6206
|
+
* absent for CROSS, which spans the pairs selected into it and is scoped to
|
|
6207
|
+
* none of them individually — the same invariant the transfer-in endpoint
|
|
6208
|
+
* enforces by rejecting a `trading_pair_id` in CROSS mode. Read the cross
|
|
6209
|
+
* bucket's membership from `MarginAccountSummary.selected_trading_pair_ids`;
|
|
6210
|
+
* it is not carried here because it lives in a separate table and would cost
|
|
6211
|
+
* this endpoint an extra query per request.
|
|
6212
|
+
*
|
|
6213
|
+
* These labels do NOT make this response row-for-row joinable with the
|
|
6214
|
+
* margin-accounts surface on (mode, pair). That surface emits rows this one
|
|
6215
|
+
* has no counterpart for — a provisioned-but-unfunded auto bucket, and a
|
|
6216
|
+
* parent row with no mode at all — and on a persisted-fallback read (no live
|
|
6217
|
+
* risk engine snapshot) the two surfaces attribute a legacy position
|
|
6218
|
+
* carrying no risk-bucket reference to OPPOSITE buckets: this endpoint reads
|
|
6219
|
+
* it as cross, the margin-accounts summary as isolated on pair match. Use
|
|
6220
|
+
* these fields to label and group this response, not to cross-foot it
|
|
6221
|
+
* against another.
|
|
6222
|
+
*/
|
|
6223
|
+
tradingPairId?: string | null;
|
|
6179
6224
|
};
|
|
6180
6225
|
PortfolioSeriesWindow: {
|
|
6181
6226
|
/**
|
|
@@ -6255,10 +6300,22 @@ export interface components {
|
|
|
6255
6300
|
unrealizedPnl?: string | null;
|
|
6256
6301
|
realizedPnl?: string | null;
|
|
6257
6302
|
/**
|
|
6258
|
-
* @description Open rows:
|
|
6259
|
-
*
|
|
6260
|
-
*
|
|
6261
|
-
*
|
|
6303
|
+
* @description Open ISOLATED rows: the position's current backing — its risk bucket's
|
|
6304
|
+
* allocated collateral adjusted by settled realized PnL and funding paid,
|
|
6305
|
+
* net of collateral reserved for the bucket's open orders, clamped at zero
|
|
6306
|
+
* (0XM-2558). Partial closes and partial liquidations shrink the posted
|
|
6307
|
+
* margin pro-rata while the realized loss stays in the bucket, so this,
|
|
6308
|
+
* not the posted margin, is the unrealized-return denominator. Not a hard
|
|
6309
|
+
* -100% bound: the liquidation trigger and liquidation_price measure the
|
|
6310
|
+
* bucket's whole equity, order reserves included, so with a resting order
|
|
6311
|
+
* the return can pass -100% by that order's earmark before liquidation
|
|
6312
|
+
* lands; a mark can gap past the backing before the asynchronous
|
|
6313
|
+
* liquidation; a fully drained bucket serves "0". Served from the live risk
|
|
6314
|
+
* engine; when only persisted state is reachable the value is gross of
|
|
6315
|
+
* order reserves. Open CROSS rows fall back to the position's posted
|
|
6316
|
+
* margin. Terminal rows: total initial margin allocated across the
|
|
6317
|
+
* position's reducing executions when available — the margin basis for
|
|
6318
|
+
* lifetime realized return.
|
|
6262
6319
|
*/
|
|
6263
6320
|
isolatedMargin?: string | null;
|
|
6264
6321
|
leverage?: string | null;
|
|
@@ -6741,10 +6798,11 @@ export interface components {
|
|
|
6741
6798
|
*/
|
|
6742
6799
|
totalQuoteVolumeLtd?: string | null;
|
|
6743
6800
|
/**
|
|
6801
|
+
* Format: int64
|
|
6744
6802
|
* @description Life-to-date cumulative number of trades (since market inception); 0 for a pair with no trades yet
|
|
6745
6803
|
* @example 482931
|
|
6746
6804
|
*/
|
|
6747
|
-
totalTradeCountLtd?:
|
|
6805
|
+
totalTradeCountLtd?: number | null;
|
|
6748
6806
|
/**
|
|
6749
6807
|
* @description Latest settled funding rate as a decimal fraction per funding window (the capped settled value); null for spot pairs and margin pairs with no settled funding window yet
|
|
6750
6808
|
* @example 0.000125
|
|
@@ -6909,6 +6967,28 @@ export interface components {
|
|
|
6909
6967
|
initialMarginRequiredAfter?: string | null;
|
|
6910
6968
|
maintenanceMarginRequiredAfter?: string | null;
|
|
6911
6969
|
freeCollateralAfter?: string | null;
|
|
6970
|
+
/**
|
|
6971
|
+
* @description What this order pays in fees once its WHOLE size has executed, priced by
|
|
6972
|
+
* the role each part of it plays against the book right now: the taker rate
|
|
6973
|
+
* (plus the application's additional taker fee) on the quantity that would
|
|
6974
|
+
* cross immediately, and the maker rate on the quantity that would rest and
|
|
6975
|
+
* be filled later. Both rates are the caller's own tier-resolved rates. One
|
|
6976
|
+
* figure covers both cases — an order that crosses entirely, one that rests
|
|
6977
|
+
* entirely, and every split in between.
|
|
6978
|
+
*
|
|
6979
|
+
* Signed: NEGATIVE means a net rebate, which is the honest answer for a
|
|
6980
|
+
* resting order on a pair whose maker fee is negative. Populated even when
|
|
6981
|
+
* `accepted` is false, and populated for reduce-only orders — closing a
|
|
6982
|
+
* position pays fees like any other fill.
|
|
6983
|
+
*
|
|
6984
|
+
* It assumes the resting part eventually fills, so it states what the order
|
|
6985
|
+
* costs if it runs to completion, not a probability-weighted figure: cancel
|
|
6986
|
+
* before the remainder fills and only the crossing part was ever charged.
|
|
6987
|
+
*
|
|
6988
|
+
* ABSENT — never zero — when the engine could not price the order: it was
|
|
6989
|
+
* refused before it could be matched, or its resolved maker tier exceeds the
|
|
6990
|
+
* pair's cap. Absence means unknown, so do not render it as a free order.
|
|
6991
|
+
*/
|
|
6912
6992
|
estimatedFee?: string | null;
|
|
6913
6993
|
/**
|
|
6914
6994
|
* @description Estimated liquidation mark-price. In ISOLATED mode, this is the
|
|
@@ -7387,7 +7467,13 @@ export interface components {
|
|
|
7387
7467
|
riskBucketId?: string | null;
|
|
7388
7468
|
/** @description Present when collateral was allocated to a risk bucket. Values: ISOLATED, CROSS. */
|
|
7389
7469
|
marginMode?: string | null;
|
|
7390
|
-
/**
|
|
7470
|
+
/**
|
|
7471
|
+
* @description The cross bucket's recorded pair scope: what trading has recorded (a pair
|
|
7472
|
+
* joins when a cross order on it fills and leaves when its positions close),
|
|
7473
|
+
* plus any pair declared before scope became derived, until it trades and
|
|
7474
|
+
* its positions close. Only on cross risk-bucket transfers, and omitted
|
|
7475
|
+
* while empty — i.e. until a cross order on the bucket has filled.
|
|
7476
|
+
*/
|
|
7391
7477
|
selectedTradingPairIds?: string[] | null;
|
|
7392
7478
|
/**
|
|
7393
7479
|
* @description Whether the transfer was committed to a position's stored margin.
|
|
@@ -7414,9 +7500,17 @@ export interface components {
|
|
|
7414
7500
|
*/
|
|
7415
7501
|
tradingPairId?: string | null;
|
|
7416
7502
|
strategyKey?: string | null;
|
|
7417
|
-
/**
|
|
7503
|
+
/**
|
|
7504
|
+
* @description Risk bucket mode. Defaults to ISOLATED. Values: ISOLATED, CROSS. A CROSS
|
|
7505
|
+
* transfer names no pairs: the cross bucket's scope is derived from trading —
|
|
7506
|
+
* a pair joins when a cross order on it succeeds and leaves when its positions
|
|
7507
|
+
* close — so funding the bucket has nothing to declare.
|
|
7508
|
+
*/
|
|
7418
7509
|
marginMode?: string | null;
|
|
7419
|
-
/**
|
|
7510
|
+
/**
|
|
7511
|
+
* @deprecated
|
|
7512
|
+
* @description Deprecated: accepted and ignored. Cross scope is derived from trading (a pair joins the cross bucket when a cross order on it succeeds and leaves when its positions close), 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. Pairs declared before scope became derived stay recorded until they trade and their positions close.
|
|
7513
|
+
*/
|
|
7420
7514
|
selectedTradingPairIds?: string[] | null;
|
|
7421
7515
|
/**
|
|
7422
7516
|
* @description What the transferred collateral becomes when the ISOLATED bucket holds an
|
|
@@ -8071,6 +8165,13 @@ export interface operations {
|
|
|
8071
8165
|
};
|
|
8072
8166
|
content?: never;
|
|
8073
8167
|
};
|
|
8168
|
+
/** @description Portfolio analytics reader unavailable */
|
|
8169
|
+
503: {
|
|
8170
|
+
headers: {
|
|
8171
|
+
[name: string]: unknown;
|
|
8172
|
+
};
|
|
8173
|
+
content?: never;
|
|
8174
|
+
};
|
|
8074
8175
|
};
|
|
8075
8176
|
};
|
|
8076
8177
|
get_portfolio_assets: {
|
|
@@ -8165,6 +8266,13 @@ export interface operations {
|
|
|
8165
8266
|
};
|
|
8166
8267
|
content?: never;
|
|
8167
8268
|
};
|
|
8269
|
+
/** @description Portfolio analytics reader unavailable */
|
|
8270
|
+
503: {
|
|
8271
|
+
headers: {
|
|
8272
|
+
[name: string]: unknown;
|
|
8273
|
+
};
|
|
8274
|
+
content?: never;
|
|
8275
|
+
};
|
|
8168
8276
|
};
|
|
8169
8277
|
};
|
|
8170
8278
|
get_portfolio_margin: {
|
|
@@ -9832,6 +9940,13 @@ export interface operations {
|
|
|
9832
9940
|
"application/json": components["schemas"]["TransferCollateralToMarginAccountResponse"];
|
|
9833
9941
|
};
|
|
9834
9942
|
};
|
|
9943
|
+
/** @description Movement rate limit exceeded — withdrawals and collateral transfers share a per-user budget; retry after the interval in details.retryAfter */
|
|
9944
|
+
429: {
|
|
9945
|
+
headers: {
|
|
9946
|
+
[name: string]: unknown;
|
|
9947
|
+
};
|
|
9948
|
+
content?: never;
|
|
9949
|
+
};
|
|
9835
9950
|
};
|
|
9836
9951
|
};
|
|
9837
9952
|
transfer_collateral_from_margin_account: {
|
|
@@ -9862,6 +9977,13 @@ export interface operations {
|
|
|
9862
9977
|
"application/json": components["schemas"]["TransferCollateralFromMarginAccountResponse"];
|
|
9863
9978
|
};
|
|
9864
9979
|
};
|
|
9980
|
+
/** @description Movement rate limit exceeded — withdrawals and collateral transfers share a per-user budget; retry after the interval in details.retryAfter */
|
|
9981
|
+
429: {
|
|
9982
|
+
headers: {
|
|
9983
|
+
[name: string]: unknown;
|
|
9984
|
+
};
|
|
9985
|
+
content?: never;
|
|
9986
|
+
};
|
|
9865
9987
|
};
|
|
9866
9988
|
};
|
|
9867
9989
|
get_margin_account_movements: {
|
|
@@ -9993,6 +10115,13 @@ export interface operations {
|
|
|
9993
10115
|
"application/json": components["schemas"]["TransferCollateralToMarginAccountResponse"];
|
|
9994
10116
|
};
|
|
9995
10117
|
};
|
|
10118
|
+
/** @description Movement rate limit exceeded — withdrawals and collateral transfers share a per-user budget; retry after the interval in details.retryAfter */
|
|
10119
|
+
429: {
|
|
10120
|
+
headers: {
|
|
10121
|
+
[name: string]: unknown;
|
|
10122
|
+
};
|
|
10123
|
+
content?: never;
|
|
10124
|
+
};
|
|
9996
10125
|
};
|
|
9997
10126
|
};
|
|
9998
10127
|
transfer_collateral_from_parent_margin_account: {
|
|
@@ -10017,6 +10146,13 @@ export interface operations {
|
|
|
10017
10146
|
"application/json": components["schemas"]["TransferCollateralFromMarginAccountResponse"];
|
|
10018
10147
|
};
|
|
10019
10148
|
};
|
|
10149
|
+
/** @description Movement rate limit exceeded — withdrawals and collateral transfers share a per-user budget; retry after the interval in details.retryAfter */
|
|
10150
|
+
429: {
|
|
10151
|
+
headers: {
|
|
10152
|
+
[name: string]: unknown;
|
|
10153
|
+
};
|
|
10154
|
+
content?: never;
|
|
10155
|
+
};
|
|
10020
10156
|
};
|
|
10021
10157
|
};
|
|
10022
10158
|
get_parent_margin_account_movements: {
|
|
@@ -10091,6 +10227,13 @@ export interface operations {
|
|
|
10091
10227
|
"application/json": components["schemas"]["TransferCollateralToMarginAccountResponse"];
|
|
10092
10228
|
};
|
|
10093
10229
|
};
|
|
10230
|
+
/** @description Movement rate limit exceeded — withdrawals and collateral transfers share a per-user budget; retry after the interval in details.retryAfter */
|
|
10231
|
+
429: {
|
|
10232
|
+
headers: {
|
|
10233
|
+
[name: string]: unknown;
|
|
10234
|
+
};
|
|
10235
|
+
content?: never;
|
|
10236
|
+
};
|
|
10094
10237
|
};
|
|
10095
10238
|
};
|
|
10096
10239
|
simulate_risk_bucket_order_risk: {
|
|
@@ -10757,6 +10900,13 @@ export interface operations {
|
|
|
10757
10900
|
};
|
|
10758
10901
|
content?: never;
|
|
10759
10902
|
};
|
|
10903
|
+
/** @description Order rate limit exceeded — the per-account item-weighted budget is spent; retry after the interval in details.retryAfter */
|
|
10904
|
+
429: {
|
|
10905
|
+
headers: {
|
|
10906
|
+
[name: string]: unknown;
|
|
10907
|
+
};
|
|
10908
|
+
content?: never;
|
|
10909
|
+
};
|
|
10760
10910
|
/** @description Internal server error or matching engine failure */
|
|
10761
10911
|
500: {
|
|
10762
10912
|
headers: {
|
|
@@ -10764,6 +10914,13 @@ export interface operations {
|
|
|
10764
10914
|
};
|
|
10765
10915
|
content?: never;
|
|
10766
10916
|
};
|
|
10917
|
+
/** @description Keyed order submission temporarily unavailable; retry the same key and payload. For previously accepted keys, retry only within 24 hours of the original acceptance. A capacity refusal does not accept or reserve a new key. */
|
|
10918
|
+
503: {
|
|
10919
|
+
headers: {
|
|
10920
|
+
[name: string]: unknown;
|
|
10921
|
+
};
|
|
10922
|
+
content?: never;
|
|
10923
|
+
};
|
|
10767
10924
|
};
|
|
10768
10925
|
};
|
|
10769
10926
|
batch_cancel_orders: {
|
|
@@ -10802,6 +10959,13 @@ export interface operations {
|
|
|
10802
10959
|
};
|
|
10803
10960
|
content?: never;
|
|
10804
10961
|
};
|
|
10962
|
+
/** @description Risk-reduction rate limit exceeded — each id counts against the 2x risk-reduction budget and the whole request is rejected; retry after the interval in details.retryAfter */
|
|
10963
|
+
429: {
|
|
10964
|
+
headers: {
|
|
10965
|
+
[name: string]: unknown;
|
|
10966
|
+
};
|
|
10967
|
+
content?: never;
|
|
10968
|
+
};
|
|
10805
10969
|
/** @description Internal server error or matching engine failure */
|
|
10806
10970
|
500: {
|
|
10807
10971
|
headers: {
|
|
@@ -10925,6 +11089,13 @@ export interface operations {
|
|
|
10925
11089
|
};
|
|
10926
11090
|
content?: never;
|
|
10927
11091
|
};
|
|
11092
|
+
/** @description Order rate limit exceeded — each batch item counts against the per-account budget and the whole request is rejected; retry after the interval in details.retryAfter */
|
|
11093
|
+
429: {
|
|
11094
|
+
headers: {
|
|
11095
|
+
[name: string]: unknown;
|
|
11096
|
+
};
|
|
11097
|
+
content?: never;
|
|
11098
|
+
};
|
|
10928
11099
|
/** @description Internal server error */
|
|
10929
11100
|
500: {
|
|
10930
11101
|
headers: {
|
|
@@ -10970,6 +11141,13 @@ export interface operations {
|
|
|
10970
11141
|
};
|
|
10971
11142
|
content?: never;
|
|
10972
11143
|
};
|
|
11144
|
+
/** @description Order rate limit exceeded — each batch item counts against the per-account budget and the whole request is rejected; retry after the interval in details.retryAfter */
|
|
11145
|
+
429: {
|
|
11146
|
+
headers: {
|
|
11147
|
+
[name: string]: unknown;
|
|
11148
|
+
};
|
|
11149
|
+
content?: never;
|
|
11150
|
+
};
|
|
10973
11151
|
/** @description Internal server error */
|
|
10974
11152
|
500: {
|
|
10975
11153
|
headers: {
|
|
@@ -11022,6 +11200,13 @@ export interface operations {
|
|
|
11022
11200
|
};
|
|
11023
11201
|
content?: never;
|
|
11024
11202
|
};
|
|
11203
|
+
/** @description Risk-reduction rate limit exceeded — cancels draw the 2x risk-reduction budget; retry after the interval in details.retryAfter */
|
|
11204
|
+
429: {
|
|
11205
|
+
headers: {
|
|
11206
|
+
[name: string]: unknown;
|
|
11207
|
+
};
|
|
11208
|
+
content?: never;
|
|
11209
|
+
};
|
|
11025
11210
|
/** @description Internal server error */
|
|
11026
11211
|
500: {
|
|
11027
11212
|
headers: {
|
|
@@ -11104,6 +11289,13 @@ export interface operations {
|
|
|
11104
11289
|
"application/json": components["schemas"]["CancelConditionalOrderResponse"];
|
|
11105
11290
|
};
|
|
11106
11291
|
};
|
|
11292
|
+
/** @description Risk-reduction rate limit exceeded — cancels draw the 2x risk-reduction budget; retry after the interval in details.retryAfter */
|
|
11293
|
+
429: {
|
|
11294
|
+
headers: {
|
|
11295
|
+
[name: string]: unknown;
|
|
11296
|
+
};
|
|
11297
|
+
content?: never;
|
|
11298
|
+
};
|
|
11107
11299
|
};
|
|
11108
11300
|
};
|
|
11109
11301
|
list_twap_orders: {
|
|
@@ -11298,6 +11490,13 @@ export interface operations {
|
|
|
11298
11490
|
};
|
|
11299
11491
|
content?: never;
|
|
11300
11492
|
};
|
|
11493
|
+
/** @description Risk-reduction rate limit exceeded — cancels draw the 2x risk-reduction budget; retry after the interval in details.retryAfter */
|
|
11494
|
+
429: {
|
|
11495
|
+
headers: {
|
|
11496
|
+
[name: string]: unknown;
|
|
11497
|
+
};
|
|
11498
|
+
content?: never;
|
|
11499
|
+
};
|
|
11301
11500
|
/** @description Internal server error */
|
|
11302
11501
|
500: {
|
|
11303
11502
|
headers: {
|
|
@@ -11461,6 +11660,13 @@ export interface operations {
|
|
|
11461
11660
|
};
|
|
11462
11661
|
content?: never;
|
|
11463
11662
|
};
|
|
11663
|
+
/** @description Order rate limit exceeded — the per-account item-weighted budget is spent; retry after the interval in details.retryAfter */
|
|
11664
|
+
429: {
|
|
11665
|
+
headers: {
|
|
11666
|
+
[name: string]: unknown;
|
|
11667
|
+
};
|
|
11668
|
+
content?: never;
|
|
11669
|
+
};
|
|
11464
11670
|
/** @description Internal server error */
|
|
11465
11671
|
500: {
|
|
11466
11672
|
headers: {
|
|
@@ -12348,6 +12554,13 @@ export interface operations {
|
|
|
12348
12554
|
};
|
|
12349
12555
|
content?: never;
|
|
12350
12556
|
};
|
|
12557
|
+
/** @description Movement rate limit exceeded — withdrawals and collateral transfers share a per-user budget; retry after the interval in details.retryAfter */
|
|
12558
|
+
429: {
|
|
12559
|
+
headers: {
|
|
12560
|
+
[name: string]: unknown;
|
|
12561
|
+
};
|
|
12562
|
+
content?: never;
|
|
12563
|
+
};
|
|
12351
12564
|
/** @description Internal server error */
|
|
12352
12565
|
500: {
|
|
12353
12566
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
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.0.
|
|
19
|
+
"@0xmonaco/contracts": "1.0.54",
|
|
20
20
|
"zod": "^4.1.12"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|