@0xmonaco/types 1.0.57 → 1.0.58-develop.f12e78b

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.
@@ -43,6 +43,15 @@ export declare const ConditionalTimeInForceSchema: z.ZodEnum<{
43
43
  GTC: "GTC";
44
44
  IOC: "IOC";
45
45
  }>;
46
+ /**
47
+ * Per-order self-trade-prevention override validation
48
+ */
49
+ export declare const SelfTradePreventionModeSchema: z.ZodEnum<{
50
+ CANCEL_MAKER: "CANCEL_MAKER";
51
+ CANCEL_TAKER: "CANCEL_TAKER";
52
+ CANCEL_BOTH: "CANCEL_BOTH";
53
+ SKIP: "SKIP";
54
+ }>;
46
55
  /**
47
56
  * Order type validation
48
57
  */
@@ -126,6 +135,12 @@ export declare const PlaceLimitOrderSchema: z.ZodObject<{
126
135
  leverage: z.ZodOptional<z.ZodString>;
127
136
  reduceOnly: z.ZodOptional<z.ZodBoolean>;
128
137
  postOnly: z.ZodOptional<z.ZodBoolean>;
138
+ selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
139
+ CANCEL_MAKER: "CANCEL_MAKER";
140
+ CANCEL_TAKER: "CANCEL_TAKER";
141
+ CANCEL_BOTH: "CANCEL_BOTH";
142
+ SKIP: "SKIP";
143
+ }>>;
129
144
  takeProfit: z.ZodOptional<z.ZodObject<{
130
145
  triggerPrice: z.ZodString;
131
146
  orderType: z.ZodEnum<{
@@ -192,6 +207,12 @@ export declare const PlaceMarketOrderSchema: z.ZodObject<{
192
207
  }>>;
193
208
  leverage: z.ZodOptional<z.ZodString>;
194
209
  reduceOnly: z.ZodOptional<z.ZodBoolean>;
210
+ selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
211
+ CANCEL_MAKER: "CANCEL_MAKER";
212
+ CANCEL_TAKER: "CANCEL_TAKER";
213
+ CANCEL_BOTH: "CANCEL_BOTH";
214
+ SKIP: "SKIP";
215
+ }>>;
195
216
  takeProfit: z.ZodOptional<z.ZodObject<{
196
217
  triggerPrice: z.ZodString;
197
218
  orderType: z.ZodEnum<{
@@ -248,6 +269,12 @@ export declare const ReplaceOrderSchema: z.ZodObject<{
248
269
  quantity: z.ZodOptional<z.ZodString>;
249
270
  useMasterBalance: z.ZodOptional<z.ZodBoolean>;
250
271
  postOnly: z.ZodOptional<z.ZodBoolean>;
272
+ selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
273
+ CANCEL_MAKER: "CANCEL_MAKER";
274
+ CANCEL_TAKER: "CANCEL_TAKER";
275
+ CANCEL_BOTH: "CANCEL_BOTH";
276
+ SKIP: "SKIP";
277
+ }>>;
251
278
  }, z.core.$strip>;
252
279
  }, z.core.$strip>;
253
280
  /**
@@ -437,6 +464,12 @@ export declare const BatchCreateOrderItemSchema: z.ZodObject<{
437
464
  leverage: z.ZodOptional<z.ZodString>;
438
465
  reduceOnly: z.ZodOptional<z.ZodBoolean>;
439
466
  postOnly: z.ZodOptional<z.ZodBoolean>;
467
+ selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
468
+ CANCEL_MAKER: "CANCEL_MAKER";
469
+ CANCEL_TAKER: "CANCEL_TAKER";
470
+ CANCEL_BOTH: "CANCEL_BOTH";
471
+ SKIP: "SKIP";
472
+ }>>;
440
473
  }, z.core.$strip>;
441
474
  /**
442
475
  * Maximum items per batch create/replace/cancel request. Mirrors the server's
@@ -491,6 +524,12 @@ export declare const BatchCreateOrdersSchema: z.ZodObject<{
491
524
  leverage: z.ZodOptional<z.ZodString>;
492
525
  reduceOnly: z.ZodOptional<z.ZodBoolean>;
493
526
  postOnly: z.ZodOptional<z.ZodBoolean>;
527
+ selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
528
+ CANCEL_MAKER: "CANCEL_MAKER";
529
+ CANCEL_TAKER: "CANCEL_TAKER";
530
+ CANCEL_BOTH: "CANCEL_BOTH";
531
+ SKIP: "SKIP";
532
+ }>>;
494
533
  }, z.core.$strip>>;
495
534
  }, z.core.$strip>;
496
535
  /**
@@ -505,6 +544,12 @@ export declare const BatchReplaceOrderItemSchema: z.ZodObject<{
505
544
  quantity: z.ZodOptional<z.ZodString>;
506
545
  useMasterBalance: z.ZodOptional<z.ZodBoolean>;
507
546
  postOnly: z.ZodOptional<z.ZodBoolean>;
547
+ selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
548
+ CANCEL_MAKER: "CANCEL_MAKER";
549
+ CANCEL_TAKER: "CANCEL_TAKER";
550
+ CANCEL_BOTH: "CANCEL_BOTH";
551
+ SKIP: "SKIP";
552
+ }>>;
508
553
  }, z.core.$strip>;
509
554
  /**
510
555
  * Batch Replace Orders validation schema
@@ -518,5 +563,11 @@ export declare const BatchReplaceOrdersSchema: z.ZodObject<{
518
563
  quantity: z.ZodOptional<z.ZodString>;
519
564
  useMasterBalance: z.ZodOptional<z.ZodBoolean>;
520
565
  postOnly: z.ZodOptional<z.ZodBoolean>;
566
+ selfTradePreventionMode: z.ZodOptional<z.ZodEnum<{
567
+ CANCEL_MAKER: "CANCEL_MAKER";
568
+ CANCEL_TAKER: "CANCEL_TAKER";
569
+ CANCEL_BOTH: "CANCEL_BOTH";
570
+ SKIP: "SKIP";
571
+ }>>;
521
572
  }, z.core.$strip>>;
522
573
  }, z.core.$strip>;
@@ -36,6 +36,12 @@ export const TimeInForceSchema = z.enum(["GTC", "IOC", "FOK"], {
36
36
  export const ConditionalTimeInForceSchema = z.enum(["GTC", "IOC"], {
37
37
  message: 'Conditional order time in force must be "GTC" or "IOC"',
38
38
  });
39
+ /**
40
+ * Per-order self-trade-prevention override validation
41
+ */
42
+ export const SelfTradePreventionModeSchema = z.enum(["CANCEL_MAKER", "CANCEL_TAKER", "CANCEL_BOTH", "SKIP"], {
43
+ message: 'Self-trade prevention mode must be "CANCEL_MAKER", "CANCEL_TAKER", "CANCEL_BOTH", or "SKIP"',
44
+ });
39
45
  /**
40
46
  * Order type validation
41
47
  */
@@ -153,6 +159,7 @@ export const PlaceLimitOrderSchema = z
153
159
  leverage: PositiveDecimalStringSchema.optional(),
154
160
  reduceOnly: z.boolean().optional(),
155
161
  postOnly: z.boolean().optional(),
162
+ selfTradePreventionMode: SelfTradePreventionModeSchema.optional(),
156
163
  takeProfit: ParentTpSlLegSchema.optional(),
157
164
  stopLoss: ParentTpSlLegSchema.optional(),
158
165
  })
