@0xmonaco/types 1.1.2 → 1.1.5

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.
@@ -18,6 +18,28 @@ export interface TradeEventData {
18
18
  makerSide: OrderSide | (string & {});
19
19
  /** Timestamp when the trade was executed (ISO 8601) */
20
20
  executedAt: string;
21
+ /**
22
+ * How the trade executed: CLOB (on the order book) or RFQ (a request-for-quote
23
+ * block fill). Set on REST trade reads; the WebSocket `trades` channel carries
24
+ * order-book trades only.
25
+ */
26
+ executionSource?: "CLOB" | "RFQ" | (string & {});
27
+ /** Maker wallet address. Set on REST trade reads; WebSocket frames omit it. */
28
+ makerAddress?: string;
29
+ /** Taker wallet address. Set on REST trade reads; WebSocket frames omit it. */
30
+ takerAddress?: string;
31
+ /**
32
+ * Monaco's taker fee, in raw quote-asset units (the asset's smallest unit),
33
+ * excluding the frontend's builder fee. Set on REST trade reads when recorded.
34
+ */
35
+ takerFeeRaw?: string;
36
+ /**
37
+ * Executed notional, in raw quote-asset units (the asset's smallest unit).
38
+ * Set on REST trade reads when recorded.
39
+ */
40
+ quoteVolumeRaw?: string;
41
+ /** Application (frontend) that placed the taker order; trade volume and fees are attributed to it. REST trade reads only. */
42
+ takerApplicationId?: string;
21
43
  }
22
44
  /**
23
45
  * Trade event emitted when a trade is executed
@@ -10,6 +10,6 @@
10
10
  * hand-written SDK surface. CI regenerates it and fails on a diff, identical to
11
11
  * the `schema.ts` wire-types tripwire (MON-1476), so it can never go stale.
12
12
  */
