@0xmonaco/types 0.8.14 → 0.8.15

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.
@@ -3,37 +3,37 @@ import type { OrderType, PositionSide, TimeInForce } from "../trading";
3
3
  export type PositionStatus = "OPEN" | "CLOSED" | "LIQUIDATING";
4
4
  export type ClosePositionType = "MARKET" | "LIMIT" | "IOC";
5
5
  export interface Position {
6
- position_id: string;
7
- margin_account_id: string;
8
- risk_bucket_id?: string;
9
- trading_pair_id: string;
6
+ positionId: string;
7
+ marginAccountId: string;
8
+ riskBucketId?: string;
9
+ tradingPairId: string;
10
10
  side: PositionSide;
11
11
  size: string;
12
- entry_price: string;
13
- mark_price: string;
14
- index_price?: string;
15
- unrealized_pnl: string;
16
- realized_pnl: string;
17
- isolated_margin: string;
12
+ entryPrice: string;
13
+ markPrice: string;
14
+ indexPrice?: string;
15
+ unrealizedPnl: string;
16
+ realizedPnl: string;
17
+ isolatedMargin: string;
18
18
  leverage?: string;
19
- maintenance_margin_required: string;
20
- initial_margin_required?: string;
21
- liquidation_price: string;
19
+ maintenanceMarginRequired: string;
20
+ initialMarginRequired?: string;
21
+ liquidationPrice: string;
22
22
  status: PositionStatus;
23
- updated_at: string;
23
+ updatedAt: string;
24
24
  }
25
25
  export interface ListPositionsParams {
26
- margin_account_id?: string;
27
- trading_pair_id?: string;
26
+ marginAccountId?: string;
27
+ tradingPairId?: string;
28
28
  status?: PositionStatus;
29
29
  page?: number;
30
- page_size?: number;
30
+ pageSize?: number;
31
31
  }
32
32
  export interface ListPositionsResponse {
33
33
  positions: Position[];
34
34
  total: number;
35
35
  page: number;
36
- page_size: number;
36
+ pageSize: number;
37
37
  }
38
38
  export type GetPositionResponse = Position;