@@ -231,6 +238,7 @@ export const PlaceMarketOrderSchema = z
231
238
  positionSide: PositionSideSchema.optional(),
232
239
  leverage: PositiveDecimalStringSchema.optional(),
233
240
  reduceOnly: z.boolean().optional(),
241
+ selfTradePreventionMode: SelfTradePreventionModeSchema.optional(),
234
242
  takeProfit: ParentTpSlLegSchema.optional(),
235
243
  stopLoss: ParentTpSlLegSchema.optional(),
236
244
  })
@@ -316,6 +324,8 @@ export const ReplaceOrderSchema = z.object({
316
324
  // replaceable fields — the server validates postOnly against the
317
325
  // persisted original order, which this client-side schema cannot see.
318
326
  postOnly: z.boolean().optional(),
327
+ // Re-stated per replace, never inherited from the original order.
328
+ selfTradePreventionMode: SelfTradePreventionModeSchema.optional(),
319
329
  }),
320
330
  });
321
331
  /**
@@ -530,6 +540,7 @@ export const BatchCreateOrderItemSchema = z
530
540
  leverage: PositiveDecimalStringSchema.optional(),
531
541
  reduceOnly: z.boolean().optional(),
532
542
  postOnly: z.boolean().optional(),
543
+ selfTradePreventionMode: SelfTradePreventionModeSchema.optional(),
533
544
  })
534
545
  .refine((data) => data.orderType !== "LIMIT" || data.price !== undefined, {
535
546
  message: "Price is required for LIMIT orders",
@@ -624,6 +635,8 @@ export const BatchReplaceOrderItemSchema = z
624
635
  // replaceable fields — the server validates postOnly against the
625
636
  // persisted original order, which this client-side schema cannot see.
626
637
  postOnly: z.boolean().optional(),
638
+ // Re-stated per replace, never inherited from the original order.
639
+ selfTradePreventionMode: SelfTradePreventionModeSchema.optional(),
627
640
  })
628
641
  .refine((data) => data.price !== undefined || data.quantity !== undefined, {
629
642
  message: "At least one of price or quantity must be provided",
@@ -4,7 +4,7 @@
4
4
  * TypeScript types for order websocket events matching the Rust backend definitions.
5
5
  * Each event type has specific data fields based on the event context.
6
6
  */
