@0xmonaco/types 0.0.0-develop-20260323152825 → 0.0.0-develop-20260415185155

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.
Files changed (141) hide show
  1. package/dist/api/index.d.ts +0 -1
  2. package/dist/api/index.js +0 -1
  3. package/dist/applications/index.d.ts +0 -1
  4. package/dist/applications/index.js +0 -1
  5. package/dist/applications/responses.d.ts +0 -1
  6. package/dist/applications/responses.js +0 -1
  7. package/dist/auth/index.d.ts +3 -4
  8. package/dist/auth/index.js +0 -1
  9. package/dist/auth/responses.d.ts +0 -1
  10. package/dist/auth/responses.js +0 -1
  11. package/dist/contracts/balances.d.ts +0 -1
  12. package/dist/contracts/balances.js +0 -1
  13. package/dist/contracts/index.d.ts +0 -1
  14. package/dist/contracts/index.js +0 -1
  15. package/dist/fees/index.d.ts +0 -1
  16. package/dist/fees/index.js +0 -1
  17. package/dist/fees/responses.d.ts +8 -1
  18. package/dist/fees/responses.js +26 -2
  19. package/dist/index.d.ts +0 -1
  20. package/dist/index.js +0 -1
  21. package/dist/market/index.d.ts +7 -17
  22. package/dist/market/index.js +0 -1
  23. package/dist/profile/index.d.ts +81 -15
  24. package/dist/profile/index.js +0 -1
  25. package/dist/sdk/index.d.ts +3 -4
  26. package/dist/sdk/index.js +0 -1
  27. package/dist/sdk/network.d.ts +0 -1
  28. package/dist/sdk/network.js +0 -1
  29. package/dist/trading/index.d.ts +1 -2
  30. package/dist/trading/index.js +0 -1
  31. package/dist/trading/orders.d.ts +1 -2
  32. package/dist/trading/orders.js +0 -1
  33. package/dist/trading/responses.d.ts +1 -14
  34. package/dist/trading/responses.js +0 -1
  35. package/dist/validation/common.d.ts +0 -1
  36. package/dist/validation/common.js +0 -1
  37. package/dist/validation/index.d.ts +0 -1
  38. package/dist/validation/index.js +0 -1
  39. package/dist/validation/market.d.ts +2 -3
  40. package/dist/validation/market.js +2 -3
  41. package/dist/validation/profile.d.ts +12 -2
  42. package/dist/validation/profile.js +12 -2
  43. package/dist/validation/trading.d.ts +2 -3
  44. package/dist/validation/trading.js +2 -3
  45. package/dist/validation/vault.d.ts +0 -1
  46. package/dist/validation/vault.js +0 -1
  47. package/dist/vault/index.d.ts +0 -1
  48. package/dist/vault/index.js +0 -1
  49. package/dist/vault/responses.d.ts +0 -1
  50. package/dist/vault/responses.js +0 -1
  51. package/dist/websocket/base.d.ts +0 -1
  52. package/dist/websocket/base.js +0 -1
  53. package/dist/websocket/clients/orderbook-client.d.ts +0 -1
  54. package/dist/websocket/clients/orderbook-client.js +0 -1
  55. package/dist/websocket/events/balance-events.d.ts +0 -1
  56. package/dist/websocket/events/balance-events.js +0 -1
  57. package/dist/websocket/events/index.d.ts +0 -1
  58. package/dist/websocket/events/index.js +0 -1
  59. package/dist/websocket/events/movement-events.d.ts +0 -1
  60. package/dist/websocket/events/movement-events.js +0 -1
  61. package/dist/websocket/events/ohlcv-events.d.ts +0 -1
  62. package/dist/websocket/events/ohlcv-events.js +0 -1
  63. package/dist/websocket/events/orderbook-events.d.ts +0 -1
  64. package/dist/websocket/events/orderbook-events.js +0 -1
  65. package/dist/websocket/events/orders-events.d.ts +2 -3
  66. package/dist/websocket/events/orders-events.js +0 -1
  67. package/dist/websocket/events/trade-events.d.ts +0 -1
  68. package/dist/websocket/events/trade-events.js +0 -1
  69. package/dist/websocket/index.d.ts +0 -1
  70. package/dist/websocket/index.js +0 -1
  71. package/package.json +2 -2
  72. package/dist/api/index.d.ts.map +0 -1
  73. package/dist/api/index.js.map +0 -1
  74. package/dist/applications/index.d.ts.map +0 -1
  75. package/dist/applications/index.js.map +0 -1
  76. package/dist/applications/responses.d.ts.map +0 -1
  77. package/dist/applications/responses.js.map +0 -1
  78. package/dist/auth/index.d.ts.map +0 -1
  79. package/dist/auth/index.js.map +0 -1
  80. package/dist/auth/responses.d.ts.map +0 -1
  81. package/dist/auth/responses.js.map +0 -1
  82. package/dist/contracts/balances.d.ts.map +0 -1
  83. package/dist/contracts/balances.js.map +0 -1
  84. package/dist/contracts/index.d.ts.map +0 -1
  85. package/dist/contracts/index.js.map +0 -1
  86. package/dist/fees/index.d.ts.map +0 -1
  87. package/dist/fees/index.js.map +0 -1
  88. package/dist/fees/responses.d.ts.map +0 -1
  89. package/dist/fees/responses.js.map +0 -1
  90. package/dist/index.d.ts.map +0 -1
  91. package/dist/index.js.map +0 -1
  92. package/dist/market/index.d.ts.map +0 -1
  93. package/dist/market/index.js.map +0 -1
  94. package/dist/profile/index.d.ts.map +0 -1
  95. package/dist/profile/index.js.map +0 -1
  96. package/dist/sdk/index.d.ts.map +0 -1
  97. package/dist/sdk/index.js.map +0 -1
  98. package/dist/sdk/network.d.ts.map +0 -1
  99. package/dist/sdk/network.js.map +0 -1
  100. package/dist/trading/index.d.ts.map +0 -1
  101. package/dist/trading/index.js.map +0 -1
  102. package/dist/trading/orders.d.ts.map +0 -1
  103. package/dist/trading/orders.js.map +0 -1
  104. package/dist/trading/responses.d.ts.map +0 -1
  105. package/dist/trading/responses.js.map +0 -1
  106. package/dist/validation/common.d.ts.map +0 -1
  107. package/dist/validation/common.js.map +0 -1
  108. package/dist/validation/index.d.ts.map +0 -1
  109. package/dist/validation/index.js.map +0 -1
  110. package/dist/validation/market.d.ts.map +0 -1
  111. package/dist/validation/market.js.map +0 -1
  112. package/dist/validation/profile.d.ts.map +0 -1
  113. package/dist/validation/profile.js.map +0 -1
  114. package/dist/validation/trading.d.ts.map +0 -1
  115. package/dist/validation/trading.js.map +0 -1
  116. package/dist/validation/vault.d.ts.map +0 -1
  117. package/dist/validation/vault.js.map +0 -1
  118. package/dist/vault/index.d.ts.map +0 -1
  119. package/dist/vault/index.js.map +0 -1
  120. package/dist/vault/responses.d.ts.map +0 -1
  121. package/dist/vault/responses.js.map +0 -1
  122. package/dist/websocket/base.d.ts.map +0 -1
  123. package/dist/websocket/base.js.map +0 -1
  124. package/dist/websocket/clients/orderbook-client.d.ts.map +0 -1
  125. package/dist/websocket/clients/orderbook-client.js.map +0 -1
  126. package/dist/websocket/events/balance-events.d.ts.map +0 -1
  127. package/dist/websocket/events/balance-events.js.map +0 -1
  128. package/dist/websocket/events/index.d.ts.map +0 -1
  129. package/dist/websocket/events/index.js.map +0 -1
  130. package/dist/websocket/events/movement-events.d.ts.map +0 -1
  131. package/dist/websocket/events/movement-events.js.map +0 -1
  132. package/dist/websocket/events/ohlcv-events.d.ts.map +0 -1
  133. package/dist/websocket/events/ohlcv-events.js.map +0 -1
  134. package/dist/websocket/events/orderbook-events.d.ts.map +0 -1
  135. package/dist/websocket/events/orderbook-events.js.map +0 -1
  136. package/dist/websocket/events/orders-events.d.ts.map +0 -1
  137. package/dist/websocket/events/orders-events.js.map +0 -1
  138. package/dist/websocket/events/trade-events.d.ts.map +0 -1
  139. package/dist/websocket/events/trade-events.js.map +0 -1
  140. package/dist/websocket/index.d.ts.map +0 -1
  141. package/dist/websocket/index.js.map +0 -1
