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

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 (72) hide show
  1. package/dist/api/index.d.ts +1 -0
  2. package/dist/api/index.js +1 -0
  3. package/dist/applications/index.d.ts +1 -0
  4. package/dist/applications/index.js +1 -0
  5. package/dist/applications/responses.d.ts +1 -0
  6. package/dist/applications/responses.js +1 -0
  7. package/dist/auth/index.d.ts +1 -0
  8. package/dist/auth/index.js +1 -0
  9. package/dist/auth/responses.d.ts +1 -0
  10. package/dist/auth/responses.js +1 -0
  11. package/dist/contracts/balances.d.ts +1 -0
  12. package/dist/contracts/balances.js +1 -0
  13. package/dist/contracts/index.d.ts +1 -0
  14. package/dist/contracts/index.js +1 -0
  15. package/dist/fees/index.d.ts +1 -0
  16. package/dist/fees/index.js +1 -0
  17. package/dist/fees/responses.d.ts +1 -0
  18. package/dist/fees/responses.js +1 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.js +1 -0
  21. package/dist/market/index.d.ts +1 -0
  22. package/dist/market/index.js +1 -0
  23. package/dist/profile/index.d.ts +73 -0
  24. package/dist/profile/index.d.ts.map +1 -1
  25. package/dist/profile/index.js +1 -0
  26. package/dist/sdk/index.d.ts +1 -0
  27. package/dist/sdk/index.js +1 -0
  28. package/dist/sdk/network.d.ts +1 -0
  29. package/dist/sdk/network.js +1 -0
  30. package/dist/trading/index.d.ts +1 -0
  31. package/dist/trading/index.js +1 -0
  32. package/dist/trading/orders.d.ts +1 -0
  33. package/dist/trading/orders.js +1 -0
  34. package/dist/trading/responses.d.ts +1 -0
  35. package/dist/trading/responses.js +1 -0
  36. package/dist/validation/common.d.ts +1 -0
  37. package/dist/validation/common.js +1 -0
  38. package/dist/validation/index.d.ts +1 -0
  39. package/dist/validation/index.js +1 -0
  40. package/dist/validation/market.d.ts +1 -0
  41. package/dist/validation/market.js +1 -0
  42. package/dist/validation/profile.d.ts +1 -0
  43. package/dist/validation/profile.js +1 -0
  44. package/dist/validation/trading.d.ts +1 -0
  45. package/dist/validation/trading.js +1 -0
  46. package/dist/validation/vault.d.ts +1 -0
  47. package/dist/validation/vault.js +1 -0
  48. package/dist/vault/index.d.ts +1 -0
  49. package/dist/vault/index.js +1 -0
  50. package/dist/vault/responses.d.ts +1 -0
  51. package/dist/vault/responses.js +1 -0
  52. package/dist/websocket/base.d.ts +1 -0
  53. package/dist/websocket/base.js +1 -0
  54. package/dist/websocket/clients/orderbook-client.d.ts +1 -0
  55. package/dist/websocket/clients/orderbook-client.js +1 -0
  56. package/dist/websocket/events/balance-events.d.ts +1 -0
  57. package/dist/websocket/events/balance-events.js +1 -0
  58. package/dist/websocket/events/index.d.ts +1 -0
  59. package/dist/websocket/events/index.js +1 -0
  60. package/dist/websocket/events/movement-events.d.ts +1 -0
  61. package/dist/websocket/events/movement-events.js +1 -0
  62. package/dist/websocket/events/ohlcv-events.d.ts +1 -0
  63. package/dist/websocket/events/ohlcv-events.js +1 -0
  64. package/dist/websocket/events/orderbook-events.d.ts +1 -0
  65. package/dist/websocket/events/orderbook-events.js +1 -0
  66. package/dist/websocket/events/orders-events.d.ts +1 -0
  67. package/dist/websocket/events/orders-events.js +1 -0
  68. package/dist/websocket/events/trade-events.d.ts +1 -0
  69. package/dist/websocket/events/trade-events.js +1 -0
  70. package/dist/websocket/index.d.ts +1 -0
  71. package/dist/websocket/index.js +1 -0
  72. package/package.json +2 -2