7
- import type { OrderRole, OrderSide, OrderStatus, OrderTerminalReason, OrderType, TimeInForce, TradingMode } from "../../trading";
7
+ import type { OrderRole, OrderSide, OrderStatus, OrderTerminalReason, OrderType, SelfTradePreventionMode, TimeInForce, TradingMode } from "../../trading";
8
8
  import type { RawEventMessage } from "../base";
9
9
  /**
10
10
  * Order event types
@@ -137,6 +137,19 @@ export interface CommonOrderEventData {
137
137
  * Wire: `post_only`.
138
138
  */
139
139
  postOnly?: boolean;
140
+ /**
141
+ * The self-trade-prevention override REQUESTED on the order
142
+ * (`"CANCEL_MAKER" | "CANCEL_TAKER" | "CANCEL_BOTH" | "SKIP"`), echoed so a
143
+ * subscriber can confirm what was accepted without a round trip to
144
+ * `getOrder`. Carried on the `OrderPlaced` acknowledgement, taker fills and
145
+ * remainder cancels, maker fills (the maker's OWN requested mode), the
146
+ * resting order's lifecycle frames, and the `orders` snapshot frame. Omitted
147
+ * when the order carried none — including every order that merely matched
148
+ * under a wallet or platform default, and every event emitted by a server
149
+ * predating the field: this echoes the request, never the resolved default.
150
+ * Wire: `self_trade_prevention_mode`.
151
+ */
152
+ selfTradePreventionMode?: SelfTradePreventionMode | (string & {});
140
153
  }
141
154
  /**
142
155
  * OrderPlaced event - emitted when a new order is placed
@@ -389,6 +402,21 @@ export interface OrderCancelledEvent extends OrderEvent {
389
402
  reason?: string;
390
403
  /** Stable machine-readable cancellation cause */
391
404
  terminalReason?: OrderTerminalReason | (string & {});