@@ -16,4 +16,3 @@ export interface BaseAPI {
16
16
  */
17
17
  setAccessToken(token: string): void;
18
18
  }
19
- //# sourceMappingURL=index.d.ts.map
package/dist/api/index.js CHANGED
@@ -4,4 +4,3 @@
4
4
  * Common interface that all API implementations should inherit from.
5
5
  * Provides standardized methods for token management and common functionality.
6
6
  */
7
- //# sourceMappingURL=index.js.map
@@ -21,4 +21,3 @@ export interface ApplicationsAPI extends BaseAPI {
21
21
  getApplicationConfig(): Promise<ApplicationConfigResponse>;
22
22
  }
23
23
  export type { ApplicationConfigResponse } from "./responses";
24
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Types for application configuration operations.
5
5
  */
6
- //# sourceMappingURL=index.js.map
@@ -18,4 +18,3 @@ export interface ApplicationConfigResponse {
18
18
  /** Vault contract address */
19
19
  vaultContractAddress: string;
20
20
  }
21
- //# sourceMappingURL=responses.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Response types for application configuration operations.
5
5
  */
6
- //# sourceMappingURL=responses.js.map
@@ -66,11 +66,11 @@ export interface AuthAPI extends BaseAPI {
66
66
  */
67
67
  refreshToken(refreshToken: string): Promise<TokenRefreshResponse>;
68
68
  /**
69
- * Revokes a refresh token.
70
- * @param refreshToken - The refresh token to revoke (from authResult.refreshToken)
69
+ * Revokes the current session's refresh token.
70
+ * The server identifies the token to revoke from the access token in the Authorization header.
71
71
  * @returns Promise resolving when the token is revoked
72
72
  */
73
- revokeToken(refreshToken: string): Promise<void>;
73
+ revokeToken(): Promise<void>;
74
74
  /**
75
75
  * Sets the wallet client for signing operations.
76
76
  * Used when the wallet becomes available after SDK initialization.
@@ -79,4 +79,3 @@ export interface AuthAPI extends BaseAPI {
79
79
  setWalletClient(walletClient: unknown): void;
80
80
  }
81
81
  export type { ApplicationInfo, AuthState, BackendAuthResponse, ChallengeResponse, TokenRefreshResponse, User, } from "./responses";
82
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Types for authentication operations including challenge creation,
5
5
  * signature verification, and backend authentication.
6
6
  */
7
- //# sourceMappingURL=index.js.map
@@ -65,4 +65,3 @@ export interface TokenRefreshResponse {
65
65
  /** Unix timestamp when the access token expires */
66
66
  expiresAt: number;
67
67
  }
68
- //# sourceMappingURL=responses.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Response types for authentication operations.
5
5
  */
6
- //# sourceMappingURL=responses.js.map
@@ -41,4 +41,3 @@ export interface UserBalance {
41
41
  /** Total balance (available + locked) */
42
42
  total: bigint;
43
43
  }
44
- //# sourceMappingURL=balances.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Types for contract balance management and token information.
5
5
  */
6
- //# sourceMappingURL=balances.js.map
@@ -25,4 +25,3 @@ export type ContractInstances = {
25
25
  vault: GetContractReturnType<typeof CONTRACT_ABIS.vault>;
26
26
  };
27
27
  export type { Token, UserBalance } from "./balances";
28
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Types for contract addresses, instances, and contract-related operations.
5
5
  */
6
- //# sourceMappingURL=index.js.map
@@ -37,4 +37,3 @@ export interface FeesAPI extends BaseAPI {
37
37
  }
38
38
  export type { SimulateFeeParams, SimulateFeeResponse } from "./responses";
39
39
  export { SimulateFeeParamsSchema, SimulateFeeResponseSchema } from "./responses";
40
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Types for fees operations including fee simulation.
5
5
  */
6
6
  export { SimulateFeeParamsSchema, SimulateFeeResponseSchema } from "./responses";
7
- //# sourceMappingURL=index.js.map
@@ -16,6 +16,11 @@ export declare const SimulateFeeParamsSchema: z.ZodObject<{
16
16
  }>;
17
17
  price: z.ZodString;
18
18
  quantity: z.ZodString;
19
+ order_type: z.ZodOptional<z.ZodEnum<{
20
+ LIMIT: "LIMIT";
21
+ MARKET: "MARKET";
22
+ }>>;
23
+ slippage_tolerance_bps: z.ZodOptional<z.ZodNumber>;
19
24
  }, z.core.$strip>;
