Skip to main content

Monaco Protocol SDK v0.8.15

This release switches the REST API wire format from snake_case to camelCase across every endpoint, and adds a GET /api/v1/withdrawals endpoint for listing the caller’s pending withdrawals.

Breaking

REST wire format is now camelCase

Every REST request/response JSON field and path parameter is now camelCase instead of snake_case. This is a wire-format change that spans the entire REST surface — for example trading_pair_id → tradingPairId, order_id → orderId, asset_id → assetId, created_at → createdAt, page_size → pageSize, sub_account_id → subAccountId, and path params such as /withdrawals/{withdrawal_index} → /withdrawals/{withdrawalIndex}. If you use the TypeScript SDK (@0xmonaco/core, @0xmonaco/react), it already speaks camelCase end to end — upgrade to v0.8.15 and no field-name changes are needed in your code. If you call the REST API directly (raw HTTP, or raw JSON via the Rust REST SDK), rename every field and path parameter to camelCase:
The WebSocket API is unchanged. Its raw wire payloads, event types, and channel names remain snake_case (trade, orderbook_update, positions:{trading_pair_id}, …). The TypeScript SDK’s WebSocket hooks continue to surface camelCase fields to your code as before. gRPC is also unaffected — binary field numbers and proto field names are unchanged.

Added

List pending withdrawals

New GET /api/v1/withdrawals (user auth) returns the caller’s pending withdrawals — those still awaiting on-chain root confirmation, whose merkle proof (and therefore the executable calldata from GET /api/v1/withdrawals/{withdrawalIndex}) is not available yet. Scoped to the authenticated user + application, newest first, and paginated.
Query params (ListPendingWithdrawalsParams, all optional): page (1-based, default 1), pageSize (1–100, default 20). Response (ListPendingWithdrawalsResponse): withdrawals[] — each a PendingWithdrawal with withdrawalIndex, assetId, assetSymbol, amount (raw smallest-unit string), destination, status (always "pending"), and createdAt — plus total, page, pageSize, and totalPages. Available across @0xmonaco/core (sdk.withdrawals.listPendingWithdrawals) and @0xmonaco/react (useVault().listPendingWithdrawals).

Upgrade