405
+ /**
406
+ * The counterparty order behind a self-trade-prevention cancellation: for
407
+ * a resting order cancelled because an order of the same owner arrived
408
+ * against it, the arriving order's id; for an arriving order whose
409
+ * remainder was cancelled instead, the owner's resting order it would
410
+ * have matched. The same audit back-pointer Bybit publishes as
411
+ * `smpOrderId`.
412
+ *
413
+ * Present ONLY when `terminalReason` is `SELF_TRADE_PREVENTION`, so
414
+ * presence is the whole signal. Absent means this was not an STP
415
+ * cancellation — or the event predates the field, including every event
416
+ * until the STP modes ship, since nothing emits it yet. Wire:
417
+ * `stp_counterparty_order_id`.
418
+ */
419
+ stpCounterpartyOrderId?: string;
392
420
  /**
393
421
  * Cumulative order fill at cancellation, mirroring `filledQuantity` on the
394
422
  * taker/maker fill events so consumers read one field across every order
@@ -481,6 +509,15 @@ export interface OrderPartiallyCancelledEvent extends OrderEvent {
481
509
  remainingQuantityRaw: string;
482
510
  /** Caller-supplied cancel reason; explicit `null` when none was given */
483
511
  reason: string | null;
512
+ /**
513
+ * Reserved: the counterparty order behind a self-trade-prevention
514
+ * REDUCTION. No shipped STP mode reduces a resting order — the four modes
515
+ * cancel in full, and DECREMENT/TRANSFER are out of scope — so nothing
516
+ * emits this today; the field exists so a future reducing mode needs no
517
+ * wire change. Same contract as `OrderCancelledEvent`'s field when it is
518
+ * present. Wire: `stp_counterparty_order_id`.
519
+ */
520
+ stpCounterpartyOrderId?: string;
484
521
  /** When the reduction happened (RFC3339 `Z`). Wire: `reduced_at`. */
485
522
  reducedAt: string;
486
523
  };
@@ -67,6 +67,49 @@ export interface PositionEventData {
67
67
  reason: string;
68
68
  /** Timestamp when the position state was updated (ISO 8601) */
69
69
  updatedAt: string;
70
+ /**
71
+ * Opaque, non-negative producer-owned row version for this position
72
+ * (0XM-2673). Compare only within the same `positionId`; higher is newer.
73
+ *
74
+ * Carried on RANKED live frames and on the subscribe-time `positions`
75
+ * snapshot, so a client can rank the two against each other on
76
+ * `positionId + version`. Not every live frame is ranked — see below — so
77
+ * an unranked frame is not comparable with a snapshot row even when their
78
+ * state matches.
79
+ * Absent means UNRANKED, never "oldest", and it does NOT tell you whether
80
+ * anything was persisted. Four cases reach it: the frame came from a
81
+ * producer that predates this field; the emit path wrote no row;
82
+ * the path DID write the row but re-reads live risk state after sequencing
83
+ * (funding, `margin_added`/`margin_reduced`), so the mutation did advance
84
+ * the persisted version; or the frame is a different projection of the row
85
+ * than persistence stores (terminal frames report `size` 0 and
86
+ * `LIQUIDATED`, while the stored row keeps its size and records `CLOSED`).
87
+ * In the last two, a REST read or a fresh snapshot ranks the mutation.
88
+ * Fall back to a full field comparison rather than ranking it lowest.
89
+ *
90
+ * The merge rule is PER FIELD GROUP, never per frame. On a higher version
91
+ * apply everything. On an EQUAL version skip the versioned fields as an
92
+ * idempotent redelivery — EXCEPT `isolatedMargin`, which the subscribe-time
93
+ * snapshot overlays from an independent live matching-engine read rather
94
+ * than from the versioned row, so it can reflect a later command than the
95
+ * version names and must be taken from the newer payload or you retain
96
+ * stale backing. Also still take `markPrice`, `unrealizedPnl`,
97
+ * `liquidationPrice` and `leverage` from the newer frame: those four are
98
+ * re-derived from the oracle mark on every frame, carry no version, and the
99
+ * version does not advance for them. Discarding an equal-version frame
100
+ * wholesale freezes displayed unrealized PnL until the position's next real
101
+ * mutation — up to the one-hour funding interval.
102
+ *
103
+ * A frame is ranked only when it is a faithful projection of the row
104
+ * persisted at that sequence: in practice the FILLS THAT LEAVE A POSITION
105
+ * OPEN. Unranked are (a) frames that re-read live risk state after their
106
+ * command was sequenced, since a later command can overtake that read —
107
+ * the `funding` and `margin_added`/`margin_reduced` frames — and (b)
108
+ * TERMINAL frames, which report `size` 0 and `LIQUIDATED` while the stored
109
+ * row keeps its size and records `CLOSED`. Those mutations still advance
110
+ * the persisted version, so REST and a fresh snapshot rank them.
111
+ */
112
+ version?: number;
70
113
  }