20
25
  /**
21
26
  * Zod schema for fee simulation response
@@ -33,6 +38,9 @@ export declare const SimulateFeeResponseSchema: z.ZodObject<{
33
38
  notional: z.ZodString;
34
39
  taker_total_payment: z.ZodString;
35
40
  total_taker_fees: z.ZodString;
41
+ max_quantity: z.ZodNullable<z.ZodString>;
42
+ max_quantity_raw: z.ZodNullable<z.ZodString>;
43
+ slippage_tolerance_bps: z.ZodNullable<z.ZodNumber>;
36
44
  }, z.core.$strip>;
37
45
  /**
38
46
  * Parameters for simulating order fees
@@ -44,4 +52,3 @@ export type SimulateFeeParams = z.infer<typeof SimulateFeeParamsSchema>;
44
52
  * @remarks Type is inferred from SimulateFeeResponseSchema
45
53
  */
46
54
  export type SimulateFeeResponse = z.infer<typeof SimulateFeeResponseSchema>;
47
- //# sourceMappingURL=responses.d.ts.map
@@ -8,7 +8,8 @@ import { z } from "zod";
8
8
  /**
9
9
  * Zod schema for simulating order fees parameters
10
10
  */
11
- export const SimulateFeeParamsSchema = z.object({
11
+ export const SimulateFeeParamsSchema = z
12
+ .object({
12
13
  /** Trading pair ID */
13
14
  trading_pair_id: z.string().trim().min(1, "Trading pair ID is required and cannot be empty"),
14
15
  /** Order side: "BUY" or "SELL" */
@@ -29,6 +30,24 @@ export const SimulateFeeParamsSchema = z.object({
29
30
  .min(1, "Quantity is required and cannot be empty")
30
31
  .refine((val) => !Number.isNaN(Number(val)), "Quantity must be a valid number")
31
32
  .refine((val) => Number(val) > 0, "Quantity must be greater than 0"),
33
+ /** Order type: "LIMIT" (default) or "MARKET". MARKET orders include a slippage buffer in the lock amount. */
34
+ order_type: z.enum(["LIMIT", "MARKET"]).optional(),
35
+ /** Slippage tolerance in basis points (0–1000). Only valid for MARKET orders. Default: 500 (5%). */
36
+ slippage_tolerance_bps: z
37
+ .number()
38
+ .int()
39
+ .min(0, "Slippage tolerance must be between 0 and 1000 bps")
40
+ .max(1000, "Slippage tolerance must be between 0 and 1000 bps")
41
+ .optional(),
42
+ })
43
+ .superRefine((data, ctx) => {
44
+ if (data.slippage_tolerance_bps !== undefined && data.order_type !== "MARKET") {
45
+ ctx.addIssue({
46
+ code: z.ZodIssueCode.custom,
47
+ message: "slippage_tolerance_bps is only valid when order_type is MARKET",
48
+ path: ["slippage_tolerance_bps"],
49
+ });
50
+ }
32
51
  });
33
52
  /**
34
53
  * Zod schema for fee simulation response
@@ -58,5 +77,10 @@ export const SimulateFeeResponseSchema = z.object({
58
77
  taker_total_payment: z.string(),
59
78
  /** Total taker fees (monaco + application) */
60
79
  total_taker_fees: z.string(),
80
+ /** Maximum quantity affordable at the given price, accounting for fees (null if not authenticated or balance unavailable) */
81
+ max_quantity: z.string().nullable(),
82
+ /** Maximum quantity in RAW (smallest unit) format */
83
+ max_quantity_raw: z.string().nullable(),
84
+ /** Slippage tolerance used in the calculation, echoed back for MARKET orders (null for LIMIT orders) */
85
+ slippage_tolerance_bps: z.number().nullable(),
61
86
  });
62
- //# sourceMappingURL=responses.js.map
package/dist/index.d.ts CHANGED
@@ -16,4 +16,3 @@ export * from "./trading";
16
16
  export * from "./validation";
17
17
  export * from "./vault";
18
18
  export * from "./websocket";
19
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -17,4 +17,3 @@ export * from "./trading";
17
17
  export * from "./validation";
18
18
  export * from "./vault";
19
19
  export * from "./websocket";
20
- //# sourceMappingURL=index.js.map
@@ -113,7 +113,7 @@ export interface GetTradingPairsParams {
113
113
  /** Page number (starts from 1) */
114
114
  page?: number;
115
115
  /** Number of items per page (max 100) */
116
- limit?: number;
116
+ page_size?: number;
117
117
  /** Filter by market type (SPOT, MARGIN) */
118
118
  market_type?: string;
119
119
  /** Filter by base token symbol */
@@ -124,35 +124,26 @@ export interface GetTradingPairsParams {
124
124
  is_active?: boolean;
125
125
  }
126
126
  /**
127
- * Paginated response for trading pairs
127
+ * Response for listing trading pairs with pagination
128
128
  */
129
- export interface PaginatedTradingPairs {
130
- data: TradingPair[];
131
- limit: number;
129
+ export interface GetTradingPairsResponse {
130
+ trading_pairs: TradingPair[];
132
131
  page: number;
132
+ page_size: number;
133
133
  total: number;
134
134
  total_pages: number;
135
135
  }
136
136
  /**
137
- * API response wrapper for trading pairs
138
- */
139
- export interface GetTradingPairsResponse {
140
- data: PaginatedTradingPairs;
141
- success: boolean;
142
- }
143
- /**
144
- * API response wrapper for single trading pair
137
+ * Response for a single trading pair
145
138
  */
146
139
  export interface GetTradingPairResponse {
147
- data: TradingPair;
148
- success: boolean;
140
+ trading_pair: TradingPair;
149
141
  }
150
142
  /**
151
143
  * API response wrapper for single trading pair
152
144
  */
153
145
  export interface GetCandlestickResponse {
154
146
  data: Candlestick[];
155
- success: boolean;
156
147
  }
157
148
  /**
158
149
  * Market metadata with 24-hour statistics
@@ -221,4 +212,3 @@ export interface MarketAPI extends BaseAPI {
221
212
  */
222
213
  getMarketMetadata(tradingPairId: string): Promise<MarketMetadata>;
223
214
  }
224
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Types for market data operations including trading pair metadata and OHLCV data.
5
5
  */
6
- //# sourceMappingURL=index.js.map
@@ -94,7 +94,7 @@ export interface GetUserMovementsParams {
94
94
  /** Page number (starts from 1) */
95
95
  page?: number;
96
96
  /** Number of items per page (max 100) */
97
- limit?: number;
97
+ page_size?: number;
98
98
  /** Filter by entry type (CREDIT, DEBIT, LOCK, UNLOCK, FEE) */
99
99
  entry_type?: LedgerEntryType;
100
100
  /** Filter by transaction type (DEPOSIT, WITHDRAWAL, TRADE, FEE, FUNDING, LIQUIDATION, INTEREST, REWARD) */
@@ -106,10 +106,10 @@ export interface GetUserMovementsParams {
106
106
  * Query parameters for getting user balances
107
107
  */
108
108
  export interface GetUserBalancesParams {
109
- /** Number of items to return */
110
- limit?: number;
111
- /** Number of items to skip */
112
- offset?: number;
109
+ /** Page number (starts from 1) */
110
+ page?: number;
111
+ /** Number of items per page (max 100) */
112
+ page_size?: number;
113
113
  }
114
114
  /**
115
115
  * Response from getting user movements
@@ -126,9 +126,9 @@ export interface GetPaginatedUserMovementsResponse {
126
126
  /** Current page number */
127
127
  page: number;
128
128
  /** Items per page */
129
- limit: number;
129
+ page_size: number;
130
130
  /** Total number of movements in PostgreSQL */
131
- total_count: number;
131
+ total: number;
132
132
  /** Total number of pages */
133
133
  total_pages: number;
134
134
  }
@@ -139,11 +139,13 @@ export interface GetUserBalancesResponse {
139
139
  /** List of token balances for the user */
140
140
  balances: AccountBalance[];
141
141
  /** Total number of balances */
142
- total_count: number;
143
- /** Number of items returned */
144
- limit: number;
145
- /** Number of items skipped */
146
- offset: number;
142
+ total: number;
143
+ /** Items per page */
144
+ page_size: number;
145
+ /** Current page number */
146
+ page: number;
147
+ /** Total number of pages */
148
+ total_pages: number;
147
149
  }
148
150
  /**
149
151
  * Order information for recent orders.
@@ -152,8 +154,8 @@ export interface GetUserBalancesResponse {
152
154
  export interface ProfileOrder {
153
155
  /** Order identifier */
154
156
  id: string;
155
- /** Trading pair/market identifier (e.g., "ETH-USD") */
156
- trading_pair: string;
157
+ /** Trading pair symbol (e.g., "ETH-USD") */
158
+ symbol: string;
157
159
  /** Order side */
158
160
  side: OrderSide;
159
161
  /** Order type */
@@ -195,6 +197,53 @@ export interface AccountBalance {
195
197
  /** Locked balance in raw format (wei) */
196
198
  locked_balance_raw: string;
197
199
  }
200
+ /**
201
+ * A single user trade execution.
202
+ */
203
+ export interface UserTrade {
204
+ /** Trade unique identifier */
205
+ trade_id: string;
206
+ /** Trading pair identifier (UUID) */
207
+ trading_pair_id: string;
208
+ /** Execution price (as string to preserve precision) */
209
+ price: string;
210
+ /** Executed quantity (as string to preserve precision) */
211
+ quantity: string;
212
+ /** Quote volume (price * quantity, as string to preserve precision) */
213
+ quote_volume: string;
214
+ /** Side of the trade */
215
+ side: OrderSide;
216
+ /** Fee paid for this trade (as string to preserve precision) */
217
+ fee: string;
218
+ /** Timestamp when the trade was executed (ISO string) */
219
+ executed_at: string;
220
+ }
221
+ /**
222
+ * Query parameters for getting user trades
223
+ */
224
+ export interface GetUserTradesParams {
225
+ /** Page number (starts from 1) */
226
+ page?: number;
227
+ /** Number of items per page (max 100) */
228
+ page_size?: number;
229
+ /** Filter by trading pair ID (UUID) */
230
+ trading_pair_id?: string;
231
+ }
232
+ /**
233
+ * Response from getting user trades
234
+ */
235
+ export interface GetUserTradesResponse {
236
+ /** List of user trades */
237
+ trades: UserTrade[];
238
+ /** Current page number */
239
+ page: number;
240
+ /** Items per page */
241
+ page_size: number;
242
+ /** Total number of trades */
243
+ total: number;
244
+ /** Total number of pages */
245
+ total_pages: number;
246
+ }
198
247
  /**
199
248
  * Time period for portfolio stats and chart queries.
200
249
  */
@@ -260,6 +309,10 @@ export interface UserProfile {
260
309
  account_type: string;
261
310
  /** Whether the user can withdraw funds */
262
311
  can_withdraw: boolean;
312
+ /** Taker fee rate in basis points */
313
+ taker_fee_bps: number;
314
+ /** Maker fee rate in basis points */
315
+ maker_fee_bps: number;
263
316
  /** Account creation timestamp (ISO string) */
264
317
  created_at: string;
265
318
  }
@@ -335,5 +388,18 @@ export interface ProfileAPI extends BaseAPI {
335
388
  * @returns Promise resolving to the portfolio chart response
336
389
  */
337
390
  getPortfolioChart(period: PortfolioPeriod, metric: PortfolioMetric): Promise<PortfolioChartResponse>;
391
+ /**
392
+ * Get the current user's trade history with pagination.
393
+ *
394
+ * Fetches the user's executed trades from the /api/v1/accounts/trades endpoint.
395
+ * Requires a valid access token to be set.
396
+ *
397
+ * @param params - Optional query parameters for pagination and filtering
398
+ * @param params.page - Page number (starts from 1)
399
+ * @param params.limit - Number of items per page (max 100)
400
+ * @param params.trading_pair_id - Filter by trading pair ID (UUID)
401
+ * @returns Promise resolving to paginated trades response
402
+ * @throws ValidationError If pagination params (page/limit) are invalid or trading_pair_id is not a valid UUID; this may occur before any network request.
403
+ */
404
+ getUserTrades(params?: GetUserTradesParams): Promise<GetUserTradesResponse>;
338
405
  }
339
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Types for user profile operations including fetching user profile data.
5
5
  */
6
- //# sourceMappingURL=index.js.map
@@ -65,10 +65,10 @@ export interface MonacoSDK {
65
65
  /** Trades REST API for fetching historical trades */
66
66
  trades: {
67
67
  getTrades: (tradingPairId: string, options?: {
68
- /** Number of records to skip (default: 0) */
69
- skip?: number;
68
+ /** Page number (starts from 1, default: 1) */
69
+ page?: number;
70
70
  /** Maximum number of records to return (default: 25, max: 100) */
71
- limit?: number;
71
+ page_size?: number;
72
72
  }) => Promise<TradeEvent[]>;
73
73
  };
74
74
  /** WebSocket client for real-time data (orders, orderbook, ohlcv) */
@@ -122,4 +122,3 @@ export interface MonacoSDK {
122
122
  setAuthState(authState: AuthState): void;
123
123
  }
124
124
  export type { Network, NetworkEndpoints } from "./network";
125
- //# sourceMappingURL=index.d.ts.map
package/dist/sdk/index.js CHANGED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.js.map
@@ -23,4 +23,3 @@ export interface NetworkEndpoints {
23
23
  rpcUrl: string;
24
24
  apiUrl: string;
25
25
  }
26
- //# sourceMappingURL=network.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Network configuration and endpoint types for the Monaco SDK.
5
5
  */
6
- //# sourceMappingURL=network.js.map
@@ -94,7 +94,7 @@ export interface TradingAPI extends BaseAPI {
94
94
  * Gets paginated orders based on query parameters.
95
95
  * @param params - Query parameters for filtering orders
96
96
  * @param params.status - Filter by order status (optional)
97
- * @param params.trading_pair - Filter by trading pair (optional)
97
+ * @param params.trading_pair_id - Filter by trading pair UUID (optional)
98
98
  * @param params.page - Page number for pagination (optional)
99
99
  * @param params.page_size - Number of orders per page (optional)
100
100
  * @returns Promise resolving to the paginated orders result
@@ -110,4 +110,3 @@ export interface TradingAPI extends BaseAPI {
110
110
  export type { Order, OrderRole, OrderSide, OrderStatus, OrderType, TimeInForce, TradingMode, } from "./orders";
111
111
  export { ORDER_STATUS_VALUES } from "./orders";
112
112
  export type { BatchCancelError, BatchCancelOrdersResponse, BatchCancelResult, BatchCreateOrderParams, BatchCreateOrdersResponse, BatchCreateResult, BatchError, BatchReplaceOrderParams, BatchReplaceOrdersResponse, BatchReplaceResult, CancelOrderResponse, CreateOrderResponse, GetOrderResponse, GetPaginatedOrdersParams, GetPaginatedOrdersResponse, MatchResult, ReplaceOrderResponse, UpdatedFields, } from "./responses";
113
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Types for trading operations including order placement and management.
5
5
  */
6
6
  export { ORDER_STATUS_VALUES } from "./orders";
7
- //# sourceMappingURL=index.js.map
@@ -23,7 +23,7 @@ export interface Order {
23
23
  /** Order identifier (UUID) */
24
24
  id: string;
25
25
  /** Trading pair ID (UUID format, e.g., "456e7890-e12b-12d3-a456-426614174000") */
26
- trading_pair: string;
26
+ trading_pair_id: string;
27
27
  /** Order side (BUY or SELL) */
28
28
  side: OrderSide;
29
29
  /** Order type - see OrderType for all supported types */
@@ -109,4 +109,3 @@ export type TradingMode = "SPOT" | "MARGIN";
109
109
  * - GTD: Good Till Date - remains active until specified expiration date
110
110
  */
111
111
  export type TimeInForce = "GTC" | "IOC" | "FOK" | "GTD";
112
- //# sourceMappingURL=orders.d.ts.map
@@ -7,4 +7,3 @@
7
7
  * Source-of-truth order status values used by runtime validation schemas.
8
8
  */
9
9
  export const ORDER_STATUS_VALUES = ["SUBMITTED", "PARTIALLY_FILLED", "FILLED", "SETTLED_ON_CHAIN", "SETTLED", "CANCELLED", "REJECTED", "EXPIRED"];
10
- //# sourceMappingURL=orders.js.map
@@ -97,7 +97,7 @@ export interface GetPaginatedOrdersParams {
97
97
  /** Filter by order status */
98
98
  status?: OrderStatus;
99
99
  /** Filter by trading pair UUID */
100
- trading_pair?: string;
100
+ trading_pair_id?: string;
101
101
  /** Page number for pagination (default: 1) */
102
102
  page?: number;
103
103
  /** Number of orders per page (default: 10, max: 100) */
@@ -147,8 +147,6 @@ export interface BatchCancelError {
147
147
  export interface BatchCancelResult {
148
148
  /** Order identifier */
149
149
  order_id: string;
150
- /** Whether the cancellation was successful */
151
- success: boolean;
152
150
  /** Timestamp when the order was canceled (ISO 8601 format) */
153
151
  cancelled_at?: string;
154
152
  /** Error details if the cancellation failed */
@@ -158,8 +156,6 @@ export interface BatchCancelResult {
158
156
  * Response from batch cancelling orders
159
157
  */
160
158
  export interface BatchCancelOrdersResponse {
161
- /** Overall operation success */
162
- success: boolean;
163
159
  /** Total number of orders requested to cancel */
164
160
  total_requested: number;
165
161
  /** Total number of orders successfully canceled */
@@ -184,8 +180,6 @@ export interface BatchError {
184
180
  export interface BatchCreateResult {
185
181
  /** Order identifier (empty string if creation failed before ID assignment) */
186
182
  order_id: string;
187
- /** Whether the order was successfully created */
188
- success: boolean;
189
183
  /** Match result information if the order was processed */
190
184
  match_result?: MatchResult;
191
185
  /** Error details if the creation failed */
@@ -195,8 +189,6 @@ export interface BatchCreateResult {
195
189
  * Response from batch creating orders
196
190
  */
197
191
  export interface BatchCreateOrdersResponse {
198
- /** Overall operation success */
199
- success: boolean;
200
192
  /** Total number of orders requested to create */
201
193
  total_requested: number;
202
194
  /** Total number of orders successfully created */
@@ -212,8 +204,6 @@ export interface BatchCreateOrdersResponse {
212
204
  export interface BatchReplaceResult {
213
205
  /** Original order identifier */
214
206
  original_order_id: string;
215
- /** Whether the order was successfully replaced */
216
- success: boolean;
217
207
  /** New order identifier (if successful) */
218
208
  new_order_id?: string;
219
209
  /** Fields that were updated (if successful) */
@@ -227,8 +217,6 @@ export interface BatchReplaceResult {
227
217
  * Response from batch replacing orders
228
218
  */
229
219
  export interface BatchReplaceOrdersResponse {
230
- /** Overall operation success */
231
- success: boolean;
232
220
  /** Total number of orders requested to replace */
233
221
  total_requested: number;
234
222
  /** Total number of orders successfully replaced */
@@ -276,4 +264,3 @@ export interface BatchReplaceOrderParams {
276
264
  /** For sub-accounts: use master's balance (optional) */
277
265
  useMasterBalance?: boolean;
278
266
  }
279
- //# sourceMappingURL=responses.d.ts.map
@@ -3,4 +3,3 @@
3
3
  *
4
4
  * Response types for trading operations.
5
5
  */
6
- //# sourceMappingURL=responses.js.map
@@ -177,4 +177,3 @@ export declare class ValidationError extends Error {
177
177
  * ```
178
178
  */
179
179
  export declare function validate<T>(schema: z.ZodSchema<T>, data: unknown): T;
180
- //# sourceMappingURL=common.d.ts.map
@@ -197,4 +197,3 @@ export function validate(schema, data) {
197
197
  }
198
198
  return result.data;
199
199
  }
200
- //# sourceMappingURL=common.js.map
@@ -18,4 +18,3 @@ export * from "./market.js";
18
18
  export * from "./profile.js";
19
19
  export * from "./trading.js";
20
20
  export * from "./vault.js";
21
- //# sourceMappingURL=index.d.ts.map
@@ -20,4 +20,3 @@ export * from "./market.js";
20
20
  export * from "./profile.js";
21
21
  export * from "./trading.js";
22
22
  export * from "./vault.js";
23
- //# sourceMappingURL=index.js.map
@@ -203,8 +203,8 @@ export declare const GetTradingPairSchema: z.ZodObject<{
203
203
  */
204
204
  export declare const SearchTradingPairsSchema: z.ZodObject<{
205
205
  query: z.ZodOptional<z.ZodString>;
206
- limit: z.ZodOptional<z.ZodNumber>;
207
- offset: z.ZodOptional<z.ZodNumber>;
206
+ page_size: z.ZodOptional<z.ZodNumber>;
207
+ page: z.ZodOptional<z.ZodNumber>;
208
208
  }, z.core.$strip>;
209
209
  /**
210
210
  * Get Market Metadata validation schema
@@ -212,4 +212,3 @@ export declare const SearchTradingPairsSchema: z.ZodObject<{
212
212
  export declare const GetMarketMetadataSchema: z.ZodObject<{
213
213
  tradingPairId: z.ZodUUID;
214
214
  }, z.core.$strip>;
215
- //# sourceMappingURL=market.d.ts.map
@@ -214,8 +214,8 @@ export const GetTradingPairSchema = z.object({
214
214
  */
215
215
  export const SearchTradingPairsSchema = z.object({
216
216
  query: z.string().min(1, "Search query cannot be empty").optional(),
217
- limit: z.number().int().min(1).max(100).optional(),
218
- offset: z.number().int().min(0).optional(),
217
+ page_size: z.number().int().min(1).max(100).optional(),
218
+ page: z.number().int().min(1).optional(),
219
219
  });
220
220
  /**
221
221
  * Get Market Metadata validation schema
@@ -223,4 +223,3 @@ export const SearchTradingPairsSchema = z.object({
223
223
  export const GetMarketMetadataSchema = z.object({
224
224
  tradingPairId: UUIDSchema,
225
225
  });
226
- //# sourceMappingURL=market.js.map
@@ -36,7 +36,7 @@ export declare const TransactionTypeSchema: z.ZodEnum<{
36
36
  */
37
37
  export declare const GetUserMovementsSchema: z.ZodObject<{
38
38
  page: z.ZodOptional<z.ZodNumber>;
39
- limit: z.ZodOptional<z.ZodNumber>;
39
+ page_size: z.ZodOptional<z.ZodNumber>;
40
40
  entry_type: z.ZodOptional<z.ZodEnum<{
41
41
  CREDIT: "CREDIT";
42
42
  DEBIT: "DEBIT";
@@ -56,4 +56,14 @@ export declare const GetUserMovementsSchema: z.ZodObject<{
56
56
  }>>;
57
57
  asset_id: z.ZodOptional<z.ZodUUID>;
58
58
  }, z.core.$strip>;
59
- //# sourceMappingURL=profile.d.ts.map
59
+ /**
60
+ * Get User Trades validation schema
61
+ *
62
+ * Validates parameters for fetching paginated user trades.
63
+ * All fields are optional — an empty object or undefined is valid.
64
+ */
65
+ export declare const GetUserTradesSchema: z.ZodObject<{
66
+ page: z.ZodOptional<z.ZodNumber>;
67
+ page_size: z.ZodOptional<z.ZodNumber>;
68
+ trading_pair_id: z.ZodOptional<z.ZodUUID>;
69
+ }, z.core.$strip>;