13
- export declare const OPERATION_IDS: readonly ["add_follow_position_margin", "attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_conditional_order", "cancel_order", "cancel_twap_order", "check_trader_code_availability", "claim_buildercode_rewards", "claim_managed_market_lease", "clear_trader_code", "close_all_copy_positions", "close_follow_positions", "close_position", "close_sub_account", "create_challenge", "create_delegated_session", "create_order", "create_sub_account", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_buildercode_payout_summary", "get_buildercode_rewards_balance", "get_buildercodes_config", "get_candles", "get_conditional_order", "get_faucet_info", "get_fee_schedule", "get_follow", "get_funding_state", "get_index_price", "get_lead_trader", "get_liquidation_metrics", "get_margin_account_movements", "get_margin_account_pnl", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_lead_trader", "get_my_referral_downline", "get_my_referral_position", "get_my_referral_tree", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_region_status", "get_rewards_balance", "get_screener", "get_self_trade_prevention_default", "get_sub_account_limits", "get_sweeper_chains", "get_sweeper_deposit_status", "get_trade_by_id", "get_trade_flow", "get_trader_code_info", "get_trader_metrics", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_builder_fee_changes", "list_buildercode_payouts", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_follow_leader_positions", "list_funding_history", "list_funding_payments", "list_invite_codes", "list_lead_trader_closed_trades", "list_lead_trader_open_positions", "list_lead_traders", "list_liquidation_events", "list_managed_market_assignments", "list_margin_accounts", "list_my_followers", "list_my_follows", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_sweeper_deposits", "list_trading_pairs", "list_twap_order_slices", "list_twap_orders", "mint_tokens", "preview_follow", "refresh_managed_market_quotes", "refresh_session", "register_deposit_address", "replace_order", "request_invite_codes", "revoke_delegated_agent", "revoke_session", "set_builder_fee", "set_self_trade_prevention_default", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "stop_follow", "transfer_collateral", "transfer_collateral_from_margin_account", "transfer_collateral_from_parent_margin_account", "transfer_collateral_from_sub_account", "transfer_collateral_to_margin_account", "transfer_collateral_to_parent_margin_account", "transfer_collateral_to_risk_bucket", "transfer_collateral_to_sub_account", "transfer_rewards", "update_sub_account_limit", "upsert_delegated_agent", "upsert_follow", "upsert_lead_trader", "verify_signature"];
13
+ export declare const OPERATION_IDS: readonly ["accept_rfq", "add_follow_position_margin", "attach_position_tp_sl", "batch_cancel_all", "batch_cancel_all_by_pair", "batch_cancel_orders", "batch_close_all_positions", "batch_create_orders", "batch_replace_orders", "cancel_all_after", "cancel_conditional_order", "cancel_order", "cancel_rfq", "cancel_twap_order", "check_trader_code_availability", "claim_buildercode_rewards", "claim_managed_market_lease", "clear_trader_code", "close_all_copy_positions", "close_follow_positions", "close_position", "close_sub_account", "create_challenge", "create_delegated_session", "create_order", "create_rfq", "create_sub_account", "create_sub_account_limit", "create_twap_order", "delete_sub_account_limit", "get_application_config", "get_application_stats", "get_available_collateral", "get_buildercode_payout_summary", "get_buildercode_rewards_balance", "get_buildercodes_config", "get_candles", "get_conditional_order", "get_faucet_info", "get_fee_schedule", "get_follow", "get_funding_state", "get_index_price", "get_lead_trader", "get_liquidation_metrics", "get_margin_account_movements", "get_margin_account_pnl", "get_margin_account_summary", "get_mark_price", "get_market_metadata", "get_market_stats", "get_my_fee_tier", "get_my_lead_trader", "get_my_referral_downline", "get_my_referral_position", "get_my_referral_tree", "get_my_trader_code", "get_open_interest", "get_order_by_id", "get_orderbook_snapshot", "get_orders", "get_parent_margin_account_movements", "get_parent_margin_account_summary", "get_perp_market_config", "get_perp_market_summary", "get_portfolio_assets", "get_portfolio_chart", "get_portfolio_margin", "get_portfolio_performance", "get_portfolio_realized_pnl", "get_portfolio_stats", "get_portfolio_summary", "get_position", "get_position_pnl_history", "get_position_risk", "get_pulse", "get_region_status", "get_rewards_balance", "get_rfq", "get_rfq_capabilities", "get_screener", "get_self_trade_prevention_default", "get_sub_account_limits", "get_sweeper_chains", "get_sweeper_deposit_status", "get_trade_by_id", "get_trade_flow", "get_trader_code_info", "get_trader_metrics", "get_trades", "get_trading_pair_by_id", "get_twap_order", "get_twap_order_tca", "get_user_balance_by_asset", "get_user_balances", "get_user_movements", "get_user_profile", "get_user_trades", "get_withdrawal", "health_check", "initiate_withdrawal", "list_all_funding_history", "list_all_liquidation_events", "list_application_balances", "list_application_movements", "list_application_orders", "list_application_users", "list_builder_fee_changes", "list_buildercode_payouts", "list_conditional_orders", "list_delegated_agent_owners", "list_delegated_agents", "list_follow_leader_positions", "list_funding_history", "list_funding_payments", "list_insurance_funds", "list_invite_codes", "list_lead_trader_closed_trades", "list_lead_trader_open_positions", "list_lead_traders", "list_liquidation_events", "list_managed_market_assignments", "list_margin_accounts", "list_my_followers", "list_my_follows", "list_pending_withdrawals", "list_position_history", "list_positions", "list_sub_accounts_with_balances", "list_sweeper_deposits", "list_trades", "list_trading_pairs", "list_twap_order_slices", "list_twap_orders", "mint_tokens", "preview_follow", "refresh_managed_market_quotes", "refresh_session", "register_deposit_address", "replace_order", "request_invite_codes", "respond_rfq_last_look", "revoke_delegated_agent", "revoke_session", "set_builder_fee", "set_self_trade_prevention_default", "set_trader_code", "simulate_fees", "simulate_order_risk", "simulate_parent_margin_order_risk", "simulate_risk_bucket_order_risk", "stop_follow", "transfer_collateral", "transfer_collateral_from_margin_account", "transfer_collateral_from_parent_margin_account", "transfer_collateral_from_sub_account", "transfer_collateral_to_margin_account", "transfer_collateral_to_parent_margin_account", "transfer_collateral_to_risk_bucket", "transfer_collateral_to_sub_account", "transfer_rewards", "update_sub_account_limit", "upsert_delegated_agent", "upsert_follow", "upsert_lead_trader", "upsert_rfq_quote", "verify_signature", "withdraw_rfq_quote"];
14
14
  /** Union of every OpenAPI operationId in the spec. */