39
39
  export interface ClosePositionRequest {
@@ -43,10 +43,10 @@ export interface ClosePositionRequest {
43
43
  quantity?: string;
44
44
  }
45
45
  export interface ClosePositionResponse {
46
- close_order_id: string;
46
+ closeOrderId: string;
47
47
  status: string;
48
48
  message: string;
49
- submitted_quantity: string;
49
+ submittedQuantity: string;
50
50
  }
51
51
  export interface BatchCloseAllRequest {
52
52
  tradingPairId?: string;
@@ -57,28 +57,28 @@ export interface BatchCloseError {
57
57
  message: string;
58
58
  }
59
59
  export interface BatchCloseResult {
60
- position_id: string;
61
- close_order_id?: string;
60
+ positionId: string;
61
+ closeOrderId?: string;
62
62
  status?: string;
63
- submitted_quantity?: string;
63
+ submittedQuantity?: string;
64
64
  error?: BatchCloseError;
65
65
  }
66
66
  export interface BatchCloseAllResponse {
67
- total_requested: number;
68
- total_closed: number;
69
- total_failed: number;
67
+ totalRequested: number;
68
+ totalClosed: number;
69
+ totalFailed: number;
70
70
  results: BatchCloseResult[];
71
71
  }
72
72
  export interface PositionRisk {
73
- position_id: string;
74
- mark_price: string;
75
- index_price?: string;
76
- unrealized_pnl: string;
77
- liquidation_price: string;
78
- margin_ratio: string;
79
- maintenance_margin_required: string;
80
- initial_margin_required?: string;
81
- updated_at: string;
73
+ positionId: string;
74
+ markPrice: string;
75
+ indexPrice?: string;
76
+ unrealizedPnl: string;
77
+ liquidationPrice: string;
78
+ marginRatio: string;
79
+ maintenanceMarginRequired: string;
80
+ initialMarginRequired?: string;
81
+ updatedAt: string;
82
82
  }
83
83
  export interface AddPositionMarginRequest {
84
84
  amount: string;
@@ -88,9 +88,9 @@ export interface ReducePositionMarginRequest {
88
88
  amount: string;
89
89
  }
90
90
  export interface PositionMarginResponse {
91
- position_id: string;
92
- margin_account_id: string;
93
- new_isolated_margin: string;
91
+ positionId: string;
92
+ marginAccountId: string;
93
+ newIsolatedMargin: string;
94
94
  status: string;
95
95
  message: string;
96
96
  }
@@ -108,35 +108,35 @@ export interface AttachPositionTpSlRequest {
108
108
  stopLoss?: TpSlLeg;
109
109
  }
110
110
  export interface AttachPositionTpSlResponse {
111
- position_id: string;
112
- take_profit_order_id?: string;
113
- stop_loss_order_id?: string;
111
+ positionId: string;
112
+ takeProfitOrderId?: string;
113
+ stopLossOrderId?: string;
114
114
  status: "SUCCESS" | "FAILED";
115
115
  message: string;
116
116
  }
117
117
  export interface ListPositionHistoryParams {
118
- position_id?: string;
119
- margin_account_id?: string;
120
- trading_pair_id?: string;
118
+ positionId?: string;
119
+ marginAccountId?: string;
120
+ tradingPairId?: string;
121
121
  page?: number;
122
- page_size?: number;
122
+ pageSize?: number;
123
123
  }
124
124
  export interface PositionHistoryEvent {
125
125
  event_id: string;
126
- position_id?: string;
127
- margin_account_id?: string;
128
- trading_pair_id?: string;
129
- event_type: string;
126
+ positionId?: string;
127
+ marginAccountId?: string;
128
+ tradingPairId?: string;
129
+ eventType: string;
130
130
  quantity?: string;
131
131
  price?: string;
132
- realized_pnl?: string;
132
+ realizedPnl?: string;
133
133
  timestamp: string;
134
134
  }
135
135
  export interface ListPositionHistoryResponse {
136
136
  events: PositionHistoryEvent[];
137
137
  total: number;
138
138
  page: number;
139
- page_size: number;
139
+ pageSize: number;
140
140
  }
141
141
  export interface PositionsAPI extends BaseAPI {
142
142
  listPositions(params?: ListPositionsParams): Promise<ListPositionsResponse>;
@@ -36,13 +36,13 @@ export interface LedgerMovement {
36
36
  /** Movement unique identifier */
37
37
  id: string;
38
38
  /** Type of entry (Credit, Debit) */
39
- entry_type: string;
39
+ entryType: string;
40
40
  /** Type of transaction (Deposit, Withdrawal, Trade, etc.) */
41
- transaction_type: string;
41
+ transactionType: string;
42
42
  /** Transaction amount (normalized, human-readable) */
43
43
  amount: string;
44
44
  /** Transaction amount in raw format (wei) */
45
- amount_raw: string;
45
+ amountRaw: string;
46
46
  /** Token contract address */
47
47
  token: Address;
48
48
  /** Token symbol */
@@ -50,39 +50,39 @@ export interface LedgerMovement {
50
50
  /** Token decimals */
51
51
  decimals: number;
52
52
  /** Balance before this transaction (normalized) */
53
- balance_before: string | null;
53
+ balanceBefore: string | null;
54
54
  /** Balance before in raw format (wei) */
55
- balance_before_raw: string | null;
55
+ balanceBeforeRaw: string | null;
56
56
  /** Balance after this transaction (normalized) */
57
- balance_after: string | null;
57
+ balanceAfter: string | null;
58
58
  /** Balance after in raw format (wei) */
59
- balance_after_raw: string | null;
59
+ balanceAfterRaw: string | null;
60
60
  /** Locked balance before transaction (normalized) */
61
- locked_before: string | null;
61
+ lockedBefore: string | null;
62
62
  /** Locked balance before in raw format (wei) */
63
- locked_before_raw: string | null;
63
+ lockedBeforeRaw: string | null;
64
64
  /** Locked balance after transaction (normalized) */
65
- locked_after: string | null;
65
+ lockedAfter: string | null;
66
66
  /** Locked balance after in raw format (wei) */
67
- locked_after_raw: string | null;
67
+ lockedAfterRaw: string | null;
68
68
  /** Reference identifier for related operations */
69
- reference_id: string | null;
69
+ referenceId: string | null;
70
70
  /** Reference type */
71
- reference_type: string | null;
71
+ referenceType: string | null;
72
72
  /** Human readable description */
73
73
  description: string | null;
74
74
  /** Blockchain transaction hash */
75
- tx_hash: string | null;
75
+ txHash: string | null;
76
76
  /** Blockchain block number */
77
- block_number: number | null;
77
+ blockNumber: number | null;
78
78
  /** Transaction timestamp */
79
- created_at: string | null;
79
+ createdAt: string | null;
80
80
  /** Asset UUID this movement affects */
81
- asset_id?: string | null;
81
+ assetId?: string | null;
82
82
  /** User UUID who owns this movement */
83
- user_id?: string | null;
83
+ userId?: string | null;
84
84
  /** Balance UUID this movement affects */
85
- balance_id?: string | null;
85
+ balanceId?: string | null;
86
86
  }
87
87
  /**
88
88
  * Ledger entry type for filtering movements.
@@ -101,13 +101,13 @@ export interface GetUserMovementsParams {
101
101
  /** Page number (starts from 1) */
102
102
  page?: number;
103
103
  /** Number of items per page (max 100) */
104
- page_size?: number;
104
+ pageSize?: number;
105
105
  /** Filter by entry type (CREDIT, DEBIT, LOCK, UNLOCK, FEE) */
106
- entry_type?: LedgerEntryType;
106
+ entryType?: LedgerEntryType;
107
107
  /** Filter by transaction type (DEPOSIT, WITHDRAWAL, TRADE, FEE, FUNDING, LIQUIDATION, INTEREST, REWARD) */
108
- transaction_type?: TransactionType;
108
+ transactionType?: TransactionType;
109
109
  /** Filter by asset ID (UUID) */
110
- asset_id?: string;
110
+ assetId?: string;
111
111
  }
112
112
  /**
113
113
  * Query parameters for getting user balances
@@ -116,7 +116,7 @@ export interface GetUserBalancesParams {
116
116
  /** Page number (starts from 1) */
117
117
  page?: number;
118
118
  /** Number of items per page (max 100) */
119
- page_size?: number;
119
+ pageSize?: number;
120
120
  }
121
121
  /**
122
122
  * Response from getting user movements
@@ -133,11 +133,11 @@ export interface GetPaginatedUserMovementsResponse {
133
133
  /** Current page number */
134
134
  page: number;
135
135
  /** Items per page */
136
- page_size: number;
136
+ pageSize: number;
137
137
  /** Total number of movements in PostgreSQL */
138
138
  total: number;
139
139
  /** Total number of pages */
140
- total_pages: number;
140
+ totalPages: number;
141
141
  }
142
142
  /**
143
143
  * Response from getting user balances
@@ -148,11 +148,11 @@ export interface GetUserBalancesResponse {
148
148
  /** Total number of balances */
149
149
  total: number;
150
150
  /** Items per page */
151
- page_size: number;
151
+ pageSize: number;
152
152
  /** Current page number */
153
153
  page: number;
154
154
  /** Total number of pages */
155
- total_pages: number;
155
+ totalPages: number;
156
156
  }
157
157
  /**
158
158
  * Order information for recent orders.
@@ -166,7 +166,7 @@ export interface ProfileOrder {
166
166
  /** Order side */
167
167
  side: OrderSide;
168
168
  /** Order type */
169
- order_type: OrderType;
169
+ orderType: OrderType;
170
170
  /** Order price (null for market orders) */
171
171
  price: string | null;
172
172
  /** Order quantity */
@@ -174,11 +174,11 @@ export interface ProfileOrder {
174
174
  /** Order status */
175
175
  status: OrderStatus;
176
176
  /** Time in force */
177
- time_in_force?: TimeInForce;
177
+ timeInForce?: TimeInForce;
178
178
  /** Order creation timestamp (ISO string) */
179
- created_at: string;
179
+ createdAt: string;
180
180
  /** Order last update timestamp (ISO string) */
181
- updated_at?: string;
181
+ updatedAt?: string;
182
182
  }
183
183
  /**
184
184
  * Account balance for a specific token.
@@ -186,7 +186,7 @@ export interface ProfileOrder {
186
186
  */
187
187
  export interface AccountBalance {
188
188
  /** Asset ID (UUID for API calls) */
189
- asset_id: string;
189
+ assetId: string;
190
190
  /** Token address */
191
191
  token: Address;
192
192
  /** Token symbol */
@@ -194,38 +194,38 @@ export interface AccountBalance {
194
194
  /** Decimal places for the token */
195
195
  decimals: number;
196
196
  /** Available balance for trading (normalized) */
197
- available_balance: string;
197
+ availableBalance: string;
198
198
  /** Locked balance (in orders or pending operations, normalized) */
199
- locked_balance: string;
199
+ lockedBalance: string;
200
200
  /** Total balance (available + locked, normalized) */
201
- total_balance: string;
201
+ totalBalance: string;
202
202
  /** Available balance in raw format (wei) */
203
- available_balance_raw: string;
203
+ availableBalanceRaw: string;
204
204
  /** Locked balance in raw format (wei) */
205
- locked_balance_raw: string;
205
+ lockedBalanceRaw: string;
206
206
  /** Total balance (available + locked) in raw format (wei) */
207
- total_balance_raw: string;
207
+ totalBalanceRaw: string;
208
208
  }
209
209
  /**
210
210
  * A single user trade execution.
211
211
  */
212
212
  export interface UserTrade {
213
213
  /** Trade unique identifier */
214
- trade_id: string;
214
+ tradeId: string;
215
215
  /** Trading pair identifier (UUID) */
216
- trading_pair_id: string;
216
+ tradingPairId: string;
217
217
  /** Execution price (as string to preserve precision) */
218
218
  price: string;
219
219
  /** Executed quantity (as string to preserve precision) */
220
220
  quantity: string;
221
221
  /** Quote volume (price * quantity, as string to preserve precision) */
222
- quote_volume: string;
222
+ quoteVolume: string;
223
223
  /** Side of the trade */
224
224
  side: OrderSide;
225
225
  /** Fee paid for this trade (as string to preserve precision) */
226
226
  fee: string;
227
227
  /** Timestamp when the trade was executed (ISO string) */
228
- executed_at: string;
228
+ executedAt: string;
229
229
  }
230
230
  /**
231
231
  * Query parameters for getting user trades
@@ -234,9 +234,9 @@ export interface GetUserTradesParams {
234
234
  /** Page number (starts from 1) */
235
235
  page?: number;
236
236
  /** Number of items per page (max 100) */
237
- page_size?: number;
237
+ pageSize?: number;
238
238
  /** Filter by trading pair ID (UUID) */
239
- trading_pair_id?: string;
239
+ tradingPairId?: string;
240
240
  }
241
241
  /**
242
242
  * Response from getting user trades
@@ -247,11 +247,11 @@ export interface GetUserTradesResponse {
247
247
  /** Current page number */
248
248
  page: number;
249
249
  /** Items per page */
250
- page_size: number;
250
+ pageSize: number;
251
251
  /** Total number of trades */
252
252
  total: number;
253
253
  /** Total number of pages */
254
- total_pages: number;
254
+ totalPages: number;
255
255
  }