@@ -16,3 +16,4 @@ 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,3 +4,4 @@
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,3 +21,4 @@ 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,3 +3,4 @@
3
3
  *
4
4
  * Types for application configuration operations.
5
5
  */
6
+ //# sourceMappingURL=index.js.map
@@ -18,3 +18,4 @@ export interface ApplicationConfigResponse {
18
18
  /** Vault contract address */
19
19
  vaultContractAddress: string;
20
20
  }
21
+ //# sourceMappingURL=responses.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Response types for application configuration operations.
5
5
  */
6
+ //# sourceMappingURL=responses.js.map
@@ -79,3 +79,4 @@ 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,3 +4,4 @@
4
4
  * Types for authentication operations including challenge creation,
5
5
  * signature verification, and backend authentication.
6
6
  */
7
+ //# sourceMappingURL=index.js.map
@@ -65,3 +65,4 @@ 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,3 +3,4 @@
3
3
  *
4
4
  * Response types for authentication operations.
5
5
  */
6
+ //# sourceMappingURL=responses.js.map
@@ -41,3 +41,4 @@ export interface UserBalance {
41
41
  /** Total balance (available + locked) */
42
42
  total: bigint;
43
43
  }
44
+ //# sourceMappingURL=balances.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Types for contract balance management and token information.
5
5
  */
6
+ //# sourceMappingURL=balances.js.map
@@ -25,3 +25,4 @@ 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,3 +3,4 @@
3
3
  *
4
4
  * Types for contract addresses, instances, and contract-related operations.
5
5
  */
6
+ //# sourceMappingURL=index.js.map
@@ -37,3 +37,4 @@ 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,3 +4,4 @@
4
4
  * Types for fees operations including fee simulation.
5
5
  */
6
6
  export { SimulateFeeParamsSchema, SimulateFeeResponseSchema } from "./responses";
7
+ //# sourceMappingURL=index.js.map
@@ -44,3 +44,4 @@ export type SimulateFeeParams = z.infer<typeof SimulateFeeParamsSchema>;
44
44
  * @remarks Type is inferred from SimulateFeeResponseSchema
45
45
  */
46
46
  export type SimulateFeeResponse = z.infer<typeof SimulateFeeResponseSchema>;
47
+ //# sourceMappingURL=responses.d.ts.map
@@ -59,3 +59,4 @@ export const SimulateFeeResponseSchema = z.object({
59
59
  /** Total taker fees (monaco + application) */
60
60
  total_taker_fees: z.string(),
61
61
  });
62
+ //# sourceMappingURL=responses.js.map
package/dist/index.d.ts CHANGED
@@ -16,3 +16,4 @@ 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,3 +17,4 @@ export * from "./trading";
17
17
  export * from "./validation";
18
18
  export * from "./vault";
19
19
  export * from "./websocket";
20
+ //# sourceMappingURL=index.js.map
@@ -221,3 +221,4 @@ export interface MarketAPI extends BaseAPI {
221
221
  */
222
222
  getMarketMetadata(tradingPairId: string): Promise<MarketMetadata>;
223
223
  }
224
+ //# sourceMappingURL=index.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Types for market data operations including trading pair metadata and OHLCV data.
5
5
  */
6
+ //# sourceMappingURL=index.js.map
@@ -195,6 +195,57 @@ export interface AccountBalance {
195
195
  /** Locked balance in raw format (wei) */
196
196
  locked_balance_raw: string;
197
197
  }