15
15
  export type OperationId = (typeof OPERATION_IDS)[number];
@@ -11,6 +11,7 @@
11
11
  * the `schema.ts` wire-types tripwire (MON-1476), so it can never go stale.
12
12
  */
13
13
  export const OPERATION_IDS = [
14
+ "accept_rfq",
14
15
  "add_follow_position_margin",
15
16
  "attach_position_tp_sl",
16
17
  "batch_cancel_all",
@@ -19,8 +20,10 @@ export const OPERATION_IDS = [
19
20
  "batch_close_all_positions",
20
21
  "batch_create_orders",
21
22
  "batch_replace_orders",
23
+ "cancel_all_after",
22
24
  "cancel_conditional_order",
23
25
  "cancel_order",
26
+ "cancel_rfq",
24
27
  "cancel_twap_order",
25
28
  "check_trader_code_availability",
26
29
  "claim_buildercode_rewards",
@@ -33,6 +36,7 @@ export const OPERATION_IDS = [
33
36
  "create_challenge",
34
37
  "create_delegated_session",
35
38
  "create_order",
39
+ "create_rfq",
36
40
  "create_sub_account",
37
41
  "create_sub_account_limit",
38
42
  "create_twap_order",
@@ -85,6 +89,8 @@ export const OPERATION_IDS = [
85
89
  "get_pulse",
86
90
  "get_region_status",
87
91
  "get_rewards_balance",
92
+ "get_rfq",
93
+ "get_rfq_capabilities",
88
94
  "get_screener",
89
95
  "get_self_trade_prevention_default",
90
96
  "get_sub_account_limits",
@@ -107,6 +113,7 @@ export const OPERATION_IDS = [
107
113
  "health_check",
108
114
  "initiate_withdrawal",
109
115
  "list_all_funding_history",
116
+ "list_all_liquidation_events",
110
117
  "list_application_balances",
111
118
  "list_application_movements",
112
119
  "list_application_orders",
@@ -119,6 +126,7 @@ export const OPERATION_IDS = [
119
126
  "list_follow_leader_positions",
120
127
  "list_funding_history",
121
128
  "list_funding_payments",
129
+ "list_insurance_funds",
122
130
  "list_invite_codes",
123
131
  "list_lead_trader_closed_trades",
124
132
  "list_lead_trader_open_positions",
@@ -133,6 +141,7 @@ export const OPERATION_IDS = [
133
141
  "list_positions",
134
142
  "list_sub_accounts_with_balances",
135
143
  "list_sweeper_deposits",
144
+ "list_trades",
136
145
  "list_trading_pairs",
137
146
  "list_twap_order_slices",
138
147
  "list_twap_orders",
@@ -143,6 +152,7 @@ export const OPERATION_IDS = [
143
152
  "register_deposit_address",
144
153
  "replace_order",
145
154
  "request_invite_codes",
155
+ "respond_rfq_last_look",
146
156
  "revoke_delegated_agent",
147
157
  "revoke_session",
148
158
  "set_builder_fee",
@@ -166,5 +176,7 @@ export const OPERATION_IDS = [
166
176
  "upsert_delegated_agent",
167
177
  "upsert_follow",
168
178
  "upsert_lead_trader",
179
+ "upsert_rfq_quote",
169
180
  "verify_signature",
181
+ "withdraw_rfq_quote",
170
182
  ];