@0xmonaco/types 1.0.56 → 1.0.57

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.
@@ -238,6 +238,6 @@ export interface TradingAPI extends BaseAPI {
238
238
  */
239
239
  listTwapOrders(params?: ListTwapOrdersParams): Promise<ListTwapOrdersResponse>;
240
240
  }
241
- export type { ConditionalOrderConditionType, ConditionalOrderState, ConditionalOrderTriggerSource, Order, OrderRole, OrderSide, OrderStatus, OrderStatusFilter, OrderTerminalReason, OrderType, PositionSide, TimeInForce, TradingMode, TwapExecutionStyle, TwapOrderState, } from "./orders";
241
+ export type { ConditionalOrderConditionType, ConditionalOrderState, ConditionalOrderTriggerSource, ListedOrderType, Order, OrderRole, OrderSide, OrderStatus, OrderStatusFilter, OrderTerminalReason, OrderType, PositionSide, TimeInForce, TradingMode, TwapExecutionStyle, TwapOrderState, } from "./orders";
242
242
  export { ORDER_STATUS_VALUES } from "./orders";
243
243
  export type { BatchCancelError, BatchCancelOrdersResponse, BatchCancelResult, BatchCreateOrderParams, BatchCreateOrdersResponse, BatchCreateResult, BatchError, BatchReplaceOrderParams, BatchReplaceOrdersResponse, BatchReplaceResult, CancelConditionalOrderResponse, CancelOrderResponse, CancelTwapOrderResponse, ConditionalOrder, CreateOrderResponse, CreateTwapOrderOptions, CreateTwapOrderResponse, GetOrderResponse, GetPaginatedOrdersParams, GetPaginatedOrdersResponse, GetTwapOrderTcaResponse, ListConditionalOrdersParams, ListConditionalOrdersResponse, ListTwapOrdersParams, ListTwapOrdersResponse, MatchResult, ParentTpSlLegParams, ReplaceOrderResponse, TwapOrder, UpdatedFields, } from "./responses";
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * Types for trading operations and order management.
5
5
  */
6
+ import type { ConditionalOrder, TwapOrder } from "./responses";
6
7
  /**
7
8
  * Standard order structure used across all order-related responses.
8
9
  * This represents the complete order information as returned by the API.
@@ -13,6 +14,13 @@
13
14
  * Orders can transition to `CANCELLED`, `REJECTED`, or `EXPIRED` at various stages.
14
15
  * Fee fields are only populated after order fills occur.
15
16
  *
17
+ * The order listing returns every kind of order in one stream, so a row here
18
+ * may be a book order, a TWAP parent (`orderType: "TWAP"`) or a conditional
19
+ * order (`orderType: "CONDITIONAL"`). Switch on `orderType`: the kind-specific
20
+ * detail hangs off `twap` / `conditional`, and the fields above are populated
21
+ * for every kind — a parent's `quantity` is its total, `filledQuantity` what
22
+ * it has executed so far, and `status` its state expressed as an order status.
23
+ *
16
24
  * @example
17
25
  * To calculate remaining quantity:
18
26
  * ```typescript
@@ -26,8 +34,8 @@ export interface Order {
26
34
  tradingPairId: string;
27
35
  /** Order side (BUY or SELL) */
28
36
  side: OrderSide;
29
- /** Order type - see OrderType for all supported types */
30
- orderType: OrderType;
37
+ /** What kind of order this row is - see ListedOrderType */
38
+ orderType: ListedOrderType;
31
39
  /** Order status - see OrderStatus for lifecycle details */
32
40
  status: OrderStatus;
33
41
  /** Order price - null for market orders, required for limit orders */