198
+ /**
199
+ * Time period for portfolio stats and chart queries.
200
+ */
201
+ export type PortfolioPeriod = "24h" | "7d" | "30d" | "all";
202
+ /**
203
+ * Metric for portfolio chart queries.
204
+ */
205
+ export type PortfolioMetric = "volume" | "pnl";
206
+ /**
207
+ * A single data point in a portfolio chart time series.
208
+ */
209
+ export interface PortfolioChartPoint {
210
+ /** ISO 8601 timestamp for the bucket */
211
+ timestamp: string;
212
+ /** Metric value for the bucket (as string to preserve precision) */
213
+ value: string;
214
+ }
215
+ /**
216
+ * Portfolio chart time series response.
217
+ * Returned by the /api/v1/accounts/me/portfolio/chart endpoint.
218
+ */
219
+ export interface PortfolioChartResponse {
220
+ /** The metric returned ("volume" | "pnl") */
221
+ metric: PortfolioMetric;
222
+ /** The period requested */
223
+ period: PortfolioPeriod;
224
+ /** Bucketed time series data points */
225
+ data: PortfolioChartPoint[];
226
+ }
227
+ /**
228
+ * Portfolio statistics for the authenticated user over a given period.
229
+ * Returned by the /api/v1/accounts/me/portfolio endpoint.
230
+ */
231
+ export interface PortfolioStats {
232
+ /** Realized profit and loss (sum of CREDIT minus DEBIT from TRADE ledger entries) */
233
+ pnl: string;
234
+ /** Total trading volume (sum of quote_volume from trades) */
235
+ volume: string;
236
+ /** Maximum peak-to-trough drawdown on running PnL */
237
+ max_drawdown: string;
238
+ /** Total number of orders placed */
239
+ total_orders: number;
240
+ /** Total number of trades executed */
241
+ total_trades: number;
242
+ /** Total fees paid */
243
+ fees_paid: string;
244
+ /** Ratio of profitable trades to total trades */
245
+ win_loss_ratio: string;
246
+ /** Total equity in USDC terms (sum of all spot balances) */
247
+ total_equity: string;
248
+ }
198
249
  /**
199
250
  * User profile information returned by the /api/v1/accounts/me endpoint.
200
251
  */
@@ -263,4 +314,26 @@ export interface ProfileAPI extends BaseAPI {
263
314
  * @returns Promise resolving to the account balance for the asset
264
315
  */
265
316
  getUserBalanceByAssetId(assetId: string): Promise<AccountBalance>;
317
+ /**
318
+ * Get the current user's portfolio statistics for a given time period.
319
+ *
320
+ * Fetches aggregate stats from the /api/v1/accounts/me/portfolio endpoint.
321
+ * Requires a valid access token to be set.
322
+ *
323
+ * @param period - Time period to scope the stats ("24h" | "7d" | "30d" | "all")
324
+ * @returns Promise resolving to the user's portfolio statistics
325
+ */
326
+ getPortfolioStats(period: PortfolioPeriod): Promise<PortfolioStats>;
327
+ /**
328
+ * Get the current user's portfolio chart time series for a given period and metric.
329
+ *
330
+ * Fetches bucketed time series data from the /api/v1/accounts/me/portfolio/chart endpoint.
331
+ * Requires a valid access token to be set.
332
+ *
333
+ * @param period - Time period ("24h" | "7d" | "30d" | "all")
334
+ * @param metric - Metric to chart ("volume" | "pnl")
335
+ * @returns Promise resolving to the portfolio chart response
336
+ */
337
+ getPortfolioChart(period: PortfolioPeriod, metric: PortfolioMetric): Promise<PortfolioChartResponse>;
266
338
  }
339
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profile/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEjF;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,0BAA0B;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,IAAI,EAAE,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;IAC/D,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GA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;;;;;;;OAaG;IACH,yBAAyB,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAEvG;;;;;;;;;;OAUG;IACH,eAAe,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAElF;;;;;;;;OAQG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAElE;;;;;;;;OAQG;IACH,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEpE;;;;;;;;;OASG;IACH,iBAAiB,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtG"}
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Types for user profile operations including fetching user profile data.
5
5
  */
6
+ //# sourceMappingURL=index.js.map
@@ -122,3 +122,4 @@ 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
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.js.map
@@ -23,3 +23,4 @@ export interface NetworkEndpoints {
23
23
  rpcUrl: string;
24
24
  apiUrl: string;
25
25
  }