256
256
  /**
257
257
  * Direction of a funding payment from the user's perspective.
@@ -264,25 +264,25 @@ export interface FundingPayment {
264
264
  /** Funding payment unique identifier (UUID) */
265
265
  id: string;
266
266
  /** Margin position identifier (UUID) */
267
- position_id: string;
267
+ positionId: string;
268
268
  /** Margin account identifier (UUID) */
269
- margin_account_id: string;
269
+ marginAccountId: string;
270
270
  /** Trading pair identifier (UUID) */
271
- trading_pair_id: string;
271
+ tradingPairId: string;
272
272
  /** Funding rate applied for the epoch (as string to preserve precision) */
273
- funding_rate: string;
273
+ fundingRate: string;
274
274
  /** Absolute position size at settlement (as string to preserve precision) */
275
- position_size: string;
275
+ positionSize: string;
276
276
  /** Signed funding amount; positive means paid, negative means received (as string) */
277
- payment_amount: string;
277
+ paymentAmount: string;
278
278
  /** Funding direction for the user */
279
279
  direction: FundingDirection;
280
280
  /** Funding window start timestamp (ISO 8601), if known */
281
- period_start?: string;
281
+ periodStart?: string;
282
282
  /** Funding window end timestamp (ISO 8601), if known */
283
- period_end?: string;
283
+ periodEnd?: string;
284
284
  /** Funding payment creation timestamp (ISO 8601), if known */