@@ -82,6 +90,18 @@ export interface Order {
82
90
  clientOrderId?: string;
83
91
  /** Position ID linked to the order, when available */
84
92
  positionId?: string;
93
+ /**
94
+ * The TWAP parent behind this row - its schedule, slice counters and
95
+ * progress - present only when `orderType` is `"TWAP"`. Identical to what
96
+ * `getTwapOrder` returns for the same id.
97
+ */
98
+ twap?: TwapOrder;
99
+ /**
100
+ * The conditional order behind this row - its trigger and the order it fires
101
+ * - present only when `orderType` is `"CONDITIONAL"`. Identical to what the
102
+ * conditional-order endpoints return for the same id.
103
+ */
104
+ conditional?: ConditionalOrder;
85
105
  /** Stable cause when status is CANCELLED */
86
106
  terminalReason?: OrderTerminalReason;
87
107
  /**
@@ -154,6 +174,16 @@ export type PositionSide = "LONG" | "SHORT" | "NONE";
154
174
  * - TRAILING_STOP: Stop order that trails the market price
155
175
  */
156
176
  export type OrderType = "LIMIT" | "MARKET";
177
+ /**
178
+ * What kind of order a listed row is.
179
+ *
180
+ * Wider than {@link OrderType}, which is what you can place: the order listing
181
+ * serves book orders, TWAP parents and conditional orders as one stream, and
182
+ * `"TWAP"` / `"CONDITIONAL"` name the two kinds that are created through their
183
+ * own endpoints rather than `createOrder`. A row of either kind carries its
184
+ * detail on {@link Order.twap} or {@link Order.conditional}.
185
+ */
186
+ export type ListedOrderType = OrderType | "TWAP" | "CONDITIONAL";
157
187
  /**
158
188
  * Source-of-truth order status values used by runtime validation schemas.
159
189
  */
@@ -300,11 +300,11 @@ export declare const ConditionalOrderTriggerSourceSchema: z.ZodEnum<{
300
300
  export declare const ConditionalOrderStateSchema: z.ZodEnum<{
301
301
  CANCELLED: "CANCELLED";
302
302
  EXPIRED: "EXPIRED";
303
+ FAILED: "FAILED";
303
304
  PENDING_PARENT: "PENDING_PARENT";
304
305
  ACTIVE: "ACTIVE";
305
306
  TRIGGERING: "TRIGGERING";
306
307
  TRIGGERED: "TRIGGERED";
307
- FAILED: "FAILED";
308
308
  }>;
309
309
  export declare const ClosePositionSideSchema: z.ZodEnum<{
310
310
  LONG: "LONG";
@@ -319,11 +319,11 @@ export declare const ListConditionalOrdersSchema: z.ZodObject<{
319
319
  state: z.ZodOptional<z.ZodEnum<{
320
320
  CANCELLED: "CANCELLED";
321
321
  EXPIRED: "EXPIRED";
322
+ FAILED: "FAILED";
322
323
  PENDING_PARENT: "PENDING_PARENT";
323
324
  ACTIVE: "ACTIVE";
324
325
  TRIGGERING: "TRIGGERING";
325
326
  TRIGGERED: "TRIGGERED";
326
- FAILED: "FAILED";
327
327
  }>>;
328
328
  page: z.ZodOptional<z.ZodNumber>;
329
329
  pageSize: z.ZodOptional<z.ZodNumber>;
@@ -2944,7 +2944,7 @@ export interface components {
2944
2944
  */
2945
2945
  postOnly?: boolean | null;
2946
2946
  /**
2947
- * @description Client-assigned correlation handle, echoed back on order reads (detail and list) and on order WebSocket events. At most 64 characters from [A-Za-z0-9._:-]; surrounding whitespace is trimmed before storage, and a blank or whitespace-only value is treated as absent. Uniqueness is enforced only among your orders that are RESTING on the book: an item reusing a value another of your resting orders still holds fails that item alone — the batch itself returns 2xx / OK and the offending item's result slot carries error.code CLIENT_ORDER_ID_CONFLICT; no transport-level 409 / ALREADY_EXISTS is raised. An order that never rests — MARKET, IOC/FOK, or a LIMIT that fills completely on arrival — does not take the handle, and the value is released the moment any order reaches a terminal state. It is therefore NOT an idempotency key, though on this replace path a retry cannot double-execute: the request names the original order id, and the sequencer revalidates that original in memory and on the book at sequence time, so once the first replacement succeeds the original is gone and a retry is rejected with ORDER_NOT_FOUND rather than placing a second order. That code is itself ambiguous — the original may instead have filled or been cancelled — so the risk here is acting on a stale view, not duplicate execution. Reconcile a lost response against the order WebSocket stream, which carries this value on the submit acknowledgement and on fills, including for orders that never rest; order history is replica-backed and can omit an order that did land. The stream is not replayable and has no sequence number to backfill from, and its fan-out is non-persistent Core NATS: the service can re-establish an ended upstream subscription without closing your socket, so events can be missed while your connection still looks healthy. A matching event is therefore positive proof the order was accepted, but silence is NEVER evidence it was not, and no client-observable condition makes it so. Absent positive evidence the outcome is unresolved: hold and escalate rather than resubmitting. A replace item carries no order type or time-in-force and its original must still be RESTING, so the IOC/FOK and MARKET post-acceptance rejection shapes are unreachable here. Failures split by WHEN they occur, and the difference decides whether your original survives. Before sequencing: a malformed value is caught up front and rejects the whole batch with HTTP 400 / gRPC INVALID_ARGUMENT, and a per-item validation failure fails that item with no mutation and no event. A pre-cancel gate then drops two more classes before anything is cancelled — a handle conflict, and a post-only replacement that would cross the book as it will stand once this batch's originals are cancelled — so in the ordinary POST_ONLY_WOULD_CROSS case the item fails with its original still RESTING and untouched. After that the endpoint is CANCEL-FIRST: the original is cancelled in pass 1, so a residual placement failure then — a self-trade rejection, or a crossing that only became apparent in pass 2 — leaves the original CANCELLED and emits its cancellation events (terminal reason 'replaced') while the item reports the placement error and no replacement is placed. Never assume a failed item left your original resting; read results[] and the stream. Single ReplaceOrder differs: it is atomic, and a rejected replacement leaves the original untouched. Where no surface is conclusive, do not resubmit. A replacement is a new order with a new id, so it carries its own value and inherits nothing from the original — restate it to keep the handle.
2947
+ * @description Client-assigned correlation handle, echoed back on order reads (detail and list) and on order WebSocket events. At most 64 characters from [A-Za-z0-9._:-]; surrounding whitespace is trimmed before storage, and a blank or whitespace-only value is treated as absent. Uniqueness is enforced only among your orders that are RESTING on the book: an item reusing a value another of your resting orders still holds fails that item alone — the batch itself returns 2xx / OK and the offending item's result slot carries error.code CLIENT_ORDER_ID_CONFLICT; no transport-level 409 / ALREADY_EXISTS is raised. An order that never rests — MARKET, IOC/FOK, or a LIMIT that fills completely on arrival — does not take the handle, and the value is released the moment any order reaches a terminal state. It is therefore NOT an idempotency key, though on this replace path a retry cannot double-execute: the request names the original order id, and the sequencer revalidates that original in memory and on the book at sequence time, so once the first replacement succeeds the original is gone and a retry is rejected with ORDER_NOT_FOUND rather than placing a second order. That code is itself ambiguous — the original may instead have filled or been cancelled — so the risk here is acting on a stale view, not duplicate execution. Reconcile a lost response against the order WebSocket stream, which carries this value on the submit acknowledgement and on fills, including for orders that never rest; order history is replica-backed and can omit an order that did land. The stream is not replayable and has no sequence number to backfill from, and its fan-out is non-persistent Core NATS: the service can re-establish an ended upstream subscription without closing your socket, so events can be missed while your connection still looks healthy. A matching event is therefore positive proof the order was accepted, but silence is NEVER evidence it was not, and no client-observable condition makes it so. Absent positive evidence the outcome is unresolved: hold and escalate rather than resubmitting. A replace item carries no order type or time-in-force and its original must still be RESTING, so the IOC/FOK and MARKET post-acceptance rejection shapes are unreachable here. Failures split by WHEN they occur, and the difference decides whether your original survives. Before sequencing: every validation failure — a malformed value included — fails ITS ITEM alone with a structured error.code (INVALID_CLIENT_ORDER_ID for a malformed handle, the same code batch-create uses) and no mutation and no event, batch-create parity; the whole request 400s only for an empty or oversize batch. (Earlier releases rejected the whole batch for a malformed value here.) A pre-cancel gate then drops two more classes before anything is cancelled — a handle conflict, and a post-only replacement that would cross the book as it will stand once this batch's originals are cancelled — so in the ordinary POST_ONLY_WOULD_CROSS case the item fails with its original still RESTING and untouched. After that the endpoint is CANCEL-FIRST: the original is cancelled in pass 1, so a residual placement failure then — a self-trade rejection, or a crossing that only became apparent in pass 2 — leaves the original CANCELLED and emits its cancellation events (terminal reason 'replaced') while the item reports the placement error and no replacement is placed. Never assume a failed item left your original resting; read results[] and the stream. Single ReplaceOrder differs: it is atomic, and a rejected replacement leaves the original untouched. Where no surface is conclusive, do not resubmit. A replacement is a new order with a new id, so it carries its own value and inherits nothing from the original — restate it to keep the handle.
2948
2948
  * @example quote-btc-1130-a
2949
2949
  */
2950
2950
  clientOrderId?: string | null;
@@ -4386,7 +4386,7 @@ export interface components {
4386
4386
  */
4387
4387
  tradingPairId?: string | null;
4388
4388
  /**
4389
- * @description Order type: LIMIT or MARKET
4389
+ * @description What kind of order this row is: LIMIT or MARKET for a book order, TWAP for a TWAP parent, CONDITIONAL for a price-triggered order. TWAP and CONDITIONAL appear only in responses — they name a row's kind and cannot be placed through the create-order request, which still takes LIMIT, MARKET or IOC. A row of either kind carries its kind-specific fields in `twap` or `conditional`; the fields shared by every kind (id, side, quantity, status, timestamps) are populated in place as usual.
4390
4390
  * @example LIMIT
4391
4391
  */
4392
4392
  orderType?: string | null;
@@ -4396,7 +4396,7 @@ export interface components {
4396
4396
  */
4397
4397
  side?: string | null;
4398
4398
  /**
4399
- * @description Limit price (null for market orders)
4399
+ * @description Limit price (null for market orders). For a TWAP parent this is its optional parent-level limit price, and for a conditional order the limit price its triggered order will carry (null when it triggers as a market order).
4400
4400
  * @example 35000.00
4401
4401
  */
4402
4402
  price?: string | null;
@@ -4588,6 +4588,10 @@ export interface components {
4588
4588
  * @example false
4589
4589
  */
4590
4590
  postOnly?: boolean | null;
4591
+ /** @description Present only when orderType is TWAP: the full TWAP parent, identical to what GET /api/v1/orders/twap/{twapOrderId} returns — schedule, slice counters, progress, and terminal reason. The row's shared fields mirror it: quantity is the parent's total quantity, filledQuantity its executed quantity, and status maps its state onto the order statuses. */
4592
+ twap?: components["schemas"]["TwapOrder"] | null;
4593
+ /** @description Present only when orderType is CONDITIONAL: the full conditional order, identical to what the conditional-order endpoints return — trigger price and direction, condition type, linked group, and the order it triggers into. The row's shared fields mirror it, with status mapping its state onto the order statuses. */
4594
+ conditional?: components["schemas"]["ConditionalOrder"] | null;
4591
4595
  /**
4592
4596
  * Format: int64
4593
4597
  * @description Opaque, compare-only revision counter for this order's state: the sequencer step that wrote it. A strictly higher value is strictly newer state for that order. The SAME counter is carried on every order WebSocket event and on the `orders` snapshot frame, so a reconnecting client reconciles on `(id, version)` — take the REST row when `snapshot.version >= local.version`, else keep local state. Note `>=`, not `>`: on the stream, equal versions mean the SAME STEP rather than identical state, because one step emits several events for one order (an `OrderPlaced` and then its fills) and a batch shares one step across every item. A REST row is that step's FINAL state, so it wins a tie. Between two REST reads the comparison is simpler — equal there does mean identical state. Do not read anything else into the number: it is not a count of updates, consecutive values are not expected (it is drawn from a global sequence shared by every order, so per-order values are sparse and gaps are normal), and it is not comparable across different orders. Absent means unknown: an order last written before this field existed. Fall back to a full field comparison for those rather than treating absent as version zero — and note that a comparison against an absent value is false in both directions, so an order held locally without one is never refreshed by the merge above; take the REST row unconditionally for those. Reconciling on this counter does NOT on its own close a reconnect gap: an order that filled or was cancelled while the socket was down appears in neither the resting snapshot nor the stream, so recover fills from `listUserTrades` (ordered by execution time) and resolve anything your local state believes is resting that the snapshot no longer lists with a targeted `getOrder`. Unlike `updatedAt`, this value is identical on every REST endpoint that serves the same order state, and never advances without a state change.
@@ -8058,6 +8062,13 @@ export interface operations {
8058
8062
  };
8059
8063
  content?: never;
8060
8064
  };
8065
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8066
+ 429: {
8067
+ headers: {
8068
+ [name: string]: unknown;
8069
+ };
8070
+ content?: never;
8071
+ };
8061
8072
  /** @description Internal server error */
8062
8073
  500: {
8063
8074
  headers: {
@@ -8109,6 +8120,13 @@ export interface operations {
8109
8120
  };
8110
8121
  content?: never;
8111
8122
  };
8123
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8124
+ 429: {
8125
+ headers: {
8126
+ [name: string]: unknown;
8127
+ };
8128
+ content?: never;
8129
+ };
8112
8130
  /** @description Internal server error */
8113
8131
  500: {
8114
8132
  headers: {
@@ -8159,6 +8177,13 @@ export interface operations {
8159
8177
  };
8160
8178
  content?: never;
8161
8179
  };
8180
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8181
+ 429: {
8182
+ headers: {
8183
+ [name: string]: unknown;
8184
+ };
8185
+ content?: never;
8186
+ };
8162
8187
  /** @description Internal server error */
8163
8188
  500: {
8164
8189
  headers: {
@@ -8207,6 +8232,13 @@ export interface operations {
8207
8232
  };
8208
8233
  content?: never;
8209
8234
  };
8235
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8236
+ 429: {
8237
+ headers: {
8238
+ [name: string]: unknown;
8239
+ };
8240
+ content?: never;
8241
+ };
8210
8242
  /** @description Internal server error */
8211
8243
  500: {
8212
8244
  headers: {
@@ -8250,6 +8282,13 @@ export interface operations {
8250
8282
  };
8251
8283
  content?: never;
8252
8284
  };
8285
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8286
+ 429: {
8287
+ headers: {
8288
+ [name: string]: unknown;
8289
+ };
8290
+ content?: never;
8291
+ };
8253
8292
  /** @description Internal server error */
8254
8293
  500: {
8255
8294
  headers: {
@@ -8300,6 +8339,13 @@ export interface operations {
8300
8339
  };
8301
8340
  content?: never;
8302
8341
  };
8342
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8343
+ 429: {
8344
+ headers: {
8345
+ [name: string]: unknown;
8346
+ };
8347
+ content?: never;
8348
+ };
8303
8349
  /** @description Internal server error */
8304
8350
  500: {
8305
8351
  headers: {
@@ -8351,6 +8397,13 @@ export interface operations {
8351
8397
  };
8352
8398
  content?: never;
8353
8399
  };
8400
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8401
+ 429: {
8402
+ headers: {
8403
+ [name: string]: unknown;
8404
+ };
8405
+ content?: never;
8406
+ };
8354
8407
  /** @description Internal server error */
8355
8408
  500: {
8356
8409
  headers: {
@@ -8392,6 +8445,13 @@ export interface operations {
8392
8445
  };
8393
8446
  content?: never;
8394
8447
  };
8448
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8449
+ 429: {
8450
+ headers: {
8451
+ [name: string]: unknown;
8452
+ };
8453
+ content?: never;
8454
+ };
8395
8455
  /** @description Internal server error */
8396
8456
  500: {
8397
8457
  headers: {
@@ -8442,6 +8502,13 @@ export interface operations {
8442
8502
  };
8443
8503
  content?: never;
8444
8504
  };
8505
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8506
+ 429: {
8507
+ headers: {
8508
+ [name: string]: unknown;
8509
+ };
8510
+ content?: never;
8511
+ };
8445
8512
  /** @description Internal server error */
8446
8513
  500: {
8447
8514
  headers: {
@@ -8492,6 +8559,13 @@ export interface operations {
8492
8559
  };
8493
8560
  content?: never;
8494
8561
  };
8562
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8563
+ 429: {
8564
+ headers: {
8565
+ [name: string]: unknown;
8566
+ };
8567
+ content?: never;
8568
+ };
8495
8569
  /** @description Internal server error */
8496
8570
  500: {
8497
8571
  headers: {
@@ -8542,6 +8616,13 @@ export interface operations {
8542
8616
  };
8543
8617
  content?: never;
8544
8618
  };
8619
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8620
+ 429: {
8621
+ headers: {
8622
+ [name: string]: unknown;
8623
+ };
8624
+ content?: never;
8625
+ };
8545
8626
  /** @description Internal server error */
8546
8627
  500: {
8547
8628
  headers: {
@@ -8610,6 +8691,13 @@ export interface operations {
8610
8691
  };
8611
8692
  content?: never;
8612
8693
  };
8694
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8695
+ 429: {
8696
+ headers: {
8697
+ [name: string]: unknown;
8698
+ };
8699
+ content?: never;
8700
+ };
8613
8701
  /** @description Internal server error */
8614
8702
  500: {
8615
8703
  headers: {
@@ -8658,6 +8746,13 @@ export interface operations {
8658
8746
  };
8659
8747
  content?: never;
8660
8748
  };
8749
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8750
+ 429: {
8751
+ headers: {
8752
+ [name: string]: unknown;
8753
+ };
8754
+ content?: never;
8755
+ };
8661
8756
  /** @description Internal server error */
8662
8757
  500: {
8663
8758
  headers: {
@@ -8777,6 +8872,13 @@ export interface operations {
8777
8872
  };
8778
8873
  content?: never;
8779
8874
  };
8875
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
8876
+ 429: {
8877
+ headers: {
8878
+ [name: string]: unknown;
8879
+ };
8880
+ content?: never;
8881
+ };
8780
8882
  /** @description Internal server error */
8781
8883
  500: {
8782
8884
  headers: {
@@ -8973,6 +9075,13 @@ export interface operations {
8973
9075
  };
8974
9076
  content?: never;
8975
9077
  };
9078
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
9079
+ 429: {
9080
+ headers: {
9081
+ [name: string]: unknown;
9082
+ };
9083
+ content?: never;
9084
+ };
8976
9085
  /** @description Internal server error */
8977
9086
  500: {
8978
9087
  headers: {
@@ -9071,6 +9180,13 @@ export interface operations {
9071
9180
  };
9072
9181
  content?: never;
9073
9182
  };
9183
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
9184
+ 429: {
9185
+ headers: {
9186
+ [name: string]: unknown;
9187
+ };
9188
+ content?: never;
9189
+ };
9074
9190
  /** @description Internal server error */
9075
9191
  500: {
9076
9192
  headers: {
@@ -9524,6 +9640,13 @@ export interface operations {
9524
9640
  };
9525
9641
  content?: never;
9526
9642
  };
9643
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
9644
+ 429: {
9645
+ headers: {
9646
+ [name: string]: unknown;
9647
+ };
9648
+ content?: never;
9649
+ };
9527
9650
  /** @description Internal server error */
9528
9651
  500: {
9529
9652
  headers: {
@@ -9610,6 +9733,13 @@ export interface operations {
9610
9733
  };
9611
9734
  content?: never;
9612
9735
  };
9736
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
9737
+ 429: {
9738
+ headers: {
9739
+ [name: string]: unknown;
9740
+ };
9741
+ content?: never;
9742
+ };
9613
9743
  /** @description Internal server error */
9614
9744
  500: {
9615
9745
  headers: {
@@ -9754,6 +9884,13 @@ export interface operations {
9754
9884
  };
9755
9885
  content?: never;
9756
9886
  };
9887
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
9888
+ 429: {
9889
+ headers: {
9890
+ [name: string]: unknown;
9891
+ };
9892
+ content?: never;
9893
+ };
9757
9894
  /** @description Internal server error */
9758
9895
  500: {
9759
9896
  headers: {
@@ -9887,6 +10024,13 @@ export interface operations {
9887
10024
  };
9888
10025
  content?: never;
9889
10026
  };
10027
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10028
+ 429: {
10029
+ headers: {
10030
+ [name: string]: unknown;
10031
+ };
10032
+ content?: never;
10033
+ };
9890
10034
  /** @description Internal server error */
9891
10035
  500: {
9892
10036
  headers: {
@@ -9938,6 +10082,13 @@ export interface operations {
9938
10082
  };
9939
10083
  content?: never;
9940
10084
  };
10085
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10086
+ 429: {
10087
+ headers: {
10088
+ [name: string]: unknown;
10089
+ };
10090
+ content?: never;
10091
+ };
9941
10092
  /** @description Internal server error */
9942
10093
  500: {
9943
10094
  headers: {
@@ -9973,6 +10124,13 @@ export interface operations {
9973
10124
  "application/json": components["schemas"]["ListMarginAccountsResponse"];
9974
10125
  };
9975
10126
  };
10127
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10128
+ 429: {
10129
+ headers: {
10130
+ [name: string]: unknown;
10131
+ };
10132
+ content?: never;
10133
+ };
9976
10134
  };
9977
10135
  };
9978
10136
  get_margin_account_summary: {
@@ -10002,6 +10160,13 @@ export interface operations {
10002
10160
  "application/json": components["schemas"]["GetMarginAccountSummaryResponse"];
10003
10161
  };
10004
10162
  };
10163
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10164
+ 429: {
10165
+ headers: {
10166
+ [name: string]: unknown;
10167
+ };
10168
+ content?: never;
10169
+ };
10005
10170
  };
10006
10171
  };
10007
10172
  transfer_collateral_to_margin_account: {
@@ -10108,6 +10273,13 @@ export interface operations {
10108
10273
  "application/json": components["schemas"]["GetMarginAccountMovementsResponse"];
10109
10274
  };
10110
10275
  };
10276
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10277
+ 429: {
10278
+ headers: {
10279
+ [name: string]: unknown;
10280
+ };
10281
+ content?: never;
10282
+ };
10111
10283
  };
10112
10284
  };
10113
10285
  simulate_order_risk: {
@@ -10138,6 +10310,13 @@ export interface operations {
10138
10310
  "application/json": components["schemas"]["SimulateOrderRiskResponse"];
10139
10311
  };
10140
10312
  };
10313
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10314
+ 429: {
10315
+ headers: {
10316
+ [name: string]: unknown;
10317
+ };
10318
+ content?: never;
10319
+ };
10141
10320
  };
10142
10321
  };
10143
10322
  get_available_collateral: {
@@ -10160,6 +10339,13 @@ export interface operations {
10160
10339
  "application/json": components["schemas"]["GetAvailableCollateralResponse"];
10161
10340
  };
10162
10341
  };
10342
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10343
+ 429: {
10344
+ headers: {
10345
+ [name: string]: unknown;
10346
+ };
10347
+ content?: never;
10348
+ };
10163
10349
  };
10164
10350
  };
10165
10351
  get_parent_margin_account_summary: {
@@ -10183,6 +10369,13 @@ export interface operations {
10183
10369
  "application/json": components["schemas"]["GetMarginAccountSummaryResponse"];
10184
10370
  };
10185
10371
  };
10372
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10373
+ 429: {
10374
+ headers: {
10375
+ [name: string]: unknown;
10376
+ };
10377
+ content?: never;
10378
+ };
10186
10379
  };
10187
10380
  };
10188
10381
  transfer_collateral_to_parent_margin_account: {
@@ -10271,6 +10464,13 @@ export interface operations {
10271
10464
  "application/json": components["schemas"]["GetMarginAccountMovementsResponse"];
10272
10465
  };
10273
10466
  };
10467
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10468
+ 429: {
10469
+ headers: {
10470
+ [name: string]: unknown;
10471
+ };
10472
+ content?: never;
10473
+ };
10274
10474
  };
10275
10475
  };
10276
10476
  simulate_parent_margin_order_risk: {
@@ -10295,6 +10495,13 @@ export interface operations {
10295
10495
  "application/json": components["schemas"]["SimulateOrderRiskResponse"];
10296
10496
  };
10297
10497
  };
10498
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10499
+ 429: {
10500
+ headers: {
10501
+ [name: string]: unknown;
10502
+ };
10503
+ content?: never;
10504
+ };
10298
10505
  };
10299
10506
  };
10300
10507
  transfer_collateral_to_risk_bucket: {
@@ -10350,6 +10557,13 @@ export interface operations {
10350
10557
  "application/json": components["schemas"]["SimulateOrderRiskResponse"];
10351
10558
  };
10352
10559
  };
10560
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
10561
+ 429: {
10562
+ headers: {
10563
+ [name: string]: unknown;
10564
+ };
10565
+ content?: never;
10566
+ };
10353
10567
  };
10354
10568
  };
10355
10569
  list_all_funding_history: {
@@ -10947,6 +11161,13 @@ export interface operations {
10947
11161
  };
10948
11162
  content?: never;
10949
11163
  };
11164
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
11165
+ 429: {
11166
+ headers: {
11167
+ [name: string]: unknown;
11168
+ };
11169
+ content?: never;
11170
+ };
10950
11171
  /** @description Internal server error */
10951
11172
  500: {
10952
11173
  headers: {
@@ -11349,6 +11570,13 @@ export interface operations {
11349
11570
  "application/json": components["schemas"]["ListConditionalOrdersResponse"];
11350
11571
  };
11351
11572
  };
11573
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
11574
+ 429: {
11575
+ headers: {
11576
+ [name: string]: unknown;
11577
+ };
11578
+ content?: never;
11579
+ };
11352
11580
  };
11353
11581
  };
11354
11582
  get_conditional_order: {
@@ -11372,6 +11600,13 @@ export interface operations {
11372
11600
  "application/json": components["schemas"]["ConditionalOrder"];
11373
11601
  };
11374
11602
  };
11603
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
11604
+ 429: {
11605
+ headers: {
11606
+ [name: string]: unknown;
11607
+ };
11608
+ content?: never;
11609
+ };
11375
11610
  };
11376
11611
  };
11377
11612
  cancel_conditional_order: {
@@ -11444,6 +11679,13 @@ export interface operations {
11444
11679
  };
11445
11680
  content?: never;
11446
11681
  };
11682
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
11683
+ 429: {
11684
+ headers: {
11685
+ [name: string]: unknown;
11686
+ };
11687
+ content?: never;
11688
+ };
11447
11689
  /** @description Internal server error */
11448
11690
  500: {
11449
11691
  headers: {
@@ -11553,6 +11795,13 @@ export interface operations {
11553
11795
  };
11554
11796
  content?: never;
11555
11797
  };
11798
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
11799
+ 429: {
11800
+ headers: {
11801
+ [name: string]: unknown;
11802
+ };
11803
+ content?: never;
11804
+ };
11556
11805
  /** @description Internal server error */
11557
11806
  500: {
11558
11807
  headers: {
@@ -11660,6 +11909,13 @@ export interface operations {
11660
11909
  };
11661
11910
  content?: never;
11662
11911
  };
11912
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
11913
+ 429: {
11914
+ headers: {
11915
+ [name: string]: unknown;
11916
+ };
11917
+ content?: never;
11918
+ };
11663
11919
  /** @description Internal server error */
11664
11920
  500: {
11665
11921
  headers: {
@@ -11718,6 +11974,13 @@ export interface operations {
11718
11974
  };
11719
11975
  content?: never;
11720
11976
  };
11977
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
11978
+ 429: {
11979
+ headers: {
11980
+ [name: string]: unknown;
11981
+ };
11982
+ content?: never;
11983
+ };
11721
11984
  /** @description Internal server error */
11722
11985
  500: {
11723
11986
  headers: {
@@ -11850,6 +12113,13 @@ export interface operations {
11850
12113
  };
11851
12114
  content?: never;
11852
12115
  };
12116
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12117
+ 429: {
12118
+ headers: {
12119
+ [name: string]: unknown;
12120
+ };
12121
+ content?: never;
12122
+ };
11853
12123
  /** @description Internal server error */
11854
12124
  500: {
11855
12125
  headers: {
@@ -12035,6 +12305,13 @@ export interface operations {
12035
12305
  };
12036
12306
  content?: never;
12037
12307
  };
12308
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12309
+ 429: {
12310
+ headers: {
12311
+ [name: string]: unknown;
12312
+ };
12313
+ content?: never;
12314
+ };
12038
12315
  /** @description Internal server error */
12039
12316
  500: {
12040
12317
  headers: {
@@ -12125,6 +12402,13 @@ export interface operations {
12125
12402
  "application/json": components["schemas"]["ListPositionsResponse"];
12126
12403
  };
12127
12404
  };
12405
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12406
+ 429: {
12407
+ headers: {
12408
+ [name: string]: unknown;
12409
+ };
12410
+ content?: never;
12411
+ };
12128
12412
  };
12129
12413
  };
12130
12414
  batch_close_all_positions: {
@@ -12180,6 +12464,13 @@ export interface operations {
12180
12464
  "application/json": components["schemas"]["ListPositionHistoryResponse"];
12181
12465
  };
12182
12466
  };
12467
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12468
+ 429: {
12469
+ headers: {
12470
+ [name: string]: unknown;
12471
+ };
12472
+ content?: never;
12473
+ };
12183
12474
  };
12184
12475
  };
12185
12476
  get_position: {
@@ -12203,6 +12494,13 @@ export interface operations {
12203
12494
  "application/json": components["schemas"]["GetPositionResponse"];
12204
12495
  };
12205
12496
  };
12497
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12498
+ 429: {
12499
+ headers: {
12500
+ [name: string]: unknown;
12501
+ };
12502
+ content?: never;
12503
+ };
12206
12504
  };
12207
12505
  };
12208
12506
  close_position: {
@@ -12281,6 +12579,13 @@ export interface operations {
12281
12579
  };
12282
12580
  content?: never;
12283
12581
  };
12582
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12583
+ 429: {
12584
+ headers: {
12585
+ [name: string]: unknown;
12586
+ };
12587
+ content?: never;
12588
+ };
12284
12589
  /** @description Internal server error */
12285
12590
  500: {
12286
12591
  headers: {
@@ -12311,6 +12616,13 @@ export interface operations {
12311
12616
  "application/json": components["schemas"]["GetPositionRiskResponse"];
12312
12617
  };
12313
12618
  };
12619
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12620
+ 429: {
12621
+ headers: {
12622
+ [name: string]: unknown;
12623
+ };
12624
+ content?: never;
12625
+ };
12314
12626
  };
12315
12627
  };
12316
12628
  attach_position_tp_sl: {
@@ -12642,6 +12954,13 @@ export interface operations {
12642
12954
  };
12643
12955
  content?: never;
12644
12956
  };
12957
+ /** @description Read rate limit exceeded — every authenticated read draws one request from the account's read budget; retry after the interval in details.retryAfter */
12958
+ 429: {
12959
+ headers: {
12960
+ [name: string]: unknown;
12961
+ };
12962
+ content?: never;
12963
+ };
12645
12964
  /** @description Internal server error */
12646
12965
  500: {
12647
12966
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
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.56",
19
+ "@0xmonaco/contracts": "1.0.57",
20
20
  "zod": "^4.1.12"
21
21
  },
22
22
  "peerDependencies": {