26
+ //# sourceMappingURL=network.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Network configuration and endpoint types for the Monaco SDK.
5
5
  */
6
+ //# sourceMappingURL=network.js.map
@@ -110,3 +110,4 @@ 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,3 +4,4 @@
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
@@ -109,3 +109,4 @@ 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,3 +7,4 @@
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
@@ -276,3 +276,4 @@ export interface BatchReplaceOrderParams {
276
276
  /** For sub-accounts: use master's balance (optional) */
277
277
  useMasterBalance?: boolean;
278
278
  }
279
+ //# sourceMappingURL=responses.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Response types for trading operations.
5
5
  */
6
+ //# sourceMappingURL=responses.js.map
@@ -177,3 +177,4 @@ 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,3 +197,4 @@ export function validate(schema, data) {
197
197
  }
198
198
  return result.data;
199
199
  }
200
+ //# sourceMappingURL=common.js.map
@@ -18,3 +18,4 @@ 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,3 +20,4 @@ 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
@@ -212,3 +212,4 @@ 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
@@ -223,3 +223,4 @@ export const SearchTradingPairsSchema = z.object({
223
223
  export const GetMarketMetadataSchema = z.object({
224
224
  tradingPairId: UUIDSchema,
225
225
  });
226
+ //# sourceMappingURL=market.js.map
@@ -56,3 +56,4 @@ 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
@@ -31,3 +31,4 @@ export const GetUserMovementsSchema = z.object({
31
31
  transaction_type: TransactionTypeSchema.optional(),
32
32
  asset_id: UUIDSchema.optional(),
33
33
  });
34
+ //# sourceMappingURL=profile.js.map
@@ -227,3 +227,4 @@ export declare const BatchReplaceOrdersSchema: z.ZodObject<{
227
227
  useMasterBalance: z.ZodOptional<z.ZodBoolean>;
228
228
  }, z.core.$strip>>;
229
229
  }, z.core.$strip>;
230
+ //# sourceMappingURL=trading.d.ts.map
@@ -190,3 +190,4 @@ export const BatchReplaceOrderItemSchema = z
190
190
  export const BatchReplaceOrdersSchema = z.object({
191
191
  orders: z.array(BatchReplaceOrderItemSchema).min(1, "At least one order is required"),
192
192
  });
193
+ //# sourceMappingURL=trading.js.map
@@ -59,3 +59,4 @@ export declare const WithdrawSchema: z.ZodObject<{
59
59
  export declare const GetBalanceSchema: z.ZodObject<{
60
60
  assetId: z.ZodUUID;
61
61
  }, z.core.$strip>;
62
+ //# sourceMappingURL=vault.d.ts.map
@@ -72,3 +72,4 @@ export const WithdrawSchema = z.object({
72
72
  export const GetBalanceSchema = z.object({
73
73
  assetId: UUIDSchema,
74
74
  });
75
+ //# sourceMappingURL=vault.js.map
@@ -68,3 +68,4 @@ export interface VaultAPI extends BaseAPI {
68
68
  setWalletClient(walletClient: unknown): void;
69
69
  }
70
70
  export type { Balance, TransactionResult } from "./responses";
71
+ //# sourceMappingURL=index.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Types for vault operations including deposits, withdrawals, and balance management.
5
5
  */
6
+ //# sourceMappingURL=index.js.map
@@ -31,3 +31,4 @@ export interface Balance {
31
31
  /** Token decimals */
32
32
  decimals: number;
33
33
  }
34
+ //# sourceMappingURL=responses.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Response types for vault operations.
5
5
  */
6
+ //# sourceMappingURL=responses.js.map
@@ -29,3 +29,4 @@ export interface BaseErrorEvent {
29
29
  code?: string | number;
30
30
  details?: unknown;
31
31
  }
32
+ //# sourceMappingURL=base.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Types for the functional Monaco WebSocket client.
5
5
  */
6
+ //# sourceMappingURL=base.js.map
@@ -12,3 +12,4 @@
12
12
  * Choose the mode based on how you want to interpret price levels in the orderbook.
13
13
  */
14
14
  export type OrderbookQuotationMode = "BASE" | "QUOTE";
15
+ //# sourceMappingURL=orderbook-client.d.ts.map
@@ -1,3 +1,4 @@
1
1
  /**
2
2
  * Orderbook Types
3
3
  */
4
+ //# sourceMappingURL=orderbook-client.js.map
@@ -46,3 +46,4 @@ export interface UserBalanceEvent {
46
46
  /** Balance data */
47
47
  data: UserBalanceEventData;
48
48
  }
49
+ //# sourceMappingURL=balance-events.d.ts.map
@@ -4,3 +4,4 @@
4
4
  * Types for real-time user balance update events.
5
5
  * This is an authenticated channel - requires JWT token.
6
6
  */
7
+ //# sourceMappingURL=balance-events.js.map
@@ -4,3 +4,4 @@ export * from "./ohlcv-events";
4
4
  export * from "./orderbook-events";
5
5
  export * from "./orders-events";
6
6
  export * from "./trade-events";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -4,3 +4,4 @@ export * from "./ohlcv-events";
4
4
  export * from "./orderbook-events";
5
5
  export * from "./orders-events";
6
6
  export * from "./trade-events";
7
+ //# sourceMappingURL=index.js.map
@@ -62,3 +62,4 @@ export interface UserMovementEvent {
62
62
  /** Movement data */
63
63
  data: UserMovementEventData;
64
64
  }
65
+ //# sourceMappingURL=movement-events.d.ts.map
@@ -4,3 +4,4 @@
4
4
  * Types for real-time user ledger movement events (deposits, withdrawals, transfers).
5
5
  * This is an authenticated channel - requires JWT token.
6
6
  */
7
+ //# sourceMappingURL=movement-events.js.map
@@ -29,3 +29,4 @@ export interface OHLCVSubscriptionConfig {
29
29
  /** Candlestick interval */
30
30
  interval: Interval;
31
31
  }
32
+ //# sourceMappingURL=ohlcv-events.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Types for OHLCV (Open, High, Low, Close, Volume) candlestick data events.
5
5
  */
6
+ //# sourceMappingURL=ohlcv-events.js.map
@@ -70,3 +70,4 @@ export interface OrderbookEvent {
70
70
  /** Sequence number for ordering */
71
71
  sequence: number;
72
72
  }
73
+ //# sourceMappingURL=orderbook-events.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Defines the structure for orderbook-related WebSocket events.
5
5
  */
6
+ //# sourceMappingURL=orderbook-events.js.map
@@ -282,3 +282,4 @@ export interface BackendCommonOrderEventData {
282
282
  /** Trading mode (e.g., "Spot", "Margin") */
283
283
  trading_mode: string;
284
284
  }
285
+ //# sourceMappingURL=orders-events.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=orders-events.js.map
@@ -32,3 +32,4 @@ export interface TradeEvent {
32
32
  /** Trade execution data */
33
33
  data: TradeEventData;
34
34
  }
35
+ //# sourceMappingURL=trade-events.d.ts.map
@@ -3,3 +3,4 @@
3
3
  *
4
4
  * Types for real-time trade events from the matching engine.
5
5
  */
6
+ //# sourceMappingURL=trade-events.js.map
@@ -6,3 +6,4 @@
6
6
  export * from "./base";
7
7
  export * from "./clients/orderbook-client";
8
8
  export * from "./events";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -6,3 +6,4 @@
6
6
  export * from "./base";
7
7
  export * from "./clients/orderbook-client";
8
8
  export * from "./events";
9
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "0.0.0-develop-20260318131304",
3
+ "version": "0.0.0-develop-20260323152825",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "lint": "biome lint ."
21
21
  },
22
22
  "dependencies": {
23
- "@0xmonaco/contracts": "0.0.0-develop-20260318131304",
23
+ "@0xmonaco/contracts": "0.0.0-develop-20260323152825",
24
24
  "zod": "^4.1.12"
25
25
  },
26
26
  "peerDependencies": {