71
114
  /**
72
115
  * Position event emitted when a user's position state changes.
@@ -24,7 +24,7 @@
24
24
  * frame, so its callback is never invoked. That is a silent no-op, never an
25
25
  * error.
26
26
  */
27
- import type { OrderSide, OrderType, TimeInForce, TradingMode } from "../trading";
27
+ import type { OrderSide, OrderType, SelfTradePreventionMode, TimeInForce, TradingMode } from "../trading";
28
28
  /**
29
29
  * Receives one channel's complete subscribe-time state.
30
30
  *
@@ -59,8 +59,8 @@ export type SnapshotHandler<T> = (items: T[]) => void;
59
59
  * Nullability mirrors the wire exactly. Every optional field below is a Rust
60
60
  * `Option` serialized WITHOUT `skip_serializing_if`, so the key is always
61
61
  * present and carries `null` when unset — hence `| null` rather than `?`.
62
- * `clientOrderId` is the sole field the server omits outright, so it is the
63
- * sole `?`.
62
+ * `clientOrderId`, `selfTradePreventionMode` and `version` are the fields the
63
+ * server omits outright, so they are the `?`s.
64
64
  *
65
65
  * The value unions are widened (`Union | (string & {})`) for the same reason
66
66
  * the order event's are: the parser hands an unrecognized value through rather
@@ -122,6 +122,14 @@ export interface OrderSnapshotItem {
122
122
  * when the order carried none, matching the live event payload.
123
123
  */
124
124
  clientOrderId?: string;
125
+ /**
126
+ * The self-trade-prevention override REQUESTED on the order
127
+ * (`"CANCEL_MAKER" | "CANCEL_TAKER" | "CANCEL_BOTH" | "SKIP"`), carried for
128
+ * the `clientOrderId` reason above. Omitted — not `null` — when the order
129
+ * carried none, matching the live event payload: this echoes the request,
130
+ * never the resolved wallet or platform default.
131
+ */
132
+ selfTradePreventionMode?: SelfTradePreventionMode | (string & {});
125
133
  /**
126
134
  * Sequencer step this order's state was last written by — the SAME counter
127
135
  * the live order events and the REST endpoints carry (0XM-2440).
@@ -10,6 +10,6 @@
10
10
  * hand-written SDK surface. CI regenerates it and fails on a diff, identical to
11
11
  * the `schema.ts` wire-types tripwire (MON-1476), so it can never go stale.
12
12
  */