285
- created_at?: string;
285
+ createdAt?: string;
286
286
  }
287
287
  /**
288
288
  * Query parameters for listing funding payments.
@@ -291,13 +291,13 @@ export interface ListFundingPaymentsParams {
291
291
  /** Page number (starts from 1) */
292
292
  page?: number;
293
293
  /** Number of items per page (max 100) */
294
- page_size?: number;
294
+ pageSize?: number;
295
295
  /** Filter by trading pair ID (UUID) */
296
- trading_pair_id?: string;
296
+ tradingPairId?: string;
297
297
  /** Filter by margin position ID (UUID) */
298
- position_id?: string;
298
+ positionId?: string;
299
299
  /** Filter by margin account ID (UUID) */
300
- margin_account_id?: string;
300
+ marginAccountId?: string;
301
301
  }
302
302
  /**
303
303
  * Response from listing funding payments.
@@ -308,11 +308,11 @@ export interface ListFundingPaymentsResponse {
308
308
  /** Current page number */
309
309
  page: number;
310
310
  /** Items per page */
311
- page_size: number;
311
+ pageSize: number;
312
312
  /** Total number of matching records */
313
313
  total: number;
314
314
  /** Total number of pages */
315
- total_pages: number;
315
+ totalPages: number;
316
316
  }
317
317
  /**
318
318
  * Time period for portfolio stats and chart queries.
@@ -350,20 +350,20 @@ export interface PortfolioChartResponse {
350
350
  export interface PortfolioStats {
351
351
  /** Realized profit and loss (sum of CREDIT minus DEBIT from TRADE ledger entries) */
352
352
  pnl: string;
353
- /** Total trading volume (sum of quote_volume from trades) */
353
+ /** Total trading volume (sum of quoteVolume from trades) */
354
354
  volume: string;
355
355
  /** Maximum peak-to-trough drawdown on running PnL */
356
- max_drawdown: string;
356
+ maxDrawdown: string;
357
357
  /** Total number of orders placed */
358
- total_orders: number;
358
+ totalOrders: number;
359
359
  /** Total number of trades executed */
360
- total_trades: number;
360
+ totalTrades: number;
361
361
  /** Total fees paid */
362
- fees_paid: string;
362
+ feesPaid: string;
363
363
  /** Ratio of profitable trades to total trades */
364
- win_loss_ratio: string;
364
+ winLossRatio: string;
365
365
  /** Total equity in USDC terms (sum of all spot balances) */
366
- total_equity: string;
366
+ totalEquity: string;
367
367
  }
368
368
  /**
369
369
  * User profile information returned by the /api/v1/accounts/me endpoint.
@@ -376,19 +376,19 @@ export interface UserProfile {
376
376
  /** Username of the user (can be null) */
377
377
  username: string | null;
378
378
  /** Account type (e.g., "master") */
379
- account_type: string;
379
+ accountType: string;
380
380
  /** Whether the user can withdraw funds */
381
- can_withdraw: boolean;
381
+ canWithdraw: boolean;
382
382
  /** Taker fee rate in basis points */
383
- taker_fee_bps: number;
383
+ takerFeeBps: number;
384
384
  /** Maker fee rate in basis points */