13
- export declare const OPERATION_IDS: readonly ["attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "cancel_twap_order", "check_trader_code_availability", "clear_trader_code", "close_position", "create_challenge", "create_delegated_session", "create_order", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_candles", "get_conditional_order", "get_faucet_info", "get_funding_state", "get_index_price", "get_margin_account_movements", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_rewards_balance", "get_screener", "get_sub_account_limits", "get_sweeper_chains", "get_trade_by_id", "get_trader_code_info", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_funding_history", "list_funding_payments", "list_margin_accounts", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_trading_pairs", "list_twap_orders", "mint_tokens", "refresh_session", "register_deposit_address", "replace_order", "revoke_delegated_agent", "revoke_session", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "submit_whitelist", "transfer_collateral_from_margin_account", "transfer_collateral_from_parent_margin_account", "transfer_collateral_to_margin_account", "transfer_collateral_to_parent_margin_account", "transfer_collateral_to_risk_bucket", "transfer_rewards", "update_sub_account_limit", "upsert_delegated_agent", "verify_signature"];
13
+ export declare const OPERATION_IDS: readonly ["attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "cancel_twap_order", "check_trader_code_availability", "claim_buildercode_rewards", "clear_trader_code", "close_position", "create_challenge", "create_delegated_session", "create_order", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_buildercode_payout_summary", "get_buildercode_rewards_balance", "get_buildercodes_config", "get_candles", "get_conditional_order", "get_faucet_info", "get_funding_state", "get_index_price", "get_margin_account_movements", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_rewards_balance", "get_screener", "get_self_trade_prevention_default", "get_sub_account_limits", "get_sweeper_chains", "get_trade_by_id", "get_trader_code_info", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_buildercode_payouts", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_funding_history", "list_funding_payments", "list_margin_accounts", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_trading_pairs", "list_twap_orders", "mint_tokens", "refresh_session", "register_deposit_address", "replace_order", "revoke_delegated_agent", "revoke_session", "set_self_trade_prevention_default", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "submit_whitelist", "transfer_collateral_from_margin_account", "transfer_collateral_from_parent_margin_account", "transfer_collateral_to_margin_account", "transfer_collateral_to_parent_margin_account", "transfer_collateral_to_risk_bucket", "transfer_rewards", "update_sub_account_limit", "upsert_delegated_agent", "verify_signature"];
14
14
  /** Union of every OpenAPI operationId in the spec. */
15
15
  export type OperationId = (typeof OPERATION_IDS)[number];
@@ -22,6 +22,7 @@ export const OPERATION_IDS = [
22
22
  "cancel_order",
23
23
  "cancel_twap_order",
24
24
  "check_trader_code_availability",
25
+ "claim_buildercode_rewards",
25
26
  "clear_trader_code",
26
27
  "close_position",
27
28
  "create_challenge",
@@ -33,6 +34,9 @@ export const OPERATION_IDS = [
33
34
  "get_application_config",
34
35
  "get_application_stats",
35
36
  "get_available_collateral",
37
+ "get_buildercode_payout_summary",
38
+ "get_buildercode_rewards_balance",
39
+ "get_buildercodes_config",
36
40
  "get_candles",
37
41
  "get_conditional_order",
38
42
  "get_faucet_info",
@@ -66,6 +70,7 @@ export const OPERATION_IDS = [
66
70
  "get_pulse",
67
71
  "get_rewards_balance",
68
72
  "get_screener",
73
+ "get_self_trade_prevention_default",
69
74
  "get_sub_account_limits",
70
75
  "get_sweeper_chains",
71
76
  "get_trade_by_id",
@@ -87,6 +92,7 @@ export const OPERATION_IDS = [
87
92
  "list_application_movements",
88
93
  "list_application_orders",
89
94
  "list_application_users",
95
+ "list_buildercode_payouts",
90
96
  "list_conditional_orders",
91
97
  "list_delegated_agent_owners",
92
98
  "list_delegated_agents",
@@ -105,6 +111,7 @@ export const OPERATION_IDS = [
105
111
  "replace_order",
106
112
  "revoke_delegated_agent",
107
113
  "revoke_session",
114
+ "set_self_trade_prevention_default",
108
115
  "set_trader_code",
109
116
  "simulate_fees",
110
117
  "simulate_order_risk",