385
- maker_fee_bps: number;
385
+ makerFeeBps: number;
386
386
  /** Account creation timestamp (ISO string) */
387
- created_at: string;
387
+ createdAt: string;
388
388
  /** Additional taker fee in basis points contributed by the application (if any) */
389
- application_taker_fee_bps?: number;
389
+ applicationTakerFeeBps?: number;
390
390
  /** Additional maker fee in basis points contributed by the application (if any) */
391
- application_maker_fee_bps?: number;
391
+ applicationMakerFeeBps?: number;
392
392
  }
393
393
  /**
394
394
  * Profile API interface.
@@ -413,9 +413,9 @@ export interface ProfileAPI extends BaseAPI {
413
413
  * @param params - Optional query parameters for pagination and filtering
414
414
  * @param params.page - Page number (starts from 1)
415
415
  * @param params.limit - Number of items per page (max 100)
416
- * @param params.entry_type - Filter by entry type (CREDIT, DEBIT, LOCK, UNLOCK, FEE)
417
- * @param params.transaction_type - Filter by transaction type (DEPOSIT, WITHDRAWAL, TRADE, FEE, FUNDING, LIQUIDATION, INTEREST, REWARD)
418
- * @param params.asset_id - Filter by asset ID (UUID)
416
+ * @param params.entryType - Filter by entry type (CREDIT, DEBIT, LOCK, UNLOCK, FEE)
417
+ * @param params.transactionType - Filter by transaction type (DEPOSIT, WITHDRAWAL, TRADE, FEE, FUNDING, LIQUIDATION, INTEREST, REWARD)
418
+ * @param params.assetId - Filter by asset ID (UUID)
419
419
  * @returns Promise resolving to paginated movements response
420
420
  */
421
421
  getPaginatedUserMovements(params?: GetUserMovementsParams): Promise<GetPaginatedUserMovementsResponse>;
@@ -434,7 +434,7 @@ export interface ProfileAPI extends BaseAPI {
434
434
  /**
435
435
  * Get the current user's balance for a specific asset.
436
436
  *
437
- * Fetches the user's balance for a specific asset from the /api/v1/accounts/balances/{asset_id} endpoint.
437
+ * Fetches the user's balance for a specific asset from the /api/v1/accounts/balances/{assetId} endpoint.
438
438
  * Requires a valid access token to be set. If no balance exists for a valid asset, returns zero balances.
439
439
  *
440
440
  * @param assetId - The asset identifier (UUID)
@@ -471,9 +471,9 @@ export interface ProfileAPI extends BaseAPI {
471
471
  * @param params - Optional query parameters for pagination and filtering
472
472
  * @param params.page - Page number (starts from 1)
473
473
  * @param params.limit - Number of items per page (max 100)
474
- * @param params.trading_pair_id - Filter by trading pair ID (UUID)
474
+ * @param params.tradingPairId - Filter by trading pair ID (UUID)
475
475
  * @returns Promise resolving to paginated trades response
476
- * @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.
476
+ * @throws ValidationError If pagination params (page/limit) are invalid or tradingPairId is not a valid UUID; this may occur before any network request.
477
477
  */
478
478
  getUserTrades(params?: GetUserTradesParams): Promise<GetUserTradesResponse>;
479
479
  /**
@@ -484,10 +484,10 @@ export interface ProfileAPI extends BaseAPI {
484
484
  *
485
485
  * @param params - Optional query parameters for pagination and filtering
486
486
  * @param params.page - Page number (starts from 1)
487
- * @param params.page_size - Number of items per page (max 100)
488
- * @param params.trading_pair_id - Filter by trading pair ID (UUID)
489
- * @param params.position_id - Filter by margin position ID (UUID)
490
- * @param params.margin_account_id - Filter by margin account ID (UUID)
487
+ * @param params.pageSize - Number of items per page (max 100)
488
+ * @param params.tradingPairId - Filter by trading pair ID (UUID)
489
+ * @param params.positionId - Filter by margin position ID (UUID)
490
+ * @param params.marginAccountId - Filter by margin account ID (UUID)
491
491
  * @returns Promise resolving to paginated funding payments response
492
492
  * @throws ValidationError If pagination params or a UUID filter are invalid; this may occur before any network request.
493
493
  */
@@ -106,7 +106,7 @@ export interface MonacoSDK {
106
106
  /** Page number (starts from 1, default: 1) */
107
107
  page?: number;
108
108
  /** Maximum number of records to return (default: 25, max: 100) */
109
- page_size?: number;
109
+ pageSize?: number;
110
110
  }) => Promise<TradeEvent[]>;
111
111
  };
112
112
  /** WebSocket client for real-time data (orders, orderbook, ohlcv) */
@@ -21,9 +21,9 @@ export interface SubAccount {
21
21
  /** Sub-account display username */
22
22
  username: string | null;
23
23
  /** Whether the sub-account is allowed to withdraw */
24
- can_withdraw: boolean;
24
+ canWithdraw: boolean;
25
25
  /** Account creation timestamp (ISO 8601) */
26
- created_at: string;
26
+ createdAt: string;
27
27
  /** Per-asset balances held by the sub-account */
28
28
  balances: AccountBalance[];
29
29
  }
@@ -34,38 +34,38 @@ export interface SubAccountLimit {
34
34
  /** Limit UUID */
35
35
  id: string;
36
36
  /** Sub-account UUID this limit applies to */
37
- sub_account_id: string;
37
+ subAccountId: string;
38
38
  /** Token contract address */
39
39
  token: Address;
40
40
  /** Maximum daily spending limit in token units */
41
- daily_limit: string | null;
41
+ dailyLimit: string | null;
42
42
  /** Amount used today against the limit */
43
- used_today: string;
43
+ usedToday: string;
44
44
  /** Limit creation timestamp (ISO 8601) */
45
- created_at: string;
45
+ createdAt: string;
46
46
  /** Last update timestamp (ISO 8601) */
47
- updated_at: string | null;
47
+ updatedAt: string | null;
48
48
  /** Master account UUID that owns this sub-account */
49
- master_account_id: string;
49
+ masterAccountId: string;
50
50
  /** Maximum amount allowed in token units */
51
- max_amount: string;
51
+ maxAmount: string;
52
52
  /** Last reset timestamp for the daily limit (ISO 8601) */
53
- last_reset_at: string | null;
53
+ lastResetAt: string | null;
54
54
  /** Whether the limit is active */
55
- is_active: boolean;
55
+ isActive: boolean;
56
56
  }
57
57
  /**
58
58
  * Body for creating a sub-account limit.
59
59
  */
60
60
  export interface CreateSubAccountLimitRequest {
61
61
  /** Sub-account UUID to create the limit for */
62
- sub_account_id: string;
62
+ subAccountId: string;
63
63
  /** Asset UUID to limit */
64
- asset_id: string;
64
+ assetId: string;
65
65
  /** Maximum amount allowed in token units */
66
- max_amount: string;
66
+ maxAmount: string;
67
67
  /** Maximum daily spending limit in token units */
68
- daily_limit?: string;
68
+ dailyLimit?: string;
69
69
  }
70
70
  /**
71
71
  * Body for updating a sub-account limit. The sub-account and asset are taken
@@ -73,15 +73,15 @@ export interface CreateSubAccountLimitRequest {
73
73
  */
74
74
  export interface UpdateSubAccountLimitBody {
75
75
  /** New maximum amount allowed in token units */
76
- max_amount?: string;
76
+ maxAmount?: string;
77
77
  /** New maximum daily spending limit in token units */
78
- daily_limit?: string;
78
+ dailyLimit?: string;
79
79
  /** Whether the limit is active */
80
- is_active?: boolean;
80
+ isActive?: boolean;
81
81
  }
82
82
  /** Paginated list of the master account's sub-accounts. */
83
83
  export interface ListSubAccountsResponse {
84
- sub_accounts: SubAccount[];
84
+ subAccounts: SubAccount[];
85
85
  /** Total number of sub-accounts */
86
86
  total: number;
87